Slightly improved filter for choosing users requested by bot.

This commit is contained in:
23rd
2024-03-15 02:34:08 +03:00
committed by John Preston
parent a117c1ebf2
commit ded7aada52
2 changed files with 7 additions and 5 deletions
+4 -4
View File
@@ -421,10 +421,10 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
MTP_int(itemId),
MTP_int(id),
MTP_vector_from_range(
result
| ranges::views::transform([](
not_null<PeerData*> peer) {
return MTPInputPeer(peer->input); }))
result | ranges::views::transform([](
not_null<PeerData*> peer) {
return MTPInputPeer(peer->input);
}))
)).done([=](const MTPUpdates &result) {
peer->session().api().applyUpdates(result);
}).send();