Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

又双叒叕修了一点 bug #21

Merged
merged 11 commits into from
Nov 1, 2022
Prev Previous commit
Next Next commit
Exclude messages from bot self in via_bot messages
  • Loading branch information
X1A0CA1 committed Oct 31, 2022
commit fd66829cf62dc9ea240edc23cc2276cb6d242c06
2 changes: 1 addition & 1 deletion user_handlers/msg_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def store_message(update, context):
update_message(chat_id, msg_id, msg_text)
return

if update.message.via_bot:
if update.message.via_bot.id == context.bot.get_me().username:
return
'''
这里的 if 判断发言是用户还是频道或者是 group。
Expand Down