Skip to content

Handle Telegram API response in case of failure #179

Description

@rougeth

Bottery ignores errors from Telegram API. If, for example, an invalid token is used, no message is shown and, the process breaks because it tries to continue even if something is wrong with Telegram.

Traceback (most recent call last):
  File "bottery/telegram/engine.py", line 95, in polling
    tasks = [self.message_handler(msg) for msg in updates['result']]
KeyError: 'result'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions