◐ Shell
clean mode source ↗

Fix a bug and add ByteIO to thumb in input medias by meybj · Pull Request #1245 · pyrogram/pyrogram

When you want only edit media of message with edit_message_media, it will remove caption of media because "" (empty string) have been set as default in input_media_auido (and others which have caption) which will remove caption.

Added ByteIO in some of input medias that support thumbnail.

in guess_mime_type of edit_message_media instead of filename, media was given. when we pass ByteIO to media it will throw error.