KurimuzonAkuma / pyrogram

Elegant, modern and asynchronous Telegram MTProto API framework in Python for users and bots
https://pyrogram.org
GNU Lesser General Public License v3.0
358 stars 95 forks source link

Add connect_handler #105

Open drizzt opened 2 weeks ago

drizzt commented 2 weeks ago

For coherency add also an on_connect handler.

A good use case for this is when you use Smart Plugin, so you can add the initialization code needed for your plugin in the plugin file itself

GPByte commented 3 hours ago

This is interesting. Can we ask for this to be included in one of the next versions?

KurimuzonAkuma commented 3 hours ago

This is interesting. Can we ask for this to be included in one of the next versions?

I'm still recovering from surgery, so I haven't really watched much change yet. I'll check in when I'm feeling better

GPByte commented 3 hours ago

OMG! I am so sorry!!! I didn't know!!! I wish you all the best! Get well and recover fully! That should be the most important thing! Best Regards!