Skip to content

Callbacks on Windows doesn't work #114

@MarcoBuster

Description

@MarcoBuster

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions