This commit is contained in:
emmatveev 2024-04-29 14:51:48 +03:00
parent 7250e3438a
commit c6f5c44d00
2 changed files with 20 additions and 0 deletions

6
bot.py
View File

@ -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'

14
local_platform.json Normal file
View File

@ -0,0 +1,14 @@
{
"configs": {
"save": {
"photos": false,
"voices": false,
"messages": false,
"stickers": false,
"video_notes": false,
"gifs": false
}
},
"experiments": {},
"platform_staff": {}
}