twtb.logic.telegram.on_message
#
Module for on_message
hook.
Module Contents#
Functions#
|
Register the hooks in this file. |
|
Hook for |
|
Hook for messages in shared (between client and bot) chat. |
|
|
|
|
|
|
|
- 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.
Hook for messages in shared (between client and bot) chat.
Messages there, bot should send to the users.