def is_gif(file): # ngl this should be fixed, telethon.utils.is_gif but working # lazy to go to github and make an issue kek if not is_video(file): return False return DocumentAttributeAnimated() in getattr(file, "document", file).attributes
async def _send(self, chat_id: Union[str, int], reply_to_msg_id: int = None, silent: bool = None): await env.bot.send_message(chat_id, self.text, file=self.media.telegramize(), attributes=(DocumentAttributeAnimated(), ), parse_mode=self.parse_mode, reply_to=reply_to_msg_id, silent=silent)