fix await

This commit is contained in:
2024-03-22 18:41:07 +08:00
parent 4613e4c825
commit 87108b2ac8
+1 -1
View File
@@ -52,7 +52,7 @@ async def cmd_set_forward_channel(update: Update, context: ContextTypes.DEFAULT_
return return
channel = context.args[0] channel = context.args[0]
try: try:
channel: Chat = context.bot.get_chat(channel) channel: Chat = await context.bot.get_chat(channel)
except Exception as e: except Exception as e:
await update.effective_message.reply_text(str(e)) await update.effective_message.reply_text(str(e))
return return