From c7f7675941ac7d6f3c21b693d253525dfcd1c457 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 13 Aug 2024 09:59:27 +0300 Subject: [PATCH] caption --- back/tgbot/tgbot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/back/tgbot/tgbot.py b/back/tgbot/tgbot.py index 075ed8c..3ce52d7 100644 --- a/back/tgbot/tgbot.py +++ b/back/tgbot/tgbot.py @@ -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