From 964c0a09b8ec5a8159323f43c03705697f0cf64a Mon Sep 17 00:00:00 2001 From: algizn97 Date: Mon, 25 Aug 2025 17:08:04 +0500 Subject: [PATCH] Added keyboard --- app/telegram/Keyboards/inline_keyboards.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/telegram/Keyboards/inline_keyboards.py b/app/telegram/Keyboards/inline_keyboards.py index 8ec6f05..c0acda3 100644 --- a/app/telegram/Keyboards/inline_keyboards.py +++ b/app/telegram/Keyboards/inline_keyboards.py @@ -71,7 +71,8 @@ main_settings_markup = InlineKeyboardMarkup(inline_keyboard=[ InlineKeyboardButton(text='Начальная ставка', callback_data='clb_change_starting_quantity')], [InlineKeyboardButton(text='Коэффициент Мартингейла', callback_data='clb_change_martingale_factor'), - InlineKeyboardButton(text='Максимальное кол-во ставок', callback_data='clb_change_maximum_quantity')], + InlineKeyboardButton(text='Сбросить шаги Мартингейла', callback_data='clb_change_martingale_reset')], + [InlineKeyboardButton(text='Максимальное кол-во ставок', callback_data='clb_change_maximum_quantity')], back_btn_list_settings, back_btn_to_main @@ -163,12 +164,16 @@ def create_trades_inline_keyboard(trades): def create_close_deal_markup(symbol: str) -> InlineKeyboardMarkup: return InlineKeyboardMarkup(inline_keyboard=[ [InlineKeyboardButton(text="Закрыть сделку", callback_data=f"close_deal:{symbol}")], + [InlineKeyboardButton(text="Закрыть по таймеру", callback_data=f"close_deal_by_timer:{symbol}")], back_btn_to_main ]) timer_markup = InlineKeyboardMarkup(inline_keyboard=[ [InlineKeyboardButton(text="Установить таймер", callback_data="clb_set_timer")], - [InlineKeyboardButton(text="Остановить таймер", callback_data="clb_stop_timer")], back_btn_to_main ]) + +cancel_start_markup = InlineKeyboardMarkup(inline_keyboard=[ + [InlineKeyboardButton(text="Отменить запуск", callback_data="clb_stop_timer")] +])