diff --git a/Telegram/SourceFiles/api/api_media.cpp b/Telegram/SourceFiles/api/api_media.cpp index 6038060f7..e1aeef3be 100644 --- a/Telegram/SourceFiles/api/api_media.cpp +++ b/Telegram/SourceFiles/api/api_media.cpp @@ -83,7 +83,7 @@ MTPInputMedia PrepareUploadedPhoto(RemoteFileInfo info) { MTP_flags(flags), info.file, MTP_vector( - ranges::to(info.attachedStickers)), + ranges::to>(info.attachedStickers)), MTP_int(0)); } @@ -107,7 +107,7 @@ MTPInputMedia PrepareUploadedDocument( MTP_string(document->mimeString()), ComposeSendingDocumentAttributes(document), MTP_vector( - ranges::to(info.attachedStickers)), + ranges::to>(info.attachedStickers)), MTP_int(0)); } diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp index 890ae8b67..769874301 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_reactions.cpp @@ -148,7 +148,7 @@ void SaveAllowedReactions( const std::vector &allowed) { auto ids = allowed | ranges::views::transform([=](QString value) { return MTP_string(value); - }) | ranges::to; + }) | ranges::to>; peer->session().api().request(MTPmessages_SetChatAvailableReactions( peer->input,