File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ vector<telegram_api::object_ptr<telegram_api::InputSavedStarGift>> StarGiftId::g
9898 [td](const StarGiftId &star_gift_id) { return star_gift_id.get_input_saved_star_gift (td); });
9999}
100100
101+ vector<StarGiftId> StarGiftId::get_star_gift_ids (const vector<string> &star_gift_ids) {
102+ return transform (star_gift_ids, [](const string &star_gift_id) { return StarGiftId (star_gift_id); });
103+ }
104+
101105string StarGiftId::get_star_gift_id () const {
102106 switch (type_) {
103107 case Type::Empty:
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ class StarGiftId {
5656 static vector<telegram_api::object_ptr<telegram_api::InputSavedStarGift>> get_input_saved_star_gifts (
5757 Td *td, const vector<StarGiftId> &star_gift_ids);
5858
59+ static vector<StarGiftId> get_star_gift_ids (const vector<string> &star_gift_ids);
60+
5961 string get_star_gift_id () const ;
6062
6163 DialogId get_dialog_id (const Td *td) const ;
You can’t perform that action at this time.
0 commit comments