Business handler#
Business handlers. Module of the business#
Module of the business handler.
- class business_handler.BusinessHandler(bot, call_query)[source]#
Class of the business handler for admin.
- async __handler_congratulation_from_users(call_query)#
Handler (call-query) for admin (with business).
- Parameters:
call_query (CallbackQuery) – Callback Query.
- Returns:
None.
- Return type:
None
- async __handler_problem_with_bot_from_users(call_query)#
Handler (call-query) for admin (with business).
- Parameters:
call_query (CallbackQuery) – Callback Query.
- Returns:
None.
- Return type:
None
- async __handler_thanks_from_users(call_query)#
Handler (call-query) for admin (with business).
- Parameters:
call_query (CallbackQuery) – Callback Query.
- Returns:
None.
- Return type:
None
- class business_handler.Congratulation(bot)[source]#
Class of the Congratulation-command for the manager bot.
- Parameters:
bot (Bot) –
- async __manage_congratulation_from_users_only_sticker(message, state)#
Manage THANKS-command by only sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __manage_congratulation_from_users_only_text(message, state)#
Manage CONGRATULATION-command by only text. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __manage_congratulation_from_users_text_and_sticker(message, state)#
Manage THANKS-command text and sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __message_and_sticker_for_congratulation_hdl_step2(message, state)#
Handler function of manage THANKS-command by text and sticker. Step 2. Get message.
- Parameters:
message (Message) – Message - text.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async message_and_sticker_for_congratulation_hdl(call_query, state)[source]#
Handler function of manage CONGRATULATION-command by text and sticker. Step 1. Get call-query.
- Parameters:
call_query (CallbackQuery) – Callback Query.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- class business_handler.ProblemWithBot(bot)[source]#
Class of the ProblemWithBot-command for the manager bot.
- Parameters:
bot (Bot) –
- async __manage_problem_with_bot_from_users_only_sticker(message, state)#
Manage ProblemWithBot-command by only sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __manage_problem_with_bot_from_users_only_text(message, state)#
Manage ProblemWithBot-command by only text. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __manage_problem_with_bot_from_users_text_and_sticker(message, state)#
Manage THANKS-command text and sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __message_and_sticker_for_problem_with_bot_hdl_step2(message, state)#
Handler function of manage THANKS-command by text and sticker. Step 2. Get message.
- Parameters:
message (Message) – Message - text.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async message_and_sticker_for_problem_with_bot_hdl(call_query, state)[source]#
Handler function of manage ProblemWithBot-command by text and sticker. Step 1. Get call-query.
- Parameters:
call_query (CallbackQuery) – Callback Query.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- class business_handler.Thanks(bot)[source]#
Class of the Thanks-command for the manager bot.
- Parameters:
bot (Bot) –
- async __manage_thanks_from_users_only_sticker(message, state)#
Manage THANKS-command by only sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) –
- Returns:
None.
- Return type:
None
- async __manage_thanks_from_users_only_text(message, state)#
Manage THANKS-command by only text. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async __manage_thanks_from_users_text_and_sticker(message, state)#
Manage THANKS-command by text and sticker. Edit configurate-file by user settings.
- Parameters:
message (Message) – Message of the user.
state (FSMContext) –
- Returns:
None.
- Return type:
None
- async __message_and_sticker_for_thanks_hdl_step2(message, state)#
Handler function of manage THANKS-command by text and sticker. Step 2. Get message.
- Parameters:
message (Message) – Message - text.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None
- async message_and_sticker_for_thanks_hdl(call_query, state)[source]#
Handler function of manage THANKS-command by text and sticker. Step 1. Get call-query.
- Parameters:
call_query (CallbackQuery) – Callback Query.
state (FSMContext) – FSM.
- Returns:
None.
- Return type:
None