Small fix of message method

This commit is contained in:
Profitroll 2022-12-27 13:40:58 +01:00
parent 5e06859b56
commit 87d9afe74a
1 changed files with 2 additions and 2 deletions

View File

@ -254,11 +254,11 @@ class HoloUser():
elif animation is not None:
if isinstance(animation, Animation):
animation = animation.file_id
new_message = await app.send_animation(animation, caption=caption, quote=True)
new_message = await app.send_animation(self.id, animation, caption=caption)
elif voice is not None:
if isinstance(voice, Voice):
voice = voice.file_id
new_message = await app.send_voice(voice, caption=caption, quote=True)
new_message = await app.send_voice(self.id, voice, caption=caption)
else:
new_message = await app.send_message(self.id, text)