twtb.logic.telegram.on_message#

Module for on_message hook.

Module Contents#

Functions#

register(→ None)

Register the hooks in this file.

_on_message(→ None)

Hook for on_message event.

_on_shared_chat_message(→ None)

Hook for messages in shared (between client and bot) chat.

_on_shared_chat_adding_token(→ None)

_get_slash_start_message(→ Dict[str, Any])

_start_command(→ None)

_button_callback(→ None)

register(bot: telethon.TelegramClient, client: telethon.TelegramClient) None[source]#

Register the hooks in this file.

async _on_message(event: telethon.events.NewMessage.Event) None[source]#

Hook for on_message event.

async _on_shared_chat_message(event: telethon.events.NewMessage.Event) None[source]#

Hook for messages in shared (between client and bot) chat.

Messages there, bot should send to the users.

async _on_shared_chat_adding_token(event: telethon.events.NewMessage.Event, *, bot: bool) None[source]#
_get_slash_start_message() Dict[str, Any][source]#
async _start_command(event: telethon.events.NewMessage.Event) None[source]#
async _button_callback(event: telethon.events.CallbackQuery.Event) None[source]#