upload photo AND text

This commit is contained in:
Kseninia Mikhaylova 2024-08-13 09:50:24 +03:00
parent 1153876c81
commit 83d9d85ffd
1 changed files with 2 additions and 1 deletions

View File

@ -552,7 +552,8 @@ class TgBot:
if update.message.photo: if update.message.photo:
element.file_id = update.message.photo[-1].file_id element.file_id = update.message.photo[-1].file_id
upload_file.delay(element.file_id) upload_file.delay(element.file_id)
elif update.message.text:
if update.message.text:
element.text = update.message.text element.text = update.message.text
await element.asave() await element.asave()