#pragma once #include "td/tl/TlObject.h" #include #include #include #include namespace td { class TlStorerToString; namespace td_api { using int32 = std::int32_t; using int53 = std::int64_t; using int64 = std::int64_t; using string = std::string; using bytes = std::string; template using array = std::vector; using BaseObject = ::td::TlObject; template using object_ptr = ::td::tl_object_ptr; template object_ptr make_object(Args &&... args) { return object_ptr(new Type(std::forward(args)...)); } template object_ptr move_object_as(FromType &&from) { return object_ptr(static_cast(from.release())); } std::string to_string(const BaseObject &value); template std::string to_string(const object_ptr &value) { if (value == nullptr) { return "null"; } return to_string(*value); } template std::string to_string(const std::vector> &values) { std::string result = "{\n"; for (const auto &value : values) { if (value == nullptr) { result += "null\n"; } else { result += to_string(*value); } } result += "}\n"; return result; } class accountTtl; class address; class animatedChatPhoto; class animatedEmoji; class animation; class animations; class audio; class authenticationCodeInfo; class AuthenticationCodeType; class AuthorizationState; class autoDownloadSettings; class autoDownloadSettingsPresets; class background; class BackgroundFill; class BackgroundType; class backgrounds; class bankCardActionOpenUrl; class bankCardInfo; class basicGroup; class basicGroupFullInfo; class botCommand; class BotCommandScope; class botCommands; class call; class CallDiscardReason; class callId; class CallProblem; class callProtocol; class callServer; class CallServerType; class CallState; class callbackQueryAnswer; class CallbackQueryPayload; class CanTransferOwnershipResult; class chat; class ChatAction; class ChatActionBar; class chatAdministrator; class chatAdministrators; class chatEvent; class ChatEventAction; class chatEventLogFilters; class chatEvents; class chatFilter; class chatFilterInfo; class chatInviteLink; class chatInviteLinkCount; class chatInviteLinkCounts; class chatInviteLinkInfo; class chatInviteLinkMember; class chatInviteLinkMembers; class chatInviteLinks; class chatJoinRequest; class chatJoinRequests; class chatJoinRequestsInfo; class ChatList; class chatLists; class chatLocation; class chatMember; class ChatMemberStatus; class chatMembers; class ChatMembersFilter; class chatNearby; class chatNotificationSettings; class chatPermissions; class chatPhoto; class chatPhotoInfo; class chatPhotos; class chatPosition; class ChatReportReason; class ChatSource; class ChatStatistics; class chatStatisticsAdministratorActionsInfo; class chatStatisticsInviterInfo; class chatStatisticsMessageInteractionInfo; class chatStatisticsMessageSenderInfo; class chatTheme; class ChatType; class chats; class chatsNearby; class CheckChatUsernameResult; class CheckStickerSetNameResult; class closedVectorPath; class colorReplacement; class connectedWebsite; class connectedWebsites; class ConnectionState; class contact; class count; class countries; class countryInfo; class customRequestResult; class databaseStatistics; class date; class dateRange; class datedFile; class deepLinkInfo; class DeviceToken; class DiceStickers; class document; class draftMessage; class emailAddressAuthenticationCodeInfo; class emojis; class encryptedCredentials; class encryptedPassportElement; class error; class file; class filePart; class FileType; class formattedText; class foundMessages; class game; class gameHighScore; class gameHighScores; class groupCall; class groupCallId; class groupCallParticipant; class groupCallParticipantVideoInfo; class groupCallRecentSpeaker; class GroupCallVideoQuality; class groupCallVideoSourceGroup; class hashtags; class httpUrl; class identityDocument; class importedContacts; class inlineKeyboardButton; class InlineKeyboardButtonType; class InlineQueryResult; class inlineQueryResults; class InputBackground; class InputChatPhoto; class InputCredentials; class InputFile; class inputIdentityDocument; class InputInlineQueryResult; class InputMessageContent; class InputPassportElement; class inputPassportElementError; class InputPassportElementErrorSource; class inputPersonalDocument; class InputSticker; class inputThumbnail; class InternalLinkType; class invoice; class jsonObjectMember; class JsonValue; class keyboardButton; class KeyboardButtonType; class labeledPricePart; class languagePackInfo; class languagePackString; class LanguagePackStringValue; class languagePackStrings; class localFile; class localizationTargetInfo; class location; class LogStream; class logTags; class logVerbosityLevel; class LoginUrlInfo; class MaskPoint; class maskPosition; class message; class messageCalendar; class messageCalendarDay; class MessageContent; class messageCopyOptions; class MessageFileType; class messageForwardInfo; class MessageForwardOrigin; class messageInteractionInfo; class messageLink; class messageLinkInfo; class messagePosition; class messagePositions; class messageReplyInfo; class MessageSchedulingState; class messageSendOptions; class MessageSender; class messageSenders; class MessageSendingState; class messageStatistics; class messageThreadInfo; class messages; class minithumbnail; class networkStatistics; class NetworkStatisticsEntry; class NetworkType; class notification; class notificationGroup; class NotificationGroupType; class NotificationSettingsScope; class NotificationType; class ok; class OptionValue; class orderInfo; class PageBlock; class pageBlockCaption; class PageBlockHorizontalAlignment; class pageBlockListItem; class pageBlockRelatedArticle; class pageBlockTableCell; class PageBlockVerticalAlignment; class passportAuthorizationForm; class PassportElement; class passportElementError; class PassportElementErrorSource; class PassportElementType; class passportElements; class passportElementsWithErrors; class passportRequiredElement; class passportSuitableElement; class passwordState; class paymentForm; class paymentFormTheme; class paymentReceipt; class paymentResult; class paymentsProviderStripe; class personalDetails; class personalDocument; class phoneNumberAuthenticationSettings; class phoneNumberInfo; class photo; class photoSize; class point; class poll; class pollOption; class PollType; class profilePhoto; class proxies; class proxy; class ProxyType; class PublicChatType; class PushMessageContent; class pushReceiverId; class recommendedChatFilter; class recommendedChatFilters; class recoveryEmailAddress; class remoteFile; class ReplyMarkup; class ResetPasswordResult; class RichText; class savedCredentials; class scopeNotificationSettings; class SearchMessagesFilter; class seconds; class secretChat; class SecretChatState; class session; class sessions; class shippingOption; class sponsoredMessage; class sponsoredMessages; class StatisticalGraph; class statisticalValue; class sticker; class stickerSet; class stickerSetInfo; class stickerSets; class stickers; class storageStatistics; class storageStatisticsByChat; class storageStatisticsByFileType; class storageStatisticsFast; class SuggestedAction; class supergroup; class supergroupFullInfo; class SupergroupMembersFilter; class tMeUrl; class TMeUrlType; class tMeUrls; class tdlibParameters; class temporaryPasswordState; class termsOfService; class testBytes; class testInt; class testString; class testVectorInt; class testVectorIntObject; class testVectorString; class testVectorStringObject; class text; class textEntities; class textEntity; class TextEntityType; class TextParseMode; class themeSettings; class thumbnail; class ThumbnailFormat; class TopChatCategory; class Update; class updates; class user; class userFullInfo; class UserPrivacySetting; class UserPrivacySettingRule; class userPrivacySettingRules; class UserStatus; class UserType; class users; class validatedOrderInfo; class VectorPathCommand; class venue; class video; class videoChat; class videoNote; class voiceNote; class webPage; class webPageInstantView; class Object; class Object: public TlObject { public: }; class Function: public TlObject { public: }; class accountTtl final : public Object { public: int32 days_; accountTtl(); explicit accountTtl(int32 days_); static const std::int32_t ID = 1324495492; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class address final : public Object { public: string country_code_; string state_; string city_; string street_line1_; string street_line2_; string postal_code_; address(); address(string const &country_code_, string const &state_, string const &city_, string const &street_line1_, string const &street_line2_, string const &postal_code_); static const std::int32_t ID = -2043654342; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class animatedChatPhoto final : public Object { public: int32 length_; object_ptr file_; double main_frame_timestamp_; animatedChatPhoto(); animatedChatPhoto(int32 length_, object_ptr &&file_, double main_frame_timestamp_); static const std::int32_t ID = 191994926; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class animatedEmoji final : public Object { public: object_ptr sticker_; array> color_replacements_; object_ptr sound_; animatedEmoji(); animatedEmoji(object_ptr &&sticker_, array> &&color_replacements_, object_ptr &&sound_); static const std::int32_t ID = 1130906050; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class animation final : public Object { public: int32 duration_; int32 width_; int32 height_; string file_name_; string mime_type_; bool has_stickers_; object_ptr minithumbnail_; object_ptr thumbnail_; object_ptr animation_; animation(); animation(int32 duration_, int32 width_, int32 height_, string const &file_name_, string const &mime_type_, bool has_stickers_, object_ptr &&minithumbnail_, object_ptr &&thumbnail_, object_ptr &&animation_); static const std::int32_t ID = -872359106; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class animations final : public Object { public: array> animations_; animations(); explicit animations(array> &&animations_); static const std::int32_t ID = 344216945; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class audio final : public Object { public: int32 duration_; string title_; string performer_; string file_name_; string mime_type_; object_ptr album_cover_minithumbnail_; object_ptr album_cover_thumbnail_; object_ptr audio_; audio(); audio(int32 duration_, string const &title_, string const &performer_, string const &file_name_, string const &mime_type_, object_ptr &&album_cover_minithumbnail_, object_ptr &&album_cover_thumbnail_, object_ptr &&audio_); static const std::int32_t ID = -1179334690; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authenticationCodeInfo final : public Object { public: string phone_number_; object_ptr type_; object_ptr next_type_; int32 timeout_; authenticationCodeInfo(); authenticationCodeInfo(string const &phone_number_, object_ptr &&type_, object_ptr &&next_type_, int32 timeout_); static const std::int32_t ID = -860345416; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class AuthenticationCodeType: public Object { public: }; class authenticationCodeTypeTelegramMessage final : public AuthenticationCodeType { public: int32 length_; authenticationCodeTypeTelegramMessage(); explicit authenticationCodeTypeTelegramMessage(int32 length_); static const std::int32_t ID = 2079628074; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authenticationCodeTypeSms final : public AuthenticationCodeType { public: int32 length_; authenticationCodeTypeSms(); explicit authenticationCodeTypeSms(int32 length_); static const std::int32_t ID = 962650760; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authenticationCodeTypeCall final : public AuthenticationCodeType { public: int32 length_; authenticationCodeTypeCall(); explicit authenticationCodeTypeCall(int32 length_); static const std::int32_t ID = 1636265063; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authenticationCodeTypeFlashCall final : public AuthenticationCodeType { public: string pattern_; authenticationCodeTypeFlashCall(); explicit authenticationCodeTypeFlashCall(string const &pattern_); static const std::int32_t ID = 1395882402; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class AuthorizationState: public Object { public: }; class authorizationStateWaitTdlibParameters final : public AuthorizationState { public: authorizationStateWaitTdlibParameters(); static const std::int32_t ID = 904720988; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitEncryptionKey final : public AuthorizationState { public: bool is_encrypted_; authorizationStateWaitEncryptionKey(); explicit authorizationStateWaitEncryptionKey(bool is_encrypted_); static const std::int32_t ID = 612103496; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitPhoneNumber final : public AuthorizationState { public: authorizationStateWaitPhoneNumber(); static const std::int32_t ID = 306402531; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitCode final : public AuthorizationState { public: object_ptr code_info_; authorizationStateWaitCode(); explicit authorizationStateWaitCode(object_ptr &&code_info_); static const std::int32_t ID = 52643073; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitOtherDeviceConfirmation final : public AuthorizationState { public: string link_; authorizationStateWaitOtherDeviceConfirmation(); explicit authorizationStateWaitOtherDeviceConfirmation(string const &link_); static const std::int32_t ID = 860166378; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitRegistration final : public AuthorizationState { public: object_ptr terms_of_service_; authorizationStateWaitRegistration(); explicit authorizationStateWaitRegistration(object_ptr &&terms_of_service_); static const std::int32_t ID = 550350511; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateWaitPassword final : public AuthorizationState { public: string password_hint_; bool has_recovery_email_address_; string recovery_email_address_pattern_; authorizationStateWaitPassword(); authorizationStateWaitPassword(string const &password_hint_, bool has_recovery_email_address_, string const &recovery_email_address_pattern_); static const std::int32_t ID = 187548796; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateReady final : public AuthorizationState { public: authorizationStateReady(); static const std::int32_t ID = -1834871737; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateLoggingOut final : public AuthorizationState { public: authorizationStateLoggingOut(); static const std::int32_t ID = 154449270; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateClosing final : public AuthorizationState { public: authorizationStateClosing(); static const std::int32_t ID = 445855311; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class authorizationStateClosed final : public AuthorizationState { public: authorizationStateClosed(); static const std::int32_t ID = 1526047584; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class autoDownloadSettings final : public Object { public: bool is_auto_download_enabled_; int32 max_photo_file_size_; int32 max_video_file_size_; int32 max_other_file_size_; int32 video_upload_bitrate_; bool preload_large_videos_; bool preload_next_audio_; bool use_less_data_for_calls_; autoDownloadSettings(); autoDownloadSettings(bool is_auto_download_enabled_, int32 max_photo_file_size_, int32 max_video_file_size_, int32 max_other_file_size_, int32 video_upload_bitrate_, bool preload_large_videos_, bool preload_next_audio_, bool use_less_data_for_calls_); static const std::int32_t ID = -2144418333; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class autoDownloadSettingsPresets final : public Object { public: object_ptr low_; object_ptr medium_; object_ptr high_; autoDownloadSettingsPresets(); autoDownloadSettingsPresets(object_ptr &&low_, object_ptr &&medium_, object_ptr &&high_); static const std::int32_t ID = -782099166; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class background final : public Object { public: int64 id_; bool is_default_; bool is_dark_; string name_; object_ptr document_; object_ptr type_; background(); background(int64 id_, bool is_default_, bool is_dark_, string const &name_, object_ptr &&document_, object_ptr &&type_); static const std::int32_t ID = -429971172; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class BackgroundFill: public Object { public: }; class backgroundFillSolid final : public BackgroundFill { public: int32 color_; backgroundFillSolid(); explicit backgroundFillSolid(int32 color_); static const std::int32_t ID = 1010678813; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class backgroundFillGradient final : public BackgroundFill { public: int32 top_color_; int32 bottom_color_; int32 rotation_angle_; backgroundFillGradient(); backgroundFillGradient(int32 top_color_, int32 bottom_color_, int32 rotation_angle_); static const std::int32_t ID = -1839206017; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class backgroundFillFreeformGradient final : public BackgroundFill { public: array colors_; backgroundFillFreeformGradient(); explicit backgroundFillFreeformGradient(array &&colors_); static const std::int32_t ID = -1145469255; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class BackgroundType: public Object { public: }; class backgroundTypeWallpaper final : public BackgroundType { public: bool is_blurred_; bool is_moving_; backgroundTypeWallpaper(); backgroundTypeWallpaper(bool is_blurred_, bool is_moving_); static const std::int32_t ID = 1972128891; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class backgroundTypePattern final : public BackgroundType { public: object_ptr fill_; int32 intensity_; bool is_inverted_; bool is_moving_; backgroundTypePattern(); backgroundTypePattern(object_ptr &&fill_, int32 intensity_, bool is_inverted_, bool is_moving_); static const std::int32_t ID = 1290213117; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class backgroundTypeFill final : public BackgroundType { public: object_ptr fill_; backgroundTypeFill(); explicit backgroundTypeFill(object_ptr &&fill_); static const std::int32_t ID = 993008684; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class backgrounds final : public Object { public: array> backgrounds_; backgrounds(); explicit backgrounds(array> &&backgrounds_); static const std::int32_t ID = 724728704; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class bankCardActionOpenUrl final : public Object { public: string text_; string url_; bankCardActionOpenUrl(); bankCardActionOpenUrl(string const &text_, string const &url_); static const std::int32_t ID = -196454267; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class bankCardInfo final : public Object { public: string title_; array> actions_; bankCardInfo(); bankCardInfo(string const &title_, array> &&actions_); static const std::int32_t ID = -2116647730; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class basicGroup final : public Object { public: int53 id_; int32 member_count_; object_ptr status_; bool is_active_; int53 upgraded_to_supergroup_id_; basicGroup(); basicGroup(int53 id_, int32 member_count_, object_ptr &&status_, bool is_active_, int53 upgraded_to_supergroup_id_); static const std::int32_t ID = -194767217; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class basicGroupFullInfo final : public Object { public: object_ptr photo_; string description_; int53 creator_user_id_; array> members_; object_ptr invite_link_; array> bot_commands_; basicGroupFullInfo(); basicGroupFullInfo(object_ptr &&photo_, string const &description_, int53 creator_user_id_, array> &&members_, object_ptr &&invite_link_, array> &&bot_commands_); static const std::int32_t ID = 2022233397; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommand final : public Object { public: string command_; string description_; botCommand(); botCommand(string const &command_, string const &description_); static const std::int32_t ID = -1032140601; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class BotCommandScope: public Object { public: }; class botCommandScopeDefault final : public BotCommandScope { public: botCommandScopeDefault(); static const std::int32_t ID = 795652779; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeAllPrivateChats final : public BotCommandScope { public: botCommandScopeAllPrivateChats(); static const std::int32_t ID = -344889543; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeAllGroupChats final : public BotCommandScope { public: botCommandScopeAllGroupChats(); static const std::int32_t ID = -981088162; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeAllChatAdministrators final : public BotCommandScope { public: botCommandScopeAllChatAdministrators(); static const std::int32_t ID = 1998329169; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeChat final : public BotCommandScope { public: int53 chat_id_; botCommandScopeChat(); explicit botCommandScopeChat(int53 chat_id_); static const std::int32_t ID = -430234971; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeChatAdministrators final : public BotCommandScope { public: int53 chat_id_; botCommandScopeChatAdministrators(); explicit botCommandScopeChatAdministrators(int53 chat_id_); static const std::int32_t ID = 1119682126; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommandScopeChatMember final : public BotCommandScope { public: int53 chat_id_; int53 user_id_; botCommandScopeChatMember(); botCommandScopeChatMember(int53 chat_id_, int53 user_id_); static const std::int32_t ID = -211380494; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class botCommands final : public Object { public: int53 bot_user_id_; array> commands_; botCommands(); botCommands(int53 bot_user_id_, array> &&commands_); static const std::int32_t ID = 1741364468; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class call final : public Object { public: int32 id_; int53 user_id_; bool is_outgoing_; bool is_video_; object_ptr state_; call(); call(int32 id_, int53 user_id_, bool is_outgoing_, bool is_video_, object_ptr &&state_); static const std::int32_t ID = 920360804; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CallDiscardReason: public Object { public: }; class callDiscardReasonEmpty final : public CallDiscardReason { public: callDiscardReasonEmpty(); static const std::int32_t ID = -1258917949; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callDiscardReasonMissed final : public CallDiscardReason { public: callDiscardReasonMissed(); static const std::int32_t ID = 1680358012; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callDiscardReasonDeclined final : public CallDiscardReason { public: callDiscardReasonDeclined(); static const std::int32_t ID = -1729926094; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callDiscardReasonDisconnected final : public CallDiscardReason { public: callDiscardReasonDisconnected(); static const std::int32_t ID = -1342872670; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callDiscardReasonHungUp final : public CallDiscardReason { public: callDiscardReasonHungUp(); static const std::int32_t ID = 438216166; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callId final : public Object { public: int32 id_; callId(); explicit callId(int32 id_); static const std::int32_t ID = 65717769; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CallProblem: public Object { public: }; class callProblemEcho final : public CallProblem { public: callProblemEcho(); static const std::int32_t ID = 801116548; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemNoise final : public CallProblem { public: callProblemNoise(); static const std::int32_t ID = 1053065359; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemInterruptions final : public CallProblem { public: callProblemInterruptions(); static const std::int32_t ID = 1119493218; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemDistortedSpeech final : public CallProblem { public: callProblemDistortedSpeech(); static const std::int32_t ID = 379960581; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemSilentLocal final : public CallProblem { public: callProblemSilentLocal(); static const std::int32_t ID = 253652790; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemSilentRemote final : public CallProblem { public: callProblemSilentRemote(); static const std::int32_t ID = 573634714; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemDropped final : public CallProblem { public: callProblemDropped(); static const std::int32_t ID = -1207311487; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemDistortedVideo final : public CallProblem { public: callProblemDistortedVideo(); static const std::int32_t ID = 385245706; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProblemPixelatedVideo final : public CallProblem { public: callProblemPixelatedVideo(); static const std::int32_t ID = 2115315411; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callProtocol final : public Object { public: bool udp_p2p_; bool udp_reflector_; int32 min_layer_; int32 max_layer_; array library_versions_; callProtocol(); callProtocol(bool udp_p2p_, bool udp_reflector_, int32 min_layer_, int32 max_layer_, array &&library_versions_); static const std::int32_t ID = -1075562897; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callServer final : public Object { public: int64 id_; string ip_address_; string ipv6_address_; int32 port_; object_ptr type_; callServer(); callServer(int64 id_, string const &ip_address_, string const &ipv6_address_, int32 port_, object_ptr &&type_); static const std::int32_t ID = 1865932695; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CallServerType: public Object { public: }; class callServerTypeTelegramReflector final : public CallServerType { public: bytes peer_tag_; callServerTypeTelegramReflector(); explicit callServerTypeTelegramReflector(bytes const &peer_tag_); static const std::int32_t ID = -1507850700; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callServerTypeWebrtc final : public CallServerType { public: string username_; string password_; bool supports_turn_; bool supports_stun_; callServerTypeWebrtc(); callServerTypeWebrtc(string const &username_, string const &password_, bool supports_turn_, bool supports_stun_); static const std::int32_t ID = 1250622821; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CallState: public Object { public: }; class callStatePending final : public CallState { public: bool is_created_; bool is_received_; callStatePending(); callStatePending(bool is_created_, bool is_received_); static const std::int32_t ID = 1073048620; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callStateExchangingKeys final : public CallState { public: callStateExchangingKeys(); static const std::int32_t ID = -1848149403; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callStateReady final : public CallState { public: object_ptr protocol_; array> servers_; string config_; bytes encryption_key_; array emojis_; bool allow_p2p_; callStateReady(); callStateReady(object_ptr &&protocol_, array> &&servers_, string const &config_, bytes const &encryption_key_, array &&emojis_, bool allow_p2p_); static const std::int32_t ID = -2000107571; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callStateHangingUp final : public CallState { public: callStateHangingUp(); static const std::int32_t ID = -2133790038; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callStateDiscarded final : public CallState { public: object_ptr reason_; bool need_rating_; bool need_debug_information_; callStateDiscarded(); callStateDiscarded(object_ptr &&reason_, bool need_rating_, bool need_debug_information_); static const std::int32_t ID = -190853167; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callStateError final : public CallState { public: object_ptr error_; callStateError(); explicit callStateError(object_ptr &&error_); static const std::int32_t ID = -975215467; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callbackQueryAnswer final : public Object { public: string text_; bool show_alert_; string url_; callbackQueryAnswer(); callbackQueryAnswer(string const &text_, bool show_alert_, string const &url_); static const std::int32_t ID = 360867933; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CallbackQueryPayload: public Object { public: }; class callbackQueryPayloadData final : public CallbackQueryPayload { public: bytes data_; callbackQueryPayloadData(); explicit callbackQueryPayloadData(bytes const &data_); static const std::int32_t ID = -1977729946; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callbackQueryPayloadDataWithPassword final : public CallbackQueryPayload { public: string password_; bytes data_; callbackQueryPayloadDataWithPassword(); callbackQueryPayloadDataWithPassword(string const &password_, bytes const &data_); static const std::int32_t ID = 1340266738; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class callbackQueryPayloadGame final : public CallbackQueryPayload { public: string game_short_name_; callbackQueryPayloadGame(); explicit callbackQueryPayloadGame(string const &game_short_name_); static const std::int32_t ID = 1303571512; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CanTransferOwnershipResult: public Object { public: }; class canTransferOwnershipResultOk final : public CanTransferOwnershipResult { public: canTransferOwnershipResultOk(); static const std::int32_t ID = -89881021; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class canTransferOwnershipResultPasswordNeeded final : public CanTransferOwnershipResult { public: canTransferOwnershipResultPasswordNeeded(); static const std::int32_t ID = 1548372703; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class canTransferOwnershipResultPasswordTooFresh final : public CanTransferOwnershipResult { public: int32 retry_after_; canTransferOwnershipResultPasswordTooFresh(); explicit canTransferOwnershipResultPasswordTooFresh(int32 retry_after_); static const std::int32_t ID = 811440913; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class canTransferOwnershipResultSessionTooFresh final : public CanTransferOwnershipResult { public: int32 retry_after_; canTransferOwnershipResultSessionTooFresh(); explicit canTransferOwnershipResultSessionTooFresh(int32 retry_after_); static const std::int32_t ID = 984664289; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chat final : public Object { public: int53 id_; object_ptr type_; string title_; object_ptr photo_; object_ptr permissions_; object_ptr last_message_; array> positions_; bool is_marked_as_unread_; bool is_blocked_; bool has_scheduled_messages_; bool can_be_deleted_only_for_self_; bool can_be_deleted_for_all_users_; bool can_be_reported_; bool default_disable_notification_; int32 unread_count_; int53 last_read_inbox_message_id_; int53 last_read_outbox_message_id_; int32 unread_mention_count_; object_ptr notification_settings_; int32 message_ttl_setting_; string theme_name_; object_ptr action_bar_; object_ptr video_chat_; object_ptr pending_join_requests_; int53 reply_markup_message_id_; object_ptr draft_message_; string client_data_; chat(); chat(int53 id_, object_ptr &&type_, string const &title_, object_ptr &&photo_, object_ptr &&permissions_, object_ptr &&last_message_, array> &&positions_, bool is_marked_as_unread_, bool is_blocked_, bool has_scheduled_messages_, bool can_be_deleted_only_for_self_, bool can_be_deleted_for_all_users_, bool can_be_reported_, bool default_disable_notification_, int32 unread_count_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int32 unread_mention_count_, object_ptr &¬ification_settings_, int32 message_ttl_setting_, string const &theme_name_, object_ptr &&action_bar_, object_ptr &&video_chat_, object_ptr &&pending_join_requests_, int53 reply_markup_message_id_, object_ptr &&draft_message_, string const &client_data_); static const std::int32_t ID = -655973775; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatAction: public Object { public: }; class chatActionTyping final : public ChatAction { public: chatActionTyping(); static const std::int32_t ID = 380122167; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionRecordingVideo final : public ChatAction { public: chatActionRecordingVideo(); static const std::int32_t ID = 216553362; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionUploadingVideo final : public ChatAction { public: int32 progress_; chatActionUploadingVideo(); explicit chatActionUploadingVideo(int32 progress_); static const std::int32_t ID = 1234185270; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionRecordingVoiceNote final : public ChatAction { public: chatActionRecordingVoiceNote(); static const std::int32_t ID = -808850058; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionUploadingVoiceNote final : public ChatAction { public: int32 progress_; chatActionUploadingVoiceNote(); explicit chatActionUploadingVoiceNote(int32 progress_); static const std::int32_t ID = -613643666; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionUploadingPhoto final : public ChatAction { public: int32 progress_; chatActionUploadingPhoto(); explicit chatActionUploadingPhoto(int32 progress_); static const std::int32_t ID = 654240583; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionUploadingDocument final : public ChatAction { public: int32 progress_; chatActionUploadingDocument(); explicit chatActionUploadingDocument(int32 progress_); static const std::int32_t ID = 167884362; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionChoosingSticker final : public ChatAction { public: chatActionChoosingSticker(); static const std::int32_t ID = 372753697; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionChoosingLocation final : public ChatAction { public: chatActionChoosingLocation(); static const std::int32_t ID = -2017893596; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionChoosingContact final : public ChatAction { public: chatActionChoosingContact(); static const std::int32_t ID = -1222507496; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionStartPlayingGame final : public ChatAction { public: chatActionStartPlayingGame(); static const std::int32_t ID = -865884164; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionRecordingVideoNote final : public ChatAction { public: chatActionRecordingVideoNote(); static const std::int32_t ID = 16523393; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionUploadingVideoNote final : public ChatAction { public: int32 progress_; chatActionUploadingVideoNote(); explicit chatActionUploadingVideoNote(int32 progress_); static const std::int32_t ID = 1172364918; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionWatchingAnimations final : public ChatAction { public: string emoji_; chatActionWatchingAnimations(); explicit chatActionWatchingAnimations(string const &emoji_); static const std::int32_t ID = 2052990641; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionCancel final : public ChatAction { public: chatActionCancel(); static const std::int32_t ID = 1160523958; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatActionBar: public Object { public: }; class chatActionBarReportSpam final : public ChatActionBar { public: bool can_unarchive_; chatActionBarReportSpam(); explicit chatActionBarReportSpam(bool can_unarchive_); static const std::int32_t ID = -1312758246; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionBarReportUnrelatedLocation final : public ChatActionBar { public: chatActionBarReportUnrelatedLocation(); static const std::int32_t ID = 758175489; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionBarInviteMembers final : public ChatActionBar { public: chatActionBarInviteMembers(); static const std::int32_t ID = 1985313904; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionBarReportAddBlock final : public ChatActionBar { public: bool can_unarchive_; int32 distance_; chatActionBarReportAddBlock(); chatActionBarReportAddBlock(bool can_unarchive_, int32 distance_); static const std::int32_t ID = -914150419; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionBarAddContact final : public ChatActionBar { public: chatActionBarAddContact(); static const std::int32_t ID = -733325295; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatActionBarSharePhoneNumber final : public ChatActionBar { public: chatActionBarSharePhoneNumber(); static const std::int32_t ID = 35188697; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatAdministrator final : public Object { public: int53 user_id_; string custom_title_; bool is_owner_; chatAdministrator(); chatAdministrator(int53 user_id_, string const &custom_title_, bool is_owner_); static const std::int32_t ID = 1920449836; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatAdministrators final : public Object { public: array> administrators_; chatAdministrators(); explicit chatAdministrators(array> &&administrators_); static const std::int32_t ID = -2126186435; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEvent final : public Object { public: int64 id_; int32 date_; int53 user_id_; object_ptr action_; chatEvent(); chatEvent(int64 id_, int32 date_, int53 user_id_, object_ptr &&action_); static const std::int32_t ID = -99101703; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatEventAction: public Object { public: }; class chatEventMessageEdited final : public ChatEventAction { public: object_ptr old_message_; object_ptr new_message_; chatEventMessageEdited(); chatEventMessageEdited(object_ptr &&old_message_, object_ptr &&new_message_); static const std::int32_t ID = -430967304; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMessageDeleted final : public ChatEventAction { public: object_ptr message_; chatEventMessageDeleted(); explicit chatEventMessageDeleted(object_ptr &&message_); static const std::int32_t ID = -892974601; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventPollStopped final : public ChatEventAction { public: object_ptr message_; chatEventPollStopped(); explicit chatEventPollStopped(object_ptr &&message_); static const std::int32_t ID = 2009893861; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMessagePinned final : public ChatEventAction { public: object_ptr message_; chatEventMessagePinned(); explicit chatEventMessagePinned(object_ptr &&message_); static const std::int32_t ID = 438742298; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMessageUnpinned final : public ChatEventAction { public: object_ptr message_; chatEventMessageUnpinned(); explicit chatEventMessageUnpinned(object_ptr &&message_); static const std::int32_t ID = -376161513; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberJoined final : public ChatEventAction { public: chatEventMemberJoined(); static const std::int32_t ID = -235468508; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberJoinedByInviteLink final : public ChatEventAction { public: object_ptr invite_link_; chatEventMemberJoinedByInviteLink(); explicit chatEventMemberJoinedByInviteLink(object_ptr &&invite_link_); static const std::int32_t ID = -253307459; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberJoinedByRequest final : public ChatEventAction { public: int53 approver_user_id_; object_ptr invite_link_; chatEventMemberJoinedByRequest(); chatEventMemberJoinedByRequest(int53 approver_user_id_, object_ptr &&invite_link_); static const std::int32_t ID = -1647804865; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberLeft final : public ChatEventAction { public: chatEventMemberLeft(); static const std::int32_t ID = -948420593; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberInvited final : public ChatEventAction { public: int53 user_id_; object_ptr status_; chatEventMemberInvited(); chatEventMemberInvited(int53 user_id_, object_ptr &&status_); static const std::int32_t ID = 953663433; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberPromoted final : public ChatEventAction { public: int53 user_id_; object_ptr old_status_; object_ptr new_status_; chatEventMemberPromoted(); chatEventMemberPromoted(int53 user_id_, object_ptr &&old_status_, object_ptr &&new_status_); static const std::int32_t ID = 525297761; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMemberRestricted final : public ChatEventAction { public: object_ptr member_id_; object_ptr old_status_; object_ptr new_status_; chatEventMemberRestricted(); chatEventMemberRestricted(object_ptr &&member_id_, object_ptr &&old_status_, object_ptr &&new_status_); static const std::int32_t ID = 1603608069; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventTitleChanged final : public ChatEventAction { public: string old_title_; string new_title_; chatEventTitleChanged(); chatEventTitleChanged(string const &old_title_, string const &new_title_); static const std::int32_t ID = 1134103250; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventPermissionsChanged final : public ChatEventAction { public: object_ptr old_permissions_; object_ptr new_permissions_; chatEventPermissionsChanged(); chatEventPermissionsChanged(object_ptr &&old_permissions_, object_ptr &&new_permissions_); static const std::int32_t ID = -1311557720; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventDescriptionChanged final : public ChatEventAction { public: string old_description_; string new_description_; chatEventDescriptionChanged(); chatEventDescriptionChanged(string const &old_description_, string const &new_description_); static const std::int32_t ID = 39112478; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventUsernameChanged final : public ChatEventAction { public: string old_username_; string new_username_; chatEventUsernameChanged(); chatEventUsernameChanged(string const &old_username_, string const &new_username_); static const std::int32_t ID = 1728558443; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventPhotoChanged final : public ChatEventAction { public: object_ptr old_photo_; object_ptr new_photo_; chatEventPhotoChanged(); chatEventPhotoChanged(object_ptr &&old_photo_, object_ptr &&new_photo_); static const std::int32_t ID = -811572541; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventInvitesToggled final : public ChatEventAction { public: bool can_invite_users_; chatEventInvitesToggled(); explicit chatEventInvitesToggled(bool can_invite_users_); static const std::int32_t ID = -62548373; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventLinkedChatChanged final : public ChatEventAction { public: int53 old_linked_chat_id_; int53 new_linked_chat_id_; chatEventLinkedChatChanged(); chatEventLinkedChatChanged(int53 old_linked_chat_id_, int53 new_linked_chat_id_); static const std::int32_t ID = 1797419439; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventSlowModeDelayChanged final : public ChatEventAction { public: int32 old_slow_mode_delay_; int32 new_slow_mode_delay_; chatEventSlowModeDelayChanged(); chatEventSlowModeDelayChanged(int32 old_slow_mode_delay_, int32 new_slow_mode_delay_); static const std::int32_t ID = -1653195765; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventMessageTtlSettingChanged final : public ChatEventAction { public: int32 old_message_ttl_setting_; int32 new_message_ttl_setting_; chatEventMessageTtlSettingChanged(); chatEventMessageTtlSettingChanged(int32 old_message_ttl_setting_, int32 new_message_ttl_setting_); static const std::int32_t ID = -1340179286; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventSignMessagesToggled final : public ChatEventAction { public: bool sign_messages_; chatEventSignMessagesToggled(); explicit chatEventSignMessagesToggled(bool sign_messages_); static const std::int32_t ID = -1313265634; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventStickerSetChanged final : public ChatEventAction { public: int64 old_sticker_set_id_; int64 new_sticker_set_id_; chatEventStickerSetChanged(); chatEventStickerSetChanged(int64 old_sticker_set_id_, int64 new_sticker_set_id_); static const std::int32_t ID = -1243130481; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventLocationChanged final : public ChatEventAction { public: object_ptr old_location_; object_ptr new_location_; chatEventLocationChanged(); chatEventLocationChanged(object_ptr &&old_location_, object_ptr &&new_location_); static const std::int32_t ID = -405930674; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventIsAllHistoryAvailableToggled final : public ChatEventAction { public: bool is_all_history_available_; chatEventIsAllHistoryAvailableToggled(); explicit chatEventIsAllHistoryAvailableToggled(bool is_all_history_available_); static const std::int32_t ID = -1599063019; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventInviteLinkEdited final : public ChatEventAction { public: object_ptr old_invite_link_; object_ptr new_invite_link_; chatEventInviteLinkEdited(); chatEventInviteLinkEdited(object_ptr &&old_invite_link_, object_ptr &&new_invite_link_); static const std::int32_t ID = -460190366; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventInviteLinkRevoked final : public ChatEventAction { public: object_ptr invite_link_; chatEventInviteLinkRevoked(); explicit chatEventInviteLinkRevoked(object_ptr &&invite_link_); static const std::int32_t ID = -1579417629; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventInviteLinkDeleted final : public ChatEventAction { public: object_ptr invite_link_; chatEventInviteLinkDeleted(); explicit chatEventInviteLinkDeleted(object_ptr &&invite_link_); static const std::int32_t ID = -1394974361; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventVideoChatCreated final : public ChatEventAction { public: int32 group_call_id_; chatEventVideoChatCreated(); explicit chatEventVideoChatCreated(int32 group_call_id_); static const std::int32_t ID = 1822853755; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventVideoChatDiscarded final : public ChatEventAction { public: int32 group_call_id_; chatEventVideoChatDiscarded(); explicit chatEventVideoChatDiscarded(int32 group_call_id_); static const std::int32_t ID = -774616761; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventVideoChatParticipantIsMutedToggled final : public ChatEventAction { public: object_ptr participant_id_; bool is_muted_; chatEventVideoChatParticipantIsMutedToggled(); chatEventVideoChatParticipantIsMutedToggled(object_ptr &&participant_id_, bool is_muted_); static const std::int32_t ID = 521165047; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventVideoChatParticipantVolumeLevelChanged final : public ChatEventAction { public: object_ptr participant_id_; int32 volume_level_; chatEventVideoChatParticipantVolumeLevelChanged(); chatEventVideoChatParticipantVolumeLevelChanged(object_ptr &&participant_id_, int32 volume_level_); static const std::int32_t ID = 1131385534; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventVideoChatMuteNewParticipantsToggled final : public ChatEventAction { public: bool mute_new_participants_; chatEventVideoChatMuteNewParticipantsToggled(); explicit chatEventVideoChatMuteNewParticipantsToggled(bool mute_new_participants_); static const std::int32_t ID = -126547970; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEventLogFilters final : public Object { public: bool message_edits_; bool message_deletions_; bool message_pins_; bool member_joins_; bool member_leaves_; bool member_invites_; bool member_promotions_; bool member_restrictions_; bool info_changes_; bool setting_changes_; bool invite_link_changes_; bool video_chat_changes_; chatEventLogFilters(); chatEventLogFilters(bool message_edits_, bool message_deletions_, bool message_pins_, bool member_joins_, bool member_leaves_, bool member_invites_, bool member_promotions_, bool member_restrictions_, bool info_changes_, bool setting_changes_, bool invite_link_changes_, bool video_chat_changes_); static const std::int32_t ID = 1251197299; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatEvents final : public Object { public: array> events_; chatEvents(); explicit chatEvents(array> &&events_); static const std::int32_t ID = -585329664; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatFilter final : public Object { public: string title_; string icon_name_; array pinned_chat_ids_; array included_chat_ids_; array excluded_chat_ids_; bool exclude_muted_; bool exclude_read_; bool exclude_archived_; bool include_contacts_; bool include_non_contacts_; bool include_bots_; bool include_groups_; bool include_channels_; chatFilter(); chatFilter(string const &title_, string const &icon_name_, array &&pinned_chat_ids_, array &&included_chat_ids_, array &&excluded_chat_ids_, bool exclude_muted_, bool exclude_read_, bool exclude_archived_, bool include_contacts_, bool include_non_contacts_, bool include_bots_, bool include_groups_, bool include_channels_); static const std::int32_t ID = -664815123; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatFilterInfo final : public Object { public: int32 id_; string title_; string icon_name_; chatFilterInfo(); chatFilterInfo(int32 id_, string const &title_, string const &icon_name_); static const std::int32_t ID = -943721165; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLink final : public Object { public: string invite_link_; string name_; int53 creator_user_id_; int32 date_; int32 edit_date_; int32 expire_date_; int32 member_limit_; int32 member_count_; int32 pending_join_request_count_; bool creates_join_request_; bool is_primary_; bool is_revoked_; chatInviteLink(); chatInviteLink(string const &invite_link_, string const &name_, int53 creator_user_id_, int32 date_, int32 edit_date_, int32 expire_date_, int32 member_limit_, int32 member_count_, int32 pending_join_request_count_, bool creates_join_request_, bool is_primary_, bool is_revoked_); static const std::int32_t ID = 27751711; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinkCount final : public Object { public: int53 user_id_; int32 invite_link_count_; int32 revoked_invite_link_count_; chatInviteLinkCount(); chatInviteLinkCount(int53 user_id_, int32 invite_link_count_, int32 revoked_invite_link_count_); static const std::int32_t ID = -1021999210; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinkCounts final : public Object { public: array> invite_link_counts_; chatInviteLinkCounts(); explicit chatInviteLinkCounts(array> &&invite_link_counts_); static const std::int32_t ID = 920326637; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinkInfo final : public Object { public: int53 chat_id_; int32 accessible_for_; object_ptr type_; string title_; object_ptr photo_; string description_; int32 member_count_; array member_user_ids_; bool creates_join_request_; bool is_public_; chatInviteLinkInfo(); chatInviteLinkInfo(int53 chat_id_, int32 accessible_for_, object_ptr &&type_, string const &title_, object_ptr &&photo_, string const &description_, int32 member_count_, array &&member_user_ids_, bool creates_join_request_, bool is_public_); static const std::int32_t ID = 546234276; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinkMember final : public Object { public: int53 user_id_; int32 joined_chat_date_; int53 approver_user_id_; chatInviteLinkMember(); chatInviteLinkMember(int53 user_id_, int32 joined_chat_date_, int53 approver_user_id_); static const std::int32_t ID = -1409060582; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinkMembers final : public Object { public: int32 total_count_; array> members_; chatInviteLinkMembers(); chatInviteLinkMembers(int32 total_count_, array> &&members_); static const std::int32_t ID = 315635051; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatInviteLinks final : public Object { public: int32 total_count_; array> invite_links_; chatInviteLinks(); chatInviteLinks(int32 total_count_, array> &&invite_links_); static const std::int32_t ID = 112891427; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatJoinRequest final : public Object { public: int53 user_id_; int32 date_; string bio_; chatJoinRequest(); chatJoinRequest(int53 user_id_, int32 date_, string const &bio_); static const std::int32_t ID = 59341416; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatJoinRequests final : public Object { public: int32 total_count_; array> requests_; chatJoinRequests(); chatJoinRequests(int32 total_count_, array> &&requests_); static const std::int32_t ID = 1291680519; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatJoinRequestsInfo final : public Object { public: int32 total_count_; array user_ids_; chatJoinRequestsInfo(); chatJoinRequestsInfo(int32 total_count_, array &&user_ids_); static const std::int32_t ID = 888534463; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatList: public Object { public: }; class chatListMain final : public ChatList { public: chatListMain(); static const std::int32_t ID = -400991316; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatListArchive final : public ChatList { public: chatListArchive(); static const std::int32_t ID = 362770115; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatListFilter final : public ChatList { public: int32 chat_filter_id_; chatListFilter(); explicit chatListFilter(int32 chat_filter_id_); static const std::int32_t ID = -2022707655; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatLists final : public Object { public: array> chat_lists_; chatLists(); explicit chatLists(array> &&chat_lists_); static const std::int32_t ID = -258292771; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatLocation final : public Object { public: object_ptr location_; string address_; chatLocation(); chatLocation(object_ptr &&location_, string const &address_); static const std::int32_t ID = -1566863583; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMember final : public Object { public: object_ptr member_id_; int53 inviter_user_id_; int32 joined_chat_date_; object_ptr status_; chatMember(); chatMember(object_ptr &&member_id_, int53 inviter_user_id_, int32 joined_chat_date_, object_ptr &&status_); static const std::int32_t ID = 1829953909; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatMemberStatus: public Object { public: }; class chatMemberStatusCreator final : public ChatMemberStatus { public: string custom_title_; bool is_anonymous_; bool is_member_; chatMemberStatusCreator(); chatMemberStatusCreator(string const &custom_title_, bool is_anonymous_, bool is_member_); static const std::int32_t ID = -160019714; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMemberStatusAdministrator final : public ChatMemberStatus { public: string custom_title_; bool can_be_edited_; bool can_manage_chat_; bool can_change_info_; bool can_post_messages_; bool can_edit_messages_; bool can_delete_messages_; bool can_invite_users_; bool can_restrict_members_; bool can_pin_messages_; bool can_promote_members_; bool can_manage_video_chats_; bool is_anonymous_; chatMemberStatusAdministrator(); chatMemberStatusAdministrator(string const &custom_title_, bool can_be_edited_, bool can_manage_chat_, bool can_change_info_, bool can_post_messages_, bool can_edit_messages_, bool can_delete_messages_, bool can_invite_users_, bool can_restrict_members_, bool can_pin_messages_, bool can_promote_members_, bool can_manage_video_chats_, bool is_anonymous_); static const std::int32_t ID = 82243562; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMemberStatusMember final : public ChatMemberStatus { public: chatMemberStatusMember(); static const std::int32_t ID = 844723285; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMemberStatusRestricted final : public ChatMemberStatus { public: bool is_member_; int32 restricted_until_date_; object_ptr permissions_; chatMemberStatusRestricted(); chatMemberStatusRestricted(bool is_member_, int32 restricted_until_date_, object_ptr &&permissions_); static const std::int32_t ID = 1661432998; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMemberStatusLeft final : public ChatMemberStatus { public: chatMemberStatusLeft(); static const std::int32_t ID = -5815259; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMemberStatusBanned final : public ChatMemberStatus { public: int32 banned_until_date_; chatMemberStatusBanned(); explicit chatMemberStatusBanned(int32 banned_until_date_); static const std::int32_t ID = -1653518666; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembers final : public Object { public: int32 total_count_; array> members_; chatMembers(); chatMembers(int32 total_count_, array> &&members_); static const std::int32_t ID = -497558622; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatMembersFilter: public Object { public: }; class chatMembersFilterContacts final : public ChatMembersFilter { public: chatMembersFilterContacts(); static const std::int32_t ID = 1774485671; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterAdministrators final : public ChatMembersFilter { public: chatMembersFilterAdministrators(); static const std::int32_t ID = -1266893796; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterMembers final : public ChatMembersFilter { public: chatMembersFilterMembers(); static const std::int32_t ID = 670504342; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterMention final : public ChatMembersFilter { public: int53 message_thread_id_; chatMembersFilterMention(); explicit chatMembersFilterMention(int53 message_thread_id_); static const std::int32_t ID = 856419831; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterRestricted final : public ChatMembersFilter { public: chatMembersFilterRestricted(); static const std::int32_t ID = 1256282813; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterBanned final : public ChatMembersFilter { public: chatMembersFilterBanned(); static const std::int32_t ID = -1863102648; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatMembersFilterBots final : public ChatMembersFilter { public: chatMembersFilterBots(); static const std::int32_t ID = -1422567288; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatNearby final : public Object { public: int53 chat_id_; int32 distance_; chatNearby(); chatNearby(int53 chat_id_, int32 distance_); static const std::int32_t ID = 48120405; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatNotificationSettings final : public Object { public: bool use_default_mute_for_; int32 mute_for_; bool use_default_sound_; string sound_; bool use_default_show_preview_; bool show_preview_; bool use_default_disable_pinned_message_notifications_; bool disable_pinned_message_notifications_; bool use_default_disable_mention_notifications_; bool disable_mention_notifications_; chatNotificationSettings(); chatNotificationSettings(bool use_default_mute_for_, int32 mute_for_, bool use_default_sound_, string const &sound_, bool use_default_show_preview_, bool show_preview_, bool use_default_disable_pinned_message_notifications_, bool disable_pinned_message_notifications_, bool use_default_disable_mention_notifications_, bool disable_mention_notifications_); static const std::int32_t ID = 1503183218; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatPermissions final : public Object { public: bool can_send_messages_; bool can_send_media_messages_; bool can_send_polls_; bool can_send_other_messages_; bool can_add_web_page_previews_; bool can_change_info_; bool can_invite_users_; bool can_pin_messages_; chatPermissions(); chatPermissions(bool can_send_messages_, bool can_send_media_messages_, bool can_send_polls_, bool can_send_other_messages_, bool can_add_web_page_previews_, bool can_change_info_, bool can_invite_users_, bool can_pin_messages_); static const std::int32_t ID = 1584650463; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatPhoto final : public Object { public: int64 id_; int32 added_date_; object_ptr minithumbnail_; array> sizes_; object_ptr animation_; chatPhoto(); chatPhoto(int64 id_, int32 added_date_, object_ptr &&minithumbnail_, array> &&sizes_, object_ptr &&animation_); static const std::int32_t ID = -113003577; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatPhotoInfo final : public Object { public: object_ptr small_; object_ptr big_; object_ptr minithumbnail_; bool has_animation_; chatPhotoInfo(); chatPhotoInfo(object_ptr &&small_, object_ptr &&big_, object_ptr &&minithumbnail_, bool has_animation_); static const std::int32_t ID = 167058358; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatPhotos final : public Object { public: int32 total_count_; array> photos_; chatPhotos(); chatPhotos(int32 total_count_, array> &&photos_); static const std::int32_t ID = -1510699180; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatPosition final : public Object { public: object_ptr list_; int64 order_; bool is_pinned_; object_ptr source_; chatPosition(); chatPosition(object_ptr &&list_, int64 order_, bool is_pinned_, object_ptr &&source_); static const std::int32_t ID = -622557355; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatReportReason: public Object { public: }; class chatReportReasonSpam final : public ChatReportReason { public: chatReportReasonSpam(); static const std::int32_t ID = -510848863; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonViolence final : public ChatReportReason { public: chatReportReasonViolence(); static const std::int32_t ID = -1330235395; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonPornography final : public ChatReportReason { public: chatReportReasonPornography(); static const std::int32_t ID = 722614385; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonChildAbuse final : public ChatReportReason { public: chatReportReasonChildAbuse(); static const std::int32_t ID = -1070686531; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonCopyright final : public ChatReportReason { public: chatReportReasonCopyright(); static const std::int32_t ID = 986898080; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonUnrelatedLocation final : public ChatReportReason { public: chatReportReasonUnrelatedLocation(); static const std::int32_t ID = 2632403; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonFake final : public ChatReportReason { public: chatReportReasonFake(); static const std::int32_t ID = -1713230446; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatReportReasonCustom final : public ChatReportReason { public: chatReportReasonCustom(); static const std::int32_t ID = 1288925974; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatSource: public Object { public: }; class chatSourceMtprotoProxy final : public ChatSource { public: chatSourceMtprotoProxy(); static const std::int32_t ID = 394074115; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatSourcePublicServiceAnnouncement final : public ChatSource { public: string type_; string text_; chatSourcePublicServiceAnnouncement(); chatSourcePublicServiceAnnouncement(string const &type_, string const &text_); static const std::int32_t ID = -328571244; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatStatistics: public Object { public: }; class chatStatisticsSupergroup final : public ChatStatistics { public: object_ptr period_; object_ptr member_count_; object_ptr message_count_; object_ptr viewer_count_; object_ptr sender_count_; object_ptr member_count_graph_; object_ptr join_graph_; object_ptr join_by_source_graph_; object_ptr language_graph_; object_ptr message_content_graph_; object_ptr action_graph_; object_ptr day_graph_; object_ptr week_graph_; array> top_senders_; array> top_administrators_; array> top_inviters_; chatStatisticsSupergroup(); chatStatisticsSupergroup(object_ptr &&period_, object_ptr &&member_count_, object_ptr &&message_count_, object_ptr &&viewer_count_, object_ptr &&sender_count_, object_ptr &&member_count_graph_, object_ptr &&join_graph_, object_ptr &&join_by_source_graph_, object_ptr &&language_graph_, object_ptr &&message_content_graph_, object_ptr &&action_graph_, object_ptr &&day_graph_, object_ptr &&week_graph_, array> &&top_senders_, array> &&top_administrators_, array> &&top_inviters_); static const std::int32_t ID = -17244633; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatStatisticsChannel final : public ChatStatistics { public: object_ptr period_; object_ptr member_count_; object_ptr mean_view_count_; object_ptr mean_share_count_; double enabled_notifications_percentage_; object_ptr member_count_graph_; object_ptr join_graph_; object_ptr mute_graph_; object_ptr view_count_by_hour_graph_; object_ptr view_count_by_source_graph_; object_ptr join_by_source_graph_; object_ptr language_graph_; object_ptr message_interaction_graph_; object_ptr instant_view_interaction_graph_; array> recent_message_interactions_; chatStatisticsChannel(); chatStatisticsChannel(object_ptr &&period_, object_ptr &&member_count_, object_ptr &&mean_view_count_, object_ptr &&mean_share_count_, double enabled_notifications_percentage_, object_ptr &&member_count_graph_, object_ptr &&join_graph_, object_ptr &&mute_graph_, object_ptr &&view_count_by_hour_graph_, object_ptr &&view_count_by_source_graph_, object_ptr &&join_by_source_graph_, object_ptr &&language_graph_, object_ptr &&message_interaction_graph_, object_ptr &&instant_view_interaction_graph_, array> &&recent_message_interactions_); static const std::int32_t ID = -825434183; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatStatisticsAdministratorActionsInfo final : public Object { public: int53 user_id_; int32 deleted_message_count_; int32 banned_user_count_; int32 restricted_user_count_; chatStatisticsAdministratorActionsInfo(); chatStatisticsAdministratorActionsInfo(int53 user_id_, int32 deleted_message_count_, int32 banned_user_count_, int32 restricted_user_count_); static const std::int32_t ID = -406467202; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatStatisticsInviterInfo final : public Object { public: int53 user_id_; int32 added_member_count_; chatStatisticsInviterInfo(); chatStatisticsInviterInfo(int53 user_id_, int32 added_member_count_); static const std::int32_t ID = 629396619; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatStatisticsMessageInteractionInfo final : public Object { public: int53 message_id_; int32 view_count_; int32 forward_count_; chatStatisticsMessageInteractionInfo(); chatStatisticsMessageInteractionInfo(int53 message_id_, int32 view_count_, int32 forward_count_); static const std::int32_t ID = -765580756; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatStatisticsMessageSenderInfo final : public Object { public: int53 user_id_; int32 sent_message_count_; int32 average_character_count_; chatStatisticsMessageSenderInfo(); chatStatisticsMessageSenderInfo(int53 user_id_, int32 sent_message_count_, int32 average_character_count_); static const std::int32_t ID = 1762295371; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatTheme final : public Object { public: string name_; object_ptr light_settings_; object_ptr dark_settings_; chatTheme(); chatTheme(string const &name_, object_ptr &&light_settings_, object_ptr &&dark_settings_); static const std::int32_t ID = -113218503; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ChatType: public Object { public: }; class chatTypePrivate final : public ChatType { public: int53 user_id_; chatTypePrivate(); explicit chatTypePrivate(int53 user_id_); static const std::int32_t ID = 1579049844; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatTypeBasicGroup final : public ChatType { public: int53 basic_group_id_; chatTypeBasicGroup(); explicit chatTypeBasicGroup(int53 basic_group_id_); static const std::int32_t ID = 973884508; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatTypeSupergroup final : public ChatType { public: int53 supergroup_id_; bool is_channel_; chatTypeSupergroup(); chatTypeSupergroup(int53 supergroup_id_, bool is_channel_); static const std::int32_t ID = -1472570774; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatTypeSecret final : public ChatType { public: int32 secret_chat_id_; int53 user_id_; chatTypeSecret(); chatTypeSecret(int32 secret_chat_id_, int53 user_id_); static const std::int32_t ID = 862366513; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chats final : public Object { public: int32 total_count_; array chat_ids_; chats(); chats(int32 total_count_, array &&chat_ids_); static const std::int32_t ID = 1809654812; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class chatsNearby final : public Object { public: array> users_nearby_; array> supergroups_nearby_; chatsNearby(); chatsNearby(array> &&users_nearby_, array> &&supergroups_nearby_); static const std::int32_t ID = 187746081; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CheckChatUsernameResult: public Object { public: }; class checkChatUsernameResultOk final : public CheckChatUsernameResult { public: checkChatUsernameResultOk(); static const std::int32_t ID = -1498956964; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkChatUsernameResultUsernameInvalid final : public CheckChatUsernameResult { public: checkChatUsernameResultUsernameInvalid(); static const std::int32_t ID = -636979370; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkChatUsernameResultUsernameOccupied final : public CheckChatUsernameResult { public: checkChatUsernameResultUsernameOccupied(); static const std::int32_t ID = 1320892201; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkChatUsernameResultPublicChatsTooMuch final : public CheckChatUsernameResult { public: checkChatUsernameResultPublicChatsTooMuch(); static const std::int32_t ID = 858247741; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkChatUsernameResultPublicGroupsUnavailable final : public CheckChatUsernameResult { public: checkChatUsernameResultPublicGroupsUnavailable(); static const std::int32_t ID = -51833641; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class CheckStickerSetNameResult: public Object { public: }; class checkStickerSetNameResultOk final : public CheckStickerSetNameResult { public: checkStickerSetNameResultOk(); static const std::int32_t ID = -1404308904; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkStickerSetNameResultNameInvalid final : public CheckStickerSetNameResult { public: checkStickerSetNameResultNameInvalid(); static const std::int32_t ID = 177992244; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class checkStickerSetNameResultNameOccupied final : public CheckStickerSetNameResult { public: checkStickerSetNameResultNameOccupied(); static const std::int32_t ID = 1012980872; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class closedVectorPath final : public Object { public: array> commands_; closedVectorPath(); explicit closedVectorPath(array> &&commands_); static const std::int32_t ID = 589951657; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class colorReplacement final : public Object { public: int32 old_color_; int32 new_color_; colorReplacement(); colorReplacement(int32 old_color_, int32 new_color_); static const std::int32_t ID = -1463786596; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectedWebsite final : public Object { public: int64 id_; string domain_name_; int53 bot_user_id_; string browser_; string platform_; int32 log_in_date_; int32 last_active_date_; string ip_; string location_; connectedWebsite(); connectedWebsite(int64 id_, string const &domain_name_, int53 bot_user_id_, string const &browser_, string const &platform_, int32 log_in_date_, int32 last_active_date_, string const &ip_, string const &location_); static const std::int32_t ID = 844014445; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectedWebsites final : public Object { public: array> websites_; connectedWebsites(); explicit connectedWebsites(array> &&websites_); static const std::int32_t ID = -1727949694; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class ConnectionState: public Object { public: }; class connectionStateWaitingForNetwork final : public ConnectionState { public: connectionStateWaitingForNetwork(); static const std::int32_t ID = 1695405912; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectionStateConnectingToProxy final : public ConnectionState { public: connectionStateConnectingToProxy(); static const std::int32_t ID = -93187239; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectionStateConnecting final : public ConnectionState { public: connectionStateConnecting(); static const std::int32_t ID = -1298400670; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectionStateUpdating final : public ConnectionState { public: connectionStateUpdating(); static const std::int32_t ID = -188104009; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class connectionStateReady final : public ConnectionState { public: connectionStateReady(); static const std::int32_t ID = 48608492; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class contact final : public Object { public: string phone_number_; string first_name_; string last_name_; string vcard_; int53 user_id_; contact(); contact(string const &phone_number_, string const &first_name_, string const &last_name_, string const &vcard_, int53 user_id_); static const std::int32_t ID = -1993844876; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class count final : public Object { public: int32 count_; count(); explicit count(int32 count_); static const std::int32_t ID = 1295577348; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class countries final : public Object { public: array> countries_; countries(); explicit countries(array> &&countries_); static const std::int32_t ID = 1854211813; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class countryInfo final : public Object { public: string country_code_; string name_; string english_name_; bool is_hidden_; array calling_codes_; countryInfo(); countryInfo(string const &country_code_, string const &name_, string const &english_name_, bool is_hidden_, array &&calling_codes_); static const std::int32_t ID = 1617195722; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class customRequestResult final : public Object { public: string result_; customRequestResult(); explicit customRequestResult(string const &result_); static const std::int32_t ID = -2009960452; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class databaseStatistics final : public Object { public: string statistics_; databaseStatistics(); explicit databaseStatistics(string const &statistics_); static const std::int32_t ID = -1123912880; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class date final : public Object { public: int32 day_; int32 month_; int32 year_; date(); date(int32 day_, int32 month_, int32 year_); static const std::int32_t ID = -277956960; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class dateRange final : public Object { public: int32 start_date_; int32 end_date_; dateRange(); dateRange(int32 start_date_, int32 end_date_); static const std::int32_t ID = 1360333926; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class datedFile final : public Object { public: object_ptr file_; int32 date_; datedFile(); datedFile(object_ptr &&file_, int32 date_); static const std::int32_t ID = -1840795491; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deepLinkInfo final : public Object { public: object_ptr text_; bool need_update_application_; deepLinkInfo(); deepLinkInfo(object_ptr &&text_, bool need_update_application_); static const std::int32_t ID = 1864081662; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class DeviceToken: public Object { public: }; class deviceTokenFirebaseCloudMessaging final : public DeviceToken { public: string token_; bool encrypt_; deviceTokenFirebaseCloudMessaging(); deviceTokenFirebaseCloudMessaging(string const &token_, bool encrypt_); static const std::int32_t ID = -797881849; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenApplePush final : public DeviceToken { public: string device_token_; bool is_app_sandbox_; deviceTokenApplePush(); deviceTokenApplePush(string const &device_token_, bool is_app_sandbox_); static const std::int32_t ID = 387541955; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenApplePushVoIP final : public DeviceToken { public: string device_token_; bool is_app_sandbox_; bool encrypt_; deviceTokenApplePushVoIP(); deviceTokenApplePushVoIP(string const &device_token_, bool is_app_sandbox_, bool encrypt_); static const std::int32_t ID = 804275689; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenWindowsPush final : public DeviceToken { public: string access_token_; deviceTokenWindowsPush(); explicit deviceTokenWindowsPush(string const &access_token_); static const std::int32_t ID = -1410514289; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenMicrosoftPush final : public DeviceToken { public: string channel_uri_; deviceTokenMicrosoftPush(); explicit deviceTokenMicrosoftPush(string const &channel_uri_); static const std::int32_t ID = 1224269900; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenMicrosoftPushVoIP final : public DeviceToken { public: string channel_uri_; deviceTokenMicrosoftPushVoIP(); explicit deviceTokenMicrosoftPushVoIP(string const &channel_uri_); static const std::int32_t ID = -785603759; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenWebPush final : public DeviceToken { public: string endpoint_; string p256dh_base64url_; string auth_base64url_; deviceTokenWebPush(); deviceTokenWebPush(string const &endpoint_, string const &p256dh_base64url_, string const &auth_base64url_); static const std::int32_t ID = -1694507273; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenSimplePush final : public DeviceToken { public: string endpoint_; deviceTokenSimplePush(); explicit deviceTokenSimplePush(string const &endpoint_); static const std::int32_t ID = 49584736; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenUbuntuPush final : public DeviceToken { public: string token_; deviceTokenUbuntuPush(); explicit deviceTokenUbuntuPush(string const &token_); static const std::int32_t ID = 1782320422; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenBlackBerryPush final : public DeviceToken { public: string token_; deviceTokenBlackBerryPush(); explicit deviceTokenBlackBerryPush(string const &token_); static const std::int32_t ID = 1559167234; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class deviceTokenTizenPush final : public DeviceToken { public: string reg_id_; deviceTokenTizenPush(); explicit deviceTokenTizenPush(string const ®_id_); static const std::int32_t ID = -1359947213; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class DiceStickers: public Object { public: }; class diceStickersRegular final : public DiceStickers { public: object_ptr sticker_; diceStickersRegular(); explicit diceStickersRegular(object_ptr &&sticker_); static const std::int32_t ID = -740299570; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class diceStickersSlotMachine final : public DiceStickers { public: object_ptr background_; object_ptr lever_; object_ptr left_reel_; object_ptr center_reel_; object_ptr right_reel_; diceStickersSlotMachine(); diceStickersSlotMachine(object_ptr &&background_, object_ptr &&lever_, object_ptr &&left_reel_, object_ptr &¢er_reel_, object_ptr &&right_reel_); static const std::int32_t ID = -375223124; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class document final : public Object { public: string file_name_; string mime_type_; object_ptr minithumbnail_; object_ptr thumbnail_; object_ptr document_; document(); document(string const &file_name_, string const &mime_type_, object_ptr &&minithumbnail_, object_ptr &&thumbnail_, object_ptr &&document_); static const std::int32_t ID = -1357271080; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class draftMessage final : public Object { public: int53 reply_to_message_id_; int32 date_; object_ptr input_message_text_; draftMessage(); draftMessage(int53 reply_to_message_id_, int32 date_, object_ptr &&input_message_text_); static const std::int32_t ID = 1373050112; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class emailAddressAuthenticationCodeInfo final : public Object { public: string email_address_pattern_; int32 length_; emailAddressAuthenticationCodeInfo(); emailAddressAuthenticationCodeInfo(string const &email_address_pattern_, int32 length_); static const std::int32_t ID = 1151066659; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class emojis final : public Object { public: array emojis_; emojis(); explicit emojis(array &&emojis_); static const std::int32_t ID = 950339552; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class encryptedCredentials final : public Object { public: bytes data_; bytes hash_; bytes secret_; encryptedCredentials(); encryptedCredentials(bytes const &data_, bytes const &hash_, bytes const &secret_); static const std::int32_t ID = 1331106766; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class encryptedPassportElement final : public Object { public: object_ptr type_; bytes data_; object_ptr front_side_; object_ptr reverse_side_; object_ptr selfie_; array> translation_; array> files_; string value_; string hash_; encryptedPassportElement(); encryptedPassportElement(object_ptr &&type_, bytes const &data_, object_ptr &&front_side_, object_ptr &&reverse_side_, object_ptr &&selfie_, array> &&translation_, array> &&files_, string const &value_, string const &hash_); static const std::int32_t ID = 2002386193; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class error final : public Object { public: int32 code_; string message_; error(); error(int32 code_, string const &message_); static const std::int32_t ID = -1679978726; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class file final : public Object { public: int32 id_; int32 size_; int32 expected_size_; object_ptr local_; object_ptr remote_; file(); file(int32 id_, int32 size_, int32 expected_size_, object_ptr &&local_, object_ptr &&remote_); static const std::int32_t ID = 766337656; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class filePart final : public Object { public: bytes data_; filePart(); explicit filePart(bytes const &data_); static const std::int32_t ID = 911821878; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class FileType: public Object { public: }; class fileTypeNone final : public FileType { public: fileTypeNone(); static const std::int32_t ID = 2003009189; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeAnimation final : public FileType { public: fileTypeAnimation(); static const std::int32_t ID = -290816582; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeAudio final : public FileType { public: fileTypeAudio(); static const std::int32_t ID = -709112160; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeDocument final : public FileType { public: fileTypeDocument(); static const std::int32_t ID = -564722929; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypePhoto final : public FileType { public: fileTypePhoto(); static const std::int32_t ID = -1718914651; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeProfilePhoto final : public FileType { public: fileTypeProfilePhoto(); static const std::int32_t ID = 1795089315; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeSecret final : public FileType { public: fileTypeSecret(); static const std::int32_t ID = -1871899401; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeSecretThumbnail final : public FileType { public: fileTypeSecretThumbnail(); static const std::int32_t ID = -1401326026; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeSecure final : public FileType { public: fileTypeSecure(); static const std::int32_t ID = -1419133146; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeSticker final : public FileType { public: fileTypeSticker(); static const std::int32_t ID = 475233385; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeThumbnail final : public FileType { public: fileTypeThumbnail(); static const std::int32_t ID = -12443298; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeUnknown final : public FileType { public: fileTypeUnknown(); static const std::int32_t ID = -2011566768; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeVideo final : public FileType { public: fileTypeVideo(); static const std::int32_t ID = 1430816539; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeVideoNote final : public FileType { public: fileTypeVideoNote(); static const std::int32_t ID = -518412385; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeVoiceNote final : public FileType { public: fileTypeVoiceNote(); static const std::int32_t ID = -588681661; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class fileTypeWallpaper final : public FileType { public: fileTypeWallpaper(); static const std::int32_t ID = 1854930076; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class formattedText final : public Object { public: string text_; array> entities_; formattedText(); formattedText(string const &text_, array> &&entities_); static const std::int32_t ID = -252624564; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class foundMessages final : public Object { public: int32 total_count_; array> messages_; string next_offset_; foundMessages(); foundMessages(int32 total_count_, array> &&messages_, string const &next_offset_); static const std::int32_t ID = -529809608; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class game final : public Object { public: int64 id_; string short_name_; string title_; object_ptr text_; string description_; object_ptr photo_; object_ptr animation_; game(); game(int64 id_, string const &short_name_, string const &title_, object_ptr &&text_, string const &description_, object_ptr &&photo_, object_ptr &&animation_); static const std::int32_t ID = -1565597752; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class gameHighScore final : public Object { public: int32 position_; int53 user_id_; int32 score_; gameHighScore(); gameHighScore(int32 position_, int53 user_id_, int32 score_); static const std::int32_t ID = 342871838; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class gameHighScores final : public Object { public: array> scores_; gameHighScores(); explicit gameHighScores(array> &&scores_); static const std::int32_t ID = -725770727; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCall final : public Object { public: int32 id_; string title_; int32 scheduled_start_date_; bool enabled_start_notification_; bool is_active_; bool is_joined_; bool need_rejoin_; bool can_be_managed_; int32 participant_count_; bool loaded_all_participants_; array> recent_speakers_; bool is_my_video_enabled_; bool is_my_video_paused_; bool can_enable_video_; bool mute_new_participants_; bool can_toggle_mute_new_participants_; int32 record_duration_; bool is_video_recorded_; int32 duration_; groupCall(); groupCall(int32 id_, string const &title_, int32 scheduled_start_date_, bool enabled_start_notification_, bool is_active_, bool is_joined_, bool need_rejoin_, bool can_be_managed_, int32 participant_count_, bool loaded_all_participants_, array> &&recent_speakers_, bool is_my_video_enabled_, bool is_my_video_paused_, bool can_enable_video_, bool mute_new_participants_, bool can_toggle_mute_new_participants_, int32 record_duration_, bool is_video_recorded_, int32 duration_); static const std::int32_t ID = 1548892209; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallId final : public Object { public: int32 id_; groupCallId(); explicit groupCallId(int32 id_); static const std::int32_t ID = 350534469; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallParticipant final : public Object { public: object_ptr participant_id_; int32 audio_source_id_; int32 screen_sharing_audio_source_id_; object_ptr video_info_; object_ptr screen_sharing_video_info_; string bio_; bool is_current_user_; bool is_speaking_; bool is_hand_raised_; bool can_be_muted_for_all_users_; bool can_be_unmuted_for_all_users_; bool can_be_muted_for_current_user_; bool can_be_unmuted_for_current_user_; bool is_muted_for_all_users_; bool is_muted_for_current_user_; bool can_unmute_self_; int32 volume_level_; string order_; groupCallParticipant(); groupCallParticipant(object_ptr &&participant_id_, int32 audio_source_id_, int32 screen_sharing_audio_source_id_, object_ptr &&video_info_, object_ptr &&screen_sharing_video_info_, string const &bio_, bool is_current_user_, bool is_speaking_, bool is_hand_raised_, bool can_be_muted_for_all_users_, bool can_be_unmuted_for_all_users_, bool can_be_muted_for_current_user_, bool can_be_unmuted_for_current_user_, bool is_muted_for_all_users_, bool is_muted_for_current_user_, bool can_unmute_self_, int32 volume_level_, string const &order_); static const std::int32_t ID = 2059182571; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallParticipantVideoInfo final : public Object { public: array> source_groups_; string endpoint_id_; bool is_paused_; groupCallParticipantVideoInfo(); groupCallParticipantVideoInfo(array> &&source_groups_, string const &endpoint_id_, bool is_paused_); static const std::int32_t ID = -14294645; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallRecentSpeaker final : public Object { public: object_ptr participant_id_; bool is_speaking_; groupCallRecentSpeaker(); groupCallRecentSpeaker(object_ptr &&participant_id_, bool is_speaking_); static const std::int32_t ID = 1819519436; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class GroupCallVideoQuality: public Object { public: }; class groupCallVideoQualityThumbnail final : public GroupCallVideoQuality { public: groupCallVideoQualityThumbnail(); static const std::int32_t ID = -379186304; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallVideoQualityMedium final : public GroupCallVideoQuality { public: groupCallVideoQualityMedium(); static const std::int32_t ID = 394968234; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallVideoQualityFull final : public GroupCallVideoQuality { public: groupCallVideoQualityFull(); static const std::int32_t ID = -2125916617; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class groupCallVideoSourceGroup final : public Object { public: string semantics_; array source_ids_; groupCallVideoSourceGroup(); groupCallVideoSourceGroup(string const &semantics_, array &&source_ids_); static const std::int32_t ID = -1190900785; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class hashtags final : public Object { public: array hashtags_; hashtags(); explicit hashtags(array &&hashtags_); static const std::int32_t ID = 676798885; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class httpUrl final : public Object { public: string url_; httpUrl(); explicit httpUrl(string const &url_); static const std::int32_t ID = -2018019930; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class identityDocument final : public Object { public: string number_; object_ptr expiry_date_; object_ptr front_side_; object_ptr reverse_side_; object_ptr selfie_; array> translation_; identityDocument(); identityDocument(string const &number_, object_ptr &&expiry_date_, object_ptr &&front_side_, object_ptr &&reverse_side_, object_ptr &&selfie_, array> &&translation_); static const std::int32_t ID = 445952972; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class importedContacts final : public Object { public: array user_ids_; array importer_count_; importedContacts(); importedContacts(array &&user_ids_, array &&importer_count_); static const std::int32_t ID = 2068432290; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButton final : public Object { public: string text_; object_ptr type_; inlineKeyboardButton(); inlineKeyboardButton(string const &text_, object_ptr &&type_); static const std::int32_t ID = -372105704; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class InlineKeyboardButtonType: public Object { public: }; class inlineKeyboardButtonTypeUrl final : public InlineKeyboardButtonType { public: string url_; inlineKeyboardButtonTypeUrl(); explicit inlineKeyboardButtonTypeUrl(string const &url_); static const std::int32_t ID = 1130741420; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeLoginUrl final : public InlineKeyboardButtonType { public: string url_; int53 id_; string forward_text_; inlineKeyboardButtonTypeLoginUrl(); inlineKeyboardButtonTypeLoginUrl(string const &url_, int53 id_, string const &forward_text_); static const std::int32_t ID = -1203413081; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeCallback final : public InlineKeyboardButtonType { public: bytes data_; inlineKeyboardButtonTypeCallback(); explicit inlineKeyboardButtonTypeCallback(bytes const &data_); static const std::int32_t ID = -1127515139; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeCallbackWithPassword final : public InlineKeyboardButtonType { public: bytes data_; inlineKeyboardButtonTypeCallbackWithPassword(); explicit inlineKeyboardButtonTypeCallbackWithPassword(bytes const &data_); static const std::int32_t ID = 908018248; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeCallbackGame final : public InlineKeyboardButtonType { public: inlineKeyboardButtonTypeCallbackGame(); static const std::int32_t ID = -383429528; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeSwitchInline final : public InlineKeyboardButtonType { public: string query_; bool in_current_chat_; inlineKeyboardButtonTypeSwitchInline(); inlineKeyboardButtonTypeSwitchInline(string const &query_, bool in_current_chat_); static const std::int32_t ID = -2035563307; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineKeyboardButtonTypeBuy final : public InlineKeyboardButtonType { public: inlineKeyboardButtonTypeBuy(); static const std::int32_t ID = 1360739440; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class InlineQueryResult: public Object { public: }; class inlineQueryResultArticle final : public InlineQueryResult { public: string id_; string url_; bool hide_url_; string title_; string description_; object_ptr thumbnail_; inlineQueryResultArticle(); inlineQueryResultArticle(string const &id_, string const &url_, bool hide_url_, string const &title_, string const &description_, object_ptr &&thumbnail_); static const std::int32_t ID = 206340825; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultContact final : public InlineQueryResult { public: string id_; object_ptr contact_; object_ptr thumbnail_; inlineQueryResultContact(); inlineQueryResultContact(string const &id_, object_ptr &&contact_, object_ptr &&thumbnail_); static const std::int32_t ID = -181960174; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultLocation final : public InlineQueryResult { public: string id_; object_ptr location_; string title_; object_ptr thumbnail_; inlineQueryResultLocation(); inlineQueryResultLocation(string const &id_, object_ptr &&location_, string const &title_, object_ptr &&thumbnail_); static const std::int32_t ID = 466004752; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultVenue final : public InlineQueryResult { public: string id_; object_ptr venue_; object_ptr thumbnail_; inlineQueryResultVenue(); inlineQueryResultVenue(string const &id_, object_ptr &&venue_, object_ptr &&thumbnail_); static const std::int32_t ID = 1281036382; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultGame final : public InlineQueryResult { public: string id_; object_ptr game_; inlineQueryResultGame(); inlineQueryResultGame(string const &id_, object_ptr &&game_); static const std::int32_t ID = 1706916987; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultAnimation final : public InlineQueryResult { public: string id_; object_ptr animation_; string title_; inlineQueryResultAnimation(); inlineQueryResultAnimation(string const &id_, object_ptr &&animation_, string const &title_); static const std::int32_t ID = 2009984267; std::int32_t get_id() const final { return ID; } void store(TlStorerToString &s, const char *field_name) const final; }; class inlineQueryResultAudio final : public InlineQueryResult { public: string id_; object_ptr