From 10f1ae152d82f79d1d0bfd86ee25a96a841797b0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 7 Dec 2024 09:01:25 +0400 Subject: [PATCH] Fix crash in sending games from inline bots. Regression was introduced in 2d1fb0562d. --- Telegram/SourceFiles/inline_bots/inline_bot_send_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/inline_bots/inline_bot_send_data.cpp b/Telegram/SourceFiles/inline_bots/inline_bot_send_data.cpp index 714516b39..bacd4e3f8 100644 --- a/Telegram/SourceFiles/inline_bots/inline_bot_send_data.cpp +++ b/Telegram/SourceFiles/inline_bots/inline_bot_send_data.cpp @@ -134,7 +134,7 @@ not_null SendGame::makeMessage( const Result *owner, not_null history, HistoryItemCommonFields &&fields) const { - return history->addNewLocalMessage(std::move(fields), _game); + return history->makeMessage(std::move(fields), _game); } QString SendGame::getErrorOnSend(