diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp index e10a069f..c90c83a2 100644 --- a/td/telegram/InlineQueriesManager.cpp +++ b/td/telegram/InlineQueriesManager.cpp @@ -744,8 +744,13 @@ uint64 InlineQueriesManager::send_inline_query(UserId bot_user_id, DialogId dial return 0; } + bool is_broadcast_channel = + dialog_id.get_type() == DialogType::Channel && + td_->contacts_manager_->get_channel_type(dialog_id.get_channel_id()) == ChannelType::Broadcast; + uint64 query_hash = std::hash()(trim(query)); query_hash = query_hash * 2023654985u + bot_user_id.get(); + query_hash = query_hash * 2023654985u + static_cast(is_broadcast_channel); query_hash = query_hash * 2023654985u + std::hash()(offset); if (r_bot_data.ok().need_location) { query_hash = query_hash * 2023654985u + static_cast(user_location.get_latitude() * 1e4);