From ca52419c2ae84572cd75b8e2b712f8aa331ce432 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 12 May 2026 10:53:18 +0400 Subject: [PATCH] Pass scheduleRepeatePeriod for media correctly. --- Telegram/SourceFiles/api/api_sending.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 38b1f85d75..92166187b0 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -242,6 +242,7 @@ void SendExistingMedia( .from = NewMessageFromId(action), .replyTo = action.replyTo, .date = NewMessageDate(action.options), + .scheduleRepeatPeriod = action.options.scheduleRepeatPeriod, .shortcutId = action.options.shortcutId, .starsPaid = starsPaid, .postAuthor = NewMessagePostAuthor(action), @@ -442,6 +443,7 @@ bool SendDice(MessageToSend &message) { .from = NewMessageFromId(action), .replyTo = action.replyTo, .date = NewMessageDate(action.options), + .scheduleRepeatPeriod = action.options.scheduleRepeatPeriod, .shortcutId = action.options.shortcutId, .starsPaid = starsPaid, .postAuthor = NewMessagePostAuthor(action), @@ -681,6 +683,7 @@ void SendConfirmedFile( .from = NewMessageFromId(action), .replyTo = file->to.replyTo, .date = NewMessageDate(file->to.options), + .scheduleRepeatPeriod = file->to.options.scheduleRepeatPeriod, .shortcutId = file->to.options.shortcutId, .starsPaid = std::min( history->peer->starsPerMessageChecked(),