a🎄
Size: a a a
a🎄
a
a
a
🎩
a🎄
🎩
a🎄
a
a🎄
a🎄
🎩
🎩
a
a
a
🎩
if event.video_note or ((event.video) and not (event.gif)) or (event.photo) or (event.voice):
media = await event.message.download_media(file=bytes)
if event.video_note or (event.video and not event.gif):
media_file = io.BytesIO(media)
media_file.name = 'video.mp4'
stream = True
file_to_send = media_file
voice = False
elif (event.voice):
media_file = io.BytesIO(media)
media_file.name = 'audio.ogg'
voice = True
file_to_send = media_file
stream = False
elif (event.audio):
media_file = io.BytesIO(media)
media_file.name = 'audio.ogg'
voice = False
file_to_send = media_file
stream = False
a🎄
🎩