Untitled
unknown
python
5 years ago
1.0 kB
12
Indexable
def start(update, context) keyboard_licenza = InlineKeyboardMarkup(inline_keyboard=[ [InlineKeyboardButton(text='button text', callback_data='tasto')], ]) update.message.reply_text( 'text',parse_mode= 'Markdown', reply_markup=keyboard_start) def conversation(): # Create the Updater and pass it your bot's token. # Make sure to set use_context=True to use the new context based callbacks # Post version 12 this will no longer be necessary updater = Updater(TOKEN, use_context=True) # Get the dispatcher to register handlers dp = updater.dispatcher conv_handler = ConversationHandler( entry_points=[MessageHandler(Filters.regex('^tasto$'), stepA)], states={ ........... }, fallbacks=[MessageHandler(Filters.regex('^cancel$'), cancel)], #fallbacks=[MessageHandler(Filters.command, cancel)], ) dp.add_handler(conv_handler) updater.start_polling()
Editor is loading...