Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.command("start")
- def start_command(chat, message, args):
- btns = botogram.Buttons()
- btns[0].callback("Great", "notify", "Happy to hear that!")
- btns[1].callback("Not so great", "notify", "I'm sorry! What happened?")
- chat.send("How are you feeling?", attach=btns)
- @bot.callback("notify")
- def delete_callback(query, data, chat, message):
- query.notify(data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement