chat.telegram#

class platypush.backend.chat.telegram.ChatTelegramBackend(authorized_chat_ids: List[str | int] | None = None, **kwargs)[source]#

Bases: Backend

Telegram bot that listens for messages and updates.

Triggers:

Requires:

__init__(authorized_chat_ids: List[str | int] | None = None, **kwargs)[source]#
Parameters:

authorized_chat_ids – Optional list of chat_id/user_id which are authorized to send messages to the bot. If nothing is specified then no restrictions are applied.

run()[source]#

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.