mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-06-13 03:54:57 +03:00
Fix bot mention in group chat
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ async def is_bot_mentioned(update: Update, context: CallbackContext):
|
|||||||
if message.chat.type == "private":
|
if message.chat.type == "private":
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if message.text is not None and config.bot_username in message.text:
|
if message.text is not None and ("@" + context.bot.username) in message.text:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if message.reply_to_message is not None:
|
if message.reply_to_message is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user