This commit is contained in:
Kseninia Mikhaylova 2024-08-13 09:59:27 +03:00
parent 83d9d85ffd
commit c7f7675941
1 changed files with 3 additions and 1 deletions

View File

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