td_api.h
Go to the documentation of this file.
1 #pragma once
2 
7 #include "td/tl/TlObject.h"
8 
9 #include <string>
10 
11 #include <cstdint>
12 #include <utility>
13 #include <vector>
14 
15 namespace td {
16 class TlStorerToString;
17 
18 namespace td_api {
19 
23 using int32 = std::int32_t;
27 using int53 = std::int64_t;
31 using int64 = std::int64_t;
32 
36 using string = std::string;
37 
41 using bytes = std::string;
42 
46 template <class Type>
47 using array = std::vector<Type>;
48 
53 
57 template <class Type>
59 
75 template <class Type, class... Args>
76 object_ptr<Type> make_object(Args &&... args) {
77  return object_ptr<Type>(new Type(std::forward<Args>(args)...));
78 }
79 
124 template <class ToType, class FromType>
126  return object_ptr<ToType>(static_cast<ToType *>(from.release()));
127 }
128 
134 std::string to_string(const BaseObject &value);
135 
142 template <class T>
143 std::string to_string(const object_ptr<T> &value) {
144  if (value == nullptr) {
145  return "null";
146  }
147 
148  return to_string(*value);
149 }
150 
151 class accountTtl;
152 
153 class address;
154 
155 class animatedChatPhoto;
156 
157 class animation;
158 
159 class animations;
160 
161 class audio;
162 
163 class authenticationCodeInfo;
164 
165 class AuthenticationCodeType;
166 
167 class AuthorizationState;
168 
169 class autoDownloadSettings;
170 
171 class autoDownloadSettingsPresets;
172 
173 class background;
174 
175 class BackgroundFill;
176 
177 class BackgroundType;
178 
179 class backgrounds;
180 
181 class bankCardActionOpenUrl;
182 
183 class bankCardInfo;
184 
185 class basicGroup;
186 
187 class basicGroupFullInfo;
188 
189 class botCommand;
190 
191 class botInfo;
192 
193 class call;
194 
195 class CallDiscardReason;
196 
197 class callId;
198 
199 class CallProblem;
200 
201 class callProtocol;
202 
203 class callServer;
204 
205 class CallServerType;
206 
207 class CallState;
208 
209 class callbackQueryAnswer;
210 
211 class CallbackQueryPayload;
212 
213 class CanTransferOwnershipResult;
214 
215 class chat;
216 
217 class ChatAction;
218 
219 class ChatActionBar;
220 
221 class chatAdministrator;
222 
223 class chatAdministrators;
224 
225 class chatEvent;
226 
227 class ChatEventAction;
228 
229 class chatEventLogFilters;
230 
231 class chatEvents;
232 
233 class chatFilter;
234 
235 class chatFilterInfo;
236 
237 class chatInviteLink;
238 
239 class chatInviteLinkInfo;
240 
241 class ChatList;
242 
243 class chatLists;
244 
245 class chatLocation;
246 
247 class chatMember;
248 
249 class ChatMemberStatus;
250 
251 class chatMembers;
252 
253 class ChatMembersFilter;
254 
255 class chatNearby;
256 
257 class chatNotificationSettings;
258 
259 class chatPermissions;
260 
261 class chatPhoto;
262 
263 class chatPhotoInfo;
264 
265 class chatPhotos;
266 
267 class chatPosition;
268 
269 class ChatReportReason;
270 
271 class ChatSource;
272 
273 class ChatStatistics;
274 
275 class chatStatisticsAdministratorActionsInfo;
276 
277 class chatStatisticsInviterInfo;
278 
279 class chatStatisticsMessageInteractionInfo;
280 
281 class chatStatisticsMessageSenderInfo;
282 
283 class ChatType;
284 
285 class chats;
286 
287 class chatsNearby;
288 
289 class CheckChatUsernameResult;
290 
291 class connectedWebsite;
292 
293 class connectedWebsites;
294 
295 class ConnectionState;
296 
297 class contact;
298 
299 class count;
300 
301 class countries;
302 
303 class countryInfo;
304 
305 class customRequestResult;
306 
307 class databaseStatistics;
308 
309 class date;
310 
311 class dateRange;
312 
313 class datedFile;
314 
315 class deepLinkInfo;
316 
317 class DeviceToken;
318 
319 class DiceStickers;
320 
321 class document;
322 
323 class draftMessage;
324 
325 class emailAddressAuthenticationCodeInfo;
326 
327 class emojis;
328 
329 class encryptedCredentials;
330 
331 class encryptedPassportElement;
332 
333 class error;
334 
335 class file;
336 
337 class filePart;
338 
339 class FileType;
340 
341 class formattedText;
342 
343 class foundMessages;
344 
345 class game;
346 
347 class gameHighScore;
348 
349 class gameHighScores;
350 
351 class hashtags;
352 
353 class httpUrl;
354 
355 class identityDocument;
356 
357 class importedContacts;
358 
359 class inlineKeyboardButton;
360 
361 class InlineKeyboardButtonType;
362 
363 class InlineQueryResult;
364 
365 class inlineQueryResults;
366 
367 class InputBackground;
368 
369 class InputChatPhoto;
370 
371 class InputCredentials;
372 
373 class InputFile;
374 
375 class inputIdentityDocument;
376 
377 class InputInlineQueryResult;
378 
379 class InputMessageContent;
380 
381 class InputPassportElement;
382 
383 class inputPassportElementError;
384 
385 class InputPassportElementErrorSource;
386 
387 class inputPersonalDocument;
388 
389 class InputSticker;
390 
391 class inputThumbnail;
392 
393 class invoice;
394 
395 class jsonObjectMember;
396 
397 class JsonValue;
398 
399 class keyboardButton;
400 
401 class KeyboardButtonType;
402 
403 class labeledPricePart;
404 
405 class languagePackInfo;
406 
407 class languagePackString;
408 
409 class LanguagePackStringValue;
410 
411 class languagePackStrings;
412 
413 class localFile;
414 
415 class localizationTargetInfo;
416 
417 class location;
418 
419 class LogStream;
420 
421 class logTags;
422 
423 class logVerbosityLevel;
424 
425 class LoginUrlInfo;
426 
427 class MaskPoint;
428 
429 class maskPosition;
430 
431 class message;
432 
433 class MessageContent;
434 
435 class messageCopyOptions;
436 
437 class messageForwardInfo;
438 
439 class MessageForwardOrigin;
440 
441 class messageInteractionInfo;
442 
443 class messageLink;
444 
445 class messageLinkInfo;
446 
447 class messageReplyInfo;
448 
449 class MessageSchedulingState;
450 
451 class messageSendOptions;
452 
453 class MessageSender;
454 
455 class messageSenders;
456 
457 class MessageSendingState;
458 
459 class messageStatistics;
460 
461 class messageThreadInfo;
462 
463 class messages;
464 
465 class minithumbnail;
466 
467 class networkStatistics;
468 
469 class NetworkStatisticsEntry;
470 
471 class NetworkType;
472 
473 class notification;
474 
475 class notificationGroup;
476 
477 class NotificationGroupType;
478 
479 class NotificationSettingsScope;
480 
481 class NotificationType;
482 
483 class ok;
484 
485 class OptionValue;
486 
487 class orderInfo;
488 
489 class PageBlock;
490 
491 class pageBlockCaption;
492 
493 class PageBlockHorizontalAlignment;
494 
495 class pageBlockListItem;
496 
497 class pageBlockRelatedArticle;
498 
499 class pageBlockTableCell;
500 
501 class PageBlockVerticalAlignment;
502 
503 class passportAuthorizationForm;
504 
505 class PassportElement;
506 
507 class passportElementError;
508 
509 class PassportElementErrorSource;
510 
511 class PassportElementType;
512 
513 class passportElements;
514 
515 class passportElementsWithErrors;
516 
517 class passportRequiredElement;
518 
519 class passportSuitableElement;
520 
521 class passwordState;
522 
523 class paymentForm;
524 
525 class paymentReceipt;
526 
527 class paymentResult;
528 
529 class paymentsProviderStripe;
530 
531 class personalDetails;
532 
533 class personalDocument;
534 
535 class phoneNumberAuthenticationSettings;
536 
537 class phoneNumberInfo;
538 
539 class photo;
540 
541 class photoSize;
542 
543 class poll;
544 
545 class pollOption;
546 
547 class PollType;
548 
549 class profilePhoto;
550 
551 class proxies;
552 
553 class proxy;
554 
555 class ProxyType;
556 
557 class PublicChatType;
558 
559 class PushMessageContent;
560 
561 class pushReceiverId;
562 
563 class recommendedChatFilter;
564 
565 class recommendedChatFilters;
566 
567 class recoveryEmailAddress;
568 
569 class remoteFile;
570 
571 class ReplyMarkup;
572 
573 class RichText;
574 
575 class savedCredentials;
576 
577 class scopeNotificationSettings;
578 
579 class SearchMessagesFilter;
580 
581 class seconds;
582 
583 class secretChat;
584 
585 class SecretChatState;
586 
587 class session;
588 
589 class sessions;
590 
591 class shippingOption;
592 
593 class StatisticalGraph;
594 
595 class statisticalValue;
596 
597 class sticker;
598 
599 class stickerSet;
600 
601 class stickerSetInfo;
602 
603 class stickerSets;
604 
605 class stickers;
606 
607 class storageStatistics;
608 
609 class storageStatisticsByChat;
610 
611 class storageStatisticsByFileType;
612 
613 class storageStatisticsFast;
614 
615 class SuggestedAction;
616 
617 class supergroup;
618 
619 class supergroupFullInfo;
620 
621 class SupergroupMembersFilter;
622 
623 class tMeUrl;
624 
625 class TMeUrlType;
626 
627 class tMeUrls;
628 
629 class tdlibParameters;
630 
631 class temporaryPasswordState;
632 
633 class termsOfService;
634 
635 class testBytes;
636 
637 class testInt;
638 
639 class testString;
640 
641 class testVectorInt;
642 
643 class testVectorIntObject;
644 
645 class testVectorString;
646 
647 class testVectorStringObject;
648 
649 class text;
650 
651 class textEntities;
652 
653 class textEntity;
654 
655 class TextEntityType;
656 
657 class TextParseMode;
658 
659 class thumbnail;
660 
661 class ThumbnailFormat;
662 
663 class TopChatCategory;
664 
665 class Update;
666 
667 class updates;
668 
669 class user;
670 
671 class userFullInfo;
672 
673 class UserPrivacySetting;
674 
675 class UserPrivacySettingRule;
676 
677 class userPrivacySettingRules;
678 
679 class UserStatus;
680 
681 class UserType;
682 
683 class users;
684 
685 class validatedOrderInfo;
686 
687 class venue;
688 
689 class video;
690 
691 class videoNote;
692 
693 class voiceNote;
694 
695 class webPage;
696 
697 class webPageInstantView;
698 
699 class Object;
700 
704 class Object: public TlObject {
705  public:
706 };
707 
711 class Function: public TlObject {
712  public:
713 };
714 
718 class accountTtl final : public Object {
719  public:
722 
726  accountTtl();
727 
733  explicit accountTtl(int32 days_);
734 
736  static const std::int32_t ID = 1324495492;
741  std::int32_t get_id() const final {
742  return ID;
743  }
744 
750  void store(TlStorerToString &s, const char *field_name) const final;
751 };
752 
756 class address final : public Object {
757  public:
761  string state_;
763  string city_;
769  string postal_code_;
770 
774  address();
775 
786  address(string const &country_code_, string const &state_, string const &city_, string const &street_line1_, string const &street_line2_, string const &postal_code_);
787 
789  static const std::int32_t ID = -2043654342;
794  std::int32_t get_id() const final {
795  return ID;
796  }
797 
803  void store(TlStorerToString &s, const char *field_name) const final;
804 };
805 
809 class animatedChatPhoto final : public Object {
810  public:
817 
822 
831 
833  static const std::int32_t ID = 191994926;
838  std::int32_t get_id() const final {
839  return ID;
840  }
841 
847  void store(TlStorerToString &s, const char *field_name) const final;
848 };
849 
853 class animation final : public Object {
854  public:
862  string file_name_;
864  string mime_type_;
873 
877  animation();
878 
893 
895  static const std::int32_t ID = -872359106;
900  std::int32_t get_id() const final {
901  return ID;
902  }
903 
909  void store(TlStorerToString &s, const char *field_name) const final;
910 };
911 
915 class animations final : public Object {
916  public:
919 
923  animations();
924 
931 
933  static const std::int32_t ID = 344216945;
938  std::int32_t get_id() const final {
939  return ID;
940  }
941 
947  void store(TlStorerToString &s, const char *field_name) const final;
948 };
949 
953 class audio final : public Object {
954  public:
958  string title_;
960  string performer_;
962  string file_name_;
964  string mime_type_;
971 
975  audio();
976 
990 
992  static const std::int32_t ID = -1179334690;
997  std::int32_t get_id() const final {
998  return ID;
999  }
1000 
1006  void store(TlStorerToString &s, const char *field_name) const final;
1007 };
1008 
1012 class authenticationCodeInfo final : public Object {
1013  public:
1022 
1027 
1037 
1039  static const std::int32_t ID = -860345416;
1044  std::int32_t get_id() const final {
1045  return ID;
1046  }
1047 
1053  void store(TlStorerToString &s, const char *field_name) const final;
1054 };
1055 
1061  public:
1062 };
1063 
1068  public:
1071 
1076 
1083 
1085  static const std::int32_t ID = 2079628074;
1090  std::int32_t get_id() const final {
1091  return ID;
1092  }
1093 
1099  void store(TlStorerToString &s, const char *field_name) const final;
1100 };
1101 
1106  public:
1109 
1114 
1121 
1123  static const std::int32_t ID = 962650760;
1128  std::int32_t get_id() const final {
1129  return ID;
1130  }
1131 
1137  void store(TlStorerToString &s, const char *field_name) const final;
1138 };
1139 
1144  public:
1147 
1152 
1159 
1161  static const std::int32_t ID = 1636265063;
1166  std::int32_t get_id() const final {
1167  return ID;
1168  }
1169 
1175  void store(TlStorerToString &s, const char *field_name) const final;
1176 };
1177 
1182  public:
1184  string pattern_;
1185 
1190 
1196  explicit authenticationCodeTypeFlashCall(string const &pattern_);
1197 
1199  static const std::int32_t ID = 1395882402;
1204  std::int32_t get_id() const final {
1205  return ID;
1206  }
1207 
1213  void store(TlStorerToString &s, const char *field_name) const final;
1214 };
1215 
1221  public:
1222 };
1223 
1228  public:
1229 
1234 
1236  static const std::int32_t ID = 904720988;
1241  std::int32_t get_id() const final {
1242  return ID;
1243  }
1244 
1250  void store(TlStorerToString &s, const char *field_name) const final;
1251 };
1252 
1257  public:
1260 
1265 
1272 
1274  static const std::int32_t ID = 612103496;
1279  std::int32_t get_id() const final {
1280  return ID;
1281  }
1282 
1288  void store(TlStorerToString &s, const char *field_name) const final;
1289 };
1290 
1295  public:
1296 
1301 
1303  static const std::int32_t ID = 306402531;
1308  std::int32_t get_id() const final {
1309  return ID;
1310  }
1311 
1317  void store(TlStorerToString &s, const char *field_name) const final;
1318 };
1319 
1324  public:
1327 
1332 
1339 
1341  static const std::int32_t ID = 52643073;
1346  std::int32_t get_id() const final {
1347  return ID;
1348  }
1349 
1355  void store(TlStorerToString &s, const char *field_name) const final;
1356 };
1357 
1362  public:
1364  string link_;
1365 
1370 
1376  explicit authorizationStateWaitOtherDeviceConfirmation(string const &link_);
1377 
1379  static const std::int32_t ID = 860166378;
1384  std::int32_t get_id() const final {
1385  return ID;
1386  }
1387 
1393  void store(TlStorerToString &s, const char *field_name) const final;
1394 };
1395 
1400  public:
1403 
1408 
1415 
1417  static const std::int32_t ID = 550350511;
1422  std::int32_t get_id() const final {
1423  return ID;
1424  }
1425 
1431  void store(TlStorerToString &s, const char *field_name) const final;
1432 };
1433 
1438  public:
1445 
1450 
1459 
1461  static const std::int32_t ID = 187548796;
1466  std::int32_t get_id() const final {
1467  return ID;
1468  }
1469 
1475  void store(TlStorerToString &s, const char *field_name) const final;
1476 };
1477 
1482  public:
1483 
1488 
1490  static const std::int32_t ID = -1834871737;
1495  std::int32_t get_id() const final {
1496  return ID;
1497  }
1498 
1504  void store(TlStorerToString &s, const char *field_name) const final;
1505 };
1506 
1511  public:
1512 
1517 
1519  static const std::int32_t ID = 154449270;
1524  std::int32_t get_id() const final {
1525  return ID;
1526  }
1527 
1533  void store(TlStorerToString &s, const char *field_name) const final;
1534 };
1535 
1540  public:
1541 
1546 
1548  static const std::int32_t ID = 445855311;
1553  std::int32_t get_id() const final {
1554  return ID;
1555  }
1556 
1562  void store(TlStorerToString &s, const char *field_name) const final;
1563 };
1564 
1569  public:
1570 
1575 
1577  static const std::int32_t ID = 1526047584;
1582  std::int32_t get_id() const final {
1583  return ID;
1584  }
1585 
1591  void store(TlStorerToString &s, const char *field_name) const final;
1592 };
1593 
1597 class autoDownloadSettings final : public Object {
1598  public:
1615 
1620 
1634 
1636  static const std::int32_t ID = -2144418333;
1641  std::int32_t get_id() const final {
1642  return ID;
1643  }
1644 
1650  void store(TlStorerToString &s, const char *field_name) const final;
1651 };
1652 
1656 class autoDownloadSettingsPresets final : public Object {
1657  public:
1664 
1669 
1678 
1680  static const std::int32_t ID = -782099166;
1685  std::int32_t get_id() const final {
1686  return ID;
1687  }
1688 
1694  void store(TlStorerToString &s, const char *field_name) const final;
1695 };
1696 
1700 class background final : public Object {
1701  public:
1707  bool is_dark_;
1709  string name_;
1714 
1718  background();
1719 
1731 
1733  static const std::int32_t ID = -429971172;
1738  std::int32_t get_id() const final {
1739  return ID;
1740  }
1741 
1747  void store(TlStorerToString &s, const char *field_name) const final;
1748 };
1749 
1754 class BackgroundFill: public Object {
1755  public:
1756 };
1757 
1761 class backgroundFillSolid final : public BackgroundFill {
1762  public:
1765 
1770 
1776  explicit backgroundFillSolid(int32 color_);
1777 
1779  static const std::int32_t ID = 1010678813;
1784  std::int32_t get_id() const final {
1785  return ID;
1786  }
1787 
1793  void store(TlStorerToString &s, const char *field_name) const final;
1794 };
1795 
1800  public:
1807 
1812 
1821 
1823  static const std::int32_t ID = -1839206017;
1828  std::int32_t get_id() const final {
1829  return ID;
1830  }
1831 
1837  void store(TlStorerToString &s, const char *field_name) const final;
1838 };
1839 
1844 class BackgroundType: public Object {
1845  public:
1846 };
1847 
1852  public:
1857 
1862 
1870 
1872  static const std::int32_t ID = 1972128891;
1877  std::int32_t get_id() const final {
1878  return ID;
1879  }
1880 
1886  void store(TlStorerToString &s, const char *field_name) const final;
1887 };
1888 
1893  public:
1900 
1905 
1914 
1916  static const std::int32_t ID = 649993914;
1921  std::int32_t get_id() const final {
1922  return ID;
1923  }
1924 
1930  void store(TlStorerToString &s, const char *field_name) const final;
1931 };
1932 
1936 class backgroundTypeFill final : public BackgroundType {
1937  public:
1940 
1945 
1952 
1954  static const std::int32_t ID = 993008684;
1959  std::int32_t get_id() const final {
1960  return ID;
1961  }
1962 
1968  void store(TlStorerToString &s, const char *field_name) const final;
1969 };
1970 
1974 class backgrounds final : public Object {
1975  public:
1978 
1982  backgrounds();
1983 
1990 
1992  static const std::int32_t ID = 724728704;
1997  std::int32_t get_id() const final {
1998  return ID;
1999  }
2000 
2006  void store(TlStorerToString &s, const char *field_name) const final;
2007 };
2008 
2012 class bankCardActionOpenUrl final : public Object {
2013  public:
2015  string text_;
2017  string url_;
2018 
2023 
2030  bankCardActionOpenUrl(string const &text_, string const &url_);
2031 
2033  static const std::int32_t ID = -196454267;
2038  std::int32_t get_id() const final {
2039  return ID;
2040  }
2041 
2047  void store(TlStorerToString &s, const char *field_name) const final;
2048 };
2049 
2053 class bankCardInfo final : public Object {
2054  public:
2056  string title_;
2059 
2063  bankCardInfo();
2064 
2072 
2074  static const std::int32_t ID = -2116647730;
2079  std::int32_t get_id() const final {
2080  return ID;
2081  }
2082 
2088  void store(TlStorerToString &s, const char *field_name) const final;
2089 };
2090 
2094 class basicGroup final : public Object {
2095  public:
2106 
2110  basicGroup();
2111 
2122 
2124  static const std::int32_t ID = -317839045;
2129  std::int32_t get_id() const final {
2130  return ID;
2131  }
2132 
2138  void store(TlStorerToString &s, const char *field_name) const final;
2139 };
2140 
2144 class basicGroupFullInfo final : public Object {
2145  public:
2156 
2161 
2172 
2174  static const std::int32_t ID = -127204719;
2179  std::int32_t get_id() const final {
2180  return ID;
2181  }
2182 
2188  void store(TlStorerToString &s, const char *field_name) const final;
2189 };
2190 
2194 class botCommand final : public Object {
2195  public:
2197  string command_;
2200 
2204  botCommand();
2205 
2212  botCommand(string const &command_, string const &description_);
2213 
2215  static const std::int32_t ID = -1032140601;
2220  std::int32_t get_id() const final {
2221  return ID;
2222  }
2223 
2229  void store(TlStorerToString &s, const char *field_name) const final;
2230 };
2231 
2235 class botInfo final : public Object {
2236  public:
2241 
2245  botInfo();
2246 
2254 
2256  static const std::int32_t ID = 1296528907;
2261  std::int32_t get_id() const final {
2262  return ID;
2263  }
2264 
2270  void store(TlStorerToString &s, const char *field_name) const final;
2271 };
2272 
2276 class call final : public Object {
2277  public:
2288 
2292  call();
2293 
2304 
2306  static const std::int32_t ID = 1504070790;
2311  std::int32_t get_id() const final {
2312  return ID;
2313  }
2314 
2320  void store(TlStorerToString &s, const char *field_name) const final;
2321 };
2322 
2327 class CallDiscardReason: public Object {
2328  public:
2329 };
2330 
2335  public:
2336 
2341 
2343  static const std::int32_t ID = -1258917949;
2348  std::int32_t get_id() const final {
2349  return ID;
2350  }
2351 
2357  void store(TlStorerToString &s, const char *field_name) const final;
2358 };
2359 
2364  public:
2365 
2370 
2372  static const std::int32_t ID = 1680358012;
2377  std::int32_t get_id() const final {
2378  return ID;
2379  }
2380 
2386  void store(TlStorerToString &s, const char *field_name) const final;
2387 };
2388 
2393  public:
2394 
2399 
2401  static const std::int32_t ID = -1729926094;
2406  std::int32_t get_id() const final {
2407  return ID;
2408  }
2409 
2415  void store(TlStorerToString &s, const char *field_name) const final;
2416 };
2417 
2422  public:
2423 
2428 
2430  static const std::int32_t ID = -1342872670;
2435  std::int32_t get_id() const final {
2436  return ID;
2437  }
2438 
2444  void store(TlStorerToString &s, const char *field_name) const final;
2445 };
2446 
2451  public:
2452 
2457 
2459  static const std::int32_t ID = 438216166;
2464  std::int32_t get_id() const final {
2465  return ID;
2466  }
2467 
2473  void store(TlStorerToString &s, const char *field_name) const final;
2474 };
2475 
2479 class callId final : public Object {
2480  public:
2483 
2487  callId();
2488 
2494  explicit callId(int32 id_);
2495 
2497  static const std::int32_t ID = 65717769;
2502  std::int32_t get_id() const final {
2503  return ID;
2504  }
2505 
2511  void store(TlStorerToString &s, const char *field_name) const final;
2512 };
2513 
2518 class CallProblem: public Object {
2519  public:
2520 };
2521 
2525 class callProblemEcho final : public CallProblem {
2526  public:
2527 
2531  callProblemEcho();
2532 
2534  static const std::int32_t ID = 801116548;
2539  std::int32_t get_id() const final {
2540  return ID;
2541  }
2542 
2548  void store(TlStorerToString &s, const char *field_name) const final;
2549 };
2550 
2554 class callProblemNoise final : public CallProblem {
2555  public:
2556 
2560  callProblemNoise();
2561 
2563  static const std::int32_t ID = 1053065359;
2568  std::int32_t get_id() const final {
2569  return ID;
2570  }
2571 
2577  void store(TlStorerToString &s, const char *field_name) const final;
2578 };
2579 
2584  public:
2585 
2590 
2592  static const std::int32_t ID = 1119493218;
2597  std::int32_t get_id() const final {
2598  return ID;
2599  }
2600 
2606  void store(TlStorerToString &s, const char *field_name) const final;
2607 };
2608 
2613  public:
2614 
2619 
2621  static const std::int32_t ID = 379960581;
2626  std::int32_t get_id() const final {
2627  return ID;
2628  }
2629 
2635  void store(TlStorerToString &s, const char *field_name) const final;
2636 };
2637 
2641 class callProblemSilentLocal final : public CallProblem {
2642  public:
2643 
2648 
2650  static const std::int32_t ID = 253652790;
2655  std::int32_t get_id() const final {
2656  return ID;
2657  }
2658 
2664  void store(TlStorerToString &s, const char *field_name) const final;
2665 };
2666 
2670 class callProblemSilentRemote final : public CallProblem {
2671  public:
2672 
2677 
2679  static const std::int32_t ID = 573634714;
2684  std::int32_t get_id() const final {
2685  return ID;
2686  }
2687 
2693  void store(TlStorerToString &s, const char *field_name) const final;
2694 };
2695 
2699 class callProblemDropped final : public CallProblem {
2700  public:
2701 
2706 
2708  static const std::int32_t ID = -1207311487;
2713  std::int32_t get_id() const final {
2714  return ID;
2715  }
2716 
2722  void store(TlStorerToString &s, const char *field_name) const final;
2723 };
2724 
2729  public:
2730 
2735 
2737  static const std::int32_t ID = 385245706;
2742  std::int32_t get_id() const final {
2743  return ID;
2744  }
2745 
2751  void store(TlStorerToString &s, const char *field_name) const final;
2752 };
2753 
2758  public:
2759 
2764 
2766  static const std::int32_t ID = 2115315411;
2771  std::int32_t get_id() const final {
2772  return ID;
2773  }
2774 
2780  void store(TlStorerToString &s, const char *field_name) const final;
2781 };
2782 
2786 class callProtocol final : public Object {
2787  public:
2789  bool udp_p2p_;
2798 
2802  callProtocol();
2803 
2814 
2816  static const std::int32_t ID = -1075562897;
2821  std::int32_t get_id() const final {
2822  return ID;
2823  }
2824 
2830  void store(TlStorerToString &s, const char *field_name) const final;
2831 };
2832 
2836 class callServer final : public Object {
2837  public:
2841  string ip_address_;
2848 
2852  callServer();
2853 
2864 
2866  static const std::int32_t ID = 1865932695;
2871  std::int32_t get_id() const final {
2872  return ID;
2873  }
2874 
2880  void store(TlStorerToString &s, const char *field_name) const final;
2881 };
2882 
2887 class CallServerType: public Object {
2888  public:
2889 };
2890 
2895  public:
2898 
2903 
2910 
2912  static const std::int32_t ID = -1507850700;
2917  std::int32_t get_id() const final {
2918  return ID;
2919  }
2920 
2926  void store(TlStorerToString &s, const char *field_name) const final;
2927 };
2928 
2932 class callServerTypeWebrtc final : public CallServerType {
2933  public:
2935  string username_;
2937  string password_;
2942 
2947 
2956  callServerTypeWebrtc(string const &username_, string const &password_, bool supports_turn_, bool supports_stun_);
2957 
2959  static const std::int32_t ID = 1250622821;
2964  std::int32_t get_id() const final {
2965  return ID;
2966  }
2967 
2973  void store(TlStorerToString &s, const char *field_name) const final;
2974 };
2975 
2980 class CallState: public Object {
2981  public:
2982 };
2983 
2987 class callStatePending final : public CallState {
2988  public:
2993 
2997  callStatePending();
2998 
3006 
3008  static const std::int32_t ID = 1073048620;
3013  std::int32_t get_id() const final {
3014  return ID;
3015  }
3016 
3022  void store(TlStorerToString &s, const char *field_name) const final;
3023 };
3024 
3028 class callStateExchangingKeys final : public CallState {
3029  public:
3030 
3035 
3037  static const std::int32_t ID = -1848149403;
3042  std::int32_t get_id() const final {
3043  return ID;
3044  }
3045 
3051  void store(TlStorerToString &s, const char *field_name) const final;
3052 };
3053 
3057 class callStateReady final : public CallState {
3058  public:
3064  string config_;
3071 
3075  callStateReady();
3076 
3088 
3090  static const std::int32_t ID = -2000107571;
3095  std::int32_t get_id() const final {
3096  return ID;
3097  }
3098 
3104  void store(TlStorerToString &s, const char *field_name) const final;
3105 };
3106 
3110 class callStateHangingUp final : public CallState {
3111  public:
3112 
3117 
3119  static const std::int32_t ID = -2133790038;
3124  std::int32_t get_id() const final {
3125  return ID;
3126  }
3127 
3133  void store(TlStorerToString &s, const char *field_name) const final;
3134 };
3135 
3139 class callStateDiscarded final : public CallState {
3140  public:
3147 
3152 
3161 
3163  static const std::int32_t ID = -190853167;
3168  std::int32_t get_id() const final {
3169  return ID;
3170  }
3171 
3177  void store(TlStorerToString &s, const char *field_name) const final;
3178 };
3179 
3183 class callStateError final : public CallState {
3184  public:
3187 
3191  callStateError();
3192 
3199 
3201  static const std::int32_t ID = -975215467;
3206  std::int32_t get_id() const final {
3207  return ID;
3208  }
3209 
3215  void store(TlStorerToString &s, const char *field_name) const final;
3216 };
3217 
3221 class callbackQueryAnswer final : public Object {
3222  public:
3224  string text_;
3228  string url_;
3229 
3234 
3242  callbackQueryAnswer(string const &text_, bool show_alert_, string const &url_);
3243 
3245  static const std::int32_t ID = 360867933;
3250  std::int32_t get_id() const final {
3251  return ID;
3252  }
3253 
3259  void store(TlStorerToString &s, const char *field_name) const final;
3260 };
3261 
3267  public:
3268 };
3269 
3274  public:
3277 
3282 
3288  explicit callbackQueryPayloadData(bytes const &data_);
3289 
3291  static const std::int32_t ID = -1977729946;
3296  std::int32_t get_id() const final {
3297  return ID;
3298  }
3299 
3305  void store(TlStorerToString &s, const char *field_name) const final;
3306 };
3307 
3312  public:
3314  string password_;
3317 
3322 
3330 
3332  static const std::int32_t ID = 1340266738;
3337  std::int32_t get_id() const final {
3338  return ID;
3339  }
3340 
3346  void store(TlStorerToString &s, const char *field_name) const final;
3347 };
3348 
3353  public:
3356 
3361 
3367  explicit callbackQueryPayloadGame(string const &game_short_name_);
3368 
3370  static const std::int32_t ID = 1303571512;
3375  std::int32_t get_id() const final {
3376  return ID;
3377  }
3378 
3384  void store(TlStorerToString &s, const char *field_name) const final;
3385 };
3386 
3392  public:
3393 };
3394 
3399  public:
3400 
3405 
3407  static const std::int32_t ID = -89881021;
3412  std::int32_t get_id() const final {
3413  return ID;
3414  }
3415 
3421  void store(TlStorerToString &s, const char *field_name) const final;
3422 };
3423 
3428  public:
3429 
3434 
3436  static const std::int32_t ID = 1548372703;
3441  std::int32_t get_id() const final {
3442  return ID;
3443  }
3444 
3450  void store(TlStorerToString &s, const char *field_name) const final;
3451 };
3452 
3457  public:
3460 
3465 
3472 
3474  static const std::int32_t ID = 811440913;
3479  std::int32_t get_id() const final {
3480  return ID;
3481  }
3482 
3488  void store(TlStorerToString &s, const char *field_name) const final;
3489 };
3490 
3495  public:
3498 
3503 
3510 
3512  static const std::int32_t ID = 984664289;
3517  std::int32_t get_id() const final {
3518  return ID;
3519  }
3520 
3526  void store(TlStorerToString &s, const char *field_name) const final;
3527 };
3528 
3532 class chat final : public Object {
3533  public:
3539  string title_;
3580 
3584  chat();
3585 
3614 
3616  static const std::int32_t ID = 1811058223;
3621  std::int32_t get_id() const final {
3622  return ID;
3623  }
3624 
3630  void store(TlStorerToString &s, const char *field_name) const final;
3631 };
3632 
3637 class ChatAction: public Object {
3638  public:
3639 };
3640 
3644 class chatActionTyping final : public ChatAction {
3645  public:
3646 
3650  chatActionTyping();
3651 
3653  static const std::int32_t ID = 380122167;
3658  std::int32_t get_id() const final {
3659  return ID;
3660  }
3661 
3667  void store(TlStorerToString &s, const char *field_name) const final;
3668 };
3669 
3673 class chatActionRecordingVideo final : public ChatAction {
3674  public:
3675 
3680 
3682  static const std::int32_t ID = 216553362;
3687  std::int32_t get_id() const final {
3688  return ID;
3689  }
3690 
3696  void store(TlStorerToString &s, const char *field_name) const final;
3697 };
3698 
3702 class chatActionUploadingVideo final : public ChatAction {
3703  public:
3706 
3711 
3718 
3720  static const std::int32_t ID = 1234185270;
3725  std::int32_t get_id() const final {
3726  return ID;
3727  }
3728 
3734  void store(TlStorerToString &s, const char *field_name) const final;
3735 };
3736 
3741  public:
3742 
3747 
3749  static const std::int32_t ID = -808850058;
3754  std::int32_t get_id() const final {
3755  return ID;
3756  }
3757 
3763  void store(TlStorerToString &s, const char *field_name) const final;
3764 };
3765 
3770  public:
3773 
3778 
3785 
3787  static const std::int32_t ID = -613643666;
3792  std::int32_t get_id() const final {
3793  return ID;
3794  }
3795 
3801  void store(TlStorerToString &s, const char *field_name) const final;
3802 };
3803 
3807 class chatActionUploadingPhoto final : public ChatAction {
3808  public:
3811 
3816 
3823 
3825  static const std::int32_t ID = 654240583;
3830  std::int32_t get_id() const final {
3831  return ID;
3832  }
3833 
3839  void store(TlStorerToString &s, const char *field_name) const final;
3840 };
3841 
3846  public:
3849 
3854 
3861 
3863  static const std::int32_t ID = 167884362;
3868  std::int32_t get_id() const final {
3869  return ID;
3870  }
3871 
3877  void store(TlStorerToString &s, const char *field_name) const final;
3878 };
3879 
3884  public:
3885 
3890 
3892  static const std::int32_t ID = -2017893596;
3897  std::int32_t get_id() const final {
3898  return ID;
3899  }
3900 
3906  void store(TlStorerToString &s, const char *field_name) const final;
3907 };
3908 
3913  public:
3914 
3919 
3921  static const std::int32_t ID = -1222507496;
3926  std::int32_t get_id() const final {
3927  return ID;
3928  }
3929 
3935  void store(TlStorerToString &s, const char *field_name) const final;
3936 };
3937 
3942  public:
3943 
3948 
3950  static const std::int32_t ID = -865884164;
3955  std::int32_t get_id() const final {
3956  return ID;
3957  }
3958 
3964  void store(TlStorerToString &s, const char *field_name) const final;
3965 };
3966 
3971  public:
3972 
3977 
3979  static const std::int32_t ID = 16523393;
3984  std::int32_t get_id() const final {
3985  return ID;
3986  }
3987 
3993  void store(TlStorerToString &s, const char *field_name) const final;
3994 };
3995 
4000  public:
4003 
4008 
4015 
4017  static const std::int32_t ID = 1172364918;
4022  std::int32_t get_id() const final {
4023  return ID;
4024  }
4025 
4031  void store(TlStorerToString &s, const char *field_name) const final;
4032 };
4033 
4037 class chatActionCancel final : public ChatAction {
4038  public:
4039 
4043  chatActionCancel();
4044 
4046  static const std::int32_t ID = 1160523958;
4051  std::int32_t get_id() const final {
4052  return ID;
4053  }
4054 
4060  void store(TlStorerToString &s, const char *field_name) const final;
4061 };
4062 
4067 class ChatActionBar: public Object {
4068  public:
4069 };
4070 
4075  public:
4078 
4083 
4089  explicit chatActionBarReportSpam(bool can_unarchive_);
4090 
4092  static const std::int32_t ID = -1312758246;
4097  std::int32_t get_id() const final {
4098  return ID;
4099  }
4100 
4106  void store(TlStorerToString &s, const char *field_name) const final;
4107 };
4108 
4113  public:
4114 
4119 
4121  static const std::int32_t ID = 758175489;
4126  std::int32_t get_id() const final {
4127  return ID;
4128  }
4129 
4135  void store(TlStorerToString &s, const char *field_name) const final;
4136 };
4137 
4142  public:
4147 
4152 
4160 
4162  static const std::int32_t ID = -914150419;
4167  std::int32_t get_id() const final {
4168  return ID;
4169  }
4170 
4176  void store(TlStorerToString &s, const char *field_name) const final;
4177 };
4178 
4183  public:
4184 
4189 
4191  static const std::int32_t ID = -733325295;
4196  std::int32_t get_id() const final {
4197  return ID;
4198  }
4199 
4205  void store(TlStorerToString &s, const char *field_name) const final;
4206 };
4207 
4212  public:
4213 
4218 
4220  static const std::int32_t ID = 35188697;
4225  std::int32_t get_id() const final {
4226  return ID;
4227  }
4228 
4234  void store(TlStorerToString &s, const char *field_name) const final;
4235 };
4236 
4240 class chatAdministrator final : public Object {
4241  public:
4248 
4253 
4261  chatAdministrator(int32 user_id_, string const &custom_title_, bool is_owner_);
4262 
4264  static const std::int32_t ID = 487220942;
4269  std::int32_t get_id() const final {
4270  return ID;
4271  }
4272 
4278  void store(TlStorerToString &s, const char *field_name) const final;
4279 };
4280 
4284 class chatAdministrators final : public Object {
4285  public:
4288 
4293 
4300 
4302  static const std::int32_t ID = -2126186435;
4307  std::int32_t get_id() const final {
4308  return ID;
4309  }
4310 
4316  void store(TlStorerToString &s, const char *field_name) const final;
4317 };
4318 
4322 class chatEvent final : public Object {
4323  public:
4332 
4336  chatEvent();
4337 
4347 
4349  static const std::int32_t ID = -609912404;
4354  std::int32_t get_id() const final {
4355  return ID;
4356  }
4357 
4363  void store(TlStorerToString &s, const char *field_name) const final;
4364 };
4365 
4370 class ChatEventAction: public Object {
4371  public:
4372 };
4373 
4378  public:
4383 
4388 
4396 
4398  static const std::int32_t ID = -430967304;
4403  std::int32_t get_id() const final {
4404  return ID;
4405  }
4406 
4412  void store(TlStorerToString &s, const char *field_name) const final;
4413 };
4414 
4419  public:
4422 
4427 
4434 
4436  static const std::int32_t ID = -892974601;
4441  std::int32_t get_id() const final {
4442  return ID;
4443  }
4444 
4450  void store(TlStorerToString &s, const char *field_name) const final;
4451 };
4452 
4457  public:
4460 
4465 
4472 
4474  static const std::int32_t ID = 2009893861;
4479  std::int32_t get_id() const final {
4480  return ID;
4481  }
4482 
4488  void store(TlStorerToString &s, const char *field_name) const final;
4489 };
4490 
4495  public:
4498 
4503 
4510 
4512  static const std::int32_t ID = 438742298;
4517  std::int32_t get_id() const final {
4518  return ID;
4519  }
4520 
4526  void store(TlStorerToString &s, const char *field_name) const final;
4527 };
4528 
4533  public:
4536 
4541 
4548 
4550  static const std::int32_t ID = -376161513;
4555  std::int32_t get_id() const final {
4556  return ID;
4557  }
4558 
4564  void store(TlStorerToString &s, const char *field_name) const final;
4565 };
4566 
4571  public:
4572 
4577 
4579  static const std::int32_t ID = -235468508;
4584  std::int32_t get_id() const final {
4585  return ID;
4586  }
4587 
4593  void store(TlStorerToString &s, const char *field_name) const final;
4594 };
4595 
4599 class chatEventMemberLeft final : public ChatEventAction {
4600  public:
4601 
4606 
4608  static const std::int32_t ID = -948420593;
4613  std::int32_t get_id() const final {
4614  return ID;
4615  }
4616 
4622  void store(TlStorerToString &s, const char *field_name) const final;
4623 };
4624 
4629  public:
4634 
4639 
4647 
4649  static const std::int32_t ID = -2093688706;
4654  std::int32_t get_id() const final {
4655  return ID;
4656  }
4657 
4663  void store(TlStorerToString &s, const char *field_name) const final;
4664 };
4665 
4670  public:
4677 
4682 
4691 
4693  static const std::int32_t ID = 1887176186;
4698  std::int32_t get_id() const final {
4699  return ID;
4700  }
4701 
4707  void store(TlStorerToString &s, const char *field_name) const final;
4708 };
4709 
4714  public:
4721 
4726 
4735 
4737  static const std::int32_t ID = 584946294;
4742  std::int32_t get_id() const final {
4743  return ID;
4744  }
4745 
4751  void store(TlStorerToString &s, const char *field_name) const final;
4752 };
4753 
4758  public:
4760  string old_title_;
4762  string new_title_;
4763 
4768 
4775  chatEventTitleChanged(string const &old_title_, string const &new_title_);
4776 
4778  static const std::int32_t ID = 1134103250;
4783  std::int32_t get_id() const final {
4784  return ID;
4785  }
4786 
4792  void store(TlStorerToString &s, const char *field_name) const final;
4793 };
4794 
4799  public:
4804 
4809 
4817 
4819  static const std::int32_t ID = -1311557720;
4824  std::int32_t get_id() const final {
4825  return ID;
4826  }
4827 
4833  void store(TlStorerToString &s, const char *field_name) const final;
4834 };
4835 
4840  public:
4845 
4850 
4857  chatEventDescriptionChanged(string const &old_description_, string const &new_description_);
4858 
4860  static const std::int32_t ID = 39112478;
4865  std::int32_t get_id() const final {
4866  return ID;
4867  }
4868 
4874  void store(TlStorerToString &s, const char *field_name) const final;
4875 };
4876 
4881  public:
4886 
4891 
4898  chatEventUsernameChanged(string const &old_username_, string const &new_username_);
4899 
4901  static const std::int32_t ID = 1728558443;
4906  std::int32_t get_id() const final {
4907  return ID;
4908  }
4909 
4915  void store(TlStorerToString &s, const char *field_name) const final;
4916 };
4917 
4922  public:
4927 
4932 
4940 
4942  static const std::int32_t ID = -811572541;
4947  std::int32_t get_id() const final {
4948  return ID;
4949  }
4950 
4956  void store(TlStorerToString &s, const char *field_name) const final;
4957 };
4958 
4963  public:
4966 
4971 
4978 
4980  static const std::int32_t ID = -62548373;
4985  std::int32_t get_id() const final {
4986  return ID;
4987  }
4988 
4994  void store(TlStorerToString &s, const char *field_name) const final;
4995 };
4996 
5001  public:
5006 
5011 
5019 
5021  static const std::int32_t ID = 1797419439;
5026  std::int32_t get_id() const final {
5027  return ID;
5028  }
5029 
5035  void store(TlStorerToString &s, const char *field_name) const final;
5036 };
5037 
5042  public:
5047 
5052 
5060 
5062  static const std::int32_t ID = -1653195765;
5067  std::int32_t get_id() const final {
5068  return ID;
5069  }
5070 
5076  void store(TlStorerToString &s, const char *field_name) const final;
5077 };
5078 
5083  public:
5086 
5091 
5098 
5100  static const std::int32_t ID = -1313265634;
5105  std::int32_t get_id() const final {
5106  return ID;
5107  }
5108 
5114  void store(TlStorerToString &s, const char *field_name) const final;
5115 };
5116 
5121  public:
5126 
5131 
5139 
5141  static const std::int32_t ID = -1243130481;
5146  std::int32_t get_id() const final {
5147  return ID;
5148  }
5149 
5155  void store(TlStorerToString &s, const char *field_name) const final;
5156 };
5157 
5162  public:
5167 
5172 
5180 
5182  static const std::int32_t ID = -405930674;
5187  std::int32_t get_id() const final {
5188  return ID;
5189  }
5190 
5196  void store(TlStorerToString &s, const char *field_name) const final;
5197 };
5198 
5203  public:
5206 
5211 
5218 
5220  static const std::int32_t ID = -1599063019;
5225  std::int32_t get_id() const final {
5226  return ID;
5227  }
5228 
5234  void store(TlStorerToString &s, const char *field_name) const final;
5235 };
5236 
5240 class chatEventLogFilters final : public Object {
5241  public:
5262 
5267 
5283 
5285  static const std::int32_t ID = 941939684;
5290  std::int32_t get_id() const final {
5291  return ID;
5292  }
5293 
5299  void store(TlStorerToString &s, const char *field_name) const final;
5300 };
5301 
5305 class chatEvents final : public Object {
5306  public:
5309 
5313  chatEvents();
5314 
5321 
5323  static const std::int32_t ID = -585329664;
5328  std::int32_t get_id() const final {
5329  return ID;
5330  }
5331 
5337  void store(TlStorerToString &s, const char *field_name) const final;
5338 };
5339 
5343 class chatFilter final : public Object {
5344  public:
5346  string title_;
5348  string icon_name_;
5371 
5375  chatFilter();
5376 
5395 
5397  static const std::int32_t ID = -664815123;
5402  std::int32_t get_id() const final {
5403  return ID;
5404  }
5405 
5411  void store(TlStorerToString &s, const char *field_name) const final;
5412 };
5413 
5417 class chatFilterInfo final : public Object {
5418  public:
5422  string title_;
5424  string icon_name_;
5425 
5429  chatFilterInfo();
5430 
5438  chatFilterInfo(int32 id_, string const &title_, string const &icon_name_);
5439 
5441  static const std::int32_t ID = -943721165;
5446  std::int32_t get_id() const final {
5447  return ID;
5448  }
5449 
5455  void store(TlStorerToString &s, const char *field_name) const final;
5456 };
5457 
5461 class chatInviteLink final : public Object {
5462  public:
5465 
5469  chatInviteLink();
5470 
5476  explicit chatInviteLink(string const &invite_link_);
5477 
5479  static const std::int32_t ID = -882072492;
5484  std::int32_t get_id() const final {
5485  return ID;
5486  }
5487 
5493  void store(TlStorerToString &s, const char *field_name) const final;
5494 };
5495 
5499 class chatInviteLinkInfo final : public Object {
5500  public:
5508  string title_;
5517 
5522 
5536 
5538  static const std::int32_t ID = 910695551;
5543  std::int32_t get_id() const final {
5544  return ID;
5545  }
5546 
5552  void store(TlStorerToString &s, const char *field_name) const final;
5553 };
5554 
5559 class ChatList: public Object {
5560  public:
5561 };
5562 
5566 class chatListMain final : public ChatList {
5567  public:
5568 
5572  chatListMain();
5573 
5575  static const std::int32_t ID = -400991316;
5580  std::int32_t get_id() const final {
5581  return ID;
5582  }
5583 
5589  void store(TlStorerToString &s, const char *field_name) const final;
5590 };
5591 
5595 class chatListArchive final : public ChatList {
5596  public:
5597 
5601  chatListArchive();
5602 
5604  static const std::int32_t ID = 362770115;
5609  std::int32_t get_id() const final {
5610  return ID;
5611  }
5612 
5618  void store(TlStorerToString &s, const char *field_name) const final;
5619 };
5620 
5624 class chatListFilter final : public ChatList {
5625  public:
5628 
5632  chatListFilter();
5633 
5640 
5642  static const std::int32_t ID = -2022707655;
5647  std::int32_t get_id() const final {
5648  return ID;
5649  }
5650 
5656  void store(TlStorerToString &s, const char *field_name) const final;
5657 };
5658 
5662 class chatLists final : public Object {
5663  public:
5666 
5670  chatLists();
5671 
5678 
5680  static const std::int32_t ID = -258292771;
5685  std::int32_t get_id() const final {
5686  return ID;
5687  }
5688 
5694  void store(TlStorerToString &s, const char *field_name) const final;
5695 };
5696 
5700 class chatLocation final : public Object {
5701  public:
5705  string address_;
5706 
5710  chatLocation();
5711 
5719 
5721  static const std::int32_t ID = -1566863583;
5726  std::int32_t get_id() const final {
5727  return ID;
5728  }
5729 
5735  void store(TlStorerToString &s, const char *field_name) const final;
5736 };
5737 
5741 class chatMember final : public Object {
5742  public:
5753 
5757  chatMember();
5758 
5769 
5771  static const std::int32_t ID = -806137076;
5776  std::int32_t get_id() const final {
5777  return ID;
5778  }
5779 
5785  void store(TlStorerToString &s, const char *field_name) const final;
5786 };
5787 
5792 class ChatMemberStatus: public Object {
5793  public:
5794 };
5795 
5800  public:
5807 
5812 
5821 
5823  static const std::int32_t ID = -160019714;
5828  std::int32_t get_id() const final {
5829  return ID;
5830  }
5831 
5837  void store(TlStorerToString &s, const char *field_name) const final;
5838 };
5839 
5844  public:
5867 
5872 
5889 
5891  static const std::int32_t ID = 222495835;
5896  std::int32_t get_id() const final {
5897  return ID;
5898  }
5899 
5905  void store(TlStorerToString &s, const char *field_name) const final;
5906 };
5907 
5912  public:
5913 
5918 
5920  static const std::int32_t ID = 844723285;
5925  std::int32_t get_id() const final {
5926  return ID;
5927  }
5928 
5934  void store(TlStorerToString &s, const char *field_name) const final;
5935 };
5936 
5941  public:
5948 
5953 
5962 
5964  static const std::int32_t ID = 1661432998;
5969  std::int32_t get_id() const final {
5970  return ID;
5971  }
5972 
5978  void store(TlStorerToString &s, const char *field_name) const final;
5979 };
5980 
5985  public:
5986 
5991 
5993  static const std::int32_t ID = -5815259;
5998  std::int32_t get_id() const final {
5999  return ID;
6000  }
6001 
6007  void store(TlStorerToString &s, const char *field_name) const final;
6008 };
6009 
6014  public:
6017 
6022 
6029 
6031  static const std::int32_t ID = -1653518666;
6036  std::int32_t get_id() const final {
6037  return ID;
6038  }
6039 
6045  void store(TlStorerToString &s, const char *field_name) const final;
6046 };
6047 
6051 class chatMembers final : public Object {
6052  public:
6057 
6061  chatMembers();
6062 
6070 
6072  static const std::int32_t ID = -497558622;
6077  std::int32_t get_id() const final {
6078  return ID;
6079  }
6080 
6086  void store(TlStorerToString &s, const char *field_name) const final;
6087 };
6088 
6093 class ChatMembersFilter: public Object {
6094  public:
6095 };
6096 
6101  public:
6102 
6107 
6109  static const std::int32_t ID = 1774485671;
6114  std::int32_t get_id() const final {
6115  return ID;
6116  }
6117 
6123  void store(TlStorerToString &s, const char *field_name) const final;
6124 };
6125 
6130  public:
6131 
6136 
6138  static const std::int32_t ID = -1266893796;
6143  std::int32_t get_id() const final {
6144  return ID;
6145  }
6146 
6152  void store(TlStorerToString &s, const char *field_name) const final;
6153 };
6154 
6159  public:
6160 
6165 
6167  static const std::int32_t ID = 670504342;
6172  std::int32_t get_id() const final {
6173  return ID;
6174  }
6175 
6181  void store(TlStorerToString &s, const char *field_name) const final;
6182 };
6183 
6188  public:
6191 
6196 
6203 
6205  static const std::int32_t ID = 856419831;
6210  std::int32_t get_id() const final {
6211  return ID;
6212  }
6213 
6219  void store(TlStorerToString &s, const char *field_name) const final;
6220 };
6221 
6226  public:
6227 
6232 
6234  static const std::int32_t ID = 1256282813;
6239  std::int32_t get_id() const final {
6240  return ID;
6241  }
6242 
6248  void store(TlStorerToString &s, const char *field_name) const final;
6249 };
6250 
6255  public:
6256 
6261 
6263  static const std::int32_t ID = -1863102648;
6268  std::int32_t get_id() const final {
6269  return ID;
6270  }
6271 
6277  void store(TlStorerToString &s, const char *field_name) const final;
6278 };
6279 
6284  public:
6285 
6290 
6292  static const std::int32_t ID = -1422567288;
6297  std::int32_t get_id() const final {
6298  return ID;
6299  }
6300 
6306  void store(TlStorerToString &s, const char *field_name) const final;
6307 };
6308 
6312 class chatNearby final : public Object {
6313  public:
6318 
6322  chatNearby();
6323 
6331 
6333  static const std::int32_t ID = 48120405;
6338  std::int32_t get_id() const final {
6339  return ID;
6340  }
6341 
6347  void store(TlStorerToString &s, const char *field_name) const final;
6348 };
6349 
6353 class chatNotificationSettings final : public Object {
6354  public:
6362  string sound_;
6375 
6380 
6396 
6398  static const std::int32_t ID = 1503183218;
6403  std::int32_t get_id() const final {
6404  return ID;
6405  }
6406 
6412  void store(TlStorerToString &s, const char *field_name) const final;
6413 };
6414 
6418 class chatPermissions final : public Object {
6419  public:
6436 
6440  chatPermissions();
6441 
6455 
6457  static const std::int32_t ID = 1584650463;
6462  std::int32_t get_id() const final {
6463  return ID;
6464  }
6465 
6471  void store(TlStorerToString &s, const char *field_name) const final;
6472 };
6473 
6477 class chatPhoto final : public Object {
6478  public:
6489 
6493  chatPhoto();
6494 
6505 
6507  static const std::int32_t ID = -113003577;
6512  std::int32_t get_id() const final {
6513  return ID;
6514  }
6515 
6521  void store(TlStorerToString &s, const char *field_name) const final;
6522 };
6523 
6527 class chatPhotoInfo final : public Object {
6528  public:
6535 
6539  chatPhotoInfo();
6540 
6549 
6551  static const std::int32_t ID = 404510091;
6556  std::int32_t get_id() const final {
6557  return ID;
6558  }
6559 
6565  void store(TlStorerToString &s, const char *field_name) const final;
6566 };
6567 
6571 class chatPhotos final : public Object {
6572  public:
6577 
6581  chatPhotos();
6582 
6590 
6592  static const std::int32_t ID = -1510699180;
6597  std::int32_t get_id() const final {
6598  return ID;
6599  }
6600 
6606  void store(TlStorerToString &s, const char *field_name) const final;
6607 };
6608 
6612 class chatPosition final : public Object {
6613  public:
6622 
6626  chatPosition();
6627 
6637 
6639  static const std::int32_t ID = -622557355;
6644  std::int32_t get_id() const final {
6645  return ID;
6646  }
6647 
6653  void store(TlStorerToString &s, const char *field_name) const final;
6654 };
6655 
6660 class ChatReportReason: public Object {
6661  public:
6662 };
6663 
6668  public:
6669 
6674 
6676  static const std::int32_t ID = -510848863;
6681  std::int32_t get_id() const final {
6682  return ID;
6683  }
6684 
6690  void store(TlStorerToString &s, const char *field_name) const final;
6691 };
6692 
6697  public:
6698 
6703 
6705  static const std::int32_t ID = -1330235395;
6710  std::int32_t get_id() const final {
6711  return ID;
6712  }
6713 
6719  void store(TlStorerToString &s, const char *field_name) const final;
6720 };
6721 
6726  public:
6727 
6732 
6734  static const std::int32_t ID = 722614385;
6739  std::int32_t get_id() const final {
6740  return ID;
6741  }
6742 
6748  void store(TlStorerToString &s, const char *field_name) const final;
6749 };
6750 
6755  public:
6756 
6761 
6763  static const std::int32_t ID = -1070686531;
6768  std::int32_t get_id() const final {
6769  return ID;
6770  }
6771 
6777  void store(TlStorerToString &s, const char *field_name) const final;
6778 };
6779 
6784  public:
6785 
6790 
6792  static const std::int32_t ID = 986898080;
6797  std::int32_t get_id() const final {
6798  return ID;
6799  }
6800 
6806  void store(TlStorerToString &s, const char *field_name) const final;
6807 };
6808 
6813  public:
6814 
6819 
6821  static const std::int32_t ID = 2632403;
6826  std::int32_t get_id() const final {
6827  return ID;
6828  }
6829 
6835  void store(TlStorerToString &s, const char *field_name) const final;
6836 };
6837 
6842  public:
6844  string text_;
6845 
6850 
6856  explicit chatReportReasonCustom(string const &text_);
6857 
6859  static const std::int32_t ID = 544575454;
6864  std::int32_t get_id() const final {
6865  return ID;
6866  }
6867 
6873  void store(TlStorerToString &s, const char *field_name) const final;
6874 };
6875 
6880 class ChatSource: public Object {
6881  public:
6882 };
6883 
6887 class chatSourceMtprotoProxy final : public ChatSource {
6888  public:
6889 
6894 
6896  static const std::int32_t ID = 394074115;
6901  std::int32_t get_id() const final {
6902  return ID;
6903  }
6904 
6910  void store(TlStorerToString &s, const char *field_name) const final;
6911 };
6912 
6917  public:
6919  string type_;
6921  string text_;
6922 
6927 
6934  chatSourcePublicServiceAnnouncement(string const &type_, string const &text_);
6935 
6937  static const std::int32_t ID = -328571244;
6942  std::int32_t get_id() const final {
6943  return ID;
6944  }
6945 
6951  void store(TlStorerToString &s, const char *field_name) const final;
6952 };
6953 
6958 class ChatStatistics: public Object {
6959  public:
6960 };
6961 
6966  public:
6999 
7004 
7026 
7028  static const std::int32_t ID = -17244633;
7033  std::int32_t get_id() const final {
7034  return ID;
7035  }
7036 
7042  void store(TlStorerToString &s, const char *field_name) const final;
7043 };
7044 
7049  public:
7080 
7085 
7106 
7108  static const std::int32_t ID = -825434183;
7113  std::int32_t get_id() const final {
7114  return ID;
7115  }
7116 
7122  void store(TlStorerToString &s, const char *field_name) const final;
7123 };
7124 
7129  public:
7138 
7143 
7153 
7155  static const std::int32_t ID = 1988384904;
7160  std::int32_t get_id() const final {
7161  return ID;
7162  }
7163 
7169  void store(TlStorerToString &s, const char *field_name) const final;
7170 };
7171 
7175 class chatStatisticsInviterInfo final : public Object {
7176  public:
7181 
7186 
7194 
7196  static const std::int32_t ID = -399517859;
7201  std::int32_t get_id() const final {
7202  return ID;
7203  }
7204 
7210  void store(TlStorerToString &s, const char *field_name) const final;
7211 };
7212 
7217  public:
7224 
7229 
7238 
7240  static const std::int32_t ID = -765580756;
7245  std::int32_t get_id() const final {
7246  return ID;
7247  }
7248 
7254  void store(TlStorerToString &s, const char *field_name) const final;
7255 };
7256 
7261  public:
7268 
7273 
7282 
7284  static const std::int32_t ID = 1716075179;
7289  std::int32_t get_id() const final {
7290  return ID;
7291  }
7292 
7298  void store(TlStorerToString &s, const char *field_name) const final;
7299 };
7300 
7305 class ChatType: public Object {
7306  public:
7307 };
7308 
7312 class chatTypePrivate final : public ChatType {
7313  public:
7316 
7320  chatTypePrivate();
7321 
7327  explicit chatTypePrivate(int32 user_id_);
7328 
7330  static const std::int32_t ID = 1700720838;
7335  std::int32_t get_id() const final {
7336  return ID;
7337  }
7338 
7344  void store(TlStorerToString &s, const char *field_name) const final;
7345 };
7346 
7350 class chatTypeBasicGroup final : public ChatType {
7351  public:
7354 
7359 
7366 
7368  static const std::int32_t ID = 21815278;
7373  std::int32_t get_id() const final {
7374  return ID;
7375  }
7376 
7382  void store(TlStorerToString &s, const char *field_name) const final;
7383 };
7384 
7388 class chatTypeSupergroup final : public ChatType {
7389  public:
7394 
7399 
7407 
7409  static const std::int32_t ID = 955152366;
7414  std::int32_t get_id() const final {
7415  return ID;
7416  }
7417 
7423  void store(TlStorerToString &s, const char *field_name) const final;
7424 };
7425 
7429 class chatTypeSecret final : public ChatType {
7430  public:
7435 
7439  chatTypeSecret();
7440 
7448 
7450  static const std::int32_t ID = 136722563;
7455  std::int32_t get_id() const final {
7456  return ID;
7457  }
7458 
7464  void store(TlStorerToString &s, const char *field_name) const final;
7465 };
7466 
7470 class chats final : public Object {
7471  public:
7476 
7480  chats();
7481 
7489 
7491  static const std::int32_t ID = 1809654812;
7496  std::int32_t get_id() const final {
7497  return ID;
7498  }
7499 
7505  void store(TlStorerToString &s, const char *field_name) const final;
7506 };
7507 
7511 class chatsNearby final : public Object {
7512  public:
7517 
7521  chatsNearby();
7522 
7530 
7532  static const std::int32_t ID = 187746081;
7537  std::int32_t get_id() const final {
7538  return ID;
7539  }
7540 
7546  void store(TlStorerToString &s, const char *field_name) const final;
7547 };
7548 
7554  public:
7555 };
7556 
7561  public:
7562 
7567 
7569  static const std::int32_t ID = -1498956964;
7574  std::int32_t get_id() const final {
7575  return ID;
7576  }
7577 
7583  void store(TlStorerToString &s, const char *field_name) const final;
7584 };
7585 
7590  public:
7591 
7596 
7598  static const std::int32_t ID = -636979370;
7603  std::int32_t get_id() const final {
7604  return ID;
7605  }
7606 
7612  void store(TlStorerToString &s, const char *field_name) const final;
7613 };
7614 
7619  public:
7620 
7625 
7627  static const std::int32_t ID = 1320892201;
7632  std::int32_t get_id() const final {
7633  return ID;
7634  }
7635 
7641  void store(TlStorerToString &s, const char *field_name) const final;
7642 };
7643 
7648  public:
7649 
7654 
7656  static const std::int32_t ID = 858247741;
7661  std::int32_t get_id() const final {
7662  return ID;
7663  }
7664 
7670  void store(TlStorerToString &s, const char *field_name) const final;
7671 };
7672 
7677  public:
7678 
7683 
7685  static const std::int32_t ID = -51833641;
7690  std::int32_t get_id() const final {
7691  return ID;
7692  }
7693 
7699  void store(TlStorerToString &s, const char *field_name) const final;
7700 };
7701 
7705 class connectedWebsite final : public Object {
7706  public:
7714  string browser_;
7716  string platform_;
7722  string ip_;
7724  string location_;
7725 
7729  connectedWebsite();
7730 
7744  connectedWebsite(int64 id_, string const &domain_name_, int32 bot_user_id_, string const &browser_, string const &platform_, int32 log_in_date_, int32 last_active_date_, string const &ip_, string const &location_);
7745 
7747  static const std::int32_t ID = -1538986855;
7752  std::int32_t get_id() const final {
7753  return ID;
7754  }
7755 
7761  void store(TlStorerToString &s, const char *field_name) const final;
7762 };
7763 
7767 class connectedWebsites final : public Object {
7768  public:
7771 
7776 
7783 
7785  static const std::int32_t ID = -1727949694;
7790  std::int32_t get_id() const final {
7791  return ID;
7792  }
7793 
7799  void store(TlStorerToString &s, const char *field_name) const final;
7800 };
7801 
7806 class ConnectionState: public Object {
7807  public:
7808 };
7809 
7814  public:
7815 
7820 
7822  static const std::int32_t ID = 1695405912;
7827  std::int32_t get_id() const final {
7828  return ID;
7829  }
7830 
7836  void store(TlStorerToString &s, const char *field_name) const final;
7837 };
7838 
7843  public:
7844 
7849 
7851  static const std::int32_t ID = -93187239;
7856  std::int32_t get_id() const final {
7857  return ID;
7858  }
7859 
7865  void store(TlStorerToString &s, const char *field_name) const final;
7866 };
7867 
7872  public:
7873 
7878 
7880  static const std::int32_t ID = -1298400670;
7885  std::int32_t get_id() const final {
7886  return ID;
7887  }
7888 
7894  void store(TlStorerToString &s, const char *field_name) const final;
7895 };
7896 
7901  public:
7902 
7907 
7909  static const std::int32_t ID = -188104009;
7914  std::int32_t get_id() const final {
7915  return ID;
7916  }
7917 
7923  void store(TlStorerToString &s, const char *field_name) const final;
7924 };
7925 
7930  public:
7931 
7936 
7938  static const std::int32_t ID = 48608492;
7943  std::int32_t get_id() const final {
7944  return ID;
7945  }
7946 
7952  void store(TlStorerToString &s, const char *field_name) const final;
7953 };
7954 
7958 class contact final : public Object {
7959  public:
7963  string first_name_;
7965  string last_name_;
7967  string vcard_;
7970 
7974  contact();
7975 
7985  contact(string const &phone_number_, string const &first_name_, string const &last_name_, string const &vcard_, int32 user_id_);
7986 
7988  static const std::int32_t ID = -1483002540;
7993  std::int32_t get_id() const final {
7994  return ID;
7995  }
7996 
8002  void store(TlStorerToString &s, const char *field_name) const final;
8003 };
8004 
8008 class count final : public Object {
8009  public:
8012 
8016  count();
8017 
8023  explicit count(int32 count_);
8024 
8026  static const std::int32_t ID = 1295577348;
8031  std::int32_t get_id() const final {
8032  return ID;
8033  }
8034 
8040  void store(TlStorerToString &s, const char *field_name) const final;
8041 };
8042 
8046 class countries final : public Object {
8047  public:
8050 
8054  countries();
8055 
8062 
8064  static const std::int32_t ID = 1854211813;
8069  std::int32_t get_id() const final {
8070  return ID;
8071  }
8072 
8078  void store(TlStorerToString &s, const char *field_name) const final;
8079 };
8080 
8084 class countryInfo final : public Object {
8085  public:
8089  string name_;
8096 
8100  countryInfo();
8101 
8111  countryInfo(string const &country_code_, string const &name_, string const &english_name_, bool is_hidden_, array<string> &&calling_codes_);
8112 
8114  static const std::int32_t ID = 1617195722;
8119  std::int32_t get_id() const final {
8120  return ID;
8121  }
8122 
8128  void store(TlStorerToString &s, const char *field_name) const final;
8129 };
8130 
8134 class customRequestResult final : public Object {
8135  public:
8137  string result_;
8138 
8143 
8149  explicit customRequestResult(string const &result_);
8150 
8152  static const std::int32_t ID = -2009960452;
8157  std::int32_t get_id() const final {
8158  return ID;
8159  }
8160 
8166  void store(TlStorerToString &s, const char *field_name) const final;
8167 };
8168 
8172 class databaseStatistics final : public Object {
8173  public:
8175  string statistics_;
8176 
8181 
8187  explicit databaseStatistics(string const &statistics_);
8188 
8190  static const std::int32_t ID = -1123912880;
8195  std::int32_t get_id() const final {
8196  return ID;
8197  }
8198 
8204  void store(TlStorerToString &s, const char *field_name) const final;
8205 };
8206 
8210 class date final : public Object {
8211  public:
8218 
8222  date();
8223 
8232 
8234  static const std::int32_t ID = -277956960;
8239  std::int32_t get_id() const final {
8240  return ID;
8241  }
8242 
8248  void store(TlStorerToString &s, const char *field_name) const final;
8249 };
8250 
8254 class dateRange final : public Object {
8255  public:
8260 
8264  dateRange();
8265 
8273 
8275  static const std::int32_t ID = 1360333926;
8280  std::int32_t get_id() const final {
8281  return ID;
8282  }
8283 
8289  void store(TlStorerToString &s, const char *field_name) const final;
8290 };
8291 
8295 class datedFile final : public Object {
8296  public:
8301 
8305  datedFile();
8306 
8314 
8316  static const std::int32_t ID = -1840795491;
8321  std::int32_t get_id() const final {
8322  return ID;
8323  }
8324 
8330  void store(TlStorerToString &s, const char *field_name) const final;
8331 };
8332 
8336 class deepLinkInfo final : public Object {
8337  public:
8342 
8346  deepLinkInfo();
8347 
8355 
8357  static const std::int32_t ID = 1864081662;
8362  std::int32_t get_id() const final {
8363  return ID;
8364  }
8365 
8371  void store(TlStorerToString &s, const char *field_name) const final;
8372 };
8373 
8378 class DeviceToken: public Object {
8379  public:
8380 };
8381 
8386  public:
8388  string token_;
8390  bool encrypt_;
8391 
8396 
8403  deviceTokenFirebaseCloudMessaging(string const &token_, bool encrypt_);
8404 
8406  static const std::int32_t ID = -797881849;
8411  std::int32_t get_id() const final {
8412  return ID;
8413  }
8414 
8420  void store(TlStorerToString &s, const char *field_name) const final;
8421 };
8422 
8426 class deviceTokenApplePush final : public DeviceToken {
8427  public:
8432 
8437 
8444  deviceTokenApplePush(string const &device_token_, bool is_app_sandbox_);
8445 
8447  static const std::int32_t ID = 387541955;
8452  std::int32_t get_id() const final {
8453  return ID;
8454  }
8455 
8461  void store(TlStorerToString &s, const char *field_name) const final;
8462 };
8463 
8468  public:
8474  bool encrypt_;
8475 
8480 
8489 
8491  static const std::int32_t ID = 804275689;
8496  std::int32_t get_id() const final {
8497  return ID;
8498  }
8499 
8505  void store(TlStorerToString &s, const char *field_name) const final;
8506 };
8507 
8511 class deviceTokenWindowsPush final : public DeviceToken {
8512  public:
8515 
8520 
8526  explicit deviceTokenWindowsPush(string const &access_token_);
8527 
8529  static const std::int32_t ID = -1410514289;
8534  std::int32_t get_id() const final {
8535  return ID;
8536  }
8537 
8543  void store(TlStorerToString &s, const char *field_name) const final;
8544 };
8545 
8550  public:
8553 
8558 
8564  explicit deviceTokenMicrosoftPush(string const &channel_uri_);
8565 
8567  static const std::int32_t ID = 1224269900;
8572  std::int32_t get_id() const final {
8573  return ID;
8574  }
8575 
8581  void store(TlStorerToString &s, const char *field_name) const final;
8582 };
8583 
8588  public:
8591 
8596 
8602  explicit deviceTokenMicrosoftPushVoIP(string const &channel_uri_);
8603 
8605  static const std::int32_t ID = -785603759;
8610  std::int32_t get_id() const final {
8611  return ID;
8612  }
8613 
8619  void store(TlStorerToString &s, const char *field_name) const final;
8620 };
8621 
8625 class deviceTokenWebPush final : public DeviceToken {
8626  public:
8628  string endpoint_;
8633 
8638 
8646  deviceTokenWebPush(string const &endpoint_, string const &p256dh_base64url_, string const &auth_base64url_);
8647 
8649  static const std::int32_t ID = -1694507273;
8654  std::int32_t get_id() const final {
8655  return ID;
8656  }
8657 
8663  void store(TlStorerToString &s, const char *field_name) const final;
8664 };
8665 
8669 class deviceTokenSimplePush final : public DeviceToken {
8670  public:
8672  string endpoint_;
8673 
8678 
8684  explicit deviceTokenSimplePush(string const &endpoint_);
8685 
8687  static const std::int32_t ID = 49584736;
8692  std::int32_t get_id() const final {
8693  return ID;
8694  }
8695 
8701  void store(TlStorerToString &s, const char *field_name) const final;
8702 };
8703 
8707 class deviceTokenUbuntuPush final : public DeviceToken {
8708  public:
8710  string token_;
8711 
8716 
8722  explicit deviceTokenUbuntuPush(string const &token_);
8723 
8725  static const std::int32_t ID = 1782320422;
8730  std::int32_t get_id() const final {
8731  return ID;
8732  }
8733 
8739  void store(TlStorerToString &s, const char *field_name) const final;
8740 };
8741 
8746  public:
8748  string token_;
8749 
8754 
8760  explicit deviceTokenBlackBerryPush(string const &token_);
8761 
8763  static const std::int32_t ID = 1559167234;
8768  std::int32_t get_id() const final {
8769  return ID;
8770  }
8771 
8777  void store(TlStorerToString &s, const char *field_name) const final;
8778 };
8779 
8783 class deviceTokenTizenPush final : public DeviceToken {
8784  public:
8786  string reg_id_;
8787 
8792 
8798  explicit deviceTokenTizenPush(string const &reg_id_);
8799 
8801  static const std::int32_t ID = -1359947213;
8806  std::int32_t get_id() const final {
8807  return ID;
8808  }
8809 
8815  void store(TlStorerToString &s, const char *field_name) const final;
8816 };
8817 
8822 class DiceStickers: public Object {
8823  public:
8824 };
8825 
8829 class diceStickersRegular final : public DiceStickers {
8830  public:
8833 
8838 
8845 
8847  static const std::int32_t ID = -740299570;
8852  std::int32_t get_id() const final {
8853  return ID;
8854  }
8855 
8861  void store(TlStorerToString &s, const char *field_name) const final;
8862 };
8863 
8868  public:
8879 
8884 
8895 
8897  static const std::int32_t ID = -375223124;
8902  std::int32_t get_id() const final {
8903  return ID;
8904  }
8905 
8911  void store(TlStorerToString &s, const char *field_name) const final;
8912 };
8913 
8917 class document final : public Object {
8918  public:
8920  string file_name_;
8922  string mime_type_;
8929 
8933  document();
8934 
8945 
8947  static const std::int32_t ID = -1357271080;
8952  std::int32_t get_id() const final {
8953  return ID;
8954  }
8955 
8961  void store(TlStorerToString &s, const char *field_name) const final;
8962 };
8963 
8967 class draftMessage final : public Object {
8968  public:
8975 
8979  draftMessage();
8980 
8989 
8991  static const std::int32_t ID = 1373050112;
8996  std::int32_t get_id() const final {
8997  return ID;
8998  }
8999 
9005  void store(TlStorerToString &s, const char *field_name) const final;
9006 };
9007 
9012  public:
9017 
9022 
9030 
9032  static const std::int32_t ID = 1151066659;
9037  std::int32_t get_id() const final {
9038  return ID;
9039  }
9040 
9046  void store(TlStorerToString &s, const char *field_name) const final;
9047 };
9048 
9052 class emojis final : public Object {
9053  public:
9056 
9060  emojis();
9061 
9067  explicit emojis(array<string> &&emojis_);
9068 
9070  static const std::int32_t ID = 950339552;
9075  std::int32_t get_id() const final {
9076  return ID;
9077  }
9078 
9084  void store(TlStorerToString &s, const char *field_name) const final;
9085 };
9086 
9090 class encryptedCredentials final : public Object {
9091  public:
9098 
9103 
9111  encryptedCredentials(bytes const &data_, bytes const &hash_, bytes const &secret_);
9112 
9114  static const std::int32_t ID = 1331106766;
9119  std::int32_t get_id() const final {
9120  return ID;
9121  }
9122 
9128  void store(TlStorerToString &s, const char *field_name) const final;
9129 };
9130 
9134 class encryptedPassportElement final : public Object {
9135  public:
9151  string value_;
9153  string hash_;
9154 
9159 
9174 
9176  static const std::int32_t ID = 2002386193;
9181  std::int32_t get_id() const final {
9182  return ID;
9183  }
9184 
9190  void store(TlStorerToString &s, const char *field_name) const final;
9191 };
9192 
9196 class error final : public Object {
9197  public:
9201  string message_;
9202 
9206  error();
9207 
9214  error(int32 code_, string const &message_);
9215 
9217  static const std::int32_t ID = -1679978726;
9222  std::int32_t get_id() const final {
9223  return ID;
9224  }
9225 
9231  void store(TlStorerToString &s, const char *field_name) const final;
9232 };
9233 
9237 class file final : public Object {
9238  public:
9249 
9253  file();
9254 
9265 
9267  static const std::int32_t ID = 766337656;
9272  std::int32_t get_id() const final {
9273  return ID;
9274  }
9275 
9281  void store(TlStorerToString &s, const char *field_name) const final;
9282 };
9283 
9287 class filePart final : public Object {
9288  public:
9291 
9295  filePart();
9296 
9302  explicit filePart(bytes const &data_);
9303 
9305  static const std::int32_t ID = 911821878;
9310  std::int32_t get_id() const final {
9311  return ID;
9312  }
9313 
9319  void store(TlStorerToString &s, const char *field_name) const final;
9320 };
9321 
9326 class FileType: public Object {
9327  public:
9328 };
9329 
9333 class fileTypeNone final : public FileType {
9334  public:
9335 
9339  fileTypeNone();
9340 
9342  static const std::int32_t ID = 2003009189;
9347  std::int32_t get_id() const final {
9348  return ID;
9349  }
9350 
9356  void store(TlStorerToString &s, const char *field_name) const final;
9357 };
9358 
9362 class fileTypeAnimation final : public FileType {
9363  public:
9364 
9369 
9371  static const std::int32_t ID = -290816582;
9376  std::int32_t get_id() const final {
9377  return ID;
9378  }
9379 
9385  void store(TlStorerToString &s, const char *field_name) const final;
9386 };
9387 
9391 class fileTypeAudio final : public FileType {
9392  public:
9393 
9397  fileTypeAudio();
9398 
9400  static const std::int32_t ID = -709112160;
9405  std::int32_t get_id() const final {
9406  return ID;
9407  }
9408 
9414  void store(TlStorerToString &s, const char *field_name) const final;
9415 };
9416 
9420 class fileTypeDocument final : public FileType {
9421  public:
9422 
9426  fileTypeDocument();
9427 
9429  static const std::int32_t ID = -564722929;
9434  std::int32_t get_id() const final {
9435  return ID;
9436  }
9437 
9443  void store(TlStorerToString &s, const char *field_name) const final;
9444 };
9445 
9449 class fileTypePhoto final : public FileType {
9450  public:
9451 
9455  fileTypePhoto();
9456 
9458  static const std::int32_t ID = -1718914651;
9463  std::int32_t get_id() const final {
9464  return ID;
9465  }
9466 
9472  void store(TlStorerToString &s, const char *field_name) const final;
9473 };
9474 
9478 class fileTypeProfilePhoto final : public FileType {
9479  public:
9480 
9485 
9487  static const std::int32_t ID = 1795089315;
9492  std::int32_t get_id() const final {
9493  return ID;
9494  }
9495 
9501  void store(TlStorerToString &s, const char *field_name) const final;
9502 };
9503 
9507 class fileTypeSecret final : public FileType {
9508  public:
9509 
9513  fileTypeSecret();
9514 
9516  static const std::int32_t ID = -1871899401;
9521  std::int32_t get_id() const final {
9522  return ID;
9523  }
9524 
9530  void store(TlStorerToString &s, const char *field_name) const final;
9531 };
9532 
9536 class fileTypeSecretThumbnail final : public FileType {
9537  public:
9538 
9543 
9545  static const std::int32_t ID = -1401326026;
9550  std::int32_t get_id() const final {
9551  return ID;
9552  }
9553 
9559  void store(TlStorerToString &s, const char *field_name) const final;
9560 };
9561 
9565 class fileTypeSecure final : public FileType {
9566  public:
9567 
9571  fileTypeSecure();
9572 
9574  static const std::int32_t ID = -1419133146;
9579  std::int32_t get_id() const final {
9580  return ID;
9581  }
9582 
9588  void store(TlStorerToString &s, const char *field_name) const final;
9589 };
9590 
9594 class fileTypeSticker final : public FileType {
9595  public:
9596 
9600  fileTypeSticker();
9601 
9603  static const std::int32_t ID = 475233385;
9608  std::int32_t get_id() const final {
9609  return ID;
9610  }
9611 
9617  void store(TlStorerToString &s, const char *field_name) const final;
9618 };
9619 
9623 class fileTypeThumbnail final : public FileType {
9624  public:
9625 
9630 
9632  static const std::int32_t ID = -12443298;
9637  std::int32_t get_id() const final {
9638  return ID;
9639  }
9640 
9646  void store(TlStorerToString &s, const char *field_name) const final;
9647 };
9648 
9652 class fileTypeUnknown final : public FileType {
9653  public:
9654 
9658  fileTypeUnknown();
9659 
9661  static const std::int32_t ID = -2011566768;
9666  std::int32_t get_id() const final {
9667  return ID;
9668  }
9669 
9675  void store(TlStorerToString &s, const char *field_name) const final;
9676 };
9677 
9681 class fileTypeVideo final : public FileType {
9682  public:
9683 
9687  fileTypeVideo();
9688 
9690  static const std::int32_t ID = 1430816539;
9695  std::int32_t get_id() const final {
9696  return ID;
9697  }
9698 
9704  void store(TlStorerToString &s, const char *field_name) const final;
9705 };
9706 
9710 class fileTypeVideoNote final : public FileType {
9711  public:
9712 
9717 
9719  static const std::int32_t ID = -518412385;
9724  std::int32_t get_id() const final {
9725  return ID;
9726  }
9727 
9733  void store(TlStorerToString &s, const char *field_name) const final;
9734 };
9735 
9739 class fileTypeVoiceNote final : public FileType {
9740  public:
9741 
9746 
9748  static const std::int32_t ID = -588681661;
9753  std::int32_t get_id() const final {
9754  return ID;
9755  }
9756 
9762  void store(TlStorerToString &s, const char *field_name) const final;
9763 };
9764 
9768 class fileTypeWallpaper final : public FileType {
9769  public:
9770 
9775 
9777  static const std::int32_t ID = 1854930076;
9782  std::int32_t get_id() const final {
9783  return ID;
9784  }
9785 
9791  void store(TlStorerToString &s, const char *field_name) const final;
9792 };
9793 
9797 class formattedText final : public Object {
9798  public:
9800  string text_;
9803 
9807  formattedText();
9808 
9816 
9818  static const std::int32_t ID = -252624564;
9823  std::int32_t get_id() const final {
9824  return ID;
9825  }
9826 
9832  void store(TlStorerToString &s, const char *field_name) const final;
9833 };
9834 
9838 class foundMessages final : public Object {
9839  public:
9846 
9850  foundMessages();
9851 
9860 
9862  static const std::int32_t ID = -529809608;
9867  std::int32_t get_id() const final {
9868  return ID;
9869  }
9870 
9876  void store(TlStorerToString &s, const char *field_name) const final;
9877 };
9878 
9882 class game final : public Object {
9883  public:
9887  string short_name_;
9889  string title_;
9898 
9902  game();
9903 
9916 
9918  static const std::int32_t ID = -1565597752;
9923  std::int32_t get_id() const final {
9924  return ID;
9925  }
9926 
9932  void store(TlStorerToString &s, const char *field_name) const final;
9933 };
9934 
9938 class gameHighScore final : public Object {
9939  public:
9946 
9950  gameHighScore();
9951 
9960 
9962  static const std::int32_t ID = -30778358;
9967  std::int32_t get_id() const final {
9968  return ID;
9969  }
9970 
9976  void store(TlStorerToString &s, const char *field_name) const final;
9977 };
9978 
9982 class gameHighScores final : public Object {
9983  public:
9986 
9990  gameHighScores();
9991 
9998 
10000  static const std::int32_t ID = -725770727;
10005  std::int32_t get_id() const final {
10006  return ID;
10007  }
10008 
10014