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
308 stars 84 forks source link

fix: type annotation on `Message.reply_document` #83

Closed asdfzxcvbn closed 2 weeks ago

asdfzxcvbn commented 3 weeks ago

this method is a bound method for Client.send_document, where its type annotation for thumb is Union[str, BinaryIO]

therefore, the type annotation in Message.reply_document should not differ