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.actions.wait_response(bot, chat, handler)[source]

telegram_framework.dummy.bots module

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

Bases: object

call_handlers: Dict[str, Handler]
command_handlers: Dict[str, Handler]
property id
message_handlers: List[Handler]
next_step_handler: Callable = None
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: str, filter_function: Callable = None)[source]
telegram_framework.dummy.bots.register_command_handler(bot: DummyBot, handler: Callable, name: str, filter_function=None)[source]
telegram_framework.dummy.bots.register_message_handler(bot: ~telegram_framework.dummy.bots.DummyBot, handler: ~typing.Callable, filter_function: ~typing.Callable = <function <lambda>>)[source]
telegram_framework.dummy.bots.register_next_step_handler(bot: DummyBot, chat, handler: Callable)[source]
telegram_framework.dummy.bots.register_text_handler(bot: DummyBot, handler: Callable, text: str)[source]
telegram_framework.dummy.bots.start(bot: DummyBot)[source]
telegram_framework.dummy.bots.update_bot(chat, bot)[source]

Module contents