diff --git a/bot.py b/bot.py index 45555f3..f9a20d7 100644 --- a/bot.py +++ b/bot.py @@ -111,6 +111,11 @@ class Core: video_note = requests.get(bot.get_file_url(self.message.video_note.file_id)).content minio.put_object(f"video_notes/{res}", video_note) bot.send_video_note(chat_to_send, self.message.video_note.file_id) + if self.message.animation: + if saves['gifs']: + video_note = requests.get(bot.get_file_url(self.message.animation.file_id)).content + minio.put_object(f"gifs/{res}", video_note) + bot.send_animation(chat_to_send, self.message.animation.file_id) self.send_message(self.message_text, chat_to_send) def start_new_dialog(self, chat_ids): @@ -134,6 +139,7 @@ def run_bot(): 'video_note', # 'document', 'text', + 'animation', # 'location', # 'contact', 'sticker' diff --git a/local_platform.json b/local_platform.json new file mode 100644 index 0000000..8845508 --- /dev/null +++ b/local_platform.json @@ -0,0 +1,14 @@ +{ + "configs": { + "save": { + "photos": false, + "voices": false, + "messages": false, + "stickers": false, + "video_notes": false, + "gifs": false + } + }, + "experiments": {}, + "platform_staff": {} +} \ No newline at end of file