-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
As many users have pointed out, callbacks on Windows doesn't work.
Using the example code from the documentation:
import botogram
bot = botogram.create("YOUR-TOKEN")
@bot.command("spam")
def spam_command(chat, message, args):
"""Send a spam message to this chat"""
btns = botogram.Buttons()
btns[0].callback("Delete this message", "delete")
chat.send("This is spam!", attach=btns)
@bot.callback("delete")
def delete_callback(query, chat, message):
message.delete()
query.notify("Spam message deleted. Sorry!")
if __name__ == '__main__':
bot.run()the bot sends the message, but when you click the button it does nothing. There're no errors or logs.
Even using bot.validate_callback = False it doesn't work, same result.