Skip to content

当群内有人使用以频道身份发言或者是 anonymous admin 发言的时候会报错 #20

Closed
@X1A0CA1

Description

@X1A0CA1

上报错代码

2022-10-30 06:23:47,825 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/telegram/ext/dispatcher.py", line 555, in process_update
    handler.handle_update(update, self, check, context)
  File "/usr/local/lib/python3.7/site-packages/telegram/ext/handler.py", line 198, in handle_update
    return self.callback(update, context)
  File "/app/user_handlers/msg_store.py", line 41, in store_message
    or update.message.from_user.is_bot \
AttributeError: 'NoneType' object has no attribute 'from_user'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions