From 87108b2ac8fa14bf9b39b2da391b863dff8f207e Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Fri, 22 Mar 2024 18:38:46 +0800 Subject: [PATCH] fix await --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index bf3880a..071925f 100644 --- a/main.py +++ b/main.py @@ -52,7 +52,7 @@ async def cmd_set_forward_channel(update: Update, context: ContextTypes.DEFAULT_ return channel = context.args[0] try: - channel: Chat = context.bot.get_chat(channel) + channel: Chat = await context.bot.get_chat(channel) except Exception as e: await update.effective_message.reply_text(str(e)) return