R
R
Rotyin2021-09-29 14:59:06
Python
Rotyin, 2021-09-29 14:59:06

Bot.register_next_steap_handler?

def rus_2a(message):
  markup=types.InlineKeyboardMarkup(row_width = 1)
  b1=types.InlineKeyboardButton("Пропустить", callback_data="propusk_2a_rus")
  markup.add(b1)
  mes = bot.send_message(message.chat.id,"Опишите пространство проекта чтобы понять лучше нам сам проект (до 2000 символов)",reply_markup = markup)
  print(helps)
  bot.register_next_step_handler(mes,next(message.chat.id),nam = 1)

The user, getting into this function, must either write text or skip, when he presses skip, there is another function in which you also need to enter text, when I write text, the bot.register_next_step_handler of the first function fires
How to make these two functions work so that you can was to skip, and so that you could write?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alan Gibizov, 2021-09-29
@phaggi

Bot.register_next_steap_handler?

No. See p. 3.6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question