From 626c8b5b9111aa322414f548bd2f53602dcbae27 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 13 Aug 2024 10:02:13 +0300 Subject: [PATCH] caption --- back/tgbot/tgbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/tgbot/tgbot.py b/back/tgbot/tgbot.py index 3ce52d7..45c48d5 100644 --- a/back/tgbot/tgbot.py +++ b/back/tgbot/tgbot.py @@ -553,7 +553,7 @@ class TgBot: element.file_id = update.message.photo[-1].file_id upload_file.delay(element.file_id) if update.message.caption: - element.text = update.message.text + element.text = update.message.caption if update.message.text: element.text = update.message.text