telegram_framework.use package

Submodules

telegram_framework.use.create module

telegram_framework.use.create.create_action(form_cls, result_callback)[source]
telegram_framework.use.create.make_field_functions(form_cls, field_name, next_step_function)[source]
telegram_framework.use.create.show_input(form_cls, bot, message, field_name, wait_response_in)[source]
telegram_framework.use.create.validate_field(form_cls, bot, message, field_name, repeat_function)[source]

telegram_framework.use.detail module

telegram_framework.use.detail.detail_action(model, template_name, context_object_name='object')[source]

telegram_framework.use.list module

telegram_framework.use.list.list_action(model, template_name, context_object_name='objects_list', pagination: Pagination = None)[source]

telegram_framework.use.paginations module

class telegram_framework.use.paginations.Pagination(paginate_by: int, previous_button_name: str = '<<', next_button_name: str = '>>', call_data_pattern: str = 'list {page}', order_by: str = 'id')[source]

Bases: object

call_data_pattern: str = 'list {page}'
next_button_name: str = '>>'
order_by: str = 'id'
paginate_by: int
previous_button_name: str = '<<'
telegram_framework.use.paginations.paginate(pagination: Pagination, input_queryset, page)[source]

telegram_framework.use.template module

telegram_framework.use.template.template_action(template_name, context=None)[source]

Module contents