kopia lustrzana https://codeberg.org/pluja/openai-telegram-bot
Fix so it works with users without name
rodzic
585adc1916
commit
e701b77037
2
main.py
2
main.py
|
@ -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":
|
||||
|
|
Ładowanie…
Reference in New Issue