diff options
| author | huker667 <huker@tuta.io> | 2026-07-14 20:45:25 +0300 |
|---|---|---|
| committer | huker667 <huker@tuta.io> | 2026-07-14 20:45:25 +0300 |
| commit | 631fabf30dec054aa0c7561dbbbf862527096b71 (patch) | |
| tree | 7982f475ec2309b423d2191f0da4aec26e94f0cc /commands.py | |
| parent | b5c986f78462eb3d8415e1874a2e957e6392a602 (diff) | |
| download | uzbekgpt-631fabf30dec054aa0c7561dbbbf862527096b71.tar.gz uzbekgpt-631fabf30dec054aa0c7561dbbbf862527096b71.tar.bz2 uzbekgpt-631fabf30dec054aa0c7561dbbbf862527096b71.zip | |
add row builder (da krutoi)
Diffstat (limited to 'commands.py')
| -rw-r--r-- | commands.py | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/commands.py b/commands.py index b521ad1..27c7261 100644 --- a/commands.py +++ b/commands.py @@ -341,14 +341,19 @@ async def settings_handler(event: Union[Message, CallbackQuery]): notify_status = "net" notify_cb = "da" + if config["markdown"] == "new": + markdown_status = "новый" + markdown_cb = "old" + else: + markdown_status = "старый" + markdown_cb = "new" + keyboard = InlineKeyboardMarkup( inline_keyboard=[ [ InlineKeyboardButton( text=f"модели ({models_count})", callback_data=f"models%{user_id}" - ) - ], - [ + ), InlineKeyboardButton( text=f"промпты ({prompts_count})", callback_data=f"prompts%{user_id}" ) @@ -357,9 +362,7 @@ async def settings_handler(event: Union[Message, CallbackQuery]): InlineKeyboardButton( text=f"стрим: {stream_status}", callback_data=f"set_stream%{user_id}%{stream_cb}", - ) - ], - [ + ), InlineKeyboardButton( text=f"отклик: {call_status}", callback_data=f"set_call%{user_id}%{call_cb}", @@ -369,10 +372,15 @@ async def settings_handler(event: Union[Message, CallbackQuery]): InlineKeyboardButton( text=f"рассылка: {notify_status}", callback_data=f"set_notify%{user_id}%{notify_cb}", - ) + ), + InlineKeyboardButton( + text=f"маркдаун: {markdown_status}", + callback_data=f"set_markdown%{user_id}%{markdown_cb}", + ), + ], - [InlineKeyboardButton(text="донат", callback_data=f"donate%{user_id}")], - [InlineKeyboardButton(text="о боте", callback_data=f"about%{user_id}")], + [InlineKeyboardButton(text="💸 донат", callback_data=f"donate%{user_id}")], + [InlineKeyboardButton(text="🤖 о боте", callback_data=f"about%{user_id}")], ] ) |