You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am encoutering an issue where the bot (v1.5) responds to GIFs and videos in group chats without being explicitly mentioned. The bot automatically replies with: "I don't know how to read files or videos. Send the picture in normal mode (Quick Mode)."
This behavior persists even though the bot is not mentioned or tagged. Is this a bug? Otherwise, I am looking for guidance or a fix to ensure that the bot only responds when directly mentioned or replying to its messages in group chats.
The text was updated successfully, but these errors were encountered:
Yes, they forgot to block unmentioned video/file messages in the group chat
This is a quick fix:
asyncdefunsupport_message_handle(update: Update, context: CallbackContext, message=None):
# check if bot was mentioned (for group chats)ifnotawaitis_bot_mentioned(update, context):
returnerror_text=f"I don't know how to read files or videos. Send the picture in normal mode (Quick Mode)."logger.error(error_text)
awaitupdate.message.reply_text(error_text)
return
Yes, they forgot to block unmentioned video/file messages in the group chat
This is a quick fix:
asyncdefunsupport_message_handle(update: Update, context: CallbackContext, message=None):
# check if bot was mentioned (for group chats)ifnotawaitis_bot_mentioned(update, context):
returnerror_text=f"I don't know how to read files or videos. Send the picture in normal mode (Quick Mode)."logger.error(error_text)
awaitupdate.message.reply_text(error_text)
return
Hi, I am encoutering an issue where the bot (v1.5) responds to GIFs and videos in group chats without being explicitly mentioned. The bot automatically replies with: "I don't know how to read files or videos. Send the picture in normal mode (Quick Mode)."
This behavior persists even though the bot is not mentioned or tagged. Is this a bug? Otherwise, I am looking for guidance or a fix to ensure that the bot only responds when directly mentioned or replying to its messages in group chats.
The text was updated successfully, but these errors were encountered: