Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

support 'hier' in natural queries #6

Open
kiliankoe opened this issue Feb 19, 2018 · 0 comments
Open

support 'hier' in natural queries #6

kiliankoe opened this issue Feb 19, 2018 · 0 comments

Comments

@kiliankoe
Copy link
Owner

bots can request the user's location, but this might make a conversation handler necessary?

>>> location_keyboard = telegram.KeyboardButton(text="send_location", request_location=True)
>>> contact_keyboard = telegram.KeyboardButton(text="send_contact", request_contact=True)
>>> custom_keyboard = [[ location_keyboard, contact_keyboard ]]
>>> reply_markup = telegram.ReplyKeyboardMarkup(custom_keyboard)
>>> bot.send_message(chat_id=chat_id, 
...                  text="Would you mind sharing your location and contact with me?", 
...                  reply_markup=reply_markup)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant