Advertisement
Chiller1337

Untitled

Mar 29th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. # В коде буквы это строки
  2. @bot.message_handler(func=lambda msg: msg.text == g)  #Работает
  3.     def helper(message):
  4.         bot.send_message(message.from_user.id, helper_txt, reply_markup=markup)
  5.  
  6.     @bot.message_handler(func=lambda msg: msg.text == a or b or c or d) #Работает
  7.     def trial(message):
  8.         bot.send_message(message.from_user.id, trial_txt, reply_markup=markup2)
  9.  
  10.     @bot.message_handler(func=lambda message: message.text == st) #Не работает, хотя по логике вещей должно...
  11.     def activate_trial(message):
  12.         bot.send_message(message.from_user.id, detail_txt, reply_markup=markup3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement