From 24a67cb67c92ef48ab78c96bcc4f69b85dd84634 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 30 Dec 2022 04:00:52 +0300 Subject: [PATCH] Send typings to General topic by default in forums. --- td/telegram/MessagesManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 6c71b60ce..9acd44c29 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -33978,6 +33978,10 @@ void MessagesManager::send_dialog_action(DialogId dialog_id, MessageId top_threa return promise.set_error(Status::Error(400, "Invalid message thread specified")); } + if (is_forum_channel(dialog_id) && !top_thread_message_id.is_valid()) { + top_thread_message_id = MessageId(ServerMessageId(1)); + } + tl_object_ptr input_peer; if (action == DialogAction::get_speaking_action()) { input_peer = get_input_peer(dialog_id, AccessRights::Read);