Skip to content

Commit

Permalink
Attempt to use a single button
Browse files Browse the repository at this point in the history
  • Loading branch information
carbon-starlight committed Jun 4, 2024
1 parent 921883c commit 0b9981f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions masterfolders/wsbot MASTERFOLDER/wsbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from typing import Final
from telegram import Update
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, WebAppInfo
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, WebAppInfo, KeyboardButton
from telegram.ext import Updater, CallbackContext, CallbackQueryHandler, ConversationHandler
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, Update
from telegram.ext import Application, CallbackQueryHandler, CommandHandler, ContextTypes
Expand Down Expand Up @@ -2537,14 +2537,15 @@ async def add_for(update: Update, context: ContextTypes.DEFAULT_TYPE) -> int:
if count_lrm_symbols(str(context.user_data['type'])) == 3:
# if mark as done
reply_keyboard = ['✓']
reply_keyboard = KeyboardButton(text='✓')
if update.message.from_user.language_code == 'ru':
msg = "Выберете стиль пометки"
else:
msg = "Select the style of the mark"

await update.message.reply_text(
msg,
reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True)
reply_markup=ReplyKeyboardMarkup([[reply_keyboard]])
)
else:

Expand Down

0 comments on commit 0b9981f

Please sign in to comment.