fix(talkbot): reply to image messages with translated captions

Этот коммит содержится в:
2026-09-05 17:06:39 +02:00
родитель 162416ae1a
Коммит 5608628e71
+5
Просмотреть файл
@@ -1241,6 +1241,11 @@ def process_event(job: dict) -> None:
preserve_original = job.get("preserve_original", False)
reply_to_message_id = job.get("reply_to_message_id")
# A caption attached to an image is not itself an inReplyTo event. In
# that case the translation must reply to the image message itself.
if preserve_original and reply_to_message_id is None:
reply_to_message_id = message_id
try:
recipients = get_target_user_ids(
token,