telegram_framework.dummy package

Submodules

telegram_framework.dummy.actions module

telegram_framework.dummy.actions.send_image(chat: Chat, image: Image)[source]
telegram_framework.dummy.actions.send_message(chat: Chat, message: Message)[source]
telegram_framework.dummy.actions.send_reply(reply: Reply)[source]

telegram_framework.dummy.bots module

class telegram_framework.dummy.bots.DummyBot(token: str, command_handlers: Dict[str, Callable] = <factory>, message_handlers: List[Callable] = <factory>, call_handlers: Dict[str, Callable] = <factory>)[source]

Bases: object

call_handlers: Dict[str, Callable]
command_handlers: Dict[str, Callable]
message_handlers: List[Callable]
token: str
telegram_framework.dummy.bots.find_handler(bot: DummyBot, message)[source]
telegram_framework.dummy.bots.get_bot(token)[source]
telegram_framework.dummy.bots.get_commands_list(bot: DummyBot)[source]
telegram_framework.dummy.bots.handle_message(bot, message)[source]
telegram_framework.dummy.bots.register_call_handler(bot: DummyBot, handler: Callable, call_data)[source]
telegram_framework.dummy.bots.register_command_handler(bot: DummyBot, handler: Callable, name: str)[source]
telegram_framework.dummy.bots.register_message_handler(bot: DummyBot, handler: Callable)[source]
telegram_framework.dummy.bots.start(bot: DummyBot)[source]

Module contents