Don't call ExportChannelMessageLinkQuery for bots.

This commit is contained in:
levlam 2021-08-07 09:10:28 +03:00
parent 6c3294684c
commit 3c7cf84216

View File

@ -17345,8 +17345,10 @@ Result<std::pair<string, bool>> MessagesManager::get_message_link(FullMessageId
}
}
td_->create_handler<ExportChannelMessageLinkQuery>(Promise<Unit>())
->send(dialog_id.get_channel_id(), m->message_id, for_group, true);
if (!td_->auth_manager_->is_bot()) {
td_->create_handler<ExportChannelMessageLinkQuery>(Promise<Unit>())
->send(dialog_id.get_channel_id(), m->message_id, for_group, true);
}
SliceBuilder sb;
sb << G()->shared_config().get_option_string("t_me_url", "https://t.me/");