Skip to content

Commit

Permalink
fix: without async
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyreplus committed Nov 7, 2024
1 parent 423a47c commit 1b8e27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ async def get_chat_id_topic(update: Update, context: ContextTypes.DEFAULT_TYPE):
topic_id = update.message.message_thread_id

if topic_id is None:
update.message.reply_text(f"Id della chat: {chat_id}")
await update.message.reply_text(f"Id della chat: {chat_id}")
else:
update.message.reply_text(f"Id della chat: {chat_id}, id del topic: {topic_id}")
await update.message.reply_text(f"Id della chat: {chat_id}, id del topic: {topic_id}")


if __name__ == "__main__":
Expand Down

0 comments on commit 1b8e27d

Please sign in to comment.