You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
And according to what the user chooses in the second query, one number will be displayed.
I wrote the code above and I'll go to the second menu stage.
But after that, I do not know what to do, so the program proceeds according to the user's choice in the second menu
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
hi
I want to run a query after another query.
`
def on_chat_message(msg):
content_type, chat_type, chat_id = telepot.glance(msg)
keyboard = InlineKeyboardMarkup(inline_keyboard=[
[InlineKeyboardButton(text='ISO', callback_data='iso')],
[InlineKeyboardButton(text='MAKRO', callback_data='makro')],
])
bot.sendMessage(chat_id, 'please select one', reply_markup=keyboard)
def menu(msg):
query_id, from_id, query_data = telepot.glance(msg, flavor='callback_query')
bot = telepot.Bot(TOKEN)
MessageLoop(bot, {'chat': on_chat_message,
'callback_query': menu}).run_as_thread()
`
And according to what the user chooses in the second query, one number will be displayed.
I wrote the code above and I'll go to the second menu stage.
But after that, I do not know what to do, so the program proceeds according to the user's choice in the second menu
The text was updated successfully, but these errors were encountered: