gifs
This commit is contained in:
parent
7250e3438a
commit
c6f5c44d00
6
bot.py
6
bot.py
@ -111,6 +111,11 @@ class Core:
|
|||||||
video_note = requests.get(bot.get_file_url(self.message.video_note.file_id)).content
|
video_note = requests.get(bot.get_file_url(self.message.video_note.file_id)).content
|
||||||
minio.put_object(f"video_notes/{res}", video_note)
|
minio.put_object(f"video_notes/{res}", video_note)
|
||||||
bot.send_video_note(chat_to_send, self.message.video_note.file_id)
|
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)
|
self.send_message(self.message_text, chat_to_send)
|
||||||
|
|
||||||
def start_new_dialog(self, chat_ids):
|
def start_new_dialog(self, chat_ids):
|
||||||
@ -134,6 +139,7 @@ def run_bot():
|
|||||||
'video_note',
|
'video_note',
|
||||||
# 'document',
|
# 'document',
|
||||||
'text',
|
'text',
|
||||||
|
'animation',
|
||||||
# 'location',
|
# 'location',
|
||||||
# 'contact',
|
# 'contact',
|
||||||
'sticker'
|
'sticker'
|
||||||
|
14
local_platform.json
Normal file
14
local_platform.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"configs": {
|
||||||
|
"save": {
|
||||||
|
"photos": false,
|
||||||
|
"voices": false,
|
||||||
|
"messages": false,
|
||||||
|
"stickers": false,
|
||||||
|
"video_notes": false,
|
||||||
|
"gifs": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"experiments": {},
|
||||||
|
"platform_staff": {}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user