Fix so it works with users without name

main
pluja 2023-04-19 21:27:25 +02:00
rodzic 585adc1916
commit e701b77037
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -252,7 +252,7 @@ async def attachment(message: types.Message):
return
file = await bot.get_file(file_id)
user_id = message.chat.full_name
user_id = message.chat.id
await file.download(f"{user_id}.{file_format}")
if file_format == "ogg":