mail-ru-im / bot-python

Bot API for Python
https://teams.vk.com/botapi/
MIT License
83 stars 33 forks source link

Flask-style dispatcher #13

Open Olegt0rr opened 4 years ago

Olegt0rr commented 4 years ago

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 commented 2 years ago

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

robert-cody commented 2 years ago

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 commented 2 years ago

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?