Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. @bot.command("start")
  2. def start_command(chat, message, args):
  3. btns = botogram.Buttons()
  4. btns[0].callback("Great", "notify", "Happy to hear that!")
  5. btns[1].callback("Not so great", "notify", "I'm sorry! What happened?")
  6.  
  7. chat.send("How are you feeling?", attach=btns)
  8.  
  9. @bot.callback("notify")
  10. def delete_callback(query, data, chat, message):
  11. query.notify(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement