Buttons#

Get buttons (markups).#

Module of the create button for the menu and Bot in general.

class buttons.Buttons[source]#

Class for get the buttons in chats.

async static back_in_promo_menu()[source]#

Get Builder-keyboard for return in PROMO menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static back_on_main()[source]#

Get Builder-keyboard for return in main menu (on main).

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static generate_image()[source]#

Get Builder-keyboard for generate image by GigaChat | V3 | For premium-user.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_add_new_email()[source]#

Get menu for add a new email for user / admin.

Returns:

builder.

Return type:

InlineKeyboardBuilder

async static get_add_new_email_or_check_ver_code_try_again()[source]#

Get menu for add a new email for user / admin again or again check the ver. code.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_add_new_email_try_again()[source]#

Get menu for add a new email for user / admin again.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_ai_menu()[source]#

Get Builder-keyboard for main-menu of AI.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_business_and_money_menu_admin()[source]#

Get menu for admin - BusinessAndMoney-Menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_email()[source]#

Builder-button (Inline) of the help.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static get_language_privacy_menu()[source]#

builder-button (Inline) of the lang-mode for privacy-menu.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_admin()[source]#

Builder-button (Inline) of the Bot Menu for admin.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_admin_promos()[source]#

Get Builder-keyboard for main-menu for admin.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_back_to_business_and_money_for_admin()[source]#

Get BACK-MENU for admin, for back to BusinessAndMoney-Menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_back_to_email_settings()[source]#

Get Builder-keyboard for menu-back to EMailSettings-menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_business_handler()[source]#

Get menu of business handler.

Returns:

Builder Buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_business_handler_congratulation()[source]#

Get menu of business handler - CongratulationCommandAnswer.

Returns:

Builder Buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_business_handler_problem_with_bot()[source]#

Get menu of business handler - ProblemWithBotCommandAnswer.

Returns:

Builder Buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_business_handler_thanks()[source]#

Get menu of business handler - ThanksCommandAnswer.

Returns:

Builder Buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_confirmation_for_edit_email()[source]#

Get Builder-keyboard for confirmation to edit email of the user / admin.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_email_settings(tg_id, admin_id)[source]#

Get Builder-keyboard for menu of Email Settings.

Parameters:
  • tg_id (int) – TG ID for check and create Builder.

  • admin_id (int) – ID Admin.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_user_tickets()[source]#

Builder-button (Inline) of the Bot Menu for the user in “TICKETS”.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_user_tickets_again()[source]#

Builder-button (Inline) of the Bot AGAIN-Menu for the user in “TICKETS”.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static get_menu_with_premium()[source]#

Get Builder-keyboard for main-menu for users with CW PREMIUM.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_without_premium()[source]#

Get Builder-keyboard for main-menu for users without CW PREMIUM.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_menu_yookassa_payment(url)[source]#

Get Builder-keyboard for pay with YOOKASSA.

Parameters:

url (str) – URL.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_premium()[source]#

Get Builder-keyboard for get status premium-user and get CW PREMIUM.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_premium_process_choosing()[source]#

Get Builder-keyboard for get status premium-user and get CW PREMIUM | Process choosing.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_ticket_menu_admin()[source]#

Get menu for admin - TicketSystem-Menu (TicketsMenu).

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static get_user_tickets(tg_id)[source]#

Builder-button (Inline) of the Bot for the user’s history of “TICKETS”.

Parameters:

tg_id (int) – User’s id – tg_id.

Returns:

Tuple with data.

Return type:

tuple

async static get_users_tickets_for_admin()[source]#

Builder-button (Inline) of the Bot for the admin history of “TICKETS” of the users.

Returns:

tuple of the tickets and Builder-buttons.

Return type:

tuple

async static get_var_giga_version(message)[source]#

Builder-button (Inline) of the choose version of the GigaChatAI for the user.

Parameters:

message (aiogram.types.message.Message | aiogram.types.callback_query.CallbackQuery) – Message.

Returns:

Builder-buttons.

Return type:

InlineKeyboardBuilder

async static sure_add_new_promo()[source]#

Get Builder-keyboard for ‘sure’ add a promo code by ADMIN | Admin control.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static sure_apply_promo()[source]#

Get Builder-keyboard for ‘sure’ apply a promo code by user.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static sure_delete_promo()[source]#

Get Builder-keyboard for ‘sure’ delete a promo code by ADMIN | Admin control.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static sure_emergency_refund_confirmation()[source]#

Get Builder-keyboard for ‘sure’ emergency refund by admin | Confirmation.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static sure_refund()[source]#

Get Builder-keyboard for ‘sure’ refund by admin.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static sure_refund_confirmation()[source]#

Get Builder-keyboard for ‘sure’ refund by admin | Confirmation.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static try_again_add_new_promo_or_back_on_main()[source]#

Get Builder-keyboard for attempt add a new promo data or return in PROMO Menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder

async static try_again_delete_promo_or_back_on_main()[source]#

Get Builder-keyboard for attempt delete a promo data or return in PROMO Menu.

Returns:

Builder.

Return type:

InlineKeyboardBuilder