Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #send
- button=[["text01","text02"],["text03","text04]]
- bot.api.call('sendMessage', {
- 'chat_id': u.id,
- 'text': cm.messageText(),
- "disable_web_page_preview": True,
- 'parse_mode': 'HTML',
- 'reply_markup': json.dumps({"keyboard": button})
- })
- #remove keyboard
- bot.api.call('sendMessage', {
- 'chat_id': chat.id,
- 'text': text,
- 'parse_mode': 'HTML',
- 'reply_markup':
- json.dumps(
- {"remove_keyboard": True}
- )
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement