Compare commits

...

3 Commits

Author SHA1 Message Date
e131826519 Merge branch 'dev' of https://gitea.sprinthub.ru/self/roulette-bot into dev 2024-11-30 13:14:24 +03:00
8161954db9 fix 2024-11-30 13:14:05 +03:00
f49413b7d7 fix 2024-11-30 13:08:18 +03:00

4
bot.py
View File

@ -100,11 +100,11 @@ class Core(TasksHandlerMixin):
if self.message.photo: if self.message.photo:
self.send_message(None, chat_to_send, method='send_photo', photo=self.message.photo[-1].file_id) self.send_message(None, chat_to_send, method='send_photo', photo=self.message.photo[-1].file_id)
if self.message.sticker: if self.message.sticker:
self.send_message(None, chat_to_send, method='send_sticker', data=self.message.sticker.file_id) self.send_message(None, chat_to_send, method='send_data', data=self.message.sticker.file_id, data_type='sticker')
if self.message.voice: if self.message.voice:
self.send_message(None, chat_to_send, method='send_voice', voice=self.message.voice.file_id) self.send_message(None, chat_to_send, method='send_voice', voice=self.message.voice.file_id)
if self.message.video_note: if self.message.video_note:
self.send_message(None, chat_to_send, method='send_video_note', data=self.message.video_note.file_id) self.send_message(None, chat_to_send, method='send_data', data=self.message.video_note.file_id, data_type='video_note')
if self.message.animation: if self.message.animation:
self.send_message(None, chat_to_send, method='send_animation', animation=self.message.animation.file_id) self.send_message(None, chat_to_send, method='send_animation', animation=self.message.animation.file_id)
self.send_message(self.message_text, chat_to_send) self.send_message(self.message_text, chat_to_send)