Use free Telegram reactions for AI status (🤔/👍/👎)
Replace premium-only ⏳/✅/❌ with reactions available to all users: 🤔 while processing, 👍 on success, 👎 on error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -315,7 +315,7 @@ async def ai(ctx: "CommandContext") -> None:
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
await _react("⏳")
|
await _react("🤔")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = await ai_service.generate(
|
response = await ai_service.generate(
|
||||||
@@ -328,9 +328,9 @@ async def ai(ctx: "CommandContext") -> None:
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
except (RuntimeError, ValueError) as exc:
|
except (RuntimeError, ValueError) as exc:
|
||||||
await _react("❌")
|
await _react("👎")
|
||||||
await ctx.reply(str(exc))
|
await ctx.reply(str(exc))
|
||||||
return
|
return
|
||||||
|
|
||||||
await _react("✅")
|
await _react("👍")
|
||||||
await _reply_long(ctx, response.text)
|
await _reply_long(ctx, response.text)
|
||||||
|
|||||||
Reference in New Issue
Block a user