Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask-style dispatcher #13

Open
Olegt0rr opened this issue Jun 7, 2020 · 3 comments
Open

Flask-style dispatcher #13

Olegt0rr opened this issue Jun 7, 2020 · 3 comments

Comments

@Olegt0rr
Copy link

Olegt0rr commented Jun 7, 2020

Flask-style dispatcher look pretty and simple.
It reduces entry threshold for beginners.
It makes code more clear and readable

@bot.message_handler(filters)
def function_name(message):
    bot.reply_to(message, "This is a message handler")

Reference:
aiogram
pyTelegramBotAPI

@kamuridesu
Copy link

I actually made this: https://github.com/kamuridesu/ICQBotPy lmao

@robert-cody
Copy link

robert-cody commented Jul 16, 2022

I actually made this: https://github.com/kamuridesu/ICQBotPy lmao

Actually it looks like even more mess than official library. BTW official library already have this style events dispatcher since long time ago 🤷‍♂️

@kamuridesu
Copy link

I actually made this: https://github.com/kamuridesu/ICQBotPy lmao

Actually it looks like even more mess than official library. BTW official library already have this style events dispatcher since long time ago man_shrugging

As this is my first time programming pip modules and frameworks to be used by other people, the main goal was to gain experience. Can you help me by telling me what's wrong with it and how to improve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants