harbour-fernschreiber/tdlib/include/td/telegram/td_api.h

25512 lines
596 KiB
C
Raw Normal View History

2020-08-10 15:17:29 +03:00
#pragma once
#include "td/tl/TlObject.h"
#include <string>
#include <cstdint>
#include <utility>
#include <vector>
namespace td {
class TlStorerToString;
namespace td_api {
2020-12-07 00:03:08 +03:00
using int32 = std::int32_t;
using int53 = std::int64_t;
using int64 = std::int64_t;
using string = std::string;
using bytes = std::string;
template <class Type>
using array = std::vector<Type>;
2020-08-10 15:17:29 +03:00
using BaseObject = ::td::TlObject;
template <class Type>
using object_ptr = ::td::tl_object_ptr<Type>;
template <class Type, class... Args>
object_ptr<Type> make_object(Args &&... args) {
return object_ptr<Type>(new Type(std::forward<Args>(args)...));
}
template <class ToType, class FromType>
object_ptr<ToType> move_object_as(FromType &&from) {
return object_ptr<ToType>(static_cast<ToType *>(from.release()));
}
std::string to_string(const BaseObject &value);
template <class T>
std::string to_string(const object_ptr<T> &value) {
if (value == nullptr) {
return "null";
}
return to_string(*value);
}
template <class T>
std::string to_string(const std::vector<object_ptr<T>> &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;
}
2020-08-10 15:17:29 +03:00
class accountTtl;
class address;
2020-12-07 00:03:08 +03:00
class animatedChatPhoto;
class animatedEmoji;
2020-08-10 15:17:29 +03:00
class animation;
class animations;
class audio;
class authenticationCodeInfo;
class AuthenticationCodeType;
class AuthorizationState;
class autoDownloadSettings;
class autoDownloadSettingsPresets;
class background;
class BackgroundFill;
class BackgroundType;
class backgrounds;
2020-12-07 00:03:08 +03:00
class bankCardActionOpenUrl;
class bankCardInfo;
2020-08-10 15:17:29 +03:00
class basicGroup;
class basicGroupFullInfo;
class botCommand;
class BotCommandScope;
class botCommands;
2020-08-10 15:17:29 +03:00
class call;
class CallDiscardReason;
class callId;
class CallProblem;
class callProtocol;
2020-12-07 00:03:08 +03:00
class callServer;
class CallServerType;
2020-08-10 15:17:29 +03:00
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;
2020-12-07 00:03:08 +03:00
class chatFilter;
class chatFilterInfo;
2020-08-10 15:17:29 +03:00
class chatInviteLink;
class chatInviteLinkCount;
class chatInviteLinkCounts;
2020-08-10 15:17:29 +03:00
class chatInviteLinkInfo;
class chatInviteLinkMember;
class chatInviteLinkMembers;
class chatInviteLinks;
class chatJoinRequest;
class chatJoinRequests;
class chatJoinRequestsInfo;
2020-08-10 15:17:29 +03:00
class ChatList;
2020-12-07 00:03:08 +03:00
class chatLists;
2020-08-10 15:17:29 +03:00
class chatLocation;
class chatMember;
class ChatMemberStatus;
class chatMembers;
class ChatMembersFilter;
class chatNearby;
class chatNotificationSettings;
class chatPermissions;
class chatPhoto;
2020-12-07 00:03:08 +03:00
class chatPhotoInfo;
class chatPhotos;
class chatPosition;
2020-08-10 15:17:29 +03:00
class ChatReportReason;
2020-12-07 00:03:08 +03:00
class ChatSource;
class ChatStatistics;
class chatStatisticsAdministratorActionsInfo;
class chatStatisticsInviterInfo;
class chatStatisticsMessageInteractionInfo;
class chatStatisticsMessageSenderInfo;
class chatTheme;
2020-08-10 15:17:29 +03:00
class ChatType;
class chats;
class chatsNearby;
class CheckChatUsernameResult;
class CheckStickerSetNameResult;
class closedVectorPath;
2020-08-10 15:17:29 +03:00
class connectedWebsite;
class connectedWebsites;
class ConnectionState;
class contact;
class count;
2020-12-07 00:03:08 +03:00
class countries;
class countryInfo;
2020-08-10 15:17:29 +03:00
class customRequestResult;
class databaseStatistics;
class date;
2020-12-07 00:03:08 +03:00
class dateRange;
2020-08-10 15:17:29 +03:00
class datedFile;
class deepLinkInfo;
class DeviceToken;
2020-12-07 00:03:08 +03:00
class DiceStickers;
2020-08-10 15:17:29 +03:00
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;
2020-08-10 15:17:29 +03:00
class hashtags;
class httpUrl;
class identityDocument;
class importedContacts;
class inlineKeyboardButton;
class InlineKeyboardButtonType;
class InlineQueryResult;
class inlineQueryResults;
class InputBackground;
2020-12-07 00:03:08 +03:00
class InputChatPhoto;
2020-08-10 15:17:29 +03:00
class InputCredentials;
class InputFile;
class inputIdentityDocument;
class InputInlineQueryResult;
class InputMessageContent;
class InputPassportElement;
class inputPassportElementError;
class InputPassportElementErrorSource;
class inputPersonalDocument;
2020-12-07 00:03:08 +03:00
class InputSticker;
2020-08-10 15:17:29 +03:00
class inputThumbnail;
class InternalLinkType;
2020-08-10 15:17:29 +03:00
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;
2020-08-10 15:17:29 +03:00
class MessageContent;
2020-12-07 00:03:08 +03:00
class messageCopyOptions;
class MessageFileType;
2020-08-10 15:17:29 +03:00
class messageForwardInfo;
class MessageForwardOrigin;
2020-12-07 00:03:08 +03:00
class messageInteractionInfo;
class messageLink;
2020-08-10 15:17:29 +03:00
class messageLinkInfo;
class messagePosition;
class messagePositions;
2020-12-07 00:03:08 +03:00
class messageReplyInfo;
2020-08-10 15:17:29 +03:00
class MessageSchedulingState;
2020-12-07 00:03:08 +03:00
class messageSendOptions;
class MessageSender;
class messageSenders;
2020-08-10 15:17:29 +03:00
class MessageSendingState;
2020-12-07 00:03:08 +03:00
class messageStatistics;
class messageThreadInfo;
2020-08-10 15:17:29 +03:00
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;
2020-08-10 15:17:29 +03:00
class paymentReceipt;
class paymentResult;
class paymentsProviderStripe;
class personalDetails;
class personalDocument;
class phoneNumberAuthenticationSettings;
2020-12-07 00:03:08 +03:00
class phoneNumberInfo;
2020-08-10 15:17:29 +03:00
class photo;
class photoSize;
class point;
2020-08-10 15:17:29 +03:00
class poll;
class pollOption;
class PollType;
class profilePhoto;
class proxies;
class proxy;
class ProxyType;
class PublicChatType;
class PushMessageContent;
class pushReceiverId;
2020-12-07 00:03:08 +03:00
class recommendedChatFilter;
class recommendedChatFilters;
2020-08-10 15:17:29 +03:00
class recoveryEmailAddress;
class remoteFile;
class ReplyMarkup;
class ResetPasswordResult;
2020-08-10 15:17:29 +03:00
class RichText;
class savedCredentials;
class scopeNotificationSettings;
class SearchMessagesFilter;
class seconds;
class secretChat;
class SecretChatState;
class session;
class sessions;
class shippingOption;
class sponsoredMessage;
2020-12-07 00:03:08 +03:00
class StatisticalGraph;
class statisticalValue;
2020-08-10 15:17:29 +03:00
class sticker;
class stickerSet;
class stickerSetInfo;
class stickerSets;
class stickers;
class storageStatistics;
class storageStatisticsByChat;
class storageStatisticsByFileType;
class storageStatisticsFast;
2020-12-07 00:03:08 +03:00
class SuggestedAction;
2020-08-10 15:17:29 +03:00
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;
2020-12-07 00:03:08 +03:00
class thumbnail;
class ThumbnailFormat;
2020-08-10 15:17:29 +03:00
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;
2020-08-10 15:17:29 +03:00
class venue;
class video;
class videoChat;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 days_;
2020-08-10 15:17:29 +03:00
accountTtl();
2020-12-07 00:03:08 +03:00
explicit accountTtl(int32 days_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string country_code_;
string state_;
string city_;
string street_line1_;
string street_line2_;
string postal_code_;
2020-08-10 15:17:29 +03:00
address();
2020-12-07 00:03:08 +03:00
address(string const &country_code_, string const &state_, string const &city_, string const &street_line1_, string const &street_line2_, string const &postal_code_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
class animatedChatPhoto final : public Object {
public:
int32 length_;
object_ptr<file> file_;
double main_frame_timestamp_;
animatedChatPhoto();
animatedChatPhoto(int32 length_, object_ptr<file> &&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> sticker_;
int32 fitzpatrick_type_;
object_ptr<file> sound_;
animatedEmoji();
animatedEmoji(object_ptr<sticker> &&sticker_, int32 fitzpatrick_type_, object_ptr<file> &&sound_);
static const std::int32_t ID = -1816658231;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class animation final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 duration_;
int32 width_;
int32 height_;
string file_name_;
string mime_type_;
bool has_stickers_;
2020-08-10 15:17:29 +03:00
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> animation_;
animation();
2020-12-07 00:03:08 +03:00
animation(int32 duration_, int32 width_, int32 height_, string const &file_name_, string const &mime_type_, bool has_stickers_, object_ptr<minithumbnail> &&minithumbnail_, object_ptr<thumbnail> &&thumbnail_, object_ptr<file> &&animation_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -872359106;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<object_ptr<animation>> animations_;
2020-08-10 15:17:29 +03:00
animations();
2020-12-07 00:03:08 +03:00
explicit animations(array<object_ptr<animation>> &&animations_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 duration_;
string title_;
string performer_;
string file_name_;
string mime_type_;
2020-08-10 15:17:29 +03:00
object_ptr<minithumbnail> album_cover_minithumbnail_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> album_cover_thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> audio_;
audio();
2020-12-07 00:03:08 +03:00
audio(int32 duration_, string const &title_, string const &performer_, string const &file_name_, string const &mime_type_, object_ptr<minithumbnail> &&album_cover_minithumbnail_, object_ptr<thumbnail> &&album_cover_thumbnail_, object_ptr<file> &&audio_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1179334690;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<AuthenticationCodeType> type_;
object_ptr<AuthenticationCodeType> next_type_;
2020-12-07 00:03:08 +03:00
int32 timeout_;
2020-08-10 15:17:29 +03:00
authenticationCodeInfo();
2020-12-07 00:03:08 +03:00
authenticationCodeInfo(string const &phone_number_, object_ptr<AuthenticationCodeType> &&type_, object_ptr<AuthenticationCodeType> &&next_type_, int32 timeout_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 length_;
2020-08-10 15:17:29 +03:00
authenticationCodeTypeTelegramMessage();
2020-12-07 00:03:08 +03:00
explicit authenticationCodeTypeTelegramMessage(int32 length_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 length_;
2020-08-10 15:17:29 +03:00
authenticationCodeTypeSms();
2020-12-07 00:03:08 +03:00
explicit authenticationCodeTypeSms(int32 length_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 length_;
2020-08-10 15:17:29 +03:00
authenticationCodeTypeCall();
2020-12-07 00:03:08 +03:00
explicit authenticationCodeTypeCall(int32 length_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string pattern_;
2020-08-10 15:17:29 +03:00
authenticationCodeTypeFlashCall();
2020-12-07 00:03:08 +03:00
explicit authenticationCodeTypeFlashCall(string const &pattern_);
2020-08-10 15:17:29 +03:00
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 authenticationCodeTypeMissedCall final : public AuthenticationCodeType {
public:
string phone_number_prefix_;
int32 length_;
authenticationCodeTypeMissedCall();
authenticationCodeTypeMissedCall(string const &phone_number_prefix_, int32 length_);
static const std::int32_t ID = 700123783;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
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<authenticationCodeInfo> code_info_;
authorizationStateWaitCode();
explicit authorizationStateWaitCode(object_ptr<authenticationCodeInfo> &&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:
2020-12-07 00:03:08 +03:00
string link_;
2020-08-10 15:17:29 +03:00
authorizationStateWaitOtherDeviceConfirmation();
2020-12-07 00:03:08 +03:00
explicit authorizationStateWaitOtherDeviceConfirmation(string const &link_);
2020-08-10 15:17:29 +03:00
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<termsOfService> terms_of_service_;
authorizationStateWaitRegistration();
explicit authorizationStateWaitRegistration(object_ptr<termsOfService> &&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:
2020-12-07 00:03:08 +03:00
string password_hint_;
2020-08-10 15:17:29 +03:00
bool has_recovery_email_address_;
2020-12-07 00:03:08 +03:00
string recovery_email_address_pattern_;
2020-08-10 15:17:29 +03:00
authorizationStateWaitPassword();
2020-12-07 00:03:08 +03:00
authorizationStateWaitPassword(string const &password_hint_, bool has_recovery_email_address_, string const &recovery_email_address_pattern_);
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 max_photo_file_size_;
int32 max_video_file_size_;
int32 max_other_file_size_;
int32 video_upload_bitrate_;
2020-08-10 15:17:29 +03:00
bool preload_large_videos_;
bool preload_next_audio_;
bool use_less_data_for_calls_;
autoDownloadSettings();
2020-12-07 00:03:08 +03:00
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_);
2020-08-10 15:17:29 +03:00
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<autoDownloadSettings> low_;
object_ptr<autoDownloadSettings> medium_;
object_ptr<autoDownloadSettings> high_;
autoDownloadSettingsPresets();
autoDownloadSettingsPresets(object_ptr<autoDownloadSettings> &&low_, object_ptr<autoDownloadSettings> &&medium_, object_ptr<autoDownloadSettings> &&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:
2020-12-07 00:03:08 +03:00
int64 id_;
2020-08-10 15:17:29 +03:00
bool is_default_;
bool is_dark_;
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
object_ptr<document> document_;
object_ptr<BackgroundType> type_;
background();
2020-12-07 00:03:08 +03:00
background(int64 id_, bool is_default_, bool is_dark_, string const &name_, object_ptr<document> &&document_, object_ptr<BackgroundType> &&type_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 color_;
2020-08-10 15:17:29 +03:00
backgroundFillSolid();
2020-12-07 00:03:08 +03:00
explicit backgroundFillSolid(int32 color_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 top_color_;
int32 bottom_color_;
int32 rotation_angle_;
2020-08-10 15:17:29 +03:00
backgroundFillGradient();
2020-12-07 00:03:08 +03:00
backgroundFillGradient(int32 top_color_, int32 bottom_color_, int32 rotation_angle_);
2020-08-10 15:17:29 +03:00
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<int32> colors_;
backgroundFillFreeformGradient();
explicit backgroundFillFreeformGradient(array<int32> &&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;
};
2020-08-10 15:17:29 +03:00
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<BackgroundFill> fill_;
2020-12-07 00:03:08 +03:00
int32 intensity_;
bool is_inverted_;
2020-08-10 15:17:29 +03:00
bool is_moving_;
backgroundTypePattern();
backgroundTypePattern(object_ptr<BackgroundFill> &&fill_, int32 intensity_, bool is_inverted_, bool is_moving_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1290213117;
2020-08-10 15:17:29 +03:00
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<BackgroundFill> fill_;
backgroundTypeFill();
explicit backgroundTypeFill(object_ptr<BackgroundFill> &&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:
2020-12-07 00:03:08 +03:00
array<object_ptr<background>> backgrounds_;
2020-08-10 15:17:29 +03:00
backgrounds();
2020-12-07 00:03:08 +03:00
explicit backgrounds(array<object_ptr<background>> &&backgrounds_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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<object_ptr<bankCardActionOpenUrl>> actions_;
bankCardInfo();
bankCardInfo(string const &title_, array<object_ptr<bankCardActionOpenUrl>> &&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;
};
2020-08-10 15:17:29 +03:00
class basicGroup final : public Object {
public:
int53 id_;
2020-12-07 00:03:08 +03:00
int32 member_count_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> status_;
bool is_active_;
int53 upgraded_to_supergroup_id_;
2020-08-10 15:17:29 +03:00
basicGroup();
basicGroup(int53 id_, int32 member_count_, object_ptr<ChatMemberStatus> &&status_, bool is_active_, int53 upgraded_to_supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -194767217;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
object_ptr<chatPhoto> photo_;
string description_;
int53 creator_user_id_;
2020-12-07 00:03:08 +03:00
array<object_ptr<chatMember>> members_;
object_ptr<chatInviteLink> invite_link_;
array<object_ptr<botCommands>> bot_commands_;
2020-08-10 15:17:29 +03:00
basicGroupFullInfo();
basicGroupFullInfo(object_ptr<chatPhoto> &&photo_, string const &description_, int53 creator_user_id_, array<object_ptr<chatMember>> &&members_, object_ptr<chatInviteLink> &&invite_link_, array<object_ptr<botCommands>> &&bot_commands_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2022233397;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string command_;
string description_;
2020-08-10 15:17:29 +03:00
botCommand();
2020-12-07 00:03:08 +03:00
botCommand(string const &command_, string const &description_);
2020-08-10 15:17:29 +03:00
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 {
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
array<object_ptr<botCommand>> commands_;
2020-08-10 15:17:29 +03:00
botCommands();
2020-08-10 15:17:29 +03:00
botCommands(int53 bot_user_id_, array<object_ptr<botCommand>> &&commands_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1741364468;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 id_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
bool is_outgoing_;
2020-12-07 00:03:08 +03:00
bool is_video_;
2020-08-10 15:17:29 +03:00
object_ptr<CallState> state_;
call();
call(int32 id_, int53 user_id_, bool is_outgoing_, bool is_video_, object_ptr<CallState> &&state_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 920360804;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 id_;
2020-08-10 15:17:29 +03:00
callId();
2020-12-07 00:03:08 +03:00
explicit callId(int32 id_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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;
};
2020-08-10 15:17:29 +03:00
class callProtocol final : public Object {
public:
bool udp_p2p_;
bool udp_reflector_;
2020-12-07 00:03:08 +03:00
int32 min_layer_;
int32 max_layer_;
array<string> library_versions_;
2020-08-10 15:17:29 +03:00
callProtocol();
2020-12-07 00:03:08 +03:00
callProtocol(bool udp_p2p_, bool udp_reflector_, int32 min_layer_, int32 max_layer_, array<string> &&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<CallServerType> type_;
callServer();
callServer(int64 id_, string const &ip_address_, string const &ipv6_address_, int32 port_, object_ptr<CallServerType> &&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_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1250622821;
2020-08-10 15:17:29 +03:00
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<callProtocol> protocol_;
2020-12-07 00:03:08 +03:00
array<object_ptr<callServer>> servers_;
string config_;
bytes encryption_key_;
array<string> emojis_;
2020-08-10 15:17:29 +03:00
bool allow_p2p_;
callStateReady();
2020-12-07 00:03:08 +03:00
callStateReady(object_ptr<callProtocol> &&protocol_, array<object_ptr<callServer>> &&servers_, string const &config_, bytes const &encryption_key_, array<string> &&emojis_, bool allow_p2p_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -2000107571;
2020-08-10 15:17:29 +03:00
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<CallDiscardReason> reason_;
bool need_rating_;
bool need_debug_information_;
callStateDiscarded();
callStateDiscarded(object_ptr<CallDiscardReason> &&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> error_;
callStateError();
explicit callStateError(object_ptr<error> &&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:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
bool show_alert_;
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
callbackQueryAnswer();
2020-12-07 00:03:08 +03:00
callbackQueryAnswer(string const &text_, bool show_alert_, string const &url_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
bytes data_;
2020-08-10 15:17:29 +03:00
callbackQueryPayloadData();
2020-12-07 00:03:08 +03:00
explicit callbackQueryPayloadData(bytes const &data_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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;
};
2020-08-10 15:17:29 +03:00
class callbackQueryPayloadGame final : public CallbackQueryPayload {
public:
2020-12-07 00:03:08 +03:00
string game_short_name_;
2020-08-10 15:17:29 +03:00
callbackQueryPayloadGame();
2020-12-07 00:03:08 +03:00
explicit callbackQueryPayloadGame(string const &game_short_name_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 retry_after_;
2020-08-10 15:17:29 +03:00
canTransferOwnershipResultPasswordTooFresh();
2020-12-07 00:03:08 +03:00
explicit canTransferOwnershipResultPasswordTooFresh(int32 retry_after_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 retry_after_;
2020-08-10 15:17:29 +03:00
canTransferOwnershipResultSessionTooFresh();
2020-12-07 00:03:08 +03:00
explicit canTransferOwnershipResultSessionTooFresh(int32 retry_after_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int53 id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatType> type_;
2020-12-07 00:03:08 +03:00
string title_;
object_ptr<chatPhotoInfo> photo_;
2020-08-10 15:17:29 +03:00
object_ptr<chatPermissions> permissions_;
object_ptr<message> last_message_;
2020-12-07 00:03:08 +03:00
array<object_ptr<chatPosition>> positions_;
object_ptr<MessageSender> message_sender_id_;
bool has_protected_content_;
2020-08-10 15:17:29 +03:00
bool is_marked_as_unread_;
2020-12-07 00:03:08 +03:00
bool is_blocked_;
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 unread_count_;
int53 last_read_inbox_message_id_;
int53 last_read_outbox_message_id_;
int32 unread_mention_count_;
2020-08-10 15:17:29 +03:00
object_ptr<chatNotificationSettings> notification_settings_;
int32 message_ttl_;
string theme_name_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatActionBar> action_bar_;
object_ptr<videoChat> video_chat_;
object_ptr<chatJoinRequestsInfo> pending_join_requests_;
2020-12-07 00:03:08 +03:00
int53 reply_markup_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<draftMessage> draft_message_;
2020-12-07 00:03:08 +03:00
string client_data_;
2020-08-10 15:17:29 +03:00
chat();
chat(int53 id_, object_ptr<ChatType> &&type_, string const &title_, object_ptr<chatPhotoInfo> &&photo_, object_ptr<chatPermissions> &&permissions_, object_ptr<message> &&last_message_, array<object_ptr<chatPosition>> &&positions_, object_ptr<MessageSender> &&message_sender_id_, bool has_protected_content_, 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<chatNotificationSettings> &&notification_settings_, int32 message_ttl_, string const &theme_name_, object_ptr<ChatActionBar> &&action_bar_, object_ptr<videoChat> &&video_chat_, object_ptr<chatJoinRequestsInfo> &&pending_join_requests_, int53 reply_markup_message_id_, object_ptr<draftMessage> &&draft_message_, string const &client_data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1617921149;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 progress_;
2020-08-10 15:17:29 +03:00
chatActionUploadingVideo();
2020-12-07 00:03:08 +03:00
explicit chatActionUploadingVideo(int32 progress_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 progress_;
2020-08-10 15:17:29 +03:00
chatActionUploadingVoiceNote();
2020-12-07 00:03:08 +03:00
explicit chatActionUploadingVoiceNote(int32 progress_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 progress_;
2020-08-10 15:17:29 +03:00
chatActionUploadingPhoto();
2020-12-07 00:03:08 +03:00
explicit chatActionUploadingPhoto(int32 progress_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 progress_;
2020-08-10 15:17:29 +03:00
chatActionUploadingDocument();
2020-12-07 00:03:08 +03:00
explicit chatActionUploadingDocument(int32 progress_);
2020-08-10 15:17:29 +03:00
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;
};
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 progress_;
2020-08-10 15:17:29 +03:00
chatActionUploadingVideoNote();
2020-12-07 00:03:08 +03:00
explicit chatActionUploadingVideoNote(int32 progress_);
2020-08-10 15:17:29 +03:00
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;
};
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
bool can_unarchive_;
2020-08-10 15:17:29 +03:00
chatActionBarReportSpam();
2020-12-07 00:03:08 +03:00
explicit chatActionBarReportSpam(bool can_unarchive_);
static const std::int32_t ID = -1312758246;
2020-08-10 15:17:29 +03:00
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;
};
2020-08-10 15:17:29 +03:00
class chatActionBarReportAddBlock final : public ChatActionBar {
public:
2020-12-07 00:03:08 +03:00
bool can_unarchive_;
int32 distance_;
2020-08-10 15:17:29 +03:00
chatActionBarReportAddBlock();
2020-12-07 00:03:08 +03:00
chatActionBarReportAddBlock(bool can_unarchive_, int32 distance_);
static const std::int32_t ID = -914150419;
2020-08-10 15:17:29 +03:00
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 chatActionBarJoinRequest final : public ChatActionBar {
public:
string title_;
bool is_channel_;
int32 request_date_;
chatActionBarJoinRequest();
chatActionBarJoinRequest(string const &title_, bool is_channel_, int32 request_date_);
static const std::int32_t ID = 1037140744;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class chatAdministrator final : public Object {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
string custom_title_;
2020-08-10 15:17:29 +03:00
bool is_owner_;
chatAdministrator();
chatAdministrator(int53 user_id_, string const &custom_title_, bool is_owner_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1920449836;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<object_ptr<chatAdministrator>> administrators_;
2020-08-10 15:17:29 +03:00
chatAdministrators();
2020-12-07 00:03:08 +03:00
explicit chatAdministrators(array<object_ptr<chatAdministrator>> &&administrators_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int64 id_;
int32 date_;
object_ptr<MessageSender> member_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatEventAction> action_;
chatEvent();
chatEvent(int64 id_, int32 date_, object_ptr<MessageSender> &&member_id_, object_ptr<ChatEventAction> &&action_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -652102704;
2020-08-10 15:17:29 +03:00
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<message> old_message_;
object_ptr<message> new_message_;
chatEventMessageEdited();
chatEventMessageEdited(object_ptr<message> &&old_message_, object_ptr<message> &&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> message_;
chatEventMessageDeleted();
explicit chatEventMessageDeleted(object_ptr<message> &&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> message_;
chatEventPollStopped();
explicit chatEventPollStopped(object_ptr<message> &&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> message_;
chatEventMessagePinned();
explicit chatEventMessagePinned(object_ptr<message> &&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:
2020-12-07 00:03:08 +03:00
object_ptr<message> message_;
2020-08-10 15:17:29 +03:00
chatEventMessageUnpinned();
2020-12-07 00:03:08 +03:00
explicit chatEventMessageUnpinned(object_ptr<message> &&message_);
static const std::int32_t ID = -376161513;
2020-08-10 15:17:29 +03:00
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<chatInviteLink> invite_link_;
chatEventMemberJoinedByInviteLink();
explicit chatEventMemberJoinedByInviteLink(object_ptr<chatInviteLink> &&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<chatInviteLink> invite_link_;
chatEventMemberJoinedByRequest();
chatEventMemberJoinedByRequest(int53 approver_user_id_, object_ptr<chatInviteLink> &&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;
};
2020-08-10 15:17:29 +03:00
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_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> status_;
chatEventMemberInvited();
chatEventMemberInvited(int53 user_id_, object_ptr<ChatMemberStatus> &&status_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 953663433;
2020-08-10 15:17:29 +03:00
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_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> old_status_;
object_ptr<ChatMemberStatus> new_status_;
chatEventMemberPromoted();
chatEventMemberPromoted(int53 user_id_, object_ptr<ChatMemberStatus> &&old_status_, object_ptr<ChatMemberStatus> &&new_status_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 525297761;
2020-08-10 15:17:29 +03:00
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<MessageSender> member_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> old_status_;
object_ptr<ChatMemberStatus> new_status_;
chatEventMemberRestricted();
chatEventMemberRestricted(object_ptr<MessageSender> &&member_id_, object_ptr<ChatMemberStatus> &&old_status_, object_ptr<ChatMemberStatus> &&new_status_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1603608069;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string old_title_;
string new_title_;
2020-08-10 15:17:29 +03:00
chatEventTitleChanged();
2020-12-07 00:03:08 +03:00
chatEventTitleChanged(string const &old_title_, string const &new_title_);
2020-08-10 15:17:29 +03:00
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<chatPermissions> old_permissions_;
object_ptr<chatPermissions> new_permissions_;
chatEventPermissionsChanged();
chatEventPermissionsChanged(object_ptr<chatPermissions> &&old_permissions_, object_ptr<chatPermissions> &&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:
2020-12-07 00:03:08 +03:00
string old_description_;
string new_description_;
2020-08-10 15:17:29 +03:00
chatEventDescriptionChanged();
2020-12-07 00:03:08 +03:00
chatEventDescriptionChanged(string const &old_description_, string const &new_description_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string old_username_;
string new_username_;
2020-08-10 15:17:29 +03:00
chatEventUsernameChanged();
2020-12-07 00:03:08 +03:00
chatEventUsernameChanged(string const &old_username_, string const &new_username_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
object_ptr<chatPhoto> old_photo_;
object_ptr<chatPhoto> new_photo_;
2020-08-10 15:17:29 +03:00
chatEventPhotoChanged();
2020-12-07 00:03:08 +03:00
chatEventPhotoChanged(object_ptr<chatPhoto> &&old_photo_, object_ptr<chatPhoto> &&new_photo_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -811572541;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int53 old_linked_chat_id_;
int53 new_linked_chat_id_;
2020-08-10 15:17:29 +03:00
chatEventLinkedChatChanged();
2020-12-07 00:03:08 +03:00
chatEventLinkedChatChanged(int53 old_linked_chat_id_, int53 new_linked_chat_id_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 old_slow_mode_delay_;
int32 new_slow_mode_delay_;
2020-08-10 15:17:29 +03:00
chatEventSlowModeDelayChanged();
2020-12-07 00:03:08 +03:00
chatEventSlowModeDelayChanged(int32 old_slow_mode_delay_, int32 new_slow_mode_delay_);
2020-08-10 15:17:29 +03:00
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 chatEventMessageTtlChanged final : public ChatEventAction {
public:
int32 old_message_ttl_;
int32 new_message_ttl_;
chatEventMessageTtlChanged();
chatEventMessageTtlChanged(int32 old_message_ttl_, int32 new_message_ttl_);
static const std::int32_t ID = 776386995;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
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 chatEventHasProtectedContentToggled final : public ChatEventAction {
public:
bool has_protected_content_;
chatEventHasProtectedContentToggled();
explicit chatEventHasProtectedContentToggled(bool has_protected_content_);
static const std::int32_t ID = -184270335;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class chatEventStickerSetChanged final : public ChatEventAction {
public:
2020-12-07 00:03:08 +03:00
int64 old_sticker_set_id_;
int64 new_sticker_set_id_;
2020-08-10 15:17:29 +03:00
chatEventStickerSetChanged();
2020-12-07 00:03:08 +03:00
chatEventStickerSetChanged(int64 old_sticker_set_id_, int64 new_sticker_set_id_);
2020-08-10 15:17:29 +03:00
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<chatLocation> old_location_;
object_ptr<chatLocation> new_location_;
chatEventLocationChanged();
chatEventLocationChanged(object_ptr<chatLocation> &&old_location_, object_ptr<chatLocation> &&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 {
2020-08-10 15:17:29 +03:00
public:
object_ptr<chatInviteLink> old_invite_link_;
object_ptr<chatInviteLink> new_invite_link_;
2020-08-10 15:17:29 +03:00
chatEventInviteLinkEdited();
2020-08-10 15:17:29 +03:00
chatEventInviteLinkEdited(object_ptr<chatInviteLink> &&old_invite_link_, object_ptr<chatInviteLink> &&new_invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -460190366;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatEventInviteLinkRevoked final : public ChatEventAction {
2020-08-10 15:17:29 +03:00
public:
object_ptr<chatInviteLink> invite_link_;
2020-08-10 15:17:29 +03:00
chatEventInviteLinkRevoked();
2020-08-10 15:17:29 +03:00
explicit chatEventInviteLinkRevoked(object_ptr<chatInviteLink> &&invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1579417629;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatEventInviteLinkDeleted final : public ChatEventAction {
2020-12-07 00:03:08 +03:00
public:
object_ptr<chatInviteLink> invite_link_;
2020-12-07 00:03:08 +03:00
chatEventInviteLinkDeleted();
2020-12-07 00:03:08 +03:00
explicit chatEventInviteLinkDeleted(object_ptr<chatInviteLink> &&invite_link_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1394974361;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatEventVideoChatCreated final : public ChatEventAction {
2020-12-07 00:03:08 +03:00
public:
int32 group_call_id_;
2020-12-07 00:03:08 +03:00
chatEventVideoChatCreated();
2020-12-07 00:03:08 +03:00
explicit chatEventVideoChatCreated(int32 group_call_id_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1822853755;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatEventVideoChatEnded final : public ChatEventAction {
2020-08-10 15:17:29 +03:00
public:
int32 group_call_id_;
2020-08-10 15:17:29 +03:00
chatEventVideoChatEnded();
2020-08-10 15:17:29 +03:00
explicit chatEventVideoChatEnded(int32 group_call_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1630039112;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatEventVideoChatParticipantIsMutedToggled final : public ChatEventAction {
2020-08-10 15:17:29 +03:00
public:
object_ptr<MessageSender> participant_id_;
bool is_muted_;
chatEventVideoChatParticipantIsMutedToggled();
chatEventVideoChatParticipantIsMutedToggled(object_ptr<MessageSender> &&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<MessageSender> participant_id_;
int32 volume_level_;
chatEventVideoChatParticipantVolumeLevelChanged();
chatEventVideoChatParticipantVolumeLevelChanged(object_ptr<MessageSender> &&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<object_ptr<chatEvent>> events_;
chatEvents();
explicit chatEvents(array<object_ptr<chatEvent>> &&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<int53> pinned_chat_ids_;
array<int53> included_chat_ids_;
array<int53> 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<int53> &&pinned_chat_ids_, array<int53> &&included_chat_ids_, array<int53> &&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 expiration_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 expiration_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 = -205812476;
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<object_ptr<chatInviteLinkCount>> invite_link_counts_;
chatInviteLinkCounts();
explicit chatInviteLinkCounts(array<object_ptr<chatInviteLinkCount>> &&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_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatType> type_;
2020-12-07 00:03:08 +03:00
string title_;
object_ptr<chatPhotoInfo> photo_;
string description_;
2020-12-07 00:03:08 +03:00
int32 member_count_;
array<int53> member_user_ids_;
bool creates_join_request_;
2020-08-10 15:17:29 +03:00
bool is_public_;
chatInviteLinkInfo();
chatInviteLinkInfo(int53 chat_id_, int32 accessible_for_, object_ptr<ChatType> &&type_, string const &title_, object_ptr<chatPhotoInfo> &&photo_, string const &description_, int32 member_count_, array<int53> &&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<object_ptr<chatInviteLinkMember>> members_;
chatInviteLinkMembers();
chatInviteLinkMembers(int32 total_count_, array<object_ptr<chatInviteLinkMember>> &&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<object_ptr<chatInviteLink>> invite_links_;
chatInviteLinks();
chatInviteLinks(int32 total_count_, array<object_ptr<chatInviteLink>> &&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<object_ptr<chatJoinRequest>> requests_;
chatJoinRequests();
chatJoinRequests(int32 total_count_, array<object_ptr<chatJoinRequest>> &&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<int53> user_ids_;
chatJoinRequestsInfo();
2020-08-10 15:17:29 +03:00
chatJoinRequestsInfo(int32 total_count_, array<int53> &&user_ids_);
static const std::int32_t ID = 888534463;
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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<object_ptr<ChatList>> chat_lists_;
chatLists();
explicit chatLists(array<object_ptr<ChatList>> &&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;
};
2020-08-10 15:17:29 +03:00
class chatLocation final : public Object {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
string address_;
2020-08-10 15:17:29 +03:00
chatLocation();
2020-12-07 00:03:08 +03:00
chatLocation(object_ptr<location> &&location_, string const &address_);
2020-08-10 15:17:29 +03:00
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<MessageSender> member_id_;
int53 inviter_user_id_;
2020-12-07 00:03:08 +03:00
int32 joined_chat_date_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> status_;
chatMember();
chatMember(object_ptr<MessageSender> &&member_id_, int53 inviter_user_id_, int32 joined_chat_date_, object_ptr<ChatMemberStatus> &&status_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1829953909;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string custom_title_;
bool is_anonymous_;
2020-08-10 15:17:29 +03:00
bool is_member_;
chatMemberStatusCreator();
2020-12-07 00:03:08 +03:00
chatMemberStatusCreator(string const &custom_title_, bool is_anonymous_, bool is_member_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -160019714;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string custom_title_;
2020-08-10 15:17:29 +03:00
bool can_be_edited_;
bool can_manage_chat_;
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
bool is_anonymous_;
2020-08-10 15:17:29 +03:00
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_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 82243562;
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 restricted_until_date_;
2020-08-10 15:17:29 +03:00
object_ptr<chatPermissions> permissions_;
chatMemberStatusRestricted();
2020-12-07 00:03:08 +03:00
chatMemberStatusRestricted(bool is_member_, int32 restricted_until_date_, object_ptr<chatPermissions> &&permissions_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 banned_until_date_;
2020-08-10 15:17:29 +03:00
chatMemberStatusBanned();
2020-12-07 00:03:08 +03:00
explicit chatMemberStatusBanned(int32 banned_until_date_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<chatMember>> members_;
2020-08-10 15:17:29 +03:00
chatMembers();
2020-12-07 00:03:08 +03:00
chatMembers(int32 total_count_, array<object_ptr<chatMember>> &&members_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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;
};
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 distance_;
2020-08-10 15:17:29 +03:00
chatNearby();
2020-12-07 00:03:08 +03:00
chatNearby(int53 chat_id_, int32 distance_);
2020-08-10 15:17:29 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 mute_for_;
2020-08-10 15:17:29 +03:00
bool use_default_sound_;
2020-12-07 00:03:08 +03:00
string sound_;
2020-08-10 15:17:29 +03:00
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();
2020-12-07 00:03:08 +03:00
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_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int64 id_;
int32 added_date_;
object_ptr<minithumbnail> minithumbnail_;
array<object_ptr<photoSize>> sizes_;
object_ptr<animatedChatPhoto> animation_;
2020-08-10 15:17:29 +03:00
chatPhoto();
2020-12-07 00:03:08 +03:00
chatPhoto(int64 id_, int32 added_date_, object_ptr<minithumbnail> &&minithumbnail_, array<object_ptr<photoSize>> &&sizes_, object_ptr<animatedChatPhoto> &&animation_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -113003577;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class chatPhotoInfo final : public Object {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
object_ptr<file> small_;
object_ptr<file> big_;
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
bool has_animation_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
chatPhotoInfo();
2020-08-10 15:17:29 +03:00
chatPhotoInfo(object_ptr<file> &&small_, object_ptr<file> &&big_, object_ptr<minithumbnail> &&minithumbnail_, bool has_animation_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 167058358;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class chatPhotos final : public Object {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<chatPhoto>> photos_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
chatPhotos();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
chatPhotos(int32 total_count_, array<object_ptr<chatPhoto>> &&photos_);
static const std::int32_t ID = -1510699180;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class chatPosition final : public Object {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
object_ptr<ChatList> list_;
int64 order_;
bool is_pinned_;
object_ptr<ChatSource> source_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
chatPosition();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
chatPosition(object_ptr<ChatList> &&list_, int64 order_, bool is_pinned_, object_ptr<ChatSource> &&source_);
static const std::int32_t ID = -622557355;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class ChatReportReason: public Object {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
};
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
class chatReportReasonSpam final : public ChatReportReason {
public:
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
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;
2020-08-10 15:17:29 +03:00
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;
};
2020-08-10 15:17:29 +03:00
class chatReportReasonCustom final : public ChatReportReason {
public:
chatReportReasonCustom();
static const std::int32_t ID = 1288925974;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
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<dateRange> period_;
object_ptr<statisticalValue> member_count_;
object_ptr<statisticalValue> message_count_;
object_ptr<statisticalValue> viewer_count_;
object_ptr<statisticalValue> sender_count_;
object_ptr<StatisticalGraph> member_count_graph_;
object_ptr<StatisticalGraph> join_graph_;
object_ptr<StatisticalGraph> join_by_source_graph_;
object_ptr<StatisticalGraph> language_graph_;
object_ptr<StatisticalGraph> message_content_graph_;
object_ptr<StatisticalGraph> action_graph_;
object_ptr<StatisticalGraph> day_graph_;
object_ptr<StatisticalGraph> week_graph_;
array<object_ptr<chatStatisticsMessageSenderInfo>> top_senders_;
array<object_ptr<chatStatisticsAdministratorActionsInfo>> top_administrators_;
array<object_ptr<chatStatisticsInviterInfo>> top_inviters_;
chatStatisticsSupergroup();
chatStatisticsSupergroup(object_ptr<dateRange> &&period_, object_ptr<statisticalValue> &&member_count_, object_ptr<statisticalValue> &&message_count_, object_ptr<statisticalValue> &&viewer_count_, object_ptr<statisticalValue> &&sender_count_, object_ptr<StatisticalGraph> &&member_count_graph_, object_ptr<StatisticalGraph> &&join_graph_, object_ptr<StatisticalGraph> &&join_by_source_graph_, object_ptr<StatisticalGraph> &&language_graph_, object_ptr<StatisticalGraph> &&message_content_graph_, object_ptr<StatisticalGraph> &&action_graph_, object_ptr<StatisticalGraph> &&day_graph_, object_ptr<StatisticalGraph> &&week_graph_, array<object_ptr<chatStatisticsMessageSenderInfo>> &&top_senders_, array<object_ptr<chatStatisticsAdministratorActionsInfo>> &&top_administrators_, array<object_ptr<chatStatisticsInviterInfo>> &&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<dateRange> period_;
object_ptr<statisticalValue> member_count_;
object_ptr<statisticalValue> mean_view_count_;
object_ptr<statisticalValue> mean_share_count_;
double enabled_notifications_percentage_;
object_ptr<StatisticalGraph> member_count_graph_;
object_ptr<StatisticalGraph> join_graph_;
object_ptr<StatisticalGraph> mute_graph_;
object_ptr<StatisticalGraph> view_count_by_hour_graph_;
object_ptr<StatisticalGraph> view_count_by_source_graph_;
object_ptr<StatisticalGraph> join_by_source_graph_;
object_ptr<StatisticalGraph> language_graph_;
object_ptr<StatisticalGraph> message_interaction_graph_;
object_ptr<StatisticalGraph> instant_view_interaction_graph_;
array<object_ptr<chatStatisticsMessageInteractionInfo>> recent_message_interactions_;
chatStatisticsChannel();
chatStatisticsChannel(object_ptr<dateRange> &&period_, object_ptr<statisticalValue> &&member_count_, object_ptr<statisticalValue> &&mean_view_count_, object_ptr<statisticalValue> &&mean_share_count_, double enabled_notifications_percentage_, object_ptr<StatisticalGraph> &&member_count_graph_, object_ptr<StatisticalGraph> &&join_graph_, object_ptr<StatisticalGraph> &&mute_graph_, object_ptr<StatisticalGraph> &&view_count_by_hour_graph_, object_ptr<StatisticalGraph> &&view_count_by_source_graph_, object_ptr<StatisticalGraph> &&join_by_source_graph_, object_ptr<StatisticalGraph> &&language_graph_, object_ptr<StatisticalGraph> &&message_interaction_graph_, object_ptr<StatisticalGraph> &&instant_view_interaction_graph_, array<object_ptr<chatStatisticsMessageInteractionInfo>> &&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_;
2020-12-07 00:03:08 +03:00
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_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -406467202;
2020-12-07 00:03:08 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 added_member_count_;
chatStatisticsInviterInfo();
chatStatisticsInviterInfo(int53 user_id_, int32 added_member_count_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 629396619;
2020-12-07 00:03:08 +03:00
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_;
2020-12-07 00:03:08 +03:00
int32 sent_message_count_;
int32 average_character_count_;
chatStatisticsMessageSenderInfo();
chatStatisticsMessageSenderInfo(int53 user_id_, int32 sent_message_count_, int32 average_character_count_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1762295371;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class chatTheme final : public Object {
2020-08-10 15:17:29 +03:00
public:
string name_;
object_ptr<themeSettings> light_settings_;
object_ptr<themeSettings> dark_settings_;
2020-08-10 15:17:29 +03:00
chatTheme();
2020-08-10 15:17:29 +03:00
chatTheme(string const &name_, object_ptr<themeSettings> &&light_settings_, object_ptr<themeSettings> &&dark_settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -113218503;
2020-08-10 15:17:29 +03:00
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 {
2020-08-10 15:17:29 +03:00
public:
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
chatTypeBasicGroup();
explicit chatTypeBasicGroup(int53 basic_group_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 973884508;
2020-08-10 15:17:29 +03:00
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_;
2020-08-10 15:17:29 +03:00
bool is_channel_;
chatTypeSupergroup();
chatTypeSupergroup(int53 supergroup_id_, bool is_channel_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1472570774;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 secret_chat_id_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
chatTypeSecret();
chatTypeSecret(int32 secret_chat_id_, int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 862366513;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<int53> chat_ids_;
2020-08-10 15:17:29 +03:00
chats();
2020-12-07 00:03:08 +03:00
chats(int32 total_count_, array<int53> &&chat_ids_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1809654812;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<object_ptr<chatNearby>> users_nearby_;
array<object_ptr<chatNearby>> supergroups_nearby_;
2020-08-10 15:17:29 +03:00
chatsNearby();
2020-12-07 00:03:08 +03:00
chatsNearby(array<object_ptr<chatNearby>> &&users_nearby_, array<object_ptr<chatNearby>> &&supergroups_nearby_);
2020-08-10 15:17:29 +03:00
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<object_ptr<VectorPathCommand>> commands_;
closedVectorPath();
explicit closedVectorPath(array<object_ptr<VectorPathCommand>> &&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;
};
2020-08-10 15:17:29 +03:00
class connectedWebsite final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
string domain_name_;
int53 bot_user_id_;
2020-12-07 00:03:08 +03:00
string browser_;
string platform_;
int32 log_in_date_;
int32 last_active_date_;
string ip_;
string location_;
2020-08-10 15:17:29 +03:00
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_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 844014445;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<object_ptr<connectedWebsite>> websites_;
2020-08-10 15:17:29 +03:00
connectedWebsites();
2020-12-07 00:03:08 +03:00
explicit connectedWebsites(array<object_ptr<connectedWebsite>> &&websites_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string phone_number_;
string first_name_;
string last_name_;
string vcard_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
contact();
contact(string const &phone_number_, string const &first_name_, string const &last_name_, string const &vcard_, int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1993844876;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 count_;
2020-08-10 15:17:29 +03:00
count();
2020-12-07 00:03:08 +03:00
explicit count(int32 count_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
class countries final : public Object {
public:
array<object_ptr<countryInfo>> countries_;
countries();
explicit countries(array<object_ptr<countryInfo>> &&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<string> calling_codes_;
countryInfo();
countryInfo(string const &country_code_, string const &name_, string const &english_name_, bool is_hidden_, array<string> &&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;
};
2020-08-10 15:17:29 +03:00
class customRequestResult final : public Object {
public:
2020-12-07 00:03:08 +03:00
string result_;
2020-08-10 15:17:29 +03:00
customRequestResult();
2020-12-07 00:03:08 +03:00
explicit customRequestResult(string const &result_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string statistics_;
2020-08-10 15:17:29 +03:00
databaseStatistics();
2020-12-07 00:03:08 +03:00
explicit databaseStatistics(string const &statistics_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 day_;
int32 month_;
int32 year_;
2020-08-10 15:17:29 +03:00
date();
2020-12-07 00:03:08 +03:00
date(int32 day_, int32 month_, int32 year_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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;
};
2020-08-10 15:17:29 +03:00
class datedFile final : public Object {
public:
object_ptr<file> file_;
2020-12-07 00:03:08 +03:00
int32 date_;
2020-08-10 15:17:29 +03:00
datedFile();
2020-12-07 00:03:08 +03:00
datedFile(object_ptr<file> &&file_, int32 date_);
2020-08-10 15:17:29 +03:00
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<formattedText> text_;
bool need_update_application_;
deepLinkInfo();
deepLinkInfo(object_ptr<formattedText> &&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:
2020-12-07 00:03:08 +03:00
string token_;
2020-08-10 15:17:29 +03:00
bool encrypt_;
deviceTokenFirebaseCloudMessaging();
2020-12-07 00:03:08 +03:00
deviceTokenFirebaseCloudMessaging(string const &token_, bool encrypt_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string device_token_;
2020-08-10 15:17:29 +03:00
bool is_app_sandbox_;
deviceTokenApplePush();
2020-12-07 00:03:08 +03:00
deviceTokenApplePush(string const &device_token_, bool is_app_sandbox_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string device_token_;
2020-08-10 15:17:29 +03:00
bool is_app_sandbox_;
bool encrypt_;
deviceTokenApplePushVoIP();
2020-12-07 00:03:08 +03:00
deviceTokenApplePushVoIP(string const &device_token_, bool is_app_sandbox_, bool encrypt_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string access_token_;
2020-08-10 15:17:29 +03:00
deviceTokenWindowsPush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenWindowsPush(string const &access_token_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string channel_uri_;
2020-08-10 15:17:29 +03:00
deviceTokenMicrosoftPush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenMicrosoftPush(string const &channel_uri_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string channel_uri_;
2020-08-10 15:17:29 +03:00
deviceTokenMicrosoftPushVoIP();
2020-12-07 00:03:08 +03:00
explicit deviceTokenMicrosoftPushVoIP(string const &channel_uri_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string endpoint_;
string p256dh_base64url_;
string auth_base64url_;
2020-08-10 15:17:29 +03:00
deviceTokenWebPush();
2020-12-07 00:03:08 +03:00
deviceTokenWebPush(string const &endpoint_, string const &p256dh_base64url_, string const &auth_base64url_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string endpoint_;
2020-08-10 15:17:29 +03:00
deviceTokenSimplePush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenSimplePush(string const &endpoint_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string token_;
2020-08-10 15:17:29 +03:00
deviceTokenUbuntuPush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenUbuntuPush(string const &token_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string token_;
2020-08-10 15:17:29 +03:00
deviceTokenBlackBerryPush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenBlackBerryPush(string const &token_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string reg_id_;
2020-08-10 15:17:29 +03:00
deviceTokenTizenPush();
2020-12-07 00:03:08 +03:00
explicit deviceTokenTizenPush(string const &reg_id_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
class DiceStickers: public Object {
public:
};
class diceStickersRegular final : public DiceStickers {
public:
object_ptr<sticker> sticker_;
diceStickersRegular();
explicit diceStickersRegular(object_ptr<sticker> &&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<sticker> background_;
object_ptr<sticker> lever_;
object_ptr<sticker> left_reel_;
object_ptr<sticker> center_reel_;
object_ptr<sticker> right_reel_;
diceStickersSlotMachine();
diceStickersSlotMachine(object_ptr<sticker> &&background_, object_ptr<sticker> &&lever_, object_ptr<sticker> &&left_reel_, object_ptr<sticker> &&center_reel_, object_ptr<sticker> &&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;
};
2020-08-10 15:17:29 +03:00
class document final : public Object {
public:
2020-12-07 00:03:08 +03:00
string file_name_;
string mime_type_;
2020-08-10 15:17:29 +03:00
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> document_;
document();
2020-12-07 00:03:08 +03:00
document(string const &file_name_, string const &mime_type_, object_ptr<minithumbnail> &&minithumbnail_, object_ptr<thumbnail> &&thumbnail_, object_ptr<file> &&document_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1357271080;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int53 reply_to_message_id_;
int32 date_;
2020-08-10 15:17:29 +03:00
object_ptr<InputMessageContent> input_message_text_;
draftMessage();
2020-12-07 00:03:08 +03:00
draftMessage(int53 reply_to_message_id_, int32 date_, object_ptr<InputMessageContent> &&input_message_text_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1373050112;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string email_address_pattern_;
int32 length_;
2020-08-10 15:17:29 +03:00
emailAddressAuthenticationCodeInfo();
2020-12-07 00:03:08 +03:00
emailAddressAuthenticationCodeInfo(string const &email_address_pattern_, int32 length_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<string> emojis_;
2020-08-10 15:17:29 +03:00
emojis();
2020-12-07 00:03:08 +03:00
explicit emojis(array<string> &&emojis_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
bytes data_;
bytes hash_;
bytes secret_;
2020-08-10 15:17:29 +03:00
encryptedCredentials();
2020-12-07 00:03:08 +03:00
encryptedCredentials(bytes const &data_, bytes const &hash_, bytes const &secret_);
2020-08-10 15:17:29 +03:00
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<PassportElementType> type_;
2020-12-07 00:03:08 +03:00
bytes data_;
2020-08-10 15:17:29 +03:00
object_ptr<datedFile> front_side_;
object_ptr<datedFile> reverse_side_;
object_ptr<datedFile> selfie_;
2020-12-07 00:03:08 +03:00
array<object_ptr<datedFile>> translation_;
array<object_ptr<datedFile>> files_;
string value_;
string hash_;
2020-08-10 15:17:29 +03:00
encryptedPassportElement();
2020-12-07 00:03:08 +03:00
encryptedPassportElement(object_ptr<PassportElementType> &&type_, bytes const &data_, object_ptr<datedFile> &&front_side_, object_ptr<datedFile> &&reverse_side_, object_ptr<datedFile> &&selfie_, array<object_ptr<datedFile>> &&translation_, array<object_ptr<datedFile>> &&files_, string const &value_, string const &hash_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 code_;
string message_;
2020-08-10 15:17:29 +03:00
error();
2020-12-07 00:03:08 +03:00
error(int32 code_, string const &message_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 id_;
int32 size_;
int32 expected_size_;
2020-08-10 15:17:29 +03:00
object_ptr<localFile> local_;
object_ptr<remoteFile> remote_;
file();
2020-12-07 00:03:08 +03:00
file(int32 id_, int32 size_, int32 expected_size_, object_ptr<localFile> &&local_, object_ptr<remoteFile> &&remote_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
bytes data_;
2020-08-10 15:17:29 +03:00
filePart();
2020-12-07 00:03:08 +03:00
explicit filePart(bytes const &data_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string text_;
array<object_ptr<textEntity>> entities_;
2020-08-10 15:17:29 +03:00
formattedText();
2020-12-07 00:03:08 +03:00
formattedText(string const &text_, array<object_ptr<textEntity>> &&entities_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<message>> messages_;
string next_offset_;
2020-08-10 15:17:29 +03:00
foundMessages();
2020-12-07 00:03:08 +03:00
foundMessages(int32 total_count_, array<object_ptr<message>> &&messages_, string const &next_offset_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -529809608;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int64 id_;
string short_name_;
string title_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> text_;
2020-12-07 00:03:08 +03:00
string description_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> photo_;
object_ptr<animation> animation_;
game();
2020-12-07 00:03:08 +03:00
game(int64 id_, string const &short_name_, string const &title_, object_ptr<formattedText> &&text_, string const &description_, object_ptr<photo> &&photo_, object_ptr<animation> &&animation_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
int32 position_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
int32 score_;
2020-08-10 15:17:29 +03:00
gameHighScore();
gameHighScore(int32 position_, int53 user_id_, int32 score_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 342871838;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
array<object_ptr<gameHighScore>> scores_;
2020-08-10 15:17:29 +03:00
gameHighScores();
2020-12-07 00:03:08 +03:00
explicit gameHighScores(array<object_ptr<gameHighScore>> &&scores_);
2020-08-10 15:17:29 +03:00
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<object_ptr<groupCallRecentSpeaker>> 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<object_ptr<groupCallRecentSpeaker>> &&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<MessageSender> participant_id_;
int32 audio_source_id_;
int32 screen_sharing_audio_source_id_;
object_ptr<groupCallParticipantVideoInfo> video_info_;
object_ptr<groupCallParticipantVideoInfo> 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<MessageSender> &&participant_id_, int32 audio_source_id_, int32 screen_sharing_audio_source_id_, object_ptr<groupCallParticipantVideoInfo> &&video_info_, object_ptr<groupCallParticipantVideoInfo> &&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<object_ptr<groupCallVideoSourceGroup>> source_groups_;
string endpoint_id_;
bool is_paused_;
groupCallParticipantVideoInfo();
groupCallParticipantVideoInfo(array<object_ptr<groupCallVideoSourceGroup>> &&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<MessageSender> participant_id_;
bool is_speaking_;
groupCallRecentSpeaker();
groupCallRecentSpeaker(object_ptr<MessageSender> &&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<int32> source_ids_;
groupCallVideoSourceGroup();
groupCallVideoSourceGroup(string const &semantics_, array<int32> &&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;
};
2020-08-10 15:17:29 +03:00
class hashtags final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<string> hashtags_;
2020-08-10 15:17:29 +03:00
hashtags();
2020-12-07 00:03:08 +03:00
explicit hashtags(array<string> &&hashtags_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
httpUrl();
2020-12-07 00:03:08 +03:00
explicit httpUrl(string const &url_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string number_;
2020-08-10 15:17:29 +03:00
object_ptr<date> expiry_date_;
object_ptr<datedFile> front_side_;
object_ptr<datedFile> reverse_side_;
object_ptr<datedFile> selfie_;
2020-12-07 00:03:08 +03:00
array<object_ptr<datedFile>> translation_;
2020-08-10 15:17:29 +03:00
identityDocument();
2020-12-07 00:03:08 +03:00
identityDocument(string const &number_, object_ptr<date> &&expiry_date_, object_ptr<datedFile> &&front_side_, object_ptr<datedFile> &&reverse_side_, object_ptr<datedFile> &&selfie_, array<object_ptr<datedFile>> &&translation_);
2020-08-10 15:17:29 +03:00
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<int53> user_ids_;
2020-12-07 00:03:08 +03:00
array<int32> importer_count_;
2020-08-10 15:17:29 +03:00
importedContacts();
importedContacts(array<int53> &&user_ids_, array<int32> &&importer_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2068432290;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
object_ptr<InlineKeyboardButtonType> type_;
inlineKeyboardButton();
2020-12-07 00:03:08 +03:00
inlineKeyboardButton(string const &text_, object_ptr<InlineKeyboardButtonType> &&type_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
inlineKeyboardButtonTypeUrl();
2020-12-07 00:03:08 +03:00
explicit inlineKeyboardButtonTypeUrl(string const &url_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string url_;
int53 id_;
2020-12-07 00:03:08 +03:00
string forward_text_;
2020-08-10 15:17:29 +03:00
inlineKeyboardButtonTypeLoginUrl();
inlineKeyboardButtonTypeLoginUrl(string const &url_, int53 id_, string const &forward_text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1203413081;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
bytes data_;
2020-08-10 15:17:29 +03:00
inlineKeyboardButtonTypeCallback();
2020-12-07 00:03:08 +03:00
explicit inlineKeyboardButtonTypeCallback(bytes const &data_);
2020-08-10 15:17:29 +03:00
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;
};
2020-12-07 00:03:08 +03:00
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;
};
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
bool in_current_chat_;
inlineKeyboardButtonTypeSwitchInline();
2020-12-07 00:03:08 +03:00
inlineKeyboardButtonTypeSwitchInline(string const &query_, bool in_current_chat_);
2020-08-10 15:17:29 +03:00
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 inlineKeyboardButtonTypeUser final : public InlineKeyboardButtonType {
public:
int53 user_id_;
inlineKeyboardButtonTypeUser();
explicit inlineKeyboardButtonTypeUser(int53 user_id_);
static const std::int32_t ID = 1836574114;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class InlineQueryResult: public Object {
public:
};
class inlineQueryResultArticle final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string url_;
2020-08-10 15:17:29 +03:00
bool hide_url_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
inlineQueryResultArticle();
2020-12-07 00:03:08 +03:00
inlineQueryResultArticle(string const &id_, string const &url_, bool hide_url_, string const &title_, string const &description_, object_ptr<thumbnail> &&thumbnail_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 206340825;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<contact> contact_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
inlineQueryResultContact();
2020-12-07 00:03:08 +03:00
inlineQueryResultContact(string const &id_, object_ptr<contact> &&contact_, object_ptr<thumbnail> &&thumbnail_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -181960174;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
string title_;
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
inlineQueryResultLocation();
2020-12-07 00:03:08 +03:00
inlineQueryResultLocation(string const &id_, object_ptr<location> &&location_, string const &title_, object_ptr<thumbnail> &&thumbnail_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 466004752;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<venue> venue_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
inlineQueryResultVenue();
2020-12-07 00:03:08 +03:00
inlineQueryResultVenue(string const &id_, object_ptr<venue> &&venue_, object_ptr<thumbnail> &&thumbnail_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1281036382;
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<game> game_;
inlineQueryResultGame();
2020-12-07 00:03:08 +03:00
inlineQueryResultGame(string const &id_, object_ptr<game> &&game_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<animation> animation_;
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
inlineQueryResultAnimation();
2020-12-07 00:03:08 +03:00
inlineQueryResultAnimation(string const &id_, object_ptr<animation> &&animation_, string const &title_);
2020-08-10 15:17:29 +03:00
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:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<audio> audio_;
inlineQueryResultAudio();
2020-12-07 00:03:08 +03:00
inlineQueryResultAudio(string const &id_, object_ptr<audio> &&audio_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 842650360;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResultDocument final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<document> document_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
2020-08-10 15:17:29 +03:00
inlineQueryResultDocument();
2020-12-07 00:03:08 +03:00
inlineQueryResultDocument(string const &id_, object_ptr<document> &&document_, string const &title_, string const &description_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1491268539;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResultPhoto final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
2020-08-10 15:17:29 +03:00
inlineQueryResultPhoto();
2020-12-07 00:03:08 +03:00
inlineQueryResultPhoto(string const &id_, object_ptr<photo> &&photo_, string const &title_, string const &description_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1848319440;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResultSticker final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<sticker> sticker_;
inlineQueryResultSticker();
2020-12-07 00:03:08 +03:00
inlineQueryResultSticker(string const &id_, object_ptr<sticker> &&sticker_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1848224245;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResultVideo final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<video> video_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
2020-08-10 15:17:29 +03:00
inlineQueryResultVideo();
2020-12-07 00:03:08 +03:00
inlineQueryResultVideo(string const &id_, object_ptr<video> &&video_, string const &title_, string const &description_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1373158683;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResultVoiceNote final : public InlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<voiceNote> voice_note_;
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
inlineQueryResultVoiceNote();
2020-12-07 00:03:08 +03:00
inlineQueryResultVoiceNote(string const &id_, object_ptr<voiceNote> &&voice_note_, string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1897393105;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inlineQueryResults final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 inline_query_id_;
string next_offset_;
array<object_ptr<InlineQueryResult>> results_;
string switch_pm_text_;
string switch_pm_parameter_;
2020-08-10 15:17:29 +03:00
inlineQueryResults();
2020-12-07 00:03:08 +03:00
inlineQueryResults(int64 inline_query_id_, string const &next_offset_, array<object_ptr<InlineQueryResult>> &&results_, string const &switch_pm_text_, string const &switch_pm_parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1000709656;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputBackground: public Object {
public:
};
class inputBackgroundLocal final : public InputBackground {
public:
object_ptr<InputFile> background_;
inputBackgroundLocal();
explicit inputBackgroundLocal(object_ptr<InputFile> &&background_);
static const std::int32_t ID = -1747094364;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputBackgroundRemote final : public InputBackground {
public:
2020-12-07 00:03:08 +03:00
int64 background_id_;
2020-08-10 15:17:29 +03:00
inputBackgroundRemote();
2020-12-07 00:03:08 +03:00
explicit inputBackgroundRemote(int64 background_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -274976231;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class InputChatPhoto: public Object {
public:
};
class inputChatPhotoPrevious final : public InputChatPhoto {
public:
int64 chat_photo_id_;
inputChatPhotoPrevious();
explicit inputChatPhotoPrevious(int64 chat_photo_id_);
static const std::int32_t ID = 23128529;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputChatPhotoStatic final : public InputChatPhoto {
public:
object_ptr<InputFile> photo_;
inputChatPhotoStatic();
explicit inputChatPhotoStatic(object_ptr<InputFile> &&photo_);
static const std::int32_t ID = 1979179699;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputChatPhotoAnimation final : public InputChatPhoto {
public:
object_ptr<InputFile> animation_;
double main_frame_timestamp_;
inputChatPhotoAnimation();
inputChatPhotoAnimation(object_ptr<InputFile> &&animation_, double main_frame_timestamp_);
static const std::int32_t ID = 90846242;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class InputCredentials: public Object {
public:
};
class inputCredentialsSaved final : public InputCredentials {
public:
2020-12-07 00:03:08 +03:00
string saved_credentials_id_;
2020-08-10 15:17:29 +03:00
inputCredentialsSaved();
2020-12-07 00:03:08 +03:00
explicit inputCredentialsSaved(string const &saved_credentials_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2034385364;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputCredentialsNew final : public InputCredentials {
public:
2020-12-07 00:03:08 +03:00
string data_;
2020-08-10 15:17:29 +03:00
bool allow_save_;
inputCredentialsNew();
2020-12-07 00:03:08 +03:00
inputCredentialsNew(string const &data_, bool allow_save_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -829689558;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputCredentialsApplePay final : public InputCredentials {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
string data_;
2020-08-10 15:17:29 +03:00
inputCredentialsApplePay();
2020-08-10 15:17:29 +03:00
explicit inputCredentialsApplePay(string const &data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1246570799;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputCredentialsGooglePay final : public InputCredentials {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
string data_;
2020-08-10 15:17:29 +03:00
inputCredentialsGooglePay();
2020-08-10 15:17:29 +03:00
explicit inputCredentialsGooglePay(string const &data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 844384100;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputFile: public Object {
public:
};
class inputFileId final : public InputFile {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
2020-08-10 15:17:29 +03:00
inputFileId();
2020-12-07 00:03:08 +03:00
explicit inputFileId(int32 id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1788906253;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputFileRemote final : public InputFile {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
inputFileRemote();
2020-12-07 00:03:08 +03:00
explicit inputFileRemote(string const &id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -107574466;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputFileLocal final : public InputFile {
public:
2020-12-07 00:03:08 +03:00
string path_;
2020-08-10 15:17:29 +03:00
inputFileLocal();
2020-12-07 00:03:08 +03:00
explicit inputFileLocal(string const &path_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2056030919;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputFileGenerated final : public InputFile {
public:
2020-12-07 00:03:08 +03:00
string original_path_;
string conversion_;
int32 expected_size_;
2020-08-10 15:17:29 +03:00
inputFileGenerated();
2020-12-07 00:03:08 +03:00
inputFileGenerated(string const &original_path_, string const &conversion_, int32 expected_size_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1781351885;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputIdentityDocument final : public Object {
public:
2020-12-07 00:03:08 +03:00
string number_;
2020-08-10 15:17:29 +03:00
object_ptr<date> expiry_date_;
object_ptr<InputFile> front_side_;
object_ptr<InputFile> reverse_side_;
object_ptr<InputFile> selfie_;
2020-12-07 00:03:08 +03:00
array<object_ptr<InputFile>> translation_;
2020-08-10 15:17:29 +03:00
inputIdentityDocument();
2020-12-07 00:03:08 +03:00
inputIdentityDocument(string const &number_, object_ptr<date> &&expiry_date_, object_ptr<InputFile> &&front_side_, object_ptr<InputFile> &&reverse_side_, object_ptr<InputFile> &&selfie_, array<object_ptr<InputFile>> &&translation_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -381776063;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputInlineQueryResult: public Object {
public:
};
2020-12-07 00:03:08 +03:00
class inputInlineQueryResultAnimation final : public InputInlineQueryResult {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string thumbnail_url_;
string thumbnail_mime_type_;
string video_url_;
string video_mime_type_;
int32 video_duration_;
int32 video_width_;
int32 video_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
2020-12-07 00:03:08 +03:00
inputInlineQueryResultAnimation();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
inputInlineQueryResultAnimation(string const &id_, string const &title_, string const &thumbnail_url_, string const &thumbnail_mime_type_, string const &video_url_, string const &video_mime_type_, int32 video_duration_, int32 video_width_, int32 video_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1489808874;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultArticle final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string url_;
2020-08-10 15:17:29 +03:00
bool hide_url_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
string thumbnail_url_;
int32 thumbnail_width_;
int32 thumbnail_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultArticle();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultArticle(string const &id_, string const &url_, bool hide_url_, string const &title_, string const &description_, string const &thumbnail_url_, int32 thumbnail_width_, int32 thumbnail_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1973670156;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultAudio final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string performer_;
string audio_url_;
int32 audio_duration_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultAudio();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultAudio(string const &id_, string const &title_, string const &performer_, string const &audio_url_, int32 audio_duration_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1260139988;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultContact final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<contact> contact_;
2020-12-07 00:03:08 +03:00
string thumbnail_url_;
int32 thumbnail_width_;
int32 thumbnail_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultContact();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultContact(string const &id_, object_ptr<contact> &&contact_, string const &thumbnail_url_, int32 thumbnail_width_, int32 thumbnail_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1846064594;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultDocument final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string description_;
string document_url_;
string mime_type_;
string thumbnail_url_;
int32 thumbnail_width_;
int32 thumbnail_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultDocument();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultDocument(string const &id_, string const &title_, string const &description_, string const &document_url_, string const &mime_type_, string const &thumbnail_url_, int32 thumbnail_width_, int32 thumbnail_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 578801869;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultGame final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string game_short_name_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
inputInlineQueryResultGame();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultGame(string const &id_, string const &game_short_name_, object_ptr<ReplyMarkup> &&reply_markup_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 966074327;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultLocation final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 live_period_;
string title_;
string thumbnail_url_;
int32 thumbnail_width_;
int32 thumbnail_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultLocation();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultLocation(string const &id_, object_ptr<location> &&location_, int32 live_period_, string const &title_, string const &thumbnail_url_, int32 thumbnail_width_, int32 thumbnail_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1887650218;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultPhoto final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string description_;
string thumbnail_url_;
string photo_url_;
int32 photo_width_;
int32 photo_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultPhoto();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultPhoto(string const &id_, string const &title_, string const &description_, string const &thumbnail_url_, string const &photo_url_, int32 photo_width_, int32 photo_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1123338721;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultSticker final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string thumbnail_url_;
string sticker_url_;
int32 sticker_width_;
int32 sticker_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultSticker();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultSticker(string const &id_, string const &thumbnail_url_, string const &sticker_url_, int32 sticker_width_, int32 sticker_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 274007129;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultVenue final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
2020-08-10 15:17:29 +03:00
object_ptr<venue> venue_;
2020-12-07 00:03:08 +03:00
string thumbnail_url_;
int32 thumbnail_width_;
int32 thumbnail_height_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultVenue();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultVenue(string const &id_, object_ptr<venue> &&venue_, string const &thumbnail_url_, int32 thumbnail_width_, int32 thumbnail_height_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 541704509;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultVideo final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string description_;
string thumbnail_url_;
string video_url_;
string mime_type_;
int32 video_width_;
int32 video_height_;
int32 video_duration_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultVideo();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultVideo(string const &id_, string const &title_, string const &description_, string const &thumbnail_url_, string const &video_url_, string const &mime_type_, int32 video_width_, int32 video_height_, int32 video_duration_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1724073191;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputInlineQueryResultVoiceNote final : public InputInlineQueryResult {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
string voice_note_url_;
int32 voice_note_duration_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
inputInlineQueryResultVoiceNote();
2020-12-07 00:03:08 +03:00
inputInlineQueryResultVoiceNote(string const &id_, string const &title_, string const &voice_note_url_, int32 voice_note_duration_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1790072503;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputMessageContent: public Object {
public:
};
class inputMessageText final : public InputMessageContent {
public:
object_ptr<formattedText> text_;
bool disable_web_page_preview_;
bool clear_draft_;
inputMessageText();
inputMessageText(object_ptr<formattedText> &&text_, bool disable_web_page_preview_, bool clear_draft_);
static const std::int32_t ID = 247050392;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageAnimation final : public InputMessageContent {
public:
object_ptr<InputFile> animation_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
array<int32> added_sticker_file_ids_;
int32 duration_;
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> caption_;
inputMessageAnimation();
2020-12-07 00:03:08 +03:00
inputMessageAnimation(object_ptr<InputFile> &&animation_, object_ptr<inputThumbnail> &&thumbnail_, array<int32> &&added_sticker_file_ids_, int32 duration_, int32 width_, int32 height_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1208433535;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageAudio final : public InputMessageContent {
public:
object_ptr<InputFile> audio_;
object_ptr<inputThumbnail> album_cover_thumbnail_;
2020-12-07 00:03:08 +03:00
int32 duration_;
string title_;
string performer_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> caption_;
inputMessageAudio();
2020-12-07 00:03:08 +03:00
inputMessageAudio(object_ptr<InputFile> &&audio_, object_ptr<inputThumbnail> &&album_cover_thumbnail_, int32 duration_, string const &title_, string const &performer_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -626786126;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageDocument final : public InputMessageContent {
public:
object_ptr<InputFile> document_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
bool disable_content_type_detection_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> caption_;
inputMessageDocument();
2020-12-07 00:03:08 +03:00
inputMessageDocument(object_ptr<InputFile> &&document_, object_ptr<inputThumbnail> &&thumbnail_, bool disable_content_type_detection_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1633383097;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessagePhoto final : public InputMessageContent {
public:
object_ptr<InputFile> photo_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
array<int32> added_sticker_file_ids_;
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> caption_;
2020-12-07 00:03:08 +03:00
int32 ttl_;
2020-08-10 15:17:29 +03:00
inputMessagePhoto();
2020-12-07 00:03:08 +03:00
inputMessagePhoto(object_ptr<InputFile> &&photo_, object_ptr<inputThumbnail> &&thumbnail_, array<int32> &&added_sticker_file_ids_, int32 width_, int32 height_, object_ptr<formattedText> &&caption_, int32 ttl_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1648801584;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageSticker final : public InputMessageContent {
public:
object_ptr<InputFile> sticker_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
int32 width_;
int32 height_;
string emoji_;
2020-08-10 15:17:29 +03:00
inputMessageSticker();
inputMessageSticker(object_ptr<InputFile> &&sticker_, object_ptr<inputThumbnail> &&thumbnail_, int32 width_, int32 height_, string const &emoji_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1072805625;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageVideo final : public InputMessageContent {
public:
object_ptr<InputFile> video_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
array<int32> added_sticker_file_ids_;
int32 duration_;
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
bool supports_streaming_;
object_ptr<formattedText> caption_;
2020-12-07 00:03:08 +03:00
int32 ttl_;
2020-08-10 15:17:29 +03:00
inputMessageVideo();
2020-12-07 00:03:08 +03:00
inputMessageVideo(object_ptr<InputFile> &&video_, object_ptr<inputThumbnail> &&thumbnail_, array<int32> &&added_sticker_file_ids_, int32 duration_, int32 width_, int32 height_, bool supports_streaming_, object_ptr<formattedText> &&caption_, int32 ttl_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2108486755;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageVideoNote final : public InputMessageContent {
public:
object_ptr<InputFile> video_note_;
object_ptr<inputThumbnail> thumbnail_;
2020-12-07 00:03:08 +03:00
int32 duration_;
int32 length_;
2020-08-10 15:17:29 +03:00
inputMessageVideoNote();
2020-12-07 00:03:08 +03:00
inputMessageVideoNote(object_ptr<InputFile> &&video_note_, object_ptr<inputThumbnail> &&thumbnail_, int32 duration_, int32 length_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 279108859;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageVoiceNote final : public InputMessageContent {
public:
object_ptr<InputFile> voice_note_;
2020-12-07 00:03:08 +03:00
int32 duration_;
bytes waveform_;
2020-08-10 15:17:29 +03:00
object_ptr<formattedText> caption_;
inputMessageVoiceNote();
2020-12-07 00:03:08 +03:00
inputMessageVoiceNote(object_ptr<InputFile> &&voice_note_, int32 duration_, bytes const &waveform_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2136519657;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageLocation final : public InputMessageContent {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 live_period_;
int32 heading_;
int32 proximity_alert_radius_;
2020-08-10 15:17:29 +03:00
inputMessageLocation();
2020-12-07 00:03:08 +03:00
inputMessageLocation(object_ptr<location> &&location_, int32 live_period_, int32 heading_, int32 proximity_alert_radius_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 648735088;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageVenue final : public InputMessageContent {
public:
object_ptr<venue> venue_;
inputMessageVenue();
explicit inputMessageVenue(object_ptr<venue> &&venue_);
static const std::int32_t ID = 1447926269;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageContact final : public InputMessageContent {
public:
object_ptr<contact> contact_;
inputMessageContact();
explicit inputMessageContact(object_ptr<contact> &&contact_);
static const std::int32_t ID = -982446849;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class inputMessageDice final : public InputMessageContent {
public:
string emoji_;
bool clear_draft_;
inputMessageDice();
inputMessageDice(string const &emoji_, bool clear_draft_);
static const std::int32_t ID = 841574313;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class inputMessageGame final : public InputMessageContent {
public:
int53 bot_user_id_;
2020-12-07 00:03:08 +03:00
string game_short_name_;
2020-08-10 15:17:29 +03:00
inputMessageGame();
inputMessageGame(int53 bot_user_id_, string const &game_short_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1252944610;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageInvoice final : public InputMessageContent {
public:
object_ptr<invoice> invoice_;
2020-12-07 00:03:08 +03:00
string title_;
string description_;
string photo_url_;
int32 photo_size_;
int32 photo_width_;
int32 photo_height_;
bytes payload_;
string provider_token_;
string provider_data_;
string start_parameter_;
2020-08-10 15:17:29 +03:00
inputMessageInvoice();
2020-12-07 00:03:08 +03:00
inputMessageInvoice(object_ptr<invoice> &&invoice_, string const &title_, string const &description_, string const &photo_url_, int32 photo_size_, int32 photo_width_, int32 photo_height_, bytes const &payload_, string const &provider_token_, string const &provider_data_, string const &start_parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1038812175;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessagePoll final : public InputMessageContent {
public:
2020-12-07 00:03:08 +03:00
string question_;
array<string> options_;
2020-08-10 15:17:29 +03:00
bool is_anonymous_;
object_ptr<PollType> type_;
2020-12-07 00:03:08 +03:00
int32 open_period_;
int32 close_date_;
2020-08-10 15:17:29 +03:00
bool is_closed_;
inputMessagePoll();
2020-12-07 00:03:08 +03:00
inputMessagePoll(string const &question_, array<string> &&options_, bool is_anonymous_, object_ptr<PollType> &&type_, int32 open_period_, int32 close_date_, bool is_closed_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 2054629900;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputMessageForwarded final : public InputMessageContent {
public:
2020-12-07 00:03:08 +03:00
int53 from_chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
bool in_game_share_;
2020-12-07 00:03:08 +03:00
object_ptr<messageCopyOptions> copy_options_;
2020-08-10 15:17:29 +03:00
inputMessageForwarded();
2020-12-07 00:03:08 +03:00
inputMessageForwarded(int53 from_chat_id_, int53 message_id_, bool in_game_share_, object_ptr<messageCopyOptions> &&copy_options_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1696232440;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputPassportElement: public Object {
public:
};
class inputPassportElementPersonalDetails final : public InputPassportElement {
public:
object_ptr<personalDetails> personal_details_;
inputPassportElementPersonalDetails();
explicit inputPassportElementPersonalDetails(object_ptr<personalDetails> &&personal_details_);
static const std::int32_t ID = 164791359;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementPassport final : public InputPassportElement {
public:
object_ptr<inputIdentityDocument> passport_;
inputPassportElementPassport();
explicit inputPassportElementPassport(object_ptr<inputIdentityDocument> &&passport_);
static const std::int32_t ID = -497011356;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementDriverLicense final : public InputPassportElement {
public:
object_ptr<inputIdentityDocument> driver_license_;
inputPassportElementDriverLicense();
explicit inputPassportElementDriverLicense(object_ptr<inputIdentityDocument> &&driver_license_);
static const std::int32_t ID = 304813264;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementIdentityCard final : public InputPassportElement {
public:
object_ptr<inputIdentityDocument> identity_card_;
inputPassportElementIdentityCard();
explicit inputPassportElementIdentityCard(object_ptr<inputIdentityDocument> &&identity_card_);
static const std::int32_t ID = -9963390;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementInternalPassport final : public InputPassportElement {
public:
object_ptr<inputIdentityDocument> internal_passport_;
inputPassportElementInternalPassport();
explicit inputPassportElementInternalPassport(object_ptr<inputIdentityDocument> &&internal_passport_);
static const std::int32_t ID = 715360043;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementAddress final : public InputPassportElement {
public:
object_ptr<address> address_;
inputPassportElementAddress();
explicit inputPassportElementAddress(object_ptr<address> &&address_);
static const std::int32_t ID = 461630480;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementUtilityBill final : public InputPassportElement {
public:
object_ptr<inputPersonalDocument> utility_bill_;
inputPassportElementUtilityBill();
explicit inputPassportElementUtilityBill(object_ptr<inputPersonalDocument> &&utility_bill_);
static const std::int32_t ID = 1389203841;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementBankStatement final : public InputPassportElement {
public:
object_ptr<inputPersonalDocument> bank_statement_;
inputPassportElementBankStatement();
explicit inputPassportElementBankStatement(object_ptr<inputPersonalDocument> &&bank_statement_);
static const std::int32_t ID = -26585208;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementRentalAgreement final : public InputPassportElement {
public:
object_ptr<inputPersonalDocument> rental_agreement_;
inputPassportElementRentalAgreement();
explicit inputPassportElementRentalAgreement(object_ptr<inputPersonalDocument> &&rental_agreement_);
static const std::int32_t ID = 1736154155;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementPassportRegistration final : public InputPassportElement {
public:
object_ptr<inputPersonalDocument> passport_registration_;
inputPassportElementPassportRegistration();
explicit inputPassportElementPassportRegistration(object_ptr<inputPersonalDocument> &&passport_registration_);
static const std::int32_t ID = 1314562128;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementTemporaryRegistration final : public InputPassportElement {
public:
object_ptr<inputPersonalDocument> temporary_registration_;
inputPassportElementTemporaryRegistration();
explicit inputPassportElementTemporaryRegistration(object_ptr<inputPersonalDocument> &&temporary_registration_);
static const std::int32_t ID = -1913238047;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementPhoneNumber final : public InputPassportElement {
public:
string phone_number_;
inputPassportElementPhoneNumber();
explicit inputPassportElementPhoneNumber(string const &phone_number_);
static const std::int32_t ID = 1319357497;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementEmailAddress final : public InputPassportElement {
public:
string email_address_;
inputPassportElementEmailAddress();
explicit inputPassportElementEmailAddress(string const &email_address_);
static const std::int32_t ID = -248605659;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementError final : public Object {
public:
object_ptr<PassportElementType> type_;
string message_;
object_ptr<InputPassportElementErrorSource> source_;
inputPassportElementError();
inputPassportElementError(object_ptr<PassportElementType> &&type_, string const &message_, object_ptr<InputPassportElementErrorSource> &&source_);
static const std::int32_t ID = 285756898;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputPassportElementErrorSource: public Object {
public:
};
class inputPassportElementErrorSourceUnspecified final : public InputPassportElementErrorSource {
public:
bytes element_hash_;
inputPassportElementErrorSourceUnspecified();
explicit inputPassportElementErrorSourceUnspecified(bytes const &element_hash_);
static const std::int32_t ID = 267230319;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceDataField final : public InputPassportElementErrorSource {
public:
string field_name_;
bytes data_hash_;
inputPassportElementErrorSourceDataField();
inputPassportElementErrorSourceDataField(string const &field_name_, bytes const &data_hash_);
static const std::int32_t ID = -426795002;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceFrontSide final : public InputPassportElementErrorSource {
public:
bytes file_hash_;
inputPassportElementErrorSourceFrontSide();
explicit inputPassportElementErrorSourceFrontSide(bytes const &file_hash_);
static const std::int32_t ID = 588023741;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceReverseSide final : public InputPassportElementErrorSource {
public:
bytes file_hash_;
inputPassportElementErrorSourceReverseSide();
explicit inputPassportElementErrorSourceReverseSide(bytes const &file_hash_);
static const std::int32_t ID = 413072891;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceSelfie final : public InputPassportElementErrorSource {
public:
bytes file_hash_;
inputPassportElementErrorSourceSelfie();
explicit inputPassportElementErrorSourceSelfie(bytes const &file_hash_);
static const std::int32_t ID = -773575528;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceTranslationFile final : public InputPassportElementErrorSource {
public:
bytes file_hash_;
inputPassportElementErrorSourceTranslationFile();
explicit inputPassportElementErrorSourceTranslationFile(bytes const &file_hash_);
static const std::int32_t ID = 505842299;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceTranslationFiles final : public InputPassportElementErrorSource {
public:
array<bytes> file_hashes_;
inputPassportElementErrorSourceTranslationFiles();
explicit inputPassportElementErrorSourceTranslationFiles(array<bytes> &&file_hashes_);
static const std::int32_t ID = -527254048;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceFile final : public InputPassportElementErrorSource {
public:
bytes file_hash_;
inputPassportElementErrorSourceFile();
explicit inputPassportElementErrorSourceFile(bytes const &file_hash_);
static const std::int32_t ID = -298492469;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPassportElementErrorSourceFiles final : public InputPassportElementErrorSource {
public:
array<bytes> file_hashes_;
inputPassportElementErrorSourceFiles();
explicit inputPassportElementErrorSourceFiles(array<bytes> &&file_hashes_);
static const std::int32_t ID = -2008541640;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputPersonalDocument final : public Object {
public:
array<object_ptr<InputFile>> files_;
array<object_ptr<InputFile>> translation_;
inputPersonalDocument();
inputPersonalDocument(array<object_ptr<InputFile>> &&files_, array<object_ptr<InputFile>> &&translation_);
static const std::int32_t ID = 1676966826;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InputSticker: public Object {
public:
};
class inputStickerStatic final : public InputSticker {
public:
object_ptr<InputFile> sticker_;
string emojis_;
object_ptr<maskPosition> mask_position_;
inputStickerStatic();
inputStickerStatic(object_ptr<InputFile> &&sticker_, string const &emojis_, object_ptr<maskPosition> &&mask_position_);
static const std::int32_t ID = 1409680603;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputStickerAnimated final : public InputSticker {
public:
object_ptr<InputFile> sticker_;
string emojis_;
inputStickerAnimated();
inputStickerAnimated(object_ptr<InputFile> &&sticker_, string const &emojis_);
static const std::int32_t ID = -1127265952;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class inputThumbnail final : public Object {
public:
object_ptr<InputFile> thumbnail_;
int32 width_;
int32 height_;
inputThumbnail();
inputThumbnail(object_ptr<InputFile> &&thumbnail_, int32 width_, int32 height_);
static const std::int32_t ID = 1582387236;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class InternalLinkType: public Object {
2020-08-10 15:17:29 +03:00
public:
};
2020-08-10 15:17:29 +03:00
class internalLinkTypeActiveSessions final : public InternalLinkType {
public:
2020-08-10 15:17:29 +03:00
internalLinkTypeActiveSessions();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1886108589;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeAuthenticationCode final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string code_;
2020-08-10 15:17:29 +03:00
internalLinkTypeAuthenticationCode();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeAuthenticationCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -209235982;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeBackground final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string background_name_;
2020-08-10 15:17:29 +03:00
internalLinkTypeBackground();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeBackground(string const &background_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 185411848;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeBotStart final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string bot_username_;
string start_parameter_;
2020-08-10 15:17:29 +03:00
internalLinkTypeBotStart();
2020-08-10 15:17:29 +03:00
internalLinkTypeBotStart(string const &bot_username_, string const &start_parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1206724291;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeBotStartInGroup final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string bot_username_;
string start_parameter_;
2020-08-10 15:17:29 +03:00
internalLinkTypeBotStartInGroup();
2020-08-10 15:17:29 +03:00
internalLinkTypeBotStartInGroup(string const &bot_username_, string const &start_parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1040096100;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeChangePhoneNumber final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
internalLinkTypeChangePhoneNumber();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -265856255;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeChatInvite final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string invite_link_;
2020-08-10 15:17:29 +03:00
internalLinkTypeChatInvite();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeChatInvite(string const &invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 428621017;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeFilterSettings final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
internalLinkTypeFilterSettings();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1501632411;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeGame final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string bot_username_;
string game_short_name_;
2020-08-10 15:17:29 +03:00
internalLinkTypeGame();
2020-08-10 15:17:29 +03:00
internalLinkTypeGame(string const &bot_username_, string const &game_short_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -260788787;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeLanguagePack final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string language_pack_id_;
2020-08-10 15:17:29 +03:00
internalLinkTypeLanguagePack();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeLanguagePack(string const &language_pack_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1450766996;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeMessage final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string url_;
2020-08-10 15:17:29 +03:00
internalLinkTypeMessage();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeMessage(string const &url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 978541650;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeMessageDraft final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
object_ptr<formattedText> text_;
bool contains_link_;
2020-08-10 15:17:29 +03:00
internalLinkTypeMessageDraft();
2020-08-10 15:17:29 +03:00
internalLinkTypeMessageDraft(object_ptr<formattedText> &&text_, bool contains_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 661633749;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypePassportDataRequest final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
int53 bot_user_id_;
string scope_;
string public_key_;
string nonce_;
string callback_url_;
2020-08-10 15:17:29 +03:00
internalLinkTypePassportDataRequest();
2020-08-10 15:17:29 +03:00
internalLinkTypePassportDataRequest(int53 bot_user_id_, string const &scope_, string const &public_key_, string const &nonce_, string const &callback_url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -988819839;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypePhoneNumberConfirmation final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string hash_;
string phone_number_;
2020-08-10 15:17:29 +03:00
internalLinkTypePhoneNumberConfirmation();
2020-08-10 15:17:29 +03:00
internalLinkTypePhoneNumberConfirmation(string const &hash_, string const &phone_number_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1757375254;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeProxy final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string server_;
int32 port_;
object_ptr<ProxyType> type_;
2020-08-10 15:17:29 +03:00
internalLinkTypeProxy();
2020-08-10 15:17:29 +03:00
internalLinkTypeProxy(string const &server_, int32 port_, object_ptr<ProxyType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1313788694;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypePublicChat final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string chat_username_;
2020-08-10 15:17:29 +03:00
internalLinkTypePublicChat();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypePublicChat(string const &chat_username_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1485547717;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeQrCodeAuthentication final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
internalLinkTypeQrCodeAuthentication();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1089332956;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeSettings final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
internalLinkTypeSettings();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 393561524;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeStickerSet final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string sticker_set_name_;
2020-08-10 15:17:29 +03:00
internalLinkTypeStickerSet();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeStickerSet(string const &sticker_set_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -529639751;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeTheme final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string theme_name_;
2020-08-10 15:17:29 +03:00
internalLinkTypeTheme();
2020-08-10 15:17:29 +03:00
explicit internalLinkTypeTheme(string const &theme_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -200935417;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeThemeSettings final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
internalLinkTypeThemeSettings();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1051903722;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeUnknownDeepLink final : public InternalLinkType {
2020-12-07 00:03:08 +03:00
public:
string link_;
2020-08-10 15:17:29 +03:00
internalLinkTypeUnknownDeepLink();
2020-12-07 00:03:08 +03:00
explicit internalLinkTypeUnknownDeepLink(string const &link_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 625596379;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeUnsupportedProxy final : public InternalLinkType {
2020-12-07 00:03:08 +03:00
public:
2020-08-10 15:17:29 +03:00
internalLinkTypeUnsupportedProxy();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -566649079;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class internalLinkTypeVideoChat final : public InternalLinkType {
2020-08-10 15:17:29 +03:00
public:
string chat_username_;
string invite_hash_;
bool is_live_stream_;
2020-08-10 15:17:29 +03:00
internalLinkTypeVideoChat();
2020-08-10 15:17:29 +03:00
internalLinkTypeVideoChat(string const &chat_username_, string const &invite_hash_, bool is_live_stream_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2020149068;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class invoice final : public Object {
public:
2020-12-07 00:03:08 +03:00
string currency_;
array<object_ptr<labeledPricePart>> price_parts_;
int53 max_tip_amount_;
array<int53> suggested_tip_amounts_;
2020-08-10 15:17:29 +03:00
bool is_test_;
bool need_name_;
bool need_phone_number_;
bool need_email_address_;
bool need_shipping_address_;
bool send_phone_number_to_provider_;
bool send_email_address_to_provider_;
bool is_flexible_;
invoice();
invoice(string const &currency_, array<object_ptr<labeledPricePart>> &&price_parts_, int53 max_tip_amount_, array<int53> &&suggested_tip_amounts_, bool is_test_, bool need_name_, bool need_phone_number_, bool need_email_address_, bool need_shipping_address_, bool send_phone_number_to_provider_, bool send_email_address_to_provider_, bool is_flexible_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1479250728;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonObjectMember final : public Object {
public:
2020-12-07 00:03:08 +03:00
string key_;
2020-08-10 15:17:29 +03:00
object_ptr<JsonValue> value_;
jsonObjectMember();
2020-12-07 00:03:08 +03:00
jsonObjectMember(string const &key_, object_ptr<JsonValue> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1803309418;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class JsonValue: public Object {
public:
};
class jsonValueNull final : public JsonValue {
public:
jsonValueNull();
static const std::int32_t ID = -92872499;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonValueBoolean final : public JsonValue {
public:
bool value_;
jsonValueBoolean();
explicit jsonValueBoolean(bool value_);
static const std::int32_t ID = -2142186576;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonValueNumber final : public JsonValue {
public:
double value_;
jsonValueNumber();
explicit jsonValueNumber(double value_);
static const std::int32_t ID = -1010822033;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonValueString final : public JsonValue {
public:
2020-12-07 00:03:08 +03:00
string value_;
2020-08-10 15:17:29 +03:00
jsonValueString();
2020-12-07 00:03:08 +03:00
explicit jsonValueString(string const &value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1597947313;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonValueArray final : public JsonValue {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<JsonValue>> values_;
2020-08-10 15:17:29 +03:00
jsonValueArray();
2020-12-07 00:03:08 +03:00
explicit jsonValueArray(array<object_ptr<JsonValue>> &&values_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -183913546;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class jsonValueObject final : public JsonValue {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<jsonObjectMember>> members_;
2020-08-10 15:17:29 +03:00
jsonValueObject();
2020-12-07 00:03:08 +03:00
explicit jsonValueObject(array<object_ptr<jsonObjectMember>> &&members_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 520252026;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class keyboardButton final : public Object {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
object_ptr<KeyboardButtonType> type_;
keyboardButton();
2020-12-07 00:03:08 +03:00
keyboardButton(string const &text_, object_ptr<KeyboardButtonType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2069836172;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class KeyboardButtonType: public Object {
public:
};
class keyboardButtonTypeText final : public KeyboardButtonType {
public:
keyboardButtonTypeText();
static const std::int32_t ID = -1773037256;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class keyboardButtonTypeRequestPhoneNumber final : public KeyboardButtonType {
public:
keyboardButtonTypeRequestPhoneNumber();
static const std::int32_t ID = -1529235527;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class keyboardButtonTypeRequestLocation final : public KeyboardButtonType {
public:
keyboardButtonTypeRequestLocation();
static const std::int32_t ID = -125661955;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class keyboardButtonTypeRequestPoll final : public KeyboardButtonType {
public:
bool force_regular_;
bool force_quiz_;
keyboardButtonTypeRequestPoll();
keyboardButtonTypeRequestPoll(bool force_regular_, bool force_quiz_);
static const std::int32_t ID = 1902435512;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class labeledPricePart final : public Object {
public:
2020-12-07 00:03:08 +03:00
string label_;
int53 amount_;
2020-08-10 15:17:29 +03:00
labeledPricePart();
2020-12-07 00:03:08 +03:00
labeledPricePart(string const &label_, int53 amount_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 552789798;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class languagePackInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
string id_;
string base_language_pack_id_;
string name_;
string native_name_;
string plural_code_;
2020-08-10 15:17:29 +03:00
bool is_official_;
bool is_rtl_;
bool is_beta_;
bool is_installed_;
2020-12-07 00:03:08 +03:00
int32 total_string_count_;
int32 translated_string_count_;
int32 local_string_count_;
string translation_url_;
2020-08-10 15:17:29 +03:00
languagePackInfo();
2020-12-07 00:03:08 +03:00
languagePackInfo(string const &id_, string const &base_language_pack_id_, string const &name_, string const &native_name_, string const &plural_code_, bool is_official_, bool is_rtl_, bool is_beta_, bool is_installed_, int32 total_string_count_, int32 translated_string_count_, int32 local_string_count_, string const &translation_url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 542199642;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class languagePackString final : public Object {
public:
2020-12-07 00:03:08 +03:00
string key_;
2020-08-10 15:17:29 +03:00
object_ptr<LanguagePackStringValue> value_;
languagePackString();
2020-12-07 00:03:08 +03:00
languagePackString(string const &key_, object_ptr<LanguagePackStringValue> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1307632736;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class LanguagePackStringValue: public Object {
public:
};
class languagePackStringValueOrdinary final : public LanguagePackStringValue {
public:
2020-12-07 00:03:08 +03:00
string value_;
2020-08-10 15:17:29 +03:00
languagePackStringValueOrdinary();
2020-12-07 00:03:08 +03:00
explicit languagePackStringValueOrdinary(string const &value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -249256352;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class languagePackStringValuePluralized final : public LanguagePackStringValue {
public:
2020-12-07 00:03:08 +03:00
string zero_value_;
string one_value_;
string two_value_;
string few_value_;
string many_value_;
string other_value_;
2020-08-10 15:17:29 +03:00
languagePackStringValuePluralized();
2020-12-07 00:03:08 +03:00
languagePackStringValuePluralized(string const &zero_value_, string const &one_value_, string const &two_value_, string const &few_value_, string const &many_value_, string const &other_value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1906840261;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class languagePackStringValueDeleted final : public LanguagePackStringValue {
public:
languagePackStringValueDeleted();
static const std::int32_t ID = 1834792698;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class languagePackStrings final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<languagePackString>> strings_;
2020-08-10 15:17:29 +03:00
languagePackStrings();
2020-12-07 00:03:08 +03:00
explicit languagePackStrings(array<object_ptr<languagePackString>> &&strings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1172082922;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class localFile final : public Object {
public:
2020-12-07 00:03:08 +03:00
string path_;
2020-08-10 15:17:29 +03:00
bool can_be_downloaded_;
bool can_be_deleted_;
bool is_downloading_active_;
bool is_downloading_completed_;
2020-12-07 00:03:08 +03:00
int32 download_offset_;
int32 downloaded_prefix_size_;
int32 downloaded_size_;
2020-08-10 15:17:29 +03:00
localFile();
2020-12-07 00:03:08 +03:00
localFile(string const &path_, bool can_be_downloaded_, bool can_be_deleted_, bool is_downloading_active_, bool is_downloading_completed_, int32 download_offset_, int32 downloaded_prefix_size_, int32 downloaded_size_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1166400317;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class localizationTargetInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<languagePackInfo>> language_packs_;
2020-08-10 15:17:29 +03:00
localizationTargetInfo();
2020-12-07 00:03:08 +03:00
explicit localizationTargetInfo(array<object_ptr<languagePackInfo>> &&language_packs_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2048670809;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class location final : public Object {
public:
double latitude_;
double longitude_;
2020-12-07 00:03:08 +03:00
double horizontal_accuracy_;
2020-08-10 15:17:29 +03:00
location();
2020-12-07 00:03:08 +03:00
location(double latitude_, double longitude_, double horizontal_accuracy_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -443392141;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class LogStream: public Object {
public:
};
class logStreamDefault final : public LogStream {
public:
logStreamDefault();
static const std::int32_t ID = 1390581436;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class logStreamFile final : public LogStream {
public:
2020-12-07 00:03:08 +03:00
string path_;
int53 max_file_size_;
bool redirect_stderr_;
2020-08-10 15:17:29 +03:00
logStreamFile();
2020-12-07 00:03:08 +03:00
logStreamFile(string const &path_, int53 max_file_size_, bool redirect_stderr_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1532136933;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class logStreamEmpty final : public LogStream {
public:
logStreamEmpty();
static const std::int32_t ID = -499912244;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class logTags final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<string> tags_;
2020-08-10 15:17:29 +03:00
logTags();
2020-12-07 00:03:08 +03:00
explicit logTags(array<string> &&tags_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1604930601;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class logVerbosityLevel final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 verbosity_level_;
2020-08-10 15:17:29 +03:00
logVerbosityLevel();
2020-12-07 00:03:08 +03:00
explicit logVerbosityLevel(int32 verbosity_level_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1734624234;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class LoginUrlInfo: public Object {
public:
};
class loginUrlInfoOpen final : public LoginUrlInfo {
public:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
bool skip_confirm_;
loginUrlInfoOpen();
2020-12-07 00:03:08 +03:00
loginUrlInfoOpen(string const &url_, bool skip_confirm_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1079045420;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class loginUrlInfoRequestConfirmation final : public LoginUrlInfo {
public:
2020-12-07 00:03:08 +03:00
string url_;
string domain_;
int53 bot_user_id_;
2020-08-10 15:17:29 +03:00
bool request_write_access_;
loginUrlInfoRequestConfirmation();
loginUrlInfoRequestConfirmation(string const &url_, string const &domain_, int53 bot_user_id_, bool request_write_access_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2128290863;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MaskPoint: public Object {
public:
};
class maskPointForehead final : public MaskPoint {
public:
maskPointForehead();
static const std::int32_t ID = 1027512005;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class maskPointEyes final : public MaskPoint {
public:
maskPointEyes();
static const std::int32_t ID = 1748310861;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class maskPointMouth final : public MaskPoint {
public:
maskPointMouth();
static const std::int32_t ID = 411773406;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class maskPointChin final : public MaskPoint {
public:
maskPointChin();
static const std::int32_t ID = 534995335;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class maskPosition final : public Object {
public:
object_ptr<MaskPoint> point_;
double x_shift_;
double y_shift_;
double scale_;
maskPosition();
maskPosition(object_ptr<MaskPoint> &&point_, double x_shift_, double y_shift_, double scale_);
static const std::int32_t ID = -2097433026;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class message final : public Object {
public:
2020-12-07 00:03:08 +03:00
int53 id_;
object_ptr<MessageSender> sender_id_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<MessageSendingState> sending_state_;
object_ptr<MessageSchedulingState> scheduling_state_;
bool is_outgoing_;
2020-12-07 00:03:08 +03:00
bool is_pinned_;
2020-08-10 15:17:29 +03:00
bool can_be_edited_;
bool can_be_forwarded_;
bool can_be_saved_;
2020-08-10 15:17:29 +03:00
bool can_be_deleted_only_for_self_;
bool can_be_deleted_for_all_users_;
2020-12-07 00:03:08 +03:00
bool can_get_statistics_;
bool can_get_message_thread_;
bool can_get_viewers_;
bool can_get_media_timestamp_links_;
bool has_timestamped_media_;
2020-08-10 15:17:29 +03:00
bool is_channel_post_;
bool contains_unread_mention_;
2020-12-07 00:03:08 +03:00
int32 date_;
int32 edit_date_;
2020-08-10 15:17:29 +03:00
object_ptr<messageForwardInfo> forward_info_;
2020-12-07 00:03:08 +03:00
object_ptr<messageInteractionInfo> interaction_info_;
int53 reply_in_chat_id_;
int53 reply_to_message_id_;
int53 message_thread_id_;
int32 ttl_;
2020-08-10 15:17:29 +03:00
double ttl_expires_in_;
int53 via_bot_user_id_;
2020-12-07 00:03:08 +03:00
string author_signature_;
int64 media_album_id_;
string restriction_reason_;
2020-08-10 15:17:29 +03:00
object_ptr<MessageContent> content_;
object_ptr<ReplyMarkup> reply_markup_;
message();
message(int53 id_, object_ptr<MessageSender> &&sender_id_, int53 chat_id_, object_ptr<MessageSendingState> &&sending_state_, object_ptr<MessageSchedulingState> &&scheduling_state_, bool is_outgoing_, bool is_pinned_, bool can_be_edited_, bool can_be_forwarded_, bool can_be_saved_, bool can_be_deleted_only_for_self_, bool can_be_deleted_for_all_users_, bool can_get_statistics_, bool can_get_message_thread_, bool can_get_viewers_, bool can_get_media_timestamp_links_, bool has_timestamped_media_, bool is_channel_post_, bool contains_unread_mention_, int32 date_, int32 edit_date_, object_ptr<messageForwardInfo> &&forward_info_, object_ptr<messageInteractionInfo> &&interaction_info_, int53 reply_in_chat_id_, int53 reply_to_message_id_, int53 message_thread_id_, int32 ttl_, double ttl_expires_in_, int53 via_bot_user_id_, string const &author_signature_, int64 media_album_id_, string const &restriction_reason_, object_ptr<MessageContent> &&content_, object_ptr<ReplyMarkup> &&reply_markup_);
static const std::int32_t ID = -961280585;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageCalendar final : public Object {
public:
int32 total_count_;
array<object_ptr<messageCalendarDay>> days_;
messageCalendar();
messageCalendar(int32 total_count_, array<object_ptr<messageCalendarDay>> &&days_);
static const std::int32_t ID = -1682890519;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageCalendarDay final : public Object {
public:
int32 total_count_;
object_ptr<message> message_;
messageCalendarDay();
2020-08-10 15:17:29 +03:00
messageCalendarDay(int32 total_count_, object_ptr<message> &&message_);
static const std::int32_t ID = -376467614;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MessageContent: public Object {
public:
};
class messageText final : public MessageContent {
public:
object_ptr<formattedText> text_;
object_ptr<webPage> web_page_;
messageText();
messageText(object_ptr<formattedText> &&text_, object_ptr<webPage> &&web_page_);
static const std::int32_t ID = 1989037971;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageAnimation final : public MessageContent {
public:
object_ptr<animation> animation_;
object_ptr<formattedText> caption_;
bool is_secret_;
messageAnimation();
messageAnimation(object_ptr<animation> &&animation_, object_ptr<formattedText> &&caption_, bool is_secret_);
static const std::int32_t ID = 1306939396;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageAudio final : public MessageContent {
public:
object_ptr<audio> audio_;
object_ptr<formattedText> caption_;
messageAudio();
messageAudio(object_ptr<audio> &&audio_, object_ptr<formattedText> &&caption_);
static const std::int32_t ID = 276722716;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageDocument final : public MessageContent {
public:
object_ptr<document> document_;
object_ptr<formattedText> caption_;
messageDocument();
messageDocument(object_ptr<document> &&document_, object_ptr<formattedText> &&caption_);
static const std::int32_t ID = 596945783;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePhoto final : public MessageContent {
public:
object_ptr<photo> photo_;
object_ptr<formattedText> caption_;
bool is_secret_;
messagePhoto();
messagePhoto(object_ptr<photo> &&photo_, object_ptr<formattedText> &&caption_, bool is_secret_);
static const std::int32_t ID = -1851395174;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageExpiredPhoto final : public MessageContent {
public:
messageExpiredPhoto();
static const std::int32_t ID = -1404641801;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSticker final : public MessageContent {
public:
object_ptr<sticker> sticker_;
messageSticker();
explicit messageSticker(object_ptr<sticker> &&sticker_);
static const std::int32_t ID = 1779022878;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVideo final : public MessageContent {
public:
object_ptr<video> video_;
object_ptr<formattedText> caption_;
bool is_secret_;
messageVideo();
messageVideo(object_ptr<video> &&video_, object_ptr<formattedText> &&caption_, bool is_secret_);
static const std::int32_t ID = 2021281344;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageExpiredVideo final : public MessageContent {
public:
messageExpiredVideo();
static const std::int32_t ID = -1212209981;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVideoNote final : public MessageContent {
public:
object_ptr<videoNote> video_note_;
bool is_viewed_;
bool is_secret_;
messageVideoNote();
messageVideoNote(object_ptr<videoNote> &&video_note_, bool is_viewed_, bool is_secret_);
static const std::int32_t ID = 963323014;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVoiceNote final : public MessageContent {
public:
object_ptr<voiceNote> voice_note_;
object_ptr<formattedText> caption_;
bool is_listened_;
messageVoiceNote();
messageVoiceNote(object_ptr<voiceNote> &&voice_note_, object_ptr<formattedText> &&caption_, bool is_listened_);
static const std::int32_t ID = 527777781;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageLocation final : public MessageContent {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 live_period_;
int32 expires_in_;
int32 heading_;
int32 proximity_alert_radius_;
2020-08-10 15:17:29 +03:00
messageLocation();
2020-12-07 00:03:08 +03:00
messageLocation(object_ptr<location> &&location_, int32 live_period_, int32 expires_in_, int32 heading_, int32 proximity_alert_radius_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 303973492;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVenue final : public MessageContent {
public:
object_ptr<venue> venue_;
messageVenue();
explicit messageVenue(object_ptr<venue> &&venue_);
static const std::int32_t ID = -2146492043;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageContact final : public MessageContent {
public:
object_ptr<contact> contact_;
messageContact();
explicit messageContact(object_ptr<contact> &&contact_);
static const std::int32_t ID = -512684966;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageAnimatedEmoji final : public MessageContent {
public:
object_ptr<animatedEmoji> animated_emoji_;
string emoji_;
messageAnimatedEmoji();
messageAnimatedEmoji(object_ptr<animatedEmoji> &&animated_emoji_, string const &emoji_);
static const std::int32_t ID = 908195298;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageDice final : public MessageContent {
public:
object_ptr<DiceStickers> initial_state_;
object_ptr<DiceStickers> final_state_;
string emoji_;
int32 value_;
int32 success_animation_frame_number_;
messageDice();
messageDice(object_ptr<DiceStickers> &&initial_state_, object_ptr<DiceStickers> &&final_state_, string const &emoji_, int32 value_, int32 success_animation_frame_number_);
static const std::int32_t ID = 1115779641;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageGame final : public MessageContent {
public:
object_ptr<game> game_;
messageGame();
explicit messageGame(object_ptr<game> &&game_);
static const std::int32_t ID = -69441162;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePoll final : public MessageContent {
public:
object_ptr<poll> poll_;
messagePoll();
explicit messagePoll(object_ptr<poll> &&poll_);
static const std::int32_t ID = -662130099;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageInvoice final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
string description_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
string currency_;
int53 total_amount_;
string start_parameter_;
2020-08-10 15:17:29 +03:00
bool is_test_;
bool need_shipping_address_;
2020-12-07 00:03:08 +03:00
int53 receipt_message_id_;
2020-08-10 15:17:29 +03:00
messageInvoice();
2020-12-07 00:03:08 +03:00
messageInvoice(string const &title_, string const &description_, object_ptr<photo> &&photo_, string const &currency_, int53 total_amount_, string const &start_parameter_, bool is_test_, bool need_shipping_address_, int53 receipt_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1916671476;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageCall final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
bool is_video_;
2020-08-10 15:17:29 +03:00
object_ptr<CallDiscardReason> discard_reason_;
2020-12-07 00:03:08 +03:00
int32 duration_;
2020-08-10 15:17:29 +03:00
messageCall();
2020-12-07 00:03:08 +03:00
messageCall(bool is_video_, object_ptr<CallDiscardReason> &&discard_reason_, int32 duration_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 538893824;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVideoChatScheduled final : public MessageContent {
public:
int32 group_call_id_;
int32 start_date_;
messageVideoChatScheduled();
messageVideoChatScheduled(int32 group_call_id_, int32 start_date_);
static const std::int32_t ID = -1855185481;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVideoChatStarted final : public MessageContent {
public:
int32 group_call_id_;
messageVideoChatStarted();
explicit messageVideoChatStarted(int32 group_call_id_);
static const std::int32_t ID = 521225561;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageVideoChatEnded final : public MessageContent {
public:
int32 duration_;
messageVideoChatEnded();
explicit messageVideoChatEnded(int32 duration_);
static const std::int32_t ID = 2032544855;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageInviteVideoChatParticipants final : public MessageContent {
public:
int32 group_call_id_;
array<int53> user_ids_;
messageInviteVideoChatParticipants();
messageInviteVideoChatParticipants(int32 group_call_id_, array<int53> &&user_ids_);
static const std::int32_t ID = -1459065585;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageBasicGroupChatCreate final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
array<int53> member_user_ids_;
2020-08-10 15:17:29 +03:00
messageBasicGroupChatCreate();
messageBasicGroupChatCreate(string const &title_, array<int53> &&member_user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 795404060;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSupergroupChatCreate final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
messageSupergroupChatCreate();
2020-12-07 00:03:08 +03:00
explicit messageSupergroupChatCreate(string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -434325733;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatChangeTitle final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
messageChatChangeTitle();
2020-12-07 00:03:08 +03:00
explicit messageChatChangeTitle(string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 748272449;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatChangePhoto final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
object_ptr<chatPhoto> photo_;
2020-08-10 15:17:29 +03:00
messageChatChangePhoto();
2020-12-07 00:03:08 +03:00
explicit messageChatChangePhoto(object_ptr<chatPhoto> &&photo_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -813415093;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatDeletePhoto final : public MessageContent {
public:
messageChatDeletePhoto();
static const std::int32_t ID = -184374809;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatAddMembers final : public MessageContent {
public:
array<int53> member_user_ids_;
2020-08-10 15:17:29 +03:00
messageChatAddMembers();
explicit messageChatAddMembers(array<int53> &&member_user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1701117908;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatJoinByLink final : public MessageContent {
public:
messageChatJoinByLink();
static const std::int32_t ID = 1846493311;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatJoinByRequest final : public MessageContent {
public:
messageChatJoinByRequest();
static const std::int32_t ID = 1195428732;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatDeleteMember final : public MessageContent {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
messageChatDeleteMember();
explicit messageChatDeleteMember(int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 938029481;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatUpgradeTo final : public MessageContent {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
messageChatUpgradeTo();
explicit messageChatUpgradeTo(int53 supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 104813723;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatUpgradeFrom final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
messageChatUpgradeFrom();
messageChatUpgradeFrom(string const &title_, int53 basic_group_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 325954268;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePinMessage final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
int53 message_id_;
2020-08-10 15:17:29 +03:00
messagePinMessage();
2020-12-07 00:03:08 +03:00
explicit messagePinMessage(int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 953503801;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageScreenshotTaken final : public MessageContent {
public:
messageScreenshotTaken();
static const std::int32_t ID = -1564971605;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageChatSetTheme final : public MessageContent {
public:
string theme_name_;
messageChatSetTheme();
explicit messageChatSetTheme(string const &theme_name_);
static const std::int32_t ID = -1716612088;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageChatSetTtl final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
int32 ttl_;
2020-08-10 15:17:29 +03:00
messageChatSetTtl();
2020-12-07 00:03:08 +03:00
explicit messageChatSetTtl(int32 ttl_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1810060209;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageCustomServiceAction final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
messageCustomServiceAction();
2020-12-07 00:03:08 +03:00
explicit messageCustomServiceAction(string const &text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1435879282;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageGameScore final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
int53 game_message_id_;
int64 game_id_;
int32 score_;
2020-08-10 15:17:29 +03:00
messageGameScore();
2020-12-07 00:03:08 +03:00
messageGameScore(int53 game_message_id_, int64 game_id_, int32 score_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1344904575;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePaymentSuccessful final : public MessageContent {
public:
int53 invoice_chat_id_;
2020-12-07 00:03:08 +03:00
int53 invoice_message_id_;
string currency_;
int53 total_amount_;
2020-08-10 15:17:29 +03:00
messagePaymentSuccessful();
messagePaymentSuccessful(int53 invoice_chat_id_, int53 invoice_message_id_, string const &currency_, int53 total_amount_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1442934098;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePaymentSuccessfulBot final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string currency_;
int53 total_amount_;
bytes invoice_payload_;
string shipping_option_id_;
2020-08-10 15:17:29 +03:00
object_ptr<orderInfo> order_info_;
2020-12-07 00:03:08 +03:00
string telegram_payment_charge_id_;
string provider_payment_charge_id_;
2020-08-10 15:17:29 +03:00
messagePaymentSuccessfulBot();
messagePaymentSuccessfulBot(string const &currency_, int53 total_amount_, bytes const &invoice_payload_, string const &shipping_option_id_, object_ptr<orderInfo> &&order_info_, string const &telegram_payment_charge_id_, string const &provider_payment_charge_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -438430050;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageContactRegistered final : public MessageContent {
public:
messageContactRegistered();
static const std::int32_t ID = -1502020353;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageWebsiteConnected final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
string domain_name_;
2020-08-10 15:17:29 +03:00
messageWebsiteConnected();
2020-12-07 00:03:08 +03:00
explicit messageWebsiteConnected(string const &domain_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1074551800;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePassportDataSent final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PassportElementType>> types_;
2020-08-10 15:17:29 +03:00
messagePassportDataSent();
2020-12-07 00:03:08 +03:00
explicit messagePassportDataSent(array<object_ptr<PassportElementType>> &&types_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1017405171;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePassportDataReceived final : public MessageContent {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<encryptedPassportElement>> elements_;
2020-08-10 15:17:29 +03:00
object_ptr<encryptedCredentials> credentials_;
messagePassportDataReceived();
2020-12-07 00:03:08 +03:00
messagePassportDataReceived(array<object_ptr<encryptedPassportElement>> &&elements_, object_ptr<encryptedCredentials> &&credentials_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1367863624;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageProximityAlertTriggered final : public MessageContent {
public:
object_ptr<MessageSender> traveler_id_;
object_ptr<MessageSender> watcher_id_;
2020-12-07 00:03:08 +03:00
int32 distance_;
messageProximityAlertTriggered();
messageProximityAlertTriggered(object_ptr<MessageSender> &&traveler_id_, object_ptr<MessageSender> &&watcher_id_, int32 distance_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 67761875;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageUnsupported final : public MessageContent {
public:
messageUnsupported();
static const std::int32_t ID = -1816726139;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageCopyOptions final : public Object {
public:
bool send_copy_;
bool replace_caption_;
object_ptr<formattedText> new_caption_;
messageCopyOptions();
messageCopyOptions(bool send_copy_, bool replace_caption_, object_ptr<formattedText> &&new_caption_);
static const std::int32_t ID = 1208442937;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MessageFileType: public Object {
public:
};
class messageFileTypePrivate final : public MessageFileType {
public:
string name_;
messageFileTypePrivate();
explicit messageFileTypePrivate(string const &name_);
static const std::int32_t ID = -521908524;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageFileTypeGroup final : public MessageFileType {
public:
string title_;
messageFileTypeGroup();
explicit messageFileTypeGroup(string const &title_);
static const std::int32_t ID = -219836568;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageFileTypeUnknown final : public MessageFileType {
public:
messageFileTypeUnknown();
static const std::int32_t ID = 1176353458;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageForwardInfo final : public Object {
public:
object_ptr<MessageForwardOrigin> origin_;
2020-12-07 00:03:08 +03:00
int32 date_;
string public_service_announcement_type_;
int53 from_chat_id_;
int53 from_message_id_;
2020-08-10 15:17:29 +03:00
messageForwardInfo();
2020-12-07 00:03:08 +03:00
messageForwardInfo(object_ptr<MessageForwardOrigin> &&origin_, int32 date_, string const &public_service_announcement_type_, int53 from_chat_id_, int53 from_message_id_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -327300408;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MessageForwardOrigin: public Object {
public:
};
class messageForwardOriginUser final : public MessageForwardOrigin {
public:
int53 sender_user_id_;
2020-08-10 15:17:29 +03:00
messageForwardOriginUser();
explicit messageForwardOriginUser(int53 sender_user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -355174191;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageForwardOriginChat final : public MessageForwardOrigin {
public:
int53 sender_chat_id_;
string author_signature_;
messageForwardOriginChat();
messageForwardOriginChat(int53 sender_chat_id_, string const &author_signature_);
static const std::int32_t ID = 1526010724;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageForwardOriginHiddenUser final : public MessageForwardOrigin {
public:
2020-12-07 00:03:08 +03:00
string sender_name_;
2020-08-10 15:17:29 +03:00
messageForwardOriginHiddenUser();
2020-12-07 00:03:08 +03:00
explicit messageForwardOriginHiddenUser(string const &sender_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -271257885;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageForwardOriginChannel final : public MessageForwardOrigin {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
string author_signature_;
2020-08-10 15:17:29 +03:00
messageForwardOriginChannel();
2020-12-07 00:03:08 +03:00
messageForwardOriginChannel(int53 chat_id_, int53 message_id_, string const &author_signature_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1490730723;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageForwardOriginMessageImport final : public MessageForwardOrigin {
public:
string sender_name_;
messageForwardOriginMessageImport();
explicit messageForwardOriginMessageImport(string const &sender_name_);
static const std::int32_t ID = -739561951;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageInteractionInfo final : public Object {
public:
int32 view_count_;
int32 forward_count_;
object_ptr<messageReplyInfo> reply_info_;
messageInteractionInfo();
messageInteractionInfo(int32 view_count_, int32 forward_count_, object_ptr<messageReplyInfo> &&reply_info_);
static const std::int32_t ID = -620714966;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageLink final : public Object {
public:
string link_;
bool is_public_;
messageLink();
messageLink(string const &link_, bool is_public_);
static const std::int32_t ID = -1354089818;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messageLinkInfo final : public Object {
public:
bool is_public_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<message> message_;
int32 media_timestamp_;
2020-08-10 15:17:29 +03:00
bool for_album_;
2020-12-07 00:03:08 +03:00
bool for_comment_;
2020-08-10 15:17:29 +03:00
messageLinkInfo();
messageLinkInfo(bool is_public_, int53 chat_id_, object_ptr<message> &&message_, int32 media_timestamp_, bool for_album_, bool for_comment_);
static const std::int32_t ID = -981646294;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePosition final : public Object {
public:
int32 position_;
int53 message_id_;
int32 date_;
messagePosition();
messagePosition(int32 position_, int53 message_id_, int32 date_);
static const std::int32_t ID = 1292189935;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messagePositions final : public Object {
public:
int32 total_count_;
array<object_ptr<messagePosition>> positions_;
messagePositions();
2020-08-10 15:17:29 +03:00
messagePositions(int32 total_count_, array<object_ptr<messagePosition>> &&positions_);
static const std::int32_t ID = -1930466649;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageReplyInfo final : public Object {
public:
int32 reply_count_;
array<object_ptr<MessageSender>> recent_replier_ids_;
2020-12-07 00:03:08 +03:00
int53 last_read_inbox_message_id_;
int53 last_read_outbox_message_id_;
int53 last_message_id_;
messageReplyInfo();
messageReplyInfo(int32 reply_count_, array<object_ptr<MessageSender>> &&recent_replier_ids_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int53 last_message_id_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -2093702263;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MessageSchedulingState: public Object {
public:
};
class messageSchedulingStateSendAtDate final : public MessageSchedulingState {
public:
2020-12-07 00:03:08 +03:00
int32 send_date_;
2020-08-10 15:17:29 +03:00
messageSchedulingStateSendAtDate();
2020-12-07 00:03:08 +03:00
explicit messageSchedulingStateSendAtDate(int32 send_date_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1485570073;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSchedulingStateSendWhenOnline final : public MessageSchedulingState {
public:
messageSchedulingStateSendWhenOnline();
static const std::int32_t ID = 2092947464;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageSendOptions final : public Object {
public:
bool disable_notification_;
bool from_background_;
object_ptr<MessageSchedulingState> scheduling_state_;
messageSendOptions();
messageSendOptions(bool disable_notification_, bool from_background_, object_ptr<MessageSchedulingState> &&scheduling_state_);
static const std::int32_t ID = 914544314;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class MessageSender: public Object {
public:
};
class messageSenderUser final : public MessageSender {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
messageSenderUser();
explicit messageSenderUser(int53 user_id_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -336109341;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSenderChat final : public MessageSender {
public:
int53 chat_id_;
messageSenderChat();
explicit messageSenderChat(int53 chat_id_);
static const std::int32_t ID = -239660751;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSenders final : public Object {
public:
int32 total_count_;
array<object_ptr<MessageSender>> senders_;
messageSenders();
messageSenders(int32 total_count_, array<object_ptr<MessageSender>> &&senders_);
static const std::int32_t ID = -690158467;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class MessageSendingState: public Object {
public:
};
class messageSendingStatePending final : public MessageSendingState {
public:
messageSendingStatePending();
static const std::int32_t ID = -1381803582;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageSendingStateFailed final : public MessageSendingState {
public:
2020-12-07 00:03:08 +03:00
int32 error_code_;
string error_message_;
2020-08-10 15:17:29 +03:00
bool can_retry_;
bool need_another_sender_;
2020-08-10 15:17:29 +03:00
double retry_after_;
messageSendingStateFailed();
messageSendingStateFailed(int32 error_code_, string const &error_message_, bool can_retry_, bool need_another_sender_, double retry_after_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1741887228;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class messageStatistics final : public Object {
public:
object_ptr<StatisticalGraph> message_interaction_graph_;
messageStatistics();
explicit messageStatistics(object_ptr<StatisticalGraph> &&message_interaction_graph_);
static const std::int32_t ID = -1011383888;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class messageThreadInfo final : public Object {
public:
int53 chat_id_;
int53 message_thread_id_;
object_ptr<messageReplyInfo> reply_info_;
int32 unread_message_count_;
2020-12-07 00:03:08 +03:00
array<object_ptr<message>> messages_;
object_ptr<draftMessage> draft_message_;
messageThreadInfo();
messageThreadInfo(int53 chat_id_, int53 message_thread_id_, object_ptr<messageReplyInfo> &&reply_info_, int32 unread_message_count_, array<object_ptr<message>> &&messages_, object_ptr<draftMessage> &&draft_message_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -248536056;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class messages final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<message>> messages_;
2020-08-10 15:17:29 +03:00
messages();
2020-12-07 00:03:08 +03:00
messages(int32 total_count_, array<object_ptr<message>> &&messages_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -16498159;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class minithumbnail final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 width_;
int32 height_;
bytes data_;
2020-08-10 15:17:29 +03:00
minithumbnail();
2020-12-07 00:03:08 +03:00
minithumbnail(int32 width_, int32 height_, bytes const &data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -328540758;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkStatistics final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 since_date_;
array<object_ptr<NetworkStatisticsEntry>> entries_;
2020-08-10 15:17:29 +03:00
networkStatistics();
2020-12-07 00:03:08 +03:00
networkStatistics(int32 since_date_, array<object_ptr<NetworkStatisticsEntry>> &&entries_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1615554212;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class NetworkStatisticsEntry: public Object {
public:
};
class networkStatisticsEntryFile final : public NetworkStatisticsEntry {
public:
object_ptr<FileType> file_type_;
object_ptr<NetworkType> network_type_;
2020-12-07 00:03:08 +03:00
int53 sent_bytes_;
int53 received_bytes_;
2020-08-10 15:17:29 +03:00
networkStatisticsEntryFile();
2020-12-07 00:03:08 +03:00
networkStatisticsEntryFile(object_ptr<FileType> &&file_type_, object_ptr<NetworkType> &&network_type_, int53 sent_bytes_, int53 received_bytes_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 188452706;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkStatisticsEntryCall final : public NetworkStatisticsEntry {
public:
object_ptr<NetworkType> network_type_;
2020-12-07 00:03:08 +03:00
int53 sent_bytes_;
int53 received_bytes_;
2020-08-10 15:17:29 +03:00
double duration_;
networkStatisticsEntryCall();
2020-12-07 00:03:08 +03:00
networkStatisticsEntryCall(object_ptr<NetworkType> &&network_type_, int53 sent_bytes_, int53 received_bytes_, double duration_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 737000365;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class NetworkType: public Object {
public:
};
class networkTypeNone final : public NetworkType {
public:
networkTypeNone();
static const std::int32_t ID = -1971691759;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkTypeMobile final : public NetworkType {
public:
networkTypeMobile();
static const std::int32_t ID = 819228239;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkTypeMobileRoaming final : public NetworkType {
public:
networkTypeMobileRoaming();
static const std::int32_t ID = -1435199760;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkTypeWiFi final : public NetworkType {
public:
networkTypeWiFi();
static const std::int32_t ID = -633872070;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class networkTypeOther final : public NetworkType {
public:
networkTypeOther();
static const std::int32_t ID = 1942128539;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notification final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
int32 date_;
2020-08-10 15:17:29 +03:00
bool is_silent_;
object_ptr<NotificationType> type_;
notification();
2020-12-07 00:03:08 +03:00
notification(int32 id_, int32 date_, bool is_silent_, object_ptr<NotificationType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 788743120;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationGroup final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
2020-08-10 15:17:29 +03:00
object_ptr<NotificationGroupType> type_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 total_count_;
array<object_ptr<notification>> notifications_;
2020-08-10 15:17:29 +03:00
notificationGroup();
2020-12-07 00:03:08 +03:00
notificationGroup(int32 id_, object_ptr<NotificationGroupType> &&type_, int53 chat_id_, int32 total_count_, array<object_ptr<notification>> &&notifications_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 780691541;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class NotificationGroupType: public Object {
public:
};
class notificationGroupTypeMessages final : public NotificationGroupType {
public:
notificationGroupTypeMessages();
static const std::int32_t ID = -1702481123;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationGroupTypeMentions final : public NotificationGroupType {
public:
notificationGroupTypeMentions();
static const std::int32_t ID = -2050324051;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationGroupTypeSecretChat final : public NotificationGroupType {
public:
notificationGroupTypeSecretChat();
static const std::int32_t ID = 1390759476;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationGroupTypeCalls final : public NotificationGroupType {
public:
notificationGroupTypeCalls();
static const std::int32_t ID = 1379123538;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class NotificationSettingsScope: public Object {
public:
};
class notificationSettingsScopePrivateChats final : public NotificationSettingsScope {
public:
notificationSettingsScopePrivateChats();
static const std::int32_t ID = 937446759;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationSettingsScopeGroupChats final : public NotificationSettingsScope {
public:
notificationSettingsScopeGroupChats();
static const std::int32_t ID = 1212142067;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationSettingsScopeChannelChats final : public NotificationSettingsScope {
public:
notificationSettingsScopeChannelChats();
static const std::int32_t ID = 548013448;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class NotificationType: public Object {
public:
};
class notificationTypeNewMessage final : public NotificationType {
public:
object_ptr<message> message_;
notificationTypeNewMessage();
explicit notificationTypeNewMessage(object_ptr<message> &&message_);
static const std::int32_t ID = 1885935159;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationTypeNewSecretChat final : public NotificationType {
public:
notificationTypeNewSecretChat();
static const std::int32_t ID = 1198638768;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationTypeNewCall final : public NotificationType {
public:
2020-12-07 00:03:08 +03:00
int32 call_id_;
2020-08-10 15:17:29 +03:00
notificationTypeNewCall();
2020-12-07 00:03:08 +03:00
explicit notificationTypeNewCall(int32 call_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1712734585;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class notificationTypeNewPushMessage final : public NotificationType {
public:
2020-12-07 00:03:08 +03:00
int53 message_id_;
object_ptr<MessageSender> sender_id_;
2020-12-07 00:03:08 +03:00
string sender_name_;
bool is_outgoing_;
2020-08-10 15:17:29 +03:00
object_ptr<PushMessageContent> content_;
notificationTypeNewPushMessage();
notificationTypeNewPushMessage(int53 message_id_, object_ptr<MessageSender> &&sender_id_, string const &sender_name_, bool is_outgoing_, object_ptr<PushMessageContent> &&content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -711680462;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class ok final : public Object {
public:
ok();
static const std::int32_t ID = -722616727;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class OptionValue: public Object {
public:
};
class optionValueBoolean final : public OptionValue {
public:
bool value_;
optionValueBoolean();
explicit optionValueBoolean(bool value_);
static const std::int32_t ID = 63135518;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class optionValueEmpty final : public OptionValue {
public:
optionValueEmpty();
static const std::int32_t ID = 918955155;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class optionValueInteger final : public OptionValue {
public:
2020-12-07 00:03:08 +03:00
int64 value_;
2020-08-10 15:17:29 +03:00
optionValueInteger();
2020-12-07 00:03:08 +03:00
explicit optionValueInteger(int64 value_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -186858780;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class optionValueString final : public OptionValue {
public:
2020-12-07 00:03:08 +03:00
string value_;
2020-08-10 15:17:29 +03:00
optionValueString();
2020-12-07 00:03:08 +03:00
explicit optionValueString(string const &value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 756248212;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class orderInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
string name_;
string phone_number_;
string email_address_;
2020-08-10 15:17:29 +03:00
object_ptr<address> shipping_address_;
orderInfo();
2020-12-07 00:03:08 +03:00
orderInfo(string const &name_, string const &phone_number_, string const &email_address_, object_ptr<address> &&shipping_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 783997294;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PageBlock: public Object {
public:
};
class pageBlockTitle final : public PageBlock {
public:
object_ptr<RichText> title_;
pageBlockTitle();
explicit pageBlockTitle(object_ptr<RichText> &&title_);
static const std::int32_t ID = 1629664784;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockSubtitle final : public PageBlock {
public:
object_ptr<RichText> subtitle_;
pageBlockSubtitle();
explicit pageBlockSubtitle(object_ptr<RichText> &&subtitle_);
static const std::int32_t ID = 264524263;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockAuthorDate final : public PageBlock {
public:
object_ptr<RichText> author_;
2020-12-07 00:03:08 +03:00
int32 publish_date_;
2020-08-10 15:17:29 +03:00
pageBlockAuthorDate();
2020-12-07 00:03:08 +03:00
pageBlockAuthorDate(object_ptr<RichText> &&author_, int32 publish_date_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1300231184;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockHeader final : public PageBlock {
public:
object_ptr<RichText> header_;
pageBlockHeader();
explicit pageBlockHeader(object_ptr<RichText> &&header_);
static const std::int32_t ID = 1402854811;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockSubheader final : public PageBlock {
public:
object_ptr<RichText> subheader_;
pageBlockSubheader();
explicit pageBlockSubheader(object_ptr<RichText> &&subheader_);
static const std::int32_t ID = 1263956774;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockKicker final : public PageBlock {
public:
object_ptr<RichText> kicker_;
pageBlockKicker();
explicit pageBlockKicker(object_ptr<RichText> &&kicker_);
static const std::int32_t ID = 1361282635;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockParagraph final : public PageBlock {
public:
object_ptr<RichText> text_;
pageBlockParagraph();
explicit pageBlockParagraph(object_ptr<RichText> &&text_);
static const std::int32_t ID = 1182402406;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockPreformatted final : public PageBlock {
public:
object_ptr<RichText> text_;
2020-12-07 00:03:08 +03:00
string language_;
2020-08-10 15:17:29 +03:00
pageBlockPreformatted();
2020-12-07 00:03:08 +03:00
pageBlockPreformatted(object_ptr<RichText> &&text_, string const &language_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1066346178;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockFooter final : public PageBlock {
public:
object_ptr<RichText> footer_;
pageBlockFooter();
explicit pageBlockFooter(object_ptr<RichText> &&footer_);
static const std::int32_t ID = 886429480;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockDivider final : public PageBlock {
public:
pageBlockDivider();
static const std::int32_t ID = -618614392;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockAnchor final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
pageBlockAnchor();
2020-12-07 00:03:08 +03:00
explicit pageBlockAnchor(string const &name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -837994576;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockList final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<pageBlockListItem>> items_;
2020-08-10 15:17:29 +03:00
pageBlockList();
2020-12-07 00:03:08 +03:00
explicit pageBlockList(array<object_ptr<pageBlockListItem>> &&items_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1037074852;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockBlockQuote final : public PageBlock {
public:
object_ptr<RichText> text_;
object_ptr<RichText> credit_;
pageBlockBlockQuote();
pageBlockBlockQuote(object_ptr<RichText> &&text_, object_ptr<RichText> &&credit_);
static const std::int32_t ID = 1657834142;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockPullQuote final : public PageBlock {
public:
object_ptr<RichText> text_;
object_ptr<RichText> credit_;
pageBlockPullQuote();
pageBlockPullQuote(object_ptr<RichText> &&text_, object_ptr<RichText> &&credit_);
static const std::int32_t ID = 490242317;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockAnimation final : public PageBlock {
public:
object_ptr<animation> animation_;
object_ptr<pageBlockCaption> caption_;
bool need_autoplay_;
pageBlockAnimation();
pageBlockAnimation(object_ptr<animation> &&animation_, object_ptr<pageBlockCaption> &&caption_, bool need_autoplay_);
static const std::int32_t ID = 1355669513;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockAudio final : public PageBlock {
public:
object_ptr<audio> audio_;
object_ptr<pageBlockCaption> caption_;
pageBlockAudio();
pageBlockAudio(object_ptr<audio> &&audio_, object_ptr<pageBlockCaption> &&caption_);
static const std::int32_t ID = -63371245;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockPhoto final : public PageBlock {
public:
object_ptr<photo> photo_;
object_ptr<pageBlockCaption> caption_;
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
pageBlockPhoto();
2020-12-07 00:03:08 +03:00
pageBlockPhoto(object_ptr<photo> &&photo_, object_ptr<pageBlockCaption> &&caption_, string const &url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 417601156;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockVideo final : public PageBlock {
public:
object_ptr<video> video_;
object_ptr<pageBlockCaption> caption_;
bool need_autoplay_;
bool is_looped_;
pageBlockVideo();
pageBlockVideo(object_ptr<video> &&video_, object_ptr<pageBlockCaption> &&caption_, bool need_autoplay_, bool is_looped_);
static const std::int32_t ID = 510041394;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockVoiceNote final : public PageBlock {
public:
object_ptr<voiceNote> voice_note_;
object_ptr<pageBlockCaption> caption_;
pageBlockVoiceNote();
pageBlockVoiceNote(object_ptr<voiceNote> &&voice_note_, object_ptr<pageBlockCaption> &&caption_);
static const std::int32_t ID = 1823310463;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockCover final : public PageBlock {
public:
object_ptr<PageBlock> cover_;
pageBlockCover();
explicit pageBlockCover(object_ptr<PageBlock> &&cover_);
static const std::int32_t ID = 972174080;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockEmbedded final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
string url_;
string html_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> poster_photo_;
2020-12-07 00:03:08 +03:00
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
object_ptr<pageBlockCaption> caption_;
bool is_full_width_;
bool allow_scrolling_;
pageBlockEmbedded();
2020-12-07 00:03:08 +03:00
pageBlockEmbedded(string const &url_, string const &html_, object_ptr<photo> &&poster_photo_, int32 width_, int32 height_, object_ptr<pageBlockCaption> &&caption_, bool is_full_width_, bool allow_scrolling_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1942577763;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockEmbeddedPost final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
string url_;
string author_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> author_photo_;
2020-12-07 00:03:08 +03:00
int32 date_;
array<object_ptr<PageBlock>> page_blocks_;
2020-08-10 15:17:29 +03:00
object_ptr<pageBlockCaption> caption_;
pageBlockEmbeddedPost();
2020-12-07 00:03:08 +03:00
pageBlockEmbeddedPost(string const &url_, string const &author_, object_ptr<photo> &&author_photo_, int32 date_, array<object_ptr<PageBlock>> &&page_blocks_, object_ptr<pageBlockCaption> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 397600949;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockCollage final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PageBlock>> page_blocks_;
2020-08-10 15:17:29 +03:00
object_ptr<pageBlockCaption> caption_;
pageBlockCollage();
2020-12-07 00:03:08 +03:00
pageBlockCollage(array<object_ptr<PageBlock>> &&page_blocks_, object_ptr<pageBlockCaption> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1163760110;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockSlideshow final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PageBlock>> page_blocks_;
2020-08-10 15:17:29 +03:00
object_ptr<pageBlockCaption> caption_;
pageBlockSlideshow();
2020-12-07 00:03:08 +03:00
pageBlockSlideshow(array<object_ptr<PageBlock>> &&page_blocks_, object_ptr<pageBlockCaption> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 539217375;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockChatLink final : public PageBlock {
public:
2020-12-07 00:03:08 +03:00
string title_;
object_ptr<chatPhotoInfo> photo_;
string username_;
2020-08-10 15:17:29 +03:00
pageBlockChatLink();
2020-12-07 00:03:08 +03:00
pageBlockChatLink(string const &title_, object_ptr<chatPhotoInfo> &&photo_, string const &username_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -202091253;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockTable final : public PageBlock {
public:
object_ptr<RichText> caption_;
2020-12-07 00:03:08 +03:00
array<array<object_ptr<pageBlockTableCell>>> cells_;
2020-08-10 15:17:29 +03:00
bool is_bordered_;
bool is_striped_;
pageBlockTable();
2020-12-07 00:03:08 +03:00
pageBlockTable(object_ptr<RichText> &&caption_, array<array<object_ptr<pageBlockTableCell>>> &&cells_, bool is_bordered_, bool is_striped_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -942649288;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockDetails final : public PageBlock {
public:
object_ptr<RichText> header_;
2020-12-07 00:03:08 +03:00
array<object_ptr<PageBlock>> page_blocks_;
2020-08-10 15:17:29 +03:00
bool is_open_;
pageBlockDetails();
2020-12-07 00:03:08 +03:00
pageBlockDetails(object_ptr<RichText> &&header_, array<object_ptr<PageBlock>> &&page_blocks_, bool is_open_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1599869809;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockRelatedArticles final : public PageBlock {
public:
object_ptr<RichText> header_;
2020-12-07 00:03:08 +03:00
array<object_ptr<pageBlockRelatedArticle>> articles_;
2020-08-10 15:17:29 +03:00
pageBlockRelatedArticles();
2020-12-07 00:03:08 +03:00
pageBlockRelatedArticles(object_ptr<RichText> &&header_, array<object_ptr<pageBlockRelatedArticle>> &&articles_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1807324374;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockMap final : public PageBlock {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 zoom_;
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
object_ptr<pageBlockCaption> caption_;
pageBlockMap();
2020-12-07 00:03:08 +03:00
pageBlockMap(object_ptr<location> &&location_, int32 zoom_, int32 width_, int32 height_, object_ptr<pageBlockCaption> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1510961171;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockCaption final : public Object {
public:
object_ptr<RichText> text_;
object_ptr<RichText> credit_;
pageBlockCaption();
pageBlockCaption(object_ptr<RichText> &&text_, object_ptr<RichText> &&credit_);
static const std::int32_t ID = -1180064650;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PageBlockHorizontalAlignment: public Object {
public:
};
class pageBlockHorizontalAlignmentLeft final : public PageBlockHorizontalAlignment {
public:
pageBlockHorizontalAlignmentLeft();
static const std::int32_t ID = 848701417;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockHorizontalAlignmentCenter final : public PageBlockHorizontalAlignment {
public:
pageBlockHorizontalAlignmentCenter();
static const std::int32_t ID = -1009203990;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockHorizontalAlignmentRight final : public PageBlockHorizontalAlignment {
public:
pageBlockHorizontalAlignmentRight();
static const std::int32_t ID = 1371369214;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockListItem final : public Object {
public:
2020-12-07 00:03:08 +03:00
string label_;
array<object_ptr<PageBlock>> page_blocks_;
2020-08-10 15:17:29 +03:00
pageBlockListItem();
2020-12-07 00:03:08 +03:00
pageBlockListItem(string const &label_, array<object_ptr<PageBlock>> &&page_blocks_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 323186259;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockRelatedArticle final : public Object {
public:
2020-12-07 00:03:08 +03:00
string url_;
string title_;
string description_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
string author_;
int32 publish_date_;
2020-08-10 15:17:29 +03:00
pageBlockRelatedArticle();
2020-12-07 00:03:08 +03:00
pageBlockRelatedArticle(string const &url_, string const &title_, string const &description_, object_ptr<photo> &&photo_, string const &author_, int32 publish_date_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 481199251;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockTableCell final : public Object {
public:
object_ptr<RichText> text_;
bool is_header_;
2020-12-07 00:03:08 +03:00
int32 colspan_;
int32 rowspan_;
2020-08-10 15:17:29 +03:00
object_ptr<PageBlockHorizontalAlignment> align_;
object_ptr<PageBlockVerticalAlignment> valign_;
pageBlockTableCell();
2020-12-07 00:03:08 +03:00
pageBlockTableCell(object_ptr<RichText> &&text_, bool is_header_, int32 colspan_, int32 rowspan_, object_ptr<PageBlockHorizontalAlignment> &&align_, object_ptr<PageBlockVerticalAlignment> &&valign_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1417658214;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PageBlockVerticalAlignment: public Object {
public:
};
class pageBlockVerticalAlignmentTop final : public PageBlockVerticalAlignment {
public:
pageBlockVerticalAlignmentTop();
static const std::int32_t ID = 195500454;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockVerticalAlignmentMiddle final : public PageBlockVerticalAlignment {
public:
pageBlockVerticalAlignmentMiddle();
static const std::int32_t ID = -2123096587;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pageBlockVerticalAlignmentBottom final : public PageBlockVerticalAlignment {
public:
pageBlockVerticalAlignmentBottom();
static const std::int32_t ID = 2092531158;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportAuthorizationForm final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
array<object_ptr<passportRequiredElement>> required_elements_;
string privacy_policy_url_;
2020-08-10 15:17:29 +03:00
passportAuthorizationForm();
2020-12-07 00:03:08 +03:00
passportAuthorizationForm(int32 id_, array<object_ptr<passportRequiredElement>> &&required_elements_, string const &privacy_policy_url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1070673218;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PassportElement: public Object {
public:
};
class passportElementPersonalDetails final : public PassportElement {
public:
object_ptr<personalDetails> personal_details_;
passportElementPersonalDetails();
explicit passportElementPersonalDetails(object_ptr<personalDetails> &&personal_details_);
static const std::int32_t ID = 1217724035;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementPassport final : public PassportElement {
public:
object_ptr<identityDocument> passport_;
passportElementPassport();
explicit passportElementPassport(object_ptr<identityDocument> &&passport_);
static const std::int32_t ID = -263985373;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementDriverLicense final : public PassportElement {
public:
object_ptr<identityDocument> driver_license_;
passportElementDriverLicense();
explicit passportElementDriverLicense(object_ptr<identityDocument> &&driver_license_);
static const std::int32_t ID = 1643580589;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementIdentityCard final : public PassportElement {
public:
object_ptr<identityDocument> identity_card_;
passportElementIdentityCard();
explicit passportElementIdentityCard(object_ptr<identityDocument> &&identity_card_);
static const std::int32_t ID = 2083775797;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementInternalPassport final : public PassportElement {
public:
object_ptr<identityDocument> internal_passport_;
passportElementInternalPassport();
explicit passportElementInternalPassport(object_ptr<identityDocument> &&internal_passport_);
static const std::int32_t ID = 36220295;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementAddress final : public PassportElement {
public:
object_ptr<address> address_;
passportElementAddress();
explicit passportElementAddress(object_ptr<address> &&address_);
static const std::int32_t ID = -782625232;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementUtilityBill final : public PassportElement {
public:
object_ptr<personalDocument> utility_bill_;
passportElementUtilityBill();
explicit passportElementUtilityBill(object_ptr<personalDocument> &&utility_bill_);
static const std::int32_t ID = -234611246;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementBankStatement final : public PassportElement {
public:
object_ptr<personalDocument> bank_statement_;
passportElementBankStatement();
explicit passportElementBankStatement(object_ptr<personalDocument> &&bank_statement_);
static const std::int32_t ID = -366464408;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementRentalAgreement final : public PassportElement {
public:
object_ptr<personalDocument> rental_agreement_;
passportElementRentalAgreement();
explicit passportElementRentalAgreement(object_ptr<personalDocument> &&rental_agreement_);
static const std::int32_t ID = -290141400;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementPassportRegistration final : public PassportElement {
public:
object_ptr<personalDocument> passport_registration_;
passportElementPassportRegistration();
explicit passportElementPassportRegistration(object_ptr<personalDocument> &&passport_registration_);
static const std::int32_t ID = 618323071;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTemporaryRegistration final : public PassportElement {
public:
object_ptr<personalDocument> temporary_registration_;
passportElementTemporaryRegistration();
explicit passportElementTemporaryRegistration(object_ptr<personalDocument> &&temporary_registration_);
static const std::int32_t ID = 1237626864;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementPhoneNumber final : public PassportElement {
public:
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
passportElementPhoneNumber();
2020-12-07 00:03:08 +03:00
explicit passportElementPhoneNumber(string const &phone_number_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1320118375;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementEmailAddress final : public PassportElement {
public:
2020-12-07 00:03:08 +03:00
string email_address_;
2020-08-10 15:17:29 +03:00
passportElementEmailAddress();
2020-12-07 00:03:08 +03:00
explicit passportElementEmailAddress(string const &email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1528129531;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementError final : public Object {
public:
object_ptr<PassportElementType> type_;
2020-12-07 00:03:08 +03:00
string message_;
2020-08-10 15:17:29 +03:00
object_ptr<PassportElementErrorSource> source_;
passportElementError();
2020-12-07 00:03:08 +03:00
passportElementError(object_ptr<PassportElementType> &&type_, string const &message_, object_ptr<PassportElementErrorSource> &&source_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1861902395;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PassportElementErrorSource: public Object {
public:
};
class passportElementErrorSourceUnspecified final : public PassportElementErrorSource {
public:
passportElementErrorSourceUnspecified();
static const std::int32_t ID = -378320830;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceDataField final : public PassportElementErrorSource {
public:
2020-12-07 00:03:08 +03:00
string field_name_;
2020-08-10 15:17:29 +03:00
passportElementErrorSourceDataField();
2020-12-07 00:03:08 +03:00
explicit passportElementErrorSourceDataField(string const &field_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -308650776;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceFrontSide final : public PassportElementErrorSource {
public:
passportElementErrorSourceFrontSide();
static const std::int32_t ID = 1895658292;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceReverseSide final : public PassportElementErrorSource {
public:
passportElementErrorSourceReverseSide();
static const std::int32_t ID = 1918630391;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceSelfie final : public PassportElementErrorSource {
public:
passportElementErrorSourceSelfie();
static const std::int32_t ID = -797043672;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceTranslationFile final : public PassportElementErrorSource {
public:
2020-12-07 00:03:08 +03:00
int32 file_index_;
2020-08-10 15:17:29 +03:00
passportElementErrorSourceTranslationFile();
2020-12-07 00:03:08 +03:00
explicit passportElementErrorSourceTranslationFile(int32 file_index_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -689621228;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceTranslationFiles final : public PassportElementErrorSource {
public:
passportElementErrorSourceTranslationFiles();
static const std::int32_t ID = 581280796;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceFile final : public PassportElementErrorSource {
public:
2020-12-07 00:03:08 +03:00
int32 file_index_;
2020-08-10 15:17:29 +03:00
passportElementErrorSourceFile();
2020-12-07 00:03:08 +03:00
explicit passportElementErrorSourceFile(int32 file_index_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2020358960;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementErrorSourceFiles final : public PassportElementErrorSource {
public:
passportElementErrorSourceFiles();
static const std::int32_t ID = 1894164178;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PassportElementType: public Object {
public:
};
class passportElementTypePersonalDetails final : public PassportElementType {
public:
passportElementTypePersonalDetails();
static const std::int32_t ID = -1032136365;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypePassport final : public PassportElementType {
public:
passportElementTypePassport();
static const std::int32_t ID = -436360376;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeDriverLicense final : public PassportElementType {
public:
passportElementTypeDriverLicense();
static const std::int32_t ID = 1827298379;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeIdentityCard final : public PassportElementType {
public:
passportElementTypeIdentityCard();
static const std::int32_t ID = -502356132;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeInternalPassport final : public PassportElementType {
public:
passportElementTypeInternalPassport();
static const std::int32_t ID = -793781959;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeAddress final : public PassportElementType {
public:
passportElementTypeAddress();
static const std::int32_t ID = 496327874;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeUtilityBill final : public PassportElementType {
public:
passportElementTypeUtilityBill();
static const std::int32_t ID = 627084906;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeBankStatement final : public PassportElementType {
public:
passportElementTypeBankStatement();
static const std::int32_t ID = 574095667;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeRentalAgreement final : public PassportElementType {
public:
passportElementTypeRentalAgreement();
static const std::int32_t ID = -2060583280;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypePassportRegistration final : public PassportElementType {
public:
passportElementTypePassportRegistration();
static const std::int32_t ID = -159478209;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeTemporaryRegistration final : public PassportElementType {
public:
passportElementTypeTemporaryRegistration();
static const std::int32_t ID = 1092498527;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypePhoneNumber final : public PassportElementType {
public:
passportElementTypePhoneNumber();
static const std::int32_t ID = -995361172;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementTypeEmailAddress final : public PassportElementType {
public:
passportElementTypeEmailAddress();
static const std::int32_t ID = -79321405;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElements final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PassportElement>> elements_;
2020-08-10 15:17:29 +03:00
passportElements();
2020-12-07 00:03:08 +03:00
explicit passportElements(array<object_ptr<PassportElement>> &&elements_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1264617556;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportElementsWithErrors final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PassportElement>> elements_;
array<object_ptr<passportElementError>> errors_;
2020-08-10 15:17:29 +03:00
passportElementsWithErrors();
2020-12-07 00:03:08 +03:00
passportElementsWithErrors(array<object_ptr<PassportElement>> &&elements_, array<object_ptr<passportElementError>> &&errors_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1308923044;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportRequiredElement final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<passportSuitableElement>> suitable_elements_;
2020-08-10 15:17:29 +03:00
passportRequiredElement();
2020-12-07 00:03:08 +03:00
explicit passportRequiredElement(array<object_ptr<passportSuitableElement>> &&suitable_elements_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1983641651;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passportSuitableElement final : public Object {
public:
object_ptr<PassportElementType> type_;
bool is_selfie_required_;
bool is_translation_required_;
bool is_native_name_required_;
passportSuitableElement();
passportSuitableElement(object_ptr<PassportElementType> &&type_, bool is_selfie_required_, bool is_translation_required_, bool is_native_name_required_);
static const std::int32_t ID = -789019876;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class passwordState final : public Object {
public:
bool has_password_;
2020-12-07 00:03:08 +03:00
string password_hint_;
2020-08-10 15:17:29 +03:00
bool has_recovery_email_address_;
bool has_passport_data_;
object_ptr<emailAddressAuthenticationCodeInfo> recovery_email_address_code_info_;
int32 pending_reset_date_;
2020-08-10 15:17:29 +03:00
passwordState();
passwordState(bool has_password_, string const &password_hint_, bool has_recovery_email_address_, bool has_passport_data_, object_ptr<emailAddressAuthenticationCodeInfo> &&recovery_email_address_code_info_, int32 pending_reset_date_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2001619202;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class paymentForm final : public Object {
public:
int64 id_;
2020-08-10 15:17:29 +03:00
object_ptr<invoice> invoice_;
2020-12-07 00:03:08 +03:00
string url_;
int53 seller_bot_user_id_;
int53 payments_provider_user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<paymentsProviderStripe> payments_provider_;
object_ptr<orderInfo> saved_order_info_;
object_ptr<savedCredentials> saved_credentials_;
bool can_save_credentials_;
bool need_password_;
paymentForm();
paymentForm(int64 id_, object_ptr<invoice> &&invoice_, string const &url_, int53 seller_bot_user_id_, int53 payments_provider_user_id_, object_ptr<paymentsProviderStripe> &&payments_provider_, object_ptr<orderInfo> &&saved_order_info_, object_ptr<savedCredentials> &&saved_credentials_, bool can_save_credentials_, bool need_password_);
static const std::int32_t ID = 1462608358;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class paymentFormTheme final : public Object {
public:
int32 background_color_;
int32 text_color_;
int32 hint_color_;
int32 link_color_;
int32 button_color_;
int32 button_text_color_;
paymentFormTheme();
2020-08-10 15:17:29 +03:00
paymentFormTheme(int32 background_color_, int32 text_color_, int32 hint_color_, int32 link_color_, int32 button_color_, int32 button_text_color_);
static const std::int32_t ID = -1760030833;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class paymentReceipt final : public Object {
public:
string title_;
string description_;
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
int32 date_;
int53 seller_bot_user_id_;
int53 payments_provider_user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<invoice> invoice_;
object_ptr<orderInfo> order_info_;
object_ptr<shippingOption> shipping_option_;
2020-12-07 00:03:08 +03:00
string credentials_title_;
int53 tip_amount_;
2020-08-10 15:17:29 +03:00
paymentReceipt();
paymentReceipt(string const &title_, string const &description_, object_ptr<photo> &&photo_, int32 date_, int53 seller_bot_user_id_, int53 payments_provider_user_id_, object_ptr<invoice> &&invoice_, object_ptr<orderInfo> &&order_info_, object_ptr<shippingOption> &&shipping_option_, string const &credentials_title_, int53 tip_amount_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -401796169;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class paymentResult final : public Object {
public:
bool success_;
2020-12-07 00:03:08 +03:00
string verification_url_;
2020-08-10 15:17:29 +03:00
paymentResult();
2020-12-07 00:03:08 +03:00
paymentResult(bool success_, string const &verification_url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -804263843;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class paymentsProviderStripe final : public Object {
public:
2020-12-07 00:03:08 +03:00
string publishable_key_;
2020-08-10 15:17:29 +03:00
bool need_country_;
bool need_postal_code_;
bool need_cardholder_name_;
paymentsProviderStripe();
2020-12-07 00:03:08 +03:00
paymentsProviderStripe(string const &publishable_key_, bool need_country_, bool need_postal_code_, bool need_cardholder_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1090791032;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class personalDetails final : public Object {
public:
2020-12-07 00:03:08 +03:00
string first_name_;
string middle_name_;
string last_name_;
string native_first_name_;
string native_middle_name_;
string native_last_name_;
2020-08-10 15:17:29 +03:00
object_ptr<date> birthdate_;
2020-12-07 00:03:08 +03:00
string gender_;
string country_code_;
string residence_country_code_;
2020-08-10 15:17:29 +03:00
personalDetails();
2020-12-07 00:03:08 +03:00
personalDetails(string const &first_name_, string const &middle_name_, string const &last_name_, string const &native_first_name_, string const &native_middle_name_, string const &native_last_name_, object_ptr<date> &&birthdate_, string const &gender_, string const &country_code_, string const &residence_country_code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1061656137;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class personalDocument final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<datedFile>> files_;
array<object_ptr<datedFile>> translation_;
2020-08-10 15:17:29 +03:00
personalDocument();
2020-12-07 00:03:08 +03:00
personalDocument(array<object_ptr<datedFile>> &&files_, array<object_ptr<datedFile>> &&translation_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1011634661;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class phoneNumberAuthenticationSettings final : public Object {
public:
bool allow_flash_call_;
bool allow_missed_call_;
2020-08-10 15:17:29 +03:00
bool is_current_phone_number_;
bool allow_sms_retriever_api_;
array<string> authentication_tokens_;
2020-08-10 15:17:29 +03:00
phoneNumberAuthenticationSettings();
phoneNumberAuthenticationSettings(bool allow_flash_call_, bool allow_missed_call_, bool is_current_phone_number_, bool allow_sms_retriever_api_, array<string> &&authentication_tokens_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -421219756;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class phoneNumberInfo final : public Object {
public:
object_ptr<countryInfo> country_;
string country_calling_code_;
string formatted_phone_number_;
phoneNumberInfo();
phoneNumberInfo(object_ptr<countryInfo> &&country_, string const &country_calling_code_, string const &formatted_phone_number_);
static const std::int32_t ID = 560180961;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class photo final : public Object {
public:
bool has_stickers_;
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
array<object_ptr<photoSize>> sizes_;
2020-08-10 15:17:29 +03:00
photo();
2020-12-07 00:03:08 +03:00
photo(bool has_stickers_, object_ptr<minithumbnail> &&minithumbnail_, array<object_ptr<photoSize>> &&sizes_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2022871583;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class photoSize final : public Object {
public:
2020-12-07 00:03:08 +03:00
string type_;
2020-08-10 15:17:29 +03:00
object_ptr<file> photo_;
2020-12-07 00:03:08 +03:00
int32 width_;
int32 height_;
array<int32> progressive_sizes_;
2020-08-10 15:17:29 +03:00
photoSize();
2020-12-07 00:03:08 +03:00
photoSize(string const &type_, object_ptr<file> &&photo_, int32 width_, int32 height_, array<int32> &&progressive_sizes_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1609182352;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class point final : public Object {
public:
double x_;
double y_;
point();
point(double x_, double y_);
static const std::int32_t ID = 437515705;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class poll final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
string question_;
array<object_ptr<pollOption>> options_;
int32 total_voter_count_;
array<int53> recent_voter_user_ids_;
2020-08-10 15:17:29 +03:00
bool is_anonymous_;
object_ptr<PollType> type_;
2020-12-07 00:03:08 +03:00
int32 open_period_;
int32 close_date_;
2020-08-10 15:17:29 +03:00
bool is_closed_;
poll();
poll(int64 id_, string const &question_, array<object_ptr<pollOption>> &&options_, int32 total_voter_count_, array<int53> &&recent_voter_user_ids_, bool is_anonymous_, object_ptr<PollType> &&type_, int32 open_period_, int32 close_date_, bool is_closed_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 116940085;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pollOption final : public Object {
public:
2020-12-07 00:03:08 +03:00
string text_;
int32 voter_count_;
int32 vote_percentage_;
2020-08-10 15:17:29 +03:00
bool is_chosen_;
bool is_being_chosen_;
pollOption();
2020-12-07 00:03:08 +03:00
pollOption(string const &text_, int32 voter_count_, int32 vote_percentage_, bool is_chosen_, bool is_being_chosen_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1473893797;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PollType: public Object {
public:
};
class pollTypeRegular final : public PollType {
public:
bool allow_multiple_answers_;
pollTypeRegular();
explicit pollTypeRegular(bool allow_multiple_answers_);
static const std::int32_t ID = 641265698;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pollTypeQuiz final : public PollType {
public:
2020-12-07 00:03:08 +03:00
int32 correct_option_id_;
object_ptr<formattedText> explanation_;
2020-08-10 15:17:29 +03:00
pollTypeQuiz();
2020-12-07 00:03:08 +03:00
pollTypeQuiz(int32 correct_option_id_, object_ptr<formattedText> &&explanation_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 657013913;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class profilePhoto final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
2020-08-10 15:17:29 +03:00
object_ptr<file> small_;
object_ptr<file> big_;
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
bool has_animation_;
2020-08-10 15:17:29 +03:00
profilePhoto();
profilePhoto(int64 id_, object_ptr<file> &&small_, object_ptr<file> &&big_, object_ptr<minithumbnail> &&minithumbnail_, bool has_animation_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -131097523;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class proxies final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<proxy>> proxies_;
2020-08-10 15:17:29 +03:00
proxies();
2020-12-07 00:03:08 +03:00
explicit proxies(array<object_ptr<proxy>> &&proxies_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1200447205;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class proxy final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
string server_;
int32 port_;
int32 last_used_date_;
2020-08-10 15:17:29 +03:00
bool is_enabled_;
object_ptr<ProxyType> type_;
proxy();
2020-12-07 00:03:08 +03:00
proxy(int32 id_, string const &server_, int32 port_, int32 last_used_date_, bool is_enabled_, object_ptr<ProxyType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 196049779;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class ProxyType: public Object {
public:
};
class proxyTypeSocks5 final : public ProxyType {
public:
2020-12-07 00:03:08 +03:00
string username_;
string password_;
2020-08-10 15:17:29 +03:00
proxyTypeSocks5();
2020-12-07 00:03:08 +03:00
proxyTypeSocks5(string const &username_, string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -890027341;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class proxyTypeHttp final : public ProxyType {
public:
2020-12-07 00:03:08 +03:00
string username_;
string password_;
2020-08-10 15:17:29 +03:00
bool http_only_;
proxyTypeHttp();
2020-12-07 00:03:08 +03:00
proxyTypeHttp(string const &username_, string const &password_, bool http_only_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1547188361;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class proxyTypeMtproto final : public ProxyType {
public:
2020-12-07 00:03:08 +03:00
string secret_;
2020-08-10 15:17:29 +03:00
proxyTypeMtproto();
2020-12-07 00:03:08 +03:00
explicit proxyTypeMtproto(string const &secret_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1964826627;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PublicChatType: public Object {
public:
};
class publicChatTypeHasUsername final : public PublicChatType {
public:
publicChatTypeHasUsername();
static const std::int32_t ID = 350789758;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class publicChatTypeIsLocationBased final : public PublicChatType {
public:
publicChatTypeIsLocationBased();
static const std::int32_t ID = 1183735952;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class PushMessageContent: public Object {
public:
};
class pushMessageContentHidden final : public PushMessageContent {
public:
bool is_pinned_;
pushMessageContentHidden();
explicit pushMessageContentHidden(bool is_pinned_);
static const std::int32_t ID = -316950436;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentAnimation final : public PushMessageContent {
public:
object_ptr<animation> animation_;
2020-12-07 00:03:08 +03:00
string caption_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentAnimation();
2020-12-07 00:03:08 +03:00
pushMessageContentAnimation(object_ptr<animation> &&animation_, string const &caption_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1034215396;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentAudio final : public PushMessageContent {
public:
object_ptr<audio> audio_;
bool is_pinned_;
pushMessageContentAudio();
pushMessageContentAudio(object_ptr<audio> &&audio_, bool is_pinned_);
static const std::int32_t ID = 381581426;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentContact final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentContact();
2020-12-07 00:03:08 +03:00
pushMessageContentContact(string const &name_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -12219820;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentContactRegistered final : public PushMessageContent {
public:
pushMessageContentContactRegistered();
static const std::int32_t ID = -303962720;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentDocument final : public PushMessageContent {
public:
object_ptr<document> document_;
bool is_pinned_;
pushMessageContentDocument();
pushMessageContentDocument(object_ptr<document> &&document_, bool is_pinned_);
static const std::int32_t ID = -458379775;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentGame final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentGame();
2020-12-07 00:03:08 +03:00
pushMessageContentGame(string const &title_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -515131109;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentGameScore final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
int32 score_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentGameScore();
2020-12-07 00:03:08 +03:00
pushMessageContentGameScore(string const &title_, int32 score_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 901303688;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentInvoice final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string price_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentInvoice();
2020-12-07 00:03:08 +03:00
pushMessageContentInvoice(string const &price_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1731687492;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentLocation final : public PushMessageContent {
public:
bool is_live_;
bool is_pinned_;
pushMessageContentLocation();
pushMessageContentLocation(bool is_live_, bool is_pinned_);
static const std::int32_t ID = -1288005709;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentPhoto final : public PushMessageContent {
public:
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
string caption_;
2020-08-10 15:17:29 +03:00
bool is_secret_;
bool is_pinned_;
pushMessageContentPhoto();
2020-12-07 00:03:08 +03:00
pushMessageContentPhoto(object_ptr<photo> &&photo_, string const &caption_, bool is_secret_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 140631122;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentPoll final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string question_;
2020-08-10 15:17:29 +03:00
bool is_regular_;
bool is_pinned_;
pushMessageContentPoll();
2020-12-07 00:03:08 +03:00
pushMessageContentPoll(string const &question_, bool is_regular_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -44403654;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentScreenshotTaken final : public PushMessageContent {
public:
pushMessageContentScreenshotTaken();
static const std::int32_t ID = 214245369;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentSticker final : public PushMessageContent {
public:
object_ptr<sticker> sticker_;
2020-12-07 00:03:08 +03:00
string emoji_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentSticker();
2020-12-07 00:03:08 +03:00
pushMessageContentSticker(object_ptr<sticker> &&sticker_, string const &emoji_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1553513939;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentText final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
pushMessageContentText();
2020-12-07 00:03:08 +03:00
pushMessageContentText(string const &text_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 274587305;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentVideo final : public PushMessageContent {
public:
object_ptr<video> video_;
2020-12-07 00:03:08 +03:00
string caption_;
2020-08-10 15:17:29 +03:00
bool is_secret_;
bool is_pinned_;
pushMessageContentVideo();
2020-12-07 00:03:08 +03:00
pushMessageContentVideo(object_ptr<video> &&video_, string const &caption_, bool is_secret_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 310038831;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentVideoNote final : public PushMessageContent {
public:
object_ptr<videoNote> video_note_;
bool is_pinned_;
pushMessageContentVideoNote();
pushMessageContentVideoNote(object_ptr<videoNote> &&video_note_, bool is_pinned_);
static const std::int32_t ID = -1122764417;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentVoiceNote final : public PushMessageContent {
public:
object_ptr<voiceNote> voice_note_;
bool is_pinned_;
pushMessageContentVoiceNote();
pushMessageContentVoiceNote(object_ptr<voiceNote> &&voice_note_, bool is_pinned_);
static const std::int32_t ID = 88910987;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentBasicGroupChatCreate final : public PushMessageContent {
public:
pushMessageContentBasicGroupChatCreate();
static const std::int32_t ID = -2114855172;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatAddMembers final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string member_name_;
2020-08-10 15:17:29 +03:00
bool is_current_user_;
bool is_returned_;
pushMessageContentChatAddMembers();
2020-12-07 00:03:08 +03:00
pushMessageContentChatAddMembers(string const &member_name_, bool is_current_user_, bool is_returned_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1087145158;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatChangePhoto final : public PushMessageContent {
public:
pushMessageContentChatChangePhoto();
static const std::int32_t ID = -1114222051;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatChangeTitle final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
pushMessageContentChatChangeTitle();
2020-12-07 00:03:08 +03:00
explicit pushMessageContentChatChangeTitle(string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1964902749;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatSetTheme final : public PushMessageContent {
public:
string theme_name_;
pushMessageContentChatSetTheme();
explicit pushMessageContentChatSetTheme(string const &theme_name_);
static const std::int32_t ID = 173882216;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class pushMessageContentChatDeleteMember final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
string member_name_;
2020-08-10 15:17:29 +03:00
bool is_current_user_;
bool is_left_;
pushMessageContentChatDeleteMember();
2020-12-07 00:03:08 +03:00
pushMessageContentChatDeleteMember(string const &member_name_, bool is_current_user_, bool is_left_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 598714783;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatJoinByLink final : public PushMessageContent {
public:
pushMessageContentChatJoinByLink();
static const std::int32_t ID = 1553719113;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentChatJoinByRequest final : public PushMessageContent {
public:
pushMessageContentChatJoinByRequest();
static const std::int32_t ID = -205823627;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class pushMessageContentMessageForwards final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
2020-08-10 15:17:29 +03:00
pushMessageContentMessageForwards();
2020-12-07 00:03:08 +03:00
explicit pushMessageContentMessageForwards(int32 total_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1913083876;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushMessageContentMediaAlbum final : public PushMessageContent {
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
2020-08-10 15:17:29 +03:00
bool has_photos_;
bool has_videos_;
2020-12-07 00:03:08 +03:00
bool has_audios_;
bool has_documents_;
2020-08-10 15:17:29 +03:00
pushMessageContentMediaAlbum();
2020-12-07 00:03:08 +03:00
pushMessageContentMediaAlbum(int32 total_count_, bool has_photos_, bool has_videos_, bool has_audios_, bool has_documents_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -748426897;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class pushReceiverId final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
2020-08-10 15:17:29 +03:00
pushReceiverId();
2020-12-07 00:03:08 +03:00
explicit pushReceiverId(int64 id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 371056428;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class recommendedChatFilter final : public Object {
public:
object_ptr<chatFilter> filter_;
string description_;
recommendedChatFilter();
recommendedChatFilter(object_ptr<chatFilter> &&filter_, string const &description_);
static const std::int32_t ID = 36048610;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class recommendedChatFilters final : public Object {
public:
array<object_ptr<recommendedChatFilter>> chat_filters_;
recommendedChatFilters();
explicit recommendedChatFilters(array<object_ptr<recommendedChatFilter>> &&chat_filters_);
static const std::int32_t ID = -263416880;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class recoveryEmailAddress final : public Object {
public:
2020-12-07 00:03:08 +03:00
string recovery_email_address_;
2020-08-10 15:17:29 +03:00
recoveryEmailAddress();
2020-12-07 00:03:08 +03:00
explicit recoveryEmailAddress(string const &recovery_email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1290526187;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class remoteFile final : public Object {
public:
2020-12-07 00:03:08 +03:00
string id_;
string unique_id_;
2020-08-10 15:17:29 +03:00
bool is_uploading_active_;
bool is_uploading_completed_;
2020-12-07 00:03:08 +03:00
int32 uploaded_size_;
2020-08-10 15:17:29 +03:00
remoteFile();
2020-12-07 00:03:08 +03:00
remoteFile(string const &id_, string const &unique_id_, bool is_uploading_active_, bool is_uploading_completed_, int32 uploaded_size_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1822143022;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class ReplyMarkup: public Object {
public:
};
class replyMarkupRemoveKeyboard final : public ReplyMarkup {
public:
bool is_personal_;
replyMarkupRemoveKeyboard();
explicit replyMarkupRemoveKeyboard(bool is_personal_);
static const std::int32_t ID = -691252879;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class replyMarkupForceReply final : public ReplyMarkup {
public:
bool is_personal_;
string input_field_placeholder_;
2020-08-10 15:17:29 +03:00
replyMarkupForceReply();
replyMarkupForceReply(bool is_personal_, string const &input_field_placeholder_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1101461919;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class replyMarkupShowKeyboard final : public ReplyMarkup {
public:
2020-12-07 00:03:08 +03:00
array<array<object_ptr<keyboardButton>>> rows_;
2020-08-10 15:17:29 +03:00
bool resize_keyboard_;
bool one_time_;
bool is_personal_;
string input_field_placeholder_;
2020-08-10 15:17:29 +03:00
replyMarkupShowKeyboard();
replyMarkupShowKeyboard(array<array<object_ptr<keyboardButton>>> &&rows_, bool resize_keyboard_, bool one_time_, bool is_personal_, string const &input_field_placeholder_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -64985802;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class replyMarkupInlineKeyboard final : public ReplyMarkup {
public:
2020-12-07 00:03:08 +03:00
array<array<object_ptr<inlineKeyboardButton>>> rows_;
2020-08-10 15:17:29 +03:00
replyMarkupInlineKeyboard();
2020-12-07 00:03:08 +03:00
explicit replyMarkupInlineKeyboard(array<array<object_ptr<inlineKeyboardButton>>> &&rows_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -619317658;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class ResetPasswordResult: public Object {
public:
};
class resetPasswordResultOk final : public ResetPasswordResult {
public:
resetPasswordResultOk();
static const std::int32_t ID = -1397267463;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetPasswordResultPending final : public ResetPasswordResult {
public:
int32 pending_reset_date_;
resetPasswordResultPending();
explicit resetPasswordResultPending(int32 pending_reset_date_);
static const std::int32_t ID = 1193925721;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetPasswordResultDeclined final : public ResetPasswordResult {
public:
int32 retry_date_;
resetPasswordResultDeclined();
explicit resetPasswordResultDeclined(int32 retry_date_);
static const std::int32_t ID = -1202200373;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class RichText: public Object {
public:
};
class richTextPlain final : public RichText {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
richTextPlain();
2020-12-07 00:03:08 +03:00
explicit richTextPlain(string const &text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 482617702;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextBold final : public RichText {
public:
object_ptr<RichText> text_;
richTextBold();
explicit richTextBold(object_ptr<RichText> &&text_);
static const std::int32_t ID = 1670844268;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextItalic final : public RichText {
public:
object_ptr<RichText> text_;
richTextItalic();
explicit richTextItalic(object_ptr<RichText> &&text_);
static const std::int32_t ID = 1853354047;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextUnderline final : public RichText {
public:
object_ptr<RichText> text_;
richTextUnderline();
explicit richTextUnderline(object_ptr<RichText> &&text_);
static const std::int32_t ID = -536019572;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextStrikethrough final : public RichText {
public:
object_ptr<RichText> text_;
richTextStrikethrough();
explicit richTextStrikethrough(object_ptr<RichText> &&text_);
static const std::int32_t ID = 723413585;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextFixed final : public RichText {
public:
object_ptr<RichText> text_;
richTextFixed();
explicit richTextFixed(object_ptr<RichText> &&text_);
static const std::int32_t ID = -1271496249;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextUrl final : public RichText {
public:
object_ptr<RichText> text_;
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
bool is_cached_;
richTextUrl();
2020-12-07 00:03:08 +03:00
richTextUrl(object_ptr<RichText> &&text_, string const &url_, bool is_cached_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 83939092;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextEmailAddress final : public RichText {
public:
object_ptr<RichText> text_;
2020-12-07 00:03:08 +03:00
string email_address_;
2020-08-10 15:17:29 +03:00
richTextEmailAddress();
2020-12-07 00:03:08 +03:00
richTextEmailAddress(object_ptr<RichText> &&text_, string const &email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 40018679;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextSubscript final : public RichText {
public:
object_ptr<RichText> text_;
richTextSubscript();
explicit richTextSubscript(object_ptr<RichText> &&text_);
static const std::int32_t ID = -868197812;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextSuperscript final : public RichText {
public:
object_ptr<RichText> text_;
richTextSuperscript();
explicit richTextSuperscript(object_ptr<RichText> &&text_);
static const std::int32_t ID = -382241437;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextMarked final : public RichText {
public:
object_ptr<RichText> text_;
richTextMarked();
explicit richTextMarked(object_ptr<RichText> &&text_);
static const std::int32_t ID = -1271999614;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextPhoneNumber final : public RichText {
public:
object_ptr<RichText> text_;
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
richTextPhoneNumber();
2020-12-07 00:03:08 +03:00
richTextPhoneNumber(object_ptr<RichText> &&text_, string const &phone_number_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 128521539;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextIcon final : public RichText {
public:
object_ptr<document> document_;
2020-12-07 00:03:08 +03:00
int32 width_;
int32 height_;
2020-08-10 15:17:29 +03:00
richTextIcon();
2020-12-07 00:03:08 +03:00
richTextIcon(object_ptr<document> &&document_, int32 width_, int32 height_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1480316158;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class richTextReference final : public RichText {
2020-08-10 15:17:29 +03:00
public:
object_ptr<RichText> text_;
2020-12-07 00:03:08 +03:00
string anchor_name_;
string url_;
richTextReference();
richTextReference(object_ptr<RichText> &&text_, string const &anchor_name_, string const &url_);
static const std::int32_t ID = -1147530634;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextAnchor final : public RichText {
public:
string name_;
2020-08-10 15:17:29 +03:00
richTextAnchor();
2020-12-07 00:03:08 +03:00
explicit richTextAnchor(string const &name_);
static const std::int32_t ID = 1316950068;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTextAnchorLink final : public RichText {
public:
object_ptr<RichText> text_;
string anchor_name_;
string url_;
richTextAnchorLink();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
richTextAnchorLink(object_ptr<RichText> &&text_, string const &anchor_name_, string const &url_);
static const std::int32_t ID = -1541418282;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class richTexts final : public RichText {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<RichText>> texts_;
2020-08-10 15:17:29 +03:00
richTexts();
2020-12-07 00:03:08 +03:00
explicit richTexts(array<object_ptr<RichText>> &&texts_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1647457821;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class savedCredentials final : public Object {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
2020-08-10 15:17:29 +03:00
savedCredentials();
2020-12-07 00:03:08 +03:00
savedCredentials(string const &id_, string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -370273060;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class scopeNotificationSettings final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 mute_for_;
string sound_;
2020-08-10 15:17:29 +03:00
bool show_preview_;
bool disable_pinned_message_notifications_;
bool disable_mention_notifications_;
scopeNotificationSettings();
2020-12-07 00:03:08 +03:00
scopeNotificationSettings(int32 mute_for_, string const &sound_, bool show_preview_, bool disable_pinned_message_notifications_, bool disable_mention_notifications_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -426103745;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class SearchMessagesFilter: public Object {
public:
};
class searchMessagesFilterEmpty final : public SearchMessagesFilter {
public:
searchMessagesFilterEmpty();
static const std::int32_t ID = -869395657;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterAnimation final : public SearchMessagesFilter {
public:
searchMessagesFilterAnimation();
static const std::int32_t ID = -155713339;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterAudio final : public SearchMessagesFilter {
public:
searchMessagesFilterAudio();
static const std::int32_t ID = 867505275;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterDocument final : public SearchMessagesFilter {
public:
searchMessagesFilterDocument();
static const std::int32_t ID = 1526331215;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterPhoto final : public SearchMessagesFilter {
public:
searchMessagesFilterPhoto();
static const std::int32_t ID = 925932293;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterVideo final : public SearchMessagesFilter {
public:
searchMessagesFilterVideo();
static const std::int32_t ID = 115538222;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterVoiceNote final : public SearchMessagesFilter {
public:
searchMessagesFilterVoiceNote();
static const std::int32_t ID = 1841439357;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterPhotoAndVideo final : public SearchMessagesFilter {
public:
searchMessagesFilterPhotoAndVideo();
static const std::int32_t ID = 1352130963;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterUrl final : public SearchMessagesFilter {
public:
searchMessagesFilterUrl();
static const std::int32_t ID = -1828724341;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterChatPhoto final : public SearchMessagesFilter {
public:
searchMessagesFilterChatPhoto();
static const std::int32_t ID = -1247751329;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterVideoNote final : public SearchMessagesFilter {
public:
searchMessagesFilterVideoNote();
static const std::int32_t ID = 564323321;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterVoiceAndVideoNote final : public SearchMessagesFilter {
public:
searchMessagesFilterVoiceAndVideoNote();
static const std::int32_t ID = 664174819;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterMention final : public SearchMessagesFilter {
public:
searchMessagesFilterMention();
static const std::int32_t ID = 2001258652;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterUnreadMention final : public SearchMessagesFilter {
public:
searchMessagesFilterUnreadMention();
static const std::int32_t ID = -95769149;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class searchMessagesFilterFailedToSend final : public SearchMessagesFilter {
public:
searchMessagesFilterFailedToSend();
static const std::int32_t ID = -596322564;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessagesFilterPinned final : public SearchMessagesFilter {
public:
searchMessagesFilterPinned();
static const std::int32_t ID = 371805512;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class seconds final : public Object {
public:
double seconds_;
seconds();
explicit seconds(double seconds_);
static const std::int32_t ID = 959899022;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class secretChat final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 id_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<SecretChatState> state_;
bool is_outbound_;
2020-12-07 00:03:08 +03:00
bytes key_hash_;
int32 layer_;
2020-08-10 15:17:29 +03:00
secretChat();
secretChat(int32 id_, int53 user_id_, object_ptr<SecretChatState> &&state_, bool is_outbound_, bytes const &key_hash_, int32 layer_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -676918325;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class SecretChatState: public Object {
public:
};
class secretChatStatePending final : public SecretChatState {
public:
secretChatStatePending();
static const std::int32_t ID = -1637050756;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class secretChatStateReady final : public SecretChatState {
public:
secretChatStateReady();
static const std::int32_t ID = -1611352087;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class secretChatStateClosed final : public SecretChatState {
public:
secretChatStateClosed();
static const std::int32_t ID = -1945106707;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class session final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
2020-08-10 15:17:29 +03:00
bool is_current_;
bool is_password_pending_;
bool can_accept_secret_chats_;
bool can_accept_calls_;
2020-12-07 00:03:08 +03:00
int32 api_id_;
string application_name_;
string application_version_;
2020-08-10 15:17:29 +03:00
bool is_official_application_;
2020-12-07 00:03:08 +03:00
string device_model_;
string platform_;
string system_version_;
int32 log_in_date_;
int32 last_active_date_;
string ip_;
string country_;
string region_;
2020-08-10 15:17:29 +03:00
session();
session(int64 id_, bool is_current_, bool is_password_pending_, bool can_accept_secret_chats_, bool can_accept_calls_, int32 api_id_, string const &application_name_, string const &application_version_, bool is_official_application_, string const &device_model_, string const &platform_, string const &system_version_, int32 log_in_date_, int32 last_active_date_, string const &ip_, string const &country_, string const &region_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1068672887;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class sessions final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<session>> sessions_;
int32 inactive_session_ttl_days_;
2020-08-10 15:17:29 +03:00
sessions();
sessions(array<object_ptr<session>> &&sessions_, int32 inactive_session_ttl_days_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 842912274;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class shippingOption final : public Object {
public:
2020-12-07 00:03:08 +03:00
string id_;
string title_;
array<object_ptr<labeledPricePart>> price_parts_;
2020-08-10 15:17:29 +03:00
shippingOption();
2020-12-07 00:03:08 +03:00
shippingOption(string const &id_, string const &title_, array<object_ptr<labeledPricePart>> &&price_parts_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1425690001;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class sponsoredMessage final : public Object {
public:
int53 message_id_;
int53 sponsor_chat_id_;
object_ptr<InternalLinkType> link_;
object_ptr<MessageContent> content_;
sponsoredMessage();
sponsoredMessage(int53 message_id_, int53 sponsor_chat_id_, object_ptr<InternalLinkType> &&link_, object_ptr<MessageContent> &&content_);
static const std::int32_t ID = -1734768993;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class StatisticalGraph: public Object {
public:
};
class statisticalGraphData final : public StatisticalGraph {
public:
string json_data_;
string zoom_token_;
statisticalGraphData();
statisticalGraphData(string const &json_data_, string const &zoom_token_);
static const std::int32_t ID = -1988940244;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class statisticalGraphAsync final : public StatisticalGraph {
public:
string token_;
statisticalGraphAsync();
explicit statisticalGraphAsync(string const &token_);
static const std::int32_t ID = 435891103;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class statisticalGraphError final : public StatisticalGraph {
public:
string error_message_;
statisticalGraphError();
explicit statisticalGraphError(string const &error_message_);
static const std::int32_t ID = -1006788526;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class statisticalValue final : public Object {
public:
double value_;
double previous_value_;
double growth_rate_percentage_;
statisticalValue();
statisticalValue(double value_, double previous_value_, double growth_rate_percentage_);
static const std::int32_t ID = 1651337846;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class sticker final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 set_id_;
int32 width_;
int32 height_;
string emoji_;
2020-08-10 15:17:29 +03:00
bool is_animated_;
bool is_mask_;
object_ptr<maskPosition> mask_position_;
array<object_ptr<closedVectorPath>> outline_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> sticker_;
sticker();
sticker(int64 set_id_, int32 width_, int32 height_, string const &emoji_, bool is_animated_, bool is_mask_, object_ptr<maskPosition> &&mask_position_, array<object_ptr<closedVectorPath>> &&outline_, object_ptr<thumbnail> &&thumbnail_, object_ptr<file> &&sticker_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 45883239;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class stickerSet final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
string title_;
string name_;
object_ptr<thumbnail> thumbnail_;
array<object_ptr<closedVectorPath>> thumbnail_outline_;
2020-08-10 15:17:29 +03:00
bool is_installed_;
bool is_archived_;
bool is_official_;
bool is_animated_;
bool is_masks_;
bool is_viewed_;
2020-12-07 00:03:08 +03:00
array<object_ptr<sticker>> stickers_;
array<object_ptr<emojis>> emojis_;
2020-08-10 15:17:29 +03:00
stickerSet();
stickerSet(int64 id_, string const &title_, string const &name_, object_ptr<thumbnail> &&thumbnail_, array<object_ptr<closedVectorPath>> &&thumbnail_outline_, bool is_installed_, bool is_archived_, bool is_official_, bool is_animated_, bool is_masks_, bool is_viewed_, array<object_ptr<sticker>> &&stickers_, array<object_ptr<emojis>> &&emojis_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -79542167;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class stickerSetInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
string title_;
string name_;
object_ptr<thumbnail> thumbnail_;
array<object_ptr<closedVectorPath>> thumbnail_outline_;
2020-08-10 15:17:29 +03:00
bool is_installed_;
bool is_archived_;
bool is_official_;
bool is_animated_;
bool is_masks_;
bool is_viewed_;
2020-12-07 00:03:08 +03:00
int32 size_;
array<object_ptr<sticker>> covers_;
2020-08-10 15:17:29 +03:00
stickerSetInfo();
stickerSetInfo(int64 id_, string const &title_, string const &name_, object_ptr<thumbnail> &&thumbnail_, array<object_ptr<closedVectorPath>> &&thumbnail_outline_, bool is_installed_, bool is_archived_, bool is_official_, bool is_animated_, bool is_masks_, bool is_viewed_, int32 size_, array<object_ptr<sticker>> &&covers_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1307322248;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class stickerSets final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<stickerSetInfo>> sets_;
2020-08-10 15:17:29 +03:00
stickerSets();
2020-12-07 00:03:08 +03:00
stickerSets(int32 total_count_, array<object_ptr<stickerSetInfo>> &&sets_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1883828812;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class stickers final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<sticker>> stickers_;
2020-08-10 15:17:29 +03:00
stickers();
2020-12-07 00:03:08 +03:00
explicit stickers(array<object_ptr<sticker>> &&stickers_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1974859260;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class storageStatistics final : public Object {
public:
2020-12-07 00:03:08 +03:00
int53 size_;
int32 count_;
array<object_ptr<storageStatisticsByChat>> by_chat_;
2020-08-10 15:17:29 +03:00
storageStatistics();
2020-12-07 00:03:08 +03:00
storageStatistics(int53 size_, int32 count_, array<object_ptr<storageStatisticsByChat>> &&by_chat_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 217237013;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class storageStatisticsByChat final : public Object {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 size_;
int32 count_;
array<object_ptr<storageStatisticsByFileType>> by_file_type_;
2020-08-10 15:17:29 +03:00
storageStatisticsByChat();
2020-12-07 00:03:08 +03:00
storageStatisticsByChat(int53 chat_id_, int53 size_, int32 count_, array<object_ptr<storageStatisticsByFileType>> &&by_file_type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 635434531;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class storageStatisticsByFileType final : public Object {
public:
object_ptr<FileType> file_type_;
2020-12-07 00:03:08 +03:00
int53 size_;
int32 count_;
2020-08-10 15:17:29 +03:00
storageStatisticsByFileType();
2020-12-07 00:03:08 +03:00
storageStatisticsByFileType(object_ptr<FileType> &&file_type_, int53 size_, int32 count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 714012840;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class storageStatisticsFast final : public Object {
public:
2020-12-07 00:03:08 +03:00
int53 files_size_;
int32 file_count_;
int53 database_size_;
int53 language_pack_database_size_;
int53 log_size_;
2020-08-10 15:17:29 +03:00
storageStatisticsFast();
2020-12-07 00:03:08 +03:00
storageStatisticsFast(int53 files_size_, int32 file_count_, int53 database_size_, int53 language_pack_database_size_, int53 log_size_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -884922271;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class SuggestedAction: public Object {
public:
};
class suggestedActionEnableArchiveAndMuteNewChats final : public SuggestedAction {
public:
suggestedActionEnableArchiveAndMuteNewChats();
static const std::int32_t ID = 2017586255;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class suggestedActionCheckPassword final : public SuggestedAction {
public:
suggestedActionCheckPassword();
static const std::int32_t ID = 1910534839;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class suggestedActionCheckPhoneNumber final : public SuggestedAction {
public:
suggestedActionCheckPhoneNumber();
static const std::int32_t ID = 648771563;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class suggestedActionViewChecksHint final : public SuggestedAction {
public:
suggestedActionViewChecksHint();
static const std::int32_t ID = 891303239;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class suggestedActionConvertToBroadcastGroup final : public SuggestedAction {
public:
int53 supergroup_id_;
suggestedActionConvertToBroadcastGroup();
explicit suggestedActionConvertToBroadcastGroup(int53 supergroup_id_);
static const std::int32_t ID = -965071304;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class suggestedActionSetPassword final : public SuggestedAction {
public:
int32 authorization_delay_;
suggestedActionSetPassword();
explicit suggestedActionSetPassword(int32 authorization_delay_);
static const std::int32_t ID = 1863613848;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class supergroup final : public Object {
public:
int53 id_;
2020-12-07 00:03:08 +03:00
string username_;
int32 date_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> status_;
2020-12-07 00:03:08 +03:00
int32 member_count_;
2020-08-10 15:17:29 +03:00
bool has_linked_chat_;
bool has_location_;
bool sign_messages_;
bool is_slow_mode_enabled_;
bool is_channel_;
bool is_broadcast_group_;
2020-08-10 15:17:29 +03:00
bool is_verified_;
2020-12-07 00:03:08 +03:00
string restriction_reason_;
2020-08-10 15:17:29 +03:00
bool is_scam_;
bool is_fake_;
2020-08-10 15:17:29 +03:00
supergroup();
supergroup(int53 id_, string const &username_, int32 date_, object_ptr<ChatMemberStatus> &&status_, int32 member_count_, bool has_linked_chat_, bool has_location_, bool sign_messages_, bool is_slow_mode_enabled_, bool is_channel_, bool is_broadcast_group_, bool is_verified_, string const &restriction_reason_, bool is_scam_, bool is_fake_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -722213067;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupFullInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
object_ptr<chatPhoto> photo_;
string description_;
int32 member_count_;
int32 administrator_count_;
int32 restricted_count_;
int32 banned_count_;
int53 linked_chat_id_;
int32 slow_mode_delay_;
2020-08-10 15:17:29 +03:00
double slow_mode_delay_expires_in_;
bool can_get_members_;
bool can_set_username_;
bool can_set_sticker_set_;
bool can_set_location_;
2020-12-07 00:03:08 +03:00
bool can_get_statistics_;
2020-08-10 15:17:29 +03:00
bool is_all_history_available_;
2020-12-07 00:03:08 +03:00
int64 sticker_set_id_;
2020-08-10 15:17:29 +03:00
object_ptr<chatLocation> location_;
object_ptr<chatInviteLink> invite_link_;
array<object_ptr<botCommands>> bot_commands_;
int53 upgraded_from_basic_group_id_;
2020-12-07 00:03:08 +03:00
int53 upgraded_from_max_message_id_;
2020-08-10 15:17:29 +03:00
supergroupFullInfo();
supergroupFullInfo(object_ptr<chatPhoto> &&photo_, string const &description_, int32 member_count_, int32 administrator_count_, int32 restricted_count_, int32 banned_count_, int53 linked_chat_id_, int32 slow_mode_delay_, double slow_mode_delay_expires_in_, bool can_get_members_, bool can_set_username_, bool can_set_sticker_set_, bool can_set_location_, bool can_get_statistics_, bool is_all_history_available_, int64 sticker_set_id_, object_ptr<chatLocation> &&location_, object_ptr<chatInviteLink> &&invite_link_, array<object_ptr<botCommands>> &&bot_commands_, int53 upgraded_from_basic_group_id_, int53 upgraded_from_max_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1035719349;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class SupergroupMembersFilter: public Object {
public:
};
class supergroupMembersFilterRecent final : public SupergroupMembersFilter {
public:
supergroupMembersFilterRecent();
static const std::int32_t ID = 1178199509;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupMembersFilterContacts final : public SupergroupMembersFilter {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
supergroupMembersFilterContacts();
2020-12-07 00:03:08 +03:00
explicit supergroupMembersFilterContacts(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1282910856;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupMembersFilterAdministrators final : public SupergroupMembersFilter {
public:
supergroupMembersFilterAdministrators();
static const std::int32_t ID = -2097380265;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupMembersFilterSearch final : public SupergroupMembersFilter {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
supergroupMembersFilterSearch();
2020-12-07 00:03:08 +03:00
explicit supergroupMembersFilterSearch(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1696358469;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupMembersFilterRestricted final : public SupergroupMembersFilter {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
supergroupMembersFilterRestricted();
2020-12-07 00:03:08 +03:00
explicit supergroupMembersFilterRestricted(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1107800034;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class supergroupMembersFilterBanned final : public SupergroupMembersFilter {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
supergroupMembersFilterBanned();
2020-12-07 00:03:08 +03:00
explicit supergroupMembersFilterBanned(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1210621683;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class supergroupMembersFilterMention final : public SupergroupMembersFilter {
public:
string query_;
int53 message_thread_id_;
supergroupMembersFilterMention();
supergroupMembersFilterMention(string const &query_, int53 message_thread_id_);
static const std::int32_t ID = 947915036;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class supergroupMembersFilterBots final : public SupergroupMembersFilter {
public:
supergroupMembersFilterBots();
static const std::int32_t ID = 492138918;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tMeUrl final : public Object {
public:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
object_ptr<TMeUrlType> type_;
tMeUrl();
2020-12-07 00:03:08 +03:00
tMeUrl(string const &url_, object_ptr<TMeUrlType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1140786622;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class TMeUrlType: public Object {
public:
};
class tMeUrlTypeUser final : public TMeUrlType {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
tMeUrlTypeUser();
explicit tMeUrlTypeUser(int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 125336602;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tMeUrlTypeSupergroup final : public TMeUrlType {
public:
2020-12-07 00:03:08 +03:00
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
tMeUrlTypeSupergroup();
2020-12-07 00:03:08 +03:00
explicit tMeUrlTypeSupergroup(int53 supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1353369944;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tMeUrlTypeChatInvite final : public TMeUrlType {
public:
object_ptr<chatInviteLinkInfo> info_;
tMeUrlTypeChatInvite();
explicit tMeUrlTypeChatInvite(object_ptr<chatInviteLinkInfo> &&info_);
static const std::int32_t ID = 313907785;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tMeUrlTypeStickerSet final : public TMeUrlType {
public:
2020-12-07 00:03:08 +03:00
int64 sticker_set_id_;
2020-08-10 15:17:29 +03:00
tMeUrlTypeStickerSet();
2020-12-07 00:03:08 +03:00
explicit tMeUrlTypeStickerSet(int64 sticker_set_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1602473196;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tMeUrls final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<tMeUrl>> urls_;
2020-08-10 15:17:29 +03:00
tMeUrls();
2020-12-07 00:03:08 +03:00
explicit tMeUrls(array<object_ptr<tMeUrl>> &&urls_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1130595098;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class tdlibParameters final : public Object {
public:
bool use_test_dc_;
2020-12-07 00:03:08 +03:00
string database_directory_;
string files_directory_;
2020-08-10 15:17:29 +03:00
bool use_file_database_;
bool use_chat_info_database_;
bool use_message_database_;
bool use_secret_chats_;
2020-12-07 00:03:08 +03:00
int32 api_id_;
string api_hash_;
string system_language_code_;
string device_model_;
string system_version_;
string application_version_;
2020-08-10 15:17:29 +03:00
bool enable_storage_optimizer_;
bool ignore_file_names_;
tdlibParameters();
2020-12-07 00:03:08 +03:00
tdlibParameters(bool use_test_dc_, string const &database_directory_, string const &files_directory_, bool use_file_database_, bool use_chat_info_database_, bool use_message_database_, bool use_secret_chats_, int32 api_id_, string const &api_hash_, string const &system_language_code_, string const &device_model_, string const &system_version_, string const &application_version_, bool enable_storage_optimizer_, bool ignore_file_names_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -761520773;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class temporaryPasswordState final : public Object {
public:
bool has_password_;
2020-12-07 00:03:08 +03:00
int32 valid_for_;
2020-08-10 15:17:29 +03:00
temporaryPasswordState();
2020-12-07 00:03:08 +03:00
temporaryPasswordState(bool has_password_, int32 valid_for_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 939837410;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class termsOfService final : public Object {
public:
object_ptr<formattedText> text_;
2020-12-07 00:03:08 +03:00
int32 min_user_age_;
2020-08-10 15:17:29 +03:00
bool show_popup_;
termsOfService();
2020-12-07 00:03:08 +03:00
termsOfService(object_ptr<formattedText> &&text_, int32 min_user_age_, bool show_popup_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 739422597;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testBytes final : public Object {
public:
2020-12-07 00:03:08 +03:00
bytes value_;
2020-08-10 15:17:29 +03:00
testBytes();
2020-12-07 00:03:08 +03:00
explicit testBytes(bytes const &value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1541225250;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testInt final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 value_;
2020-08-10 15:17:29 +03:00
testInt();
2020-12-07 00:03:08 +03:00
explicit testInt(int32 value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -574804983;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testString final : public Object {
public:
2020-12-07 00:03:08 +03:00
string value_;
2020-08-10 15:17:29 +03:00
testString();
2020-12-07 00:03:08 +03:00
explicit testString(string const &value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -27891572;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testVectorInt final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<int32> value_;
2020-08-10 15:17:29 +03:00
testVectorInt();
2020-12-07 00:03:08 +03:00
explicit testVectorInt(array<int32> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 593682027;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testVectorIntObject final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<testInt>> value_;
2020-08-10 15:17:29 +03:00
testVectorIntObject();
2020-12-07 00:03:08 +03:00
explicit testVectorIntObject(array<object_ptr<testInt>> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 125891546;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testVectorString final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<string> value_;
2020-08-10 15:17:29 +03:00
testVectorString();
2020-12-07 00:03:08 +03:00
explicit testVectorString(array<string> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 79339995;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class testVectorStringObject final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<testString>> value_;
2020-08-10 15:17:29 +03:00
testVectorStringObject();
2020-12-07 00:03:08 +03:00
explicit testVectorStringObject(array<object_ptr<testString>> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 80780537;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class text final : public Object {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
text();
2020-12-07 00:03:08 +03:00
explicit text(string const &text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 578181272;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntities final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<textEntity>> entities_;
2020-08-10 15:17:29 +03:00
textEntities();
2020-12-07 00:03:08 +03:00
explicit textEntities(array<object_ptr<textEntity>> &&entities_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -933199172;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntity final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 offset_;
int32 length_;
2020-08-10 15:17:29 +03:00
object_ptr<TextEntityType> type_;
textEntity();
2020-12-07 00:03:08 +03:00
textEntity(int32 offset_, int32 length_, object_ptr<TextEntityType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1951688280;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class TextEntityType: public Object {
public:
};
class textEntityTypeMention final : public TextEntityType {
public:
textEntityTypeMention();
static const std::int32_t ID = 934535013;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeHashtag final : public TextEntityType {
public:
textEntityTypeHashtag();
static const std::int32_t ID = -1023958307;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeCashtag final : public TextEntityType {
public:
textEntityTypeCashtag();
static const std::int32_t ID = 1222915915;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeBotCommand final : public TextEntityType {
public:
textEntityTypeBotCommand();
static const std::int32_t ID = -1150997581;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeUrl final : public TextEntityType {
public:
textEntityTypeUrl();
static const std::int32_t ID = -1312762756;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeEmailAddress final : public TextEntityType {
public:
textEntityTypeEmailAddress();
static const std::int32_t ID = 1425545249;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypePhoneNumber final : public TextEntityType {
public:
textEntityTypePhoneNumber();
static const std::int32_t ID = -1160140246;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class textEntityTypeBankCardNumber final : public TextEntityType {
public:
textEntityTypeBankCardNumber();
static const std::int32_t ID = 105986320;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class textEntityTypeBold final : public TextEntityType {
public:
textEntityTypeBold();
static const std::int32_t ID = -1128210000;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeItalic final : public TextEntityType {
public:
textEntityTypeItalic();
static const std::int32_t ID = -118253987;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeUnderline final : public TextEntityType {
public:
textEntityTypeUnderline();
static const std::int32_t ID = 792317842;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeStrikethrough final : public TextEntityType {
public:
textEntityTypeStrikethrough();
static const std::int32_t ID = 961529082;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeCode final : public TextEntityType {
public:
textEntityTypeCode();
static const std::int32_t ID = -974534326;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypePre final : public TextEntityType {
public:
textEntityTypePre();
static const std::int32_t ID = 1648958606;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypePreCode final : public TextEntityType {
public:
2020-12-07 00:03:08 +03:00
string language_;
2020-08-10 15:17:29 +03:00
textEntityTypePreCode();
2020-12-07 00:03:08 +03:00
explicit textEntityTypePreCode(string const &language_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -945325397;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeTextUrl final : public TextEntityType {
public:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
textEntityTypeTextUrl();
2020-12-07 00:03:08 +03:00
explicit textEntityTypeTextUrl(string const &url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 445719651;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeMentionName final : public TextEntityType {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
textEntityTypeMentionName();
explicit textEntityTypeMentionName(int53 user_id_);
static const std::int32_t ID = -1570974289;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textEntityTypeMediaTimestamp final : public TextEntityType {
public:
int32 media_timestamp_;
textEntityTypeMediaTimestamp();
2020-08-10 15:17:29 +03:00
explicit textEntityTypeMediaTimestamp(int32 media_timestamp_);
static const std::int32_t ID = -1841898992;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class TextParseMode: public Object {
public:
};
class textParseModeMarkdown final : public TextParseMode {
public:
2020-12-07 00:03:08 +03:00
int32 version_;
2020-08-10 15:17:29 +03:00
textParseModeMarkdown();
explicit textParseModeMarkdown(int32 version_);
static const std::int32_t ID = 360073407;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class textParseModeHTML final : public TextParseMode {
public:
textParseModeHTML();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1660208627;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class themeSettings final : public Object {
2020-08-10 15:17:29 +03:00
public:
int32 accent_color_;
object_ptr<background> background_;
object_ptr<BackgroundFill> outgoing_message_fill_;
bool animate_outgoing_message_fill_;
int32 outgoing_message_accent_color_;
2020-08-10 15:17:29 +03:00
themeSettings();
2020-08-10 15:17:29 +03:00
themeSettings(int32 accent_color_, object_ptr<background> &&background_, object_ptr<BackgroundFill> &&outgoing_message_fill_, bool animate_outgoing_message_fill_, int32 outgoing_message_accent_color_);
static const std::int32_t ID = -62120942;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class thumbnail final : public Object {
public:
object_ptr<ThumbnailFormat> format_;
int32 width_;
int32 height_;
object_ptr<file> file_;
thumbnail();
thumbnail(object_ptr<ThumbnailFormat> &&format_, int32 width_, int32 height_, object_ptr<file> &&file_);
static const std::int32_t ID = 1243275371;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class ThumbnailFormat: public Object {
public:
};
class thumbnailFormatJpeg final : public ThumbnailFormat {
public:
thumbnailFormatJpeg();
static const std::int32_t ID = -653503352;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class thumbnailFormatPng final : public ThumbnailFormat {
public:
thumbnailFormatPng();
static const std::int32_t ID = 1577490421;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class thumbnailFormatWebp final : public ThumbnailFormat {
public:
thumbnailFormatWebp();
static const std::int32_t ID = -53588974;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class thumbnailFormatGif final : public ThumbnailFormat {
public:
thumbnailFormatGif();
static const std::int32_t ID = 1252205962;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class thumbnailFormatTgs final : public ThumbnailFormat {
public:
thumbnailFormatTgs();
static const std::int32_t ID = 1315522642;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class thumbnailFormatMpeg4 final : public ThumbnailFormat {
public:
thumbnailFormatMpeg4();
static const std::int32_t ID = 278616062;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class TopChatCategory: public Object {
public:
};
class topChatCategoryUsers final : public TopChatCategory {
public:
topChatCategoryUsers();
static const std::int32_t ID = 1026706816;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryBots final : public TopChatCategory {
public:
topChatCategoryBots();
static const std::int32_t ID = -1577129195;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryGroups final : public TopChatCategory {
public:
topChatCategoryGroups();
static const std::int32_t ID = 1530056846;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryChannels final : public TopChatCategory {
public:
topChatCategoryChannels();
static const std::int32_t ID = -500825885;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryInlineBots final : public TopChatCategory {
public:
topChatCategoryInlineBots();
static const std::int32_t ID = 377023356;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryCalls final : public TopChatCategory {
public:
topChatCategoryCalls();
static const std::int32_t ID = 356208861;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class topChatCategoryForwardChats final : public TopChatCategory {
public:
topChatCategoryForwardChats();
static const std::int32_t ID = 1695922133;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class Update: public Object {
public:
};
class updateAuthorizationState final : public Update {
public:
object_ptr<AuthorizationState> authorization_state_;
updateAuthorizationState();
explicit updateAuthorizationState(object_ptr<AuthorizationState> &&authorization_state_);
static const std::int32_t ID = 1622347490;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewMessage final : public Update {
public:
object_ptr<message> message_;
updateNewMessage();
explicit updateNewMessage(object_ptr<message> &&message_);
static const std::int32_t ID = -563105266;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageSendAcknowledged final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
updateMessageSendAcknowledged();
2020-12-07 00:03:08 +03:00
updateMessageSendAcknowledged(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1302843961;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageSendSucceeded final : public Update {
public:
object_ptr<message> message_;
2020-12-07 00:03:08 +03:00
int53 old_message_id_;
2020-08-10 15:17:29 +03:00
updateMessageSendSucceeded();
2020-12-07 00:03:08 +03:00
updateMessageSendSucceeded(object_ptr<message> &&message_, int53 old_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1815715197;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageSendFailed final : public Update {
public:
object_ptr<message> message_;
2020-12-07 00:03:08 +03:00
int53 old_message_id_;
int32 error_code_;
string error_message_;
2020-08-10 15:17:29 +03:00
updateMessageSendFailed();
2020-12-07 00:03:08 +03:00
updateMessageSendFailed(object_ptr<message> &&message_, int53 old_message_id_, int32 error_code_, string const &error_message_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1032335779;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageContent final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<MessageContent> new_content_;
updateMessageContent();
2020-12-07 00:03:08 +03:00
updateMessageContent(int53 chat_id_, int53 message_id_, object_ptr<MessageContent> &&new_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 506903332;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageEdited final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int32 edit_date_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
2020-12-07 00:03:08 +03:00
updateMessageEdited();
updateMessageEdited(int53 chat_id_, int53 message_id_, int32 edit_date_, object_ptr<ReplyMarkup> &&reply_markup_);
static const std::int32_t ID = -559545626;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageIsPinned final : public Update {
public:
int53 chat_id_;
int53 message_id_;
bool is_pinned_;
updateMessageIsPinned();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateMessageIsPinned(int53 chat_id_, int53 message_id_, bool is_pinned_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1102848829;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateMessageInteractionInfo final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
object_ptr<messageInteractionInfo> interaction_info_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateMessageInteractionInfo();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateMessageInteractionInfo(int53 chat_id_, int53 message_id_, object_ptr<messageInteractionInfo> &&interaction_info_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1417659394;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageContentOpened final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
updateMessageContentOpened();
2020-12-07 00:03:08 +03:00
updateMessageContentOpened(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1520523131;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageMentionRead final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int32 unread_mention_count_;
2020-08-10 15:17:29 +03:00
updateMessageMentionRead();
2020-12-07 00:03:08 +03:00
updateMessageMentionRead(int53 chat_id_, int53 message_id_, int32 unread_mention_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -252228282;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateMessageLiveLocationViewed final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
updateMessageLiveLocationViewed();
2020-12-07 00:03:08 +03:00
updateMessageLiveLocationViewed(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1308260971;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewChat final : public Update {
public:
object_ptr<chat> chat_;
updateNewChat();
explicit updateNewChat(object_ptr<chat> &&chat_);
static const std::int32_t ID = 2075757773;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatTitle final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string title_;
2020-08-10 15:17:29 +03:00
updateChatTitle();
2020-12-07 00:03:08 +03:00
updateChatTitle(int53 chat_id_, string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -175405660;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatPhoto final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<chatPhotoInfo> photo_;
2020-08-10 15:17:29 +03:00
updateChatPhoto();
2020-12-07 00:03:08 +03:00
updateChatPhoto(int53 chat_id_, object_ptr<chatPhotoInfo> &&photo_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -324713921;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatPermissions final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<chatPermissions> permissions_;
updateChatPermissions();
2020-12-07 00:03:08 +03:00
updateChatPermissions(int53 chat_id_, object_ptr<chatPermissions> &&permissions_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1622010003;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatLastMessage final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<message> last_message_;
2020-12-07 00:03:08 +03:00
array<object_ptr<chatPosition>> positions_;
2020-08-10 15:17:29 +03:00
updateChatLastMessage();
2020-12-07 00:03:08 +03:00
updateChatLastMessage(int53 chat_id_, object_ptr<message> &&last_message_, array<object_ptr<chatPosition>> &&positions_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -923244537;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateChatPosition final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<chatPosition> position_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateChatPosition();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateChatPosition(int53 chat_id_, object_ptr<chatPosition> &&position_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -8979849;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatReadInbox final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 last_read_inbox_message_id_;
int32 unread_count_;
2020-08-10 15:17:29 +03:00
updateChatReadInbox();
2020-08-10 15:17:29 +03:00
updateChatReadInbox(int53 chat_id_, int53 last_read_inbox_message_id_, int32 unread_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -797952281;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatReadOutbox final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 last_read_outbox_message_id_;
2020-08-10 15:17:29 +03:00
updateChatReadOutbox();
2020-08-10 15:17:29 +03:00
updateChatReadOutbox(int53 chat_id_, int53 last_read_outbox_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 708334213;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatActionBar final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<ChatActionBar> action_bar_;
2020-08-10 15:17:29 +03:00
updateChatActionBar();
2020-08-10 15:17:29 +03:00
updateChatActionBar(int53 chat_id_, object_ptr<ChatActionBar> &&action_bar_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -643671870;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatDraftMessage final : public Update {
public:
int53 chat_id_;
object_ptr<draftMessage> draft_message_;
array<object_ptr<chatPosition>> positions_;
updateChatDraftMessage();
updateChatDraftMessage(int53 chat_id_, object_ptr<draftMessage> &&draft_message_, array<object_ptr<chatPosition>> &&positions_);
static const std::int32_t ID = 1455190380;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatMessageSender final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<MessageSender> message_sender_id_;
2020-08-10 15:17:29 +03:00
updateChatMessageSender();
2020-08-10 15:17:29 +03:00
updateChatMessageSender(int53 chat_id_, object_ptr<MessageSender> &&message_sender_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2003849793;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatMessageTtl final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 message_ttl_;
2020-08-10 15:17:29 +03:00
updateChatMessageTtl();
2020-08-10 15:17:29 +03:00
updateChatMessageTtl(int53 chat_id_, int32 message_ttl_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -572479112;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatNotificationSettings final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<chatNotificationSettings> notification_settings_;
2020-08-10 15:17:29 +03:00
updateChatNotificationSettings();
2020-08-10 15:17:29 +03:00
updateChatNotificationSettings(int53 chat_id_, object_ptr<chatNotificationSettings> &&notification_settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -803163050;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatPendingJoinRequests final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<chatJoinRequestsInfo> pending_join_requests_;
2020-08-10 15:17:29 +03:00
updateChatPendingJoinRequests();
2020-08-10 15:17:29 +03:00
updateChatPendingJoinRequests(int53 chat_id_, object_ptr<chatJoinRequestsInfo> &&pending_join_requests_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 348578785;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatReplyMarkup final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 reply_markup_message_id_;
2020-08-10 15:17:29 +03:00
updateChatReplyMarkup();
2020-08-10 15:17:29 +03:00
updateChatReplyMarkup(int53 chat_id_, int53 reply_markup_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1309386144;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatTheme final : public Update {
2020-08-10 15:17:29 +03:00
public:
int53 chat_id_;
string theme_name_;
2020-08-10 15:17:29 +03:00
updateChatTheme();
2020-08-10 15:17:29 +03:00
updateChatTheme(int53 chat_id_, string const &theme_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 838063205;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatUnreadMentionCount final : public Update {
public:
int53 chat_id_;
int32 unread_mention_count_;
updateChatUnreadMentionCount();
updateChatUnreadMentionCount(int53 chat_id_, int32 unread_mention_count_);
static const std::int32_t ID = -2131461348;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatVideoChat final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<videoChat> video_chat_;
2020-08-10 15:17:29 +03:00
updateChatVideoChat();
2020-08-10 15:17:29 +03:00
updateChatVideoChat(int53 chat_id_, object_ptr<videoChat> &&video_chat_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 637226150;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatDefaultDisableNotification final : public Update {
public:
int53 chat_id_;
bool default_disable_notification_;
updateChatDefaultDisableNotification();
updateChatDefaultDisableNotification(int53 chat_id_, bool default_disable_notification_);
static const std::int32_t ID = 464087707;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatHasProtectedContent final : public Update {
public:
int53 chat_id_;
bool has_protected_content_;
updateChatHasProtectedContent();
updateChatHasProtectedContent(int53 chat_id_, bool has_protected_content_);
static const std::int32_t ID = 1800406811;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatHasScheduledMessages final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
bool has_scheduled_messages_;
2020-08-10 15:17:29 +03:00
updateChatHasScheduledMessages();
2020-08-10 15:17:29 +03:00
updateChatHasScheduledMessages(int53 chat_id_, bool has_scheduled_messages_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2064958167;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatIsBlocked final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
bool is_blocked_;
2020-08-10 15:17:29 +03:00
updateChatIsBlocked();
2020-08-10 15:17:29 +03:00
updateChatIsBlocked(int53 chat_id_, bool is_blocked_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1998946752;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatIsMarkedAsUnread final : public Update {
public:
int53 chat_id_;
bool is_marked_as_unread_;
updateChatIsMarkedAsUnread();
updateChatIsMarkedAsUnread(int53 chat_id_, bool is_marked_as_unread_);
static const std::int32_t ID = 1468347188;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateChatFilters final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<chatFilterInfo>> chat_filters_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
updateChatFilters();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
explicit updateChatFilters(array<object_ptr<chatFilterInfo>> &&chat_filters_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -961518713;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatOnlineMemberCount final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 online_member_count_;
2020-08-10 15:17:29 +03:00
updateChatOnlineMemberCount();
2020-12-07 00:03:08 +03:00
updateChatOnlineMemberCount(int53 chat_id_, int32 online_member_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 487369373;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateScopeNotificationSettings final : public Update {
public:
object_ptr<NotificationSettingsScope> scope_;
object_ptr<scopeNotificationSettings> notification_settings_;
updateScopeNotificationSettings();
updateScopeNotificationSettings(object_ptr<NotificationSettingsScope> &&scope_, object_ptr<scopeNotificationSettings> &&notification_settings_);
static const std::int32_t ID = -1203975309;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class updateNotification final : public Update {
public:
2020-12-07 00:03:08 +03:00
int32 notification_group_id_;
2020-08-10 15:17:29 +03:00
object_ptr<notification> notification_;
updateNotification();
2020-12-07 00:03:08 +03:00
updateNotification(int32 notification_group_id_, object_ptr<notification> &&notification_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1897496876;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNotificationGroup final : public Update {
public:
2020-12-07 00:03:08 +03:00
int32 notification_group_id_;
2020-08-10 15:17:29 +03:00
object_ptr<NotificationGroupType> type_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 notification_settings_chat_id_;
2020-08-10 15:17:29 +03:00
bool is_silent_;
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<object_ptr<notification>> added_notifications_;
array<int32> removed_notification_ids_;
2020-08-10 15:17:29 +03:00
updateNotificationGroup();
2020-12-07 00:03:08 +03:00
updateNotificationGroup(int32 notification_group_id_, object_ptr<NotificationGroupType> &&type_, int53 chat_id_, int53 notification_settings_chat_id_, bool is_silent_, int32 total_count_, array<object_ptr<notification>> &&added_notifications_, array<int32> &&removed_notification_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2049005665;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateActiveNotifications final : public Update {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<notificationGroup>> groups_;
2020-08-10 15:17:29 +03:00
updateActiveNotifications();
2020-12-07 00:03:08 +03:00
explicit updateActiveNotifications(array<object_ptr<notificationGroup>> &&groups_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1306672221;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateHavePendingNotifications final : public Update {
public:
bool have_delayed_notifications_;
bool have_unreceived_notifications_;
updateHavePendingNotifications();
updateHavePendingNotifications(bool have_delayed_notifications_, bool have_unreceived_notifications_);
static const std::int32_t ID = 179233243;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateDeleteMessages final : public Update {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
bool is_permanent_;
bool from_cache_;
updateDeleteMessages();
2020-12-07 00:03:08 +03:00
updateDeleteMessages(int53 chat_id_, array<int53> &&message_ids_, bool is_permanent_, bool from_cache_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1669252686;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatAction final : public Update {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
object_ptr<MessageSender> sender_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatAction> action_;
updateChatAction();
2020-08-10 15:17:29 +03:00
updateChatAction(int53 chat_id_, int53 message_thread_id_, object_ptr<MessageSender> &&sender_id_, object_ptr<ChatAction> &&action_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1698703832;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUserStatus final : public Update {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<UserStatus> status_;
updateUserStatus();
updateUserStatus(int53 user_id_, object_ptr<UserStatus> &&status_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 958468625;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUser final : public Update {
public:
object_ptr<user> user_;
updateUser();
explicit updateUser(object_ptr<user> &&user_);
static const std::int32_t ID = 1183394041;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateBasicGroup final : public Update {
public:
object_ptr<basicGroup> basic_group_;
updateBasicGroup();
explicit updateBasicGroup(object_ptr<basicGroup> &&basic_group_);
static const std::int32_t ID = -1003239581;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSupergroup final : public Update {
public:
object_ptr<supergroup> supergroup_;
updateSupergroup();
explicit updateSupergroup(object_ptr<supergroup> &&supergroup_);
static const std::int32_t ID = -76782300;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSecretChat final : public Update {
public:
object_ptr<secretChat> secret_chat_;
updateSecretChat();
explicit updateSecretChat(object_ptr<secretChat> &&secret_chat_);
static const std::int32_t ID = -1666903253;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUserFullInfo final : public Update {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<userFullInfo> user_full_info_;
updateUserFullInfo();
updateUserFullInfo(int53 user_id_, object_ptr<userFullInfo> &&user_full_info_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -51197161;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateBasicGroupFullInfo final : public Update {
public:
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
object_ptr<basicGroupFullInfo> basic_group_full_info_;
updateBasicGroupFullInfo();
updateBasicGroupFullInfo(int53 basic_group_id_, object_ptr<basicGroupFullInfo> &&basic_group_full_info_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1391881151;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSupergroupFullInfo final : public Update {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
object_ptr<supergroupFullInfo> supergroup_full_info_;
updateSupergroupFullInfo();
updateSupergroupFullInfo(int53 supergroup_id_, object_ptr<supergroupFullInfo> &&supergroup_full_info_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 435539214;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateServiceNotification final : public Update {
public:
2020-12-07 00:03:08 +03:00
string type_;
2020-08-10 15:17:29 +03:00
object_ptr<MessageContent> content_;
updateServiceNotification();
2020-12-07 00:03:08 +03:00
updateServiceNotification(string const &type_, object_ptr<MessageContent> &&content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1318622637;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateFile final : public Update {
public:
object_ptr<file> file_;
updateFile();
explicit updateFile(object_ptr<file> &&file_);
static const std::int32_t ID = 114132831;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateFileGenerationStart final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 generation_id_;
string original_path_;
string destination_path_;
string conversion_;
2020-08-10 15:17:29 +03:00
updateFileGenerationStart();
2020-12-07 00:03:08 +03:00
updateFileGenerationStart(int64 generation_id_, string const &original_path_, string const &destination_path_, string const &conversion_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 216817388;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateFileGenerationStop final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 generation_id_;
2020-08-10 15:17:29 +03:00
updateFileGenerationStop();
2020-12-07 00:03:08 +03:00
explicit updateFileGenerationStop(int64 generation_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1894449685;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateCall final : public Update {
public:
object_ptr<call> call_;
updateCall();
explicit updateCall(object_ptr<call> &&call_);
static const std::int32_t ID = 1337184477;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateGroupCall final : public Update {
public:
object_ptr<groupCall> group_call_;
updateGroupCall();
explicit updateGroupCall(object_ptr<groupCall> &&group_call_);
static const std::int32_t ID = 808603136;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateGroupCallParticipant final : public Update {
public:
int32 group_call_id_;
object_ptr<groupCallParticipant> participant_;
updateGroupCallParticipant();
updateGroupCallParticipant(int32 group_call_id_, object_ptr<groupCallParticipant> &&participant_);
static const std::int32_t ID = -803128071;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateNewCallSignalingData final : public Update {
public:
int32 call_id_;
bytes data_;
updateNewCallSignalingData();
updateNewCallSignalingData(int32 call_id_, bytes const &data_);
static const std::int32_t ID = 583634317;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class updateUserPrivacySettingRules final : public Update {
public:
object_ptr<UserPrivacySetting> setting_;
object_ptr<userPrivacySettingRules> rules_;
updateUserPrivacySettingRules();
updateUserPrivacySettingRules(object_ptr<UserPrivacySetting> &&setting_, object_ptr<userPrivacySettingRules> &&rules_);
static const std::int32_t ID = -912960778;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUnreadMessageCount final : public Update {
public:
object_ptr<ChatList> chat_list_;
2020-12-07 00:03:08 +03:00
int32 unread_count_;
int32 unread_unmuted_count_;
2020-08-10 15:17:29 +03:00
updateUnreadMessageCount();
2020-12-07 00:03:08 +03:00
updateUnreadMessageCount(object_ptr<ChatList> &&chat_list_, int32 unread_count_, int32 unread_unmuted_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 78987721;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUnreadChatCount final : public Update {
public:
object_ptr<ChatList> chat_list_;
2020-12-07 00:03:08 +03:00
int32 total_count_;
int32 unread_count_;
int32 unread_unmuted_count_;
int32 marked_as_unread_count_;
int32 marked_as_unread_unmuted_count_;
2020-08-10 15:17:29 +03:00
updateUnreadChatCount();
2020-12-07 00:03:08 +03:00
updateUnreadChatCount(object_ptr<ChatList> &&chat_list_, int32 total_count_, int32 unread_count_, int32 unread_unmuted_count_, int32 marked_as_unread_count_, int32 marked_as_unread_unmuted_count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1994494530;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateOption final : public Update {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
object_ptr<OptionValue> value_;
updateOption();
2020-12-07 00:03:08 +03:00
updateOption(string const &name_, object_ptr<OptionValue> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 900822020;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateStickerSet final : public Update {
public:
object_ptr<stickerSet> sticker_set_;
updateStickerSet();
explicit updateStickerSet(object_ptr<stickerSet> &&sticker_set_);
static const std::int32_t ID = 1879268812;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class updateInstalledStickerSets final : public Update {
public:
bool is_masks_;
2020-12-07 00:03:08 +03:00
array<int64> sticker_set_ids_;
2020-08-10 15:17:29 +03:00
updateInstalledStickerSets();
2020-12-07 00:03:08 +03:00
updateInstalledStickerSets(bool is_masks_, array<int64> &&sticker_set_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1125575977;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateTrendingStickerSets final : public Update {
public:
object_ptr<stickerSets> sticker_sets_;
updateTrendingStickerSets();
explicit updateTrendingStickerSets(object_ptr<stickerSets> &&sticker_sets_);
static const std::int32_t ID = 450714593;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateRecentStickers final : public Update {
public:
bool is_attached_;
2020-12-07 00:03:08 +03:00
array<int32> sticker_ids_;
2020-08-10 15:17:29 +03:00
updateRecentStickers();
2020-12-07 00:03:08 +03:00
updateRecentStickers(bool is_attached_, array<int32> &&sticker_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1906403540;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateFavoriteStickers final : public Update {
public:
2020-12-07 00:03:08 +03:00
array<int32> sticker_ids_;
2020-08-10 15:17:29 +03:00
updateFavoriteStickers();
2020-12-07 00:03:08 +03:00
explicit updateFavoriteStickers(array<int32> &&sticker_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1662240999;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSavedAnimations final : public Update {
public:
2020-12-07 00:03:08 +03:00
array<int32> animation_ids_;
2020-08-10 15:17:29 +03:00
updateSavedAnimations();
2020-12-07 00:03:08 +03:00
explicit updateSavedAnimations(array<int32> &&animation_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 65563814;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSelectedBackground final : public Update {
public:
bool for_dark_theme_;
object_ptr<background> background_;
updateSelectedBackground();
updateSelectedBackground(bool for_dark_theme_, object_ptr<background> &&background_);
static const std::int32_t ID = -1715658659;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatThemes final : public Update {
public:
array<object_ptr<chatTheme>> chat_themes_;
updateChatThemes();
explicit updateChatThemes(array<object_ptr<chatTheme>> &&chat_themes_);
static const std::int32_t ID = -1588098376;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class updateLanguagePackStrings final : public Update {
public:
2020-12-07 00:03:08 +03:00
string localization_target_;
string language_pack_id_;
array<object_ptr<languagePackString>> strings_;
2020-08-10 15:17:29 +03:00
updateLanguagePackStrings();
2020-12-07 00:03:08 +03:00
updateLanguagePackStrings(string const &localization_target_, string const &language_pack_id_, array<object_ptr<languagePackString>> &&strings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1056319886;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateConnectionState final : public Update {
public:
object_ptr<ConnectionState> state_;
updateConnectionState();
explicit updateConnectionState(object_ptr<ConnectionState> &&state_);
static const std::int32_t ID = 1469292078;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateTermsOfService final : public Update {
public:
2020-12-07 00:03:08 +03:00
string terms_of_service_id_;
2020-08-10 15:17:29 +03:00
object_ptr<termsOfService> terms_of_service_;
updateTermsOfService();
2020-12-07 00:03:08 +03:00
updateTermsOfService(string const &terms_of_service_id_, object_ptr<termsOfService> &&terms_of_service_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1304640162;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateUsersNearby final : public Update {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<chatNearby>> users_nearby_;
2020-08-10 15:17:29 +03:00
updateUsersNearby();
2020-12-07 00:03:08 +03:00
explicit updateUsersNearby(array<object_ptr<chatNearby>> &&users_nearby_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1517109163;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateDiceEmojis final : public Update {
public:
array<string> emojis_;
updateDiceEmojis();
explicit updateDiceEmojis(array<string> &&emojis_);
static const std::int32_t ID = -1069066940;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateAnimatedEmojiMessageClicked final : public Update {
public:
int53 chat_id_;
int53 message_id_;
object_ptr<sticker> sticker_;
updateAnimatedEmojiMessageClicked();
updateAnimatedEmojiMessageClicked(int53 chat_id_, int53 message_id_, object_ptr<sticker> &&sticker_);
static const std::int32_t ID = -1558809595;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class updateAnimationSearchParameters final : public Update {
public:
string provider_;
array<string> emojis_;
updateAnimationSearchParameters();
updateAnimationSearchParameters(string const &provider_, array<string> &&emojis_);
static const std::int32_t ID = -1144983202;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateSuggestedActions final : public Update {
public:
array<object_ptr<SuggestedAction>> added_actions_;
array<object_ptr<SuggestedAction>> removed_actions_;
updateSuggestedActions();
updateSuggestedActions(array<object_ptr<SuggestedAction>> &&added_actions_, array<object_ptr<SuggestedAction>> &&removed_actions_);
static const std::int32_t ID = 1459452346;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class updateNewInlineQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
int53 sender_user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<location> user_location_;
object_ptr<ChatType> chat_type_;
2020-12-07 00:03:08 +03:00
string query_;
string offset_;
2020-08-10 15:17:29 +03:00
updateNewInlineQuery();
updateNewInlineQuery(int64 id_, int53 sender_user_id_, object_ptr<location> &&user_location_, object_ptr<ChatType> &&chat_type_, string const &query_, string const &offset_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1903279924;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewChosenInlineResult final : public Update {
public:
int53 sender_user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<location> user_location_;
2020-12-07 00:03:08 +03:00
string query_;
string result_id_;
string inline_message_id_;
2020-08-10 15:17:29 +03:00
updateNewChosenInlineResult();
updateNewChosenInlineResult(int53 sender_user_id_, object_ptr<location> &&user_location_, string const &query_, string const &result_id_, string const &inline_message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -884191395;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewCallbackQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
int53 sender_user_id_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int64 chat_instance_;
2020-08-10 15:17:29 +03:00
object_ptr<CallbackQueryPayload> payload_;
updateNewCallbackQuery();
updateNewCallbackQuery(int64 id_, int53 sender_user_id_, int53 chat_id_, int53 message_id_, int64 chat_instance_, object_ptr<CallbackQueryPayload> &&payload_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1989881762;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewInlineCallbackQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
int53 sender_user_id_;
2020-12-07 00:03:08 +03:00
string inline_message_id_;
int64 chat_instance_;
2020-08-10 15:17:29 +03:00
object_ptr<CallbackQueryPayload> payload_;
updateNewInlineCallbackQuery();
updateNewInlineCallbackQuery(int64 id_, int53 sender_user_id_, string const &inline_message_id_, int64 chat_instance_, object_ptr<CallbackQueryPayload> &&payload_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -319212358;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewShippingQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
int53 sender_user_id_;
2020-12-07 00:03:08 +03:00
string invoice_payload_;
2020-08-10 15:17:29 +03:00
object_ptr<address> shipping_address_;
updateNewShippingQuery();
updateNewShippingQuery(int64 id_, int53 sender_user_id_, string const &invoice_payload_, object_ptr<address> &&shipping_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 693651058;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewPreCheckoutQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
int53 sender_user_id_;
2020-12-07 00:03:08 +03:00
string currency_;
int53 total_amount_;
bytes invoice_payload_;
string shipping_option_id_;
2020-08-10 15:17:29 +03:00
object_ptr<orderInfo> order_info_;
updateNewPreCheckoutQuery();
updateNewPreCheckoutQuery(int64 id_, int53 sender_user_id_, string const &currency_, int53 total_amount_, bytes const &invoice_payload_, string const &shipping_option_id_, object_ptr<orderInfo> &&order_info_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 708342217;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewCustomEvent final : public Update {
public:
2020-12-07 00:03:08 +03:00
string event_;
2020-08-10 15:17:29 +03:00
updateNewCustomEvent();
2020-12-07 00:03:08 +03:00
explicit updateNewCustomEvent(string const &event_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1994222092;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewCustomQuery final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 id_;
string data_;
int32 timeout_;
2020-08-10 15:17:29 +03:00
updateNewCustomQuery();
2020-12-07 00:03:08 +03:00
updateNewCustomQuery(int64 id_, string const &data_, int32 timeout_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -687670874;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updatePoll final : public Update {
public:
object_ptr<poll> poll_;
updatePoll();
explicit updatePoll(object_ptr<poll> &&poll_);
static const std::int32_t ID = -1771342902;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updatePollAnswer final : public Update {
public:
2020-12-07 00:03:08 +03:00
int64 poll_id_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
array<int32> option_ids_;
2020-08-10 15:17:29 +03:00
updatePollAnswer();
updatePollAnswer(int64 poll_id_, int53 user_id_, array<int32> &&option_ids_);
static const std::int32_t ID = -1209100651;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateChatMember final : public Update {
public:
int53 chat_id_;
int53 actor_user_id_;
int32 date_;
object_ptr<chatInviteLink> invite_link_;
object_ptr<chatMember> old_chat_member_;
object_ptr<chatMember> new_chat_member_;
updateChatMember();
updateChatMember(int53 chat_id_, int53 actor_user_id_, int32 date_, object_ptr<chatInviteLink> &&invite_link_, object_ptr<chatMember> &&old_chat_member_, object_ptr<chatMember> &&new_chat_member_);
static const std::int32_t ID = -2027989165;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updateNewChatJoinRequest final : public Update {
public:
int53 chat_id_;
object_ptr<chatJoinRequest> request_;
object_ptr<chatInviteLink> invite_link_;
updateNewChatJoinRequest();
updateNewChatJoinRequest(int53 chat_id_, object_ptr<chatJoinRequest> &&request_, object_ptr<chatInviteLink> &&invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 175285905;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class updates final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<Update>> updates_;
2020-08-10 15:17:29 +03:00
updates();
2020-12-07 00:03:08 +03:00
explicit updates(array<object_ptr<Update>> &&updates_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 475842347;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class user final : public Object {
public:
int53 id_;
2020-12-07 00:03:08 +03:00
string first_name_;
string last_name_;
string username_;
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<UserStatus> status_;
object_ptr<profilePhoto> profile_photo_;
bool is_contact_;
bool is_mutual_contact_;
bool is_verified_;
bool is_support_;
2020-12-07 00:03:08 +03:00
string restriction_reason_;
2020-08-10 15:17:29 +03:00
bool is_scam_;
bool is_fake_;
2020-08-10 15:17:29 +03:00
bool have_access_;
object_ptr<UserType> type_;
2020-12-07 00:03:08 +03:00
string language_code_;
2020-08-10 15:17:29 +03:00
user();
user(int53 id_, string const &first_name_, string const &last_name_, string const &username_, string const &phone_number_, object_ptr<UserStatus> &&status_, object_ptr<profilePhoto> &&profile_photo_, bool is_contact_, bool is_mutual_contact_, bool is_verified_, bool is_support_, string const &restriction_reason_, bool is_scam_, bool is_fake_, bool have_access_, object_ptr<UserType> &&type_, string const &language_code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -537797015;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userFullInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
object_ptr<chatPhoto> photo_;
2020-08-10 15:17:29 +03:00
bool is_blocked_;
bool can_be_called_;
2020-12-07 00:03:08 +03:00
bool supports_video_calls_;
2020-08-10 15:17:29 +03:00
bool has_private_calls_;
bool has_private_forwards_;
2020-08-10 15:17:29 +03:00
bool need_phone_number_privacy_exception_;
2020-12-07 00:03:08 +03:00
string bio_;
string share_text_;
string description_;
2020-12-07 00:03:08 +03:00
int32 group_in_common_count_;
array<object_ptr<botCommand>> commands_;
2020-08-10 15:17:29 +03:00
userFullInfo();
userFullInfo(object_ptr<chatPhoto> &&photo_, bool is_blocked_, bool can_be_called_, bool supports_video_calls_, bool has_private_calls_, bool has_private_forwards_, bool need_phone_number_privacy_exception_, string const &bio_, string const &share_text_, string const &description_, int32 group_in_common_count_, array<object_ptr<botCommand>> &&commands_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2138747126;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class UserPrivacySetting: public Object {
public:
};
class userPrivacySettingShowStatus final : public UserPrivacySetting {
public:
userPrivacySettingShowStatus();
static const std::int32_t ID = 1862829310;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingShowProfilePhoto final : public UserPrivacySetting {
public:
userPrivacySettingShowProfilePhoto();
static const std::int32_t ID = 1408485877;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingShowLinkInForwardedMessages final : public UserPrivacySetting {
public:
userPrivacySettingShowLinkInForwardedMessages();
static const std::int32_t ID = 592688870;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingShowPhoneNumber final : public UserPrivacySetting {
public:
userPrivacySettingShowPhoneNumber();
static const std::int32_t ID = -791567831;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingAllowChatInvites final : public UserPrivacySetting {
public:
userPrivacySettingAllowChatInvites();
static const std::int32_t ID = 1271668007;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingAllowCalls final : public UserPrivacySetting {
public:
userPrivacySettingAllowCalls();
static const std::int32_t ID = -906967291;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingAllowPeerToPeerCalls final : public UserPrivacySetting {
public:
userPrivacySettingAllowPeerToPeerCalls();
static const std::int32_t ID = 352500032;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingAllowFindingByPhoneNumber final : public UserPrivacySetting {
public:
userPrivacySettingAllowFindingByPhoneNumber();
static const std::int32_t ID = -1846645423;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class UserPrivacySettingRule: public Object {
public:
};
class userPrivacySettingRuleAllowAll final : public UserPrivacySettingRule {
public:
userPrivacySettingRuleAllowAll();
static const std::int32_t ID = -1967186881;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleAllowContacts final : public UserPrivacySettingRule {
public:
userPrivacySettingRuleAllowContacts();
static const std::int32_t ID = -1892733680;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleAllowUsers final : public UserPrivacySettingRule {
public:
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
userPrivacySettingRuleAllowUsers();
explicit userPrivacySettingRuleAllowUsers(array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1110988334;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleAllowChatMembers final : public UserPrivacySettingRule {
public:
2020-12-07 00:03:08 +03:00
array<int53> chat_ids_;
2020-08-10 15:17:29 +03:00
userPrivacySettingRuleAllowChatMembers();
2020-12-07 00:03:08 +03:00
explicit userPrivacySettingRuleAllowChatMembers(array<int53> &&chat_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2048749863;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleRestrictAll final : public UserPrivacySettingRule {
public:
userPrivacySettingRuleRestrictAll();
static const std::int32_t ID = -1406495408;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleRestrictContacts final : public UserPrivacySettingRule {
public:
userPrivacySettingRuleRestrictContacts();
static const std::int32_t ID = 1008389378;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleRestrictUsers final : public UserPrivacySettingRule {
public:
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
userPrivacySettingRuleRestrictUsers();
explicit userPrivacySettingRuleRestrictUsers(array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 622796522;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRuleRestrictChatMembers final : public UserPrivacySettingRule {
public:
2020-12-07 00:03:08 +03:00
array<int53> chat_ids_;
2020-08-10 15:17:29 +03:00
userPrivacySettingRuleRestrictChatMembers();
2020-12-07 00:03:08 +03:00
explicit userPrivacySettingRuleRestrictChatMembers(array<int53> &&chat_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 392530897;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userPrivacySettingRules final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<UserPrivacySettingRule>> rules_;
2020-08-10 15:17:29 +03:00
userPrivacySettingRules();
2020-12-07 00:03:08 +03:00
explicit userPrivacySettingRules(array<object_ptr<UserPrivacySettingRule>> &&rules_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 322477541;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class UserStatus: public Object {
public:
};
class userStatusEmpty final : public UserStatus {
public:
userStatusEmpty();
static const std::int32_t ID = 164646985;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userStatusOnline final : public UserStatus {
public:
2020-12-07 00:03:08 +03:00
int32 expires_;
2020-08-10 15:17:29 +03:00
userStatusOnline();
2020-12-07 00:03:08 +03:00
explicit userStatusOnline(int32 expires_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1529460876;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userStatusOffline final : public UserStatus {
public:
2020-12-07 00:03:08 +03:00
int32 was_online_;
2020-08-10 15:17:29 +03:00
userStatusOffline();
2020-12-07 00:03:08 +03:00
explicit userStatusOffline(int32 was_online_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -759984891;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userStatusRecently final : public UserStatus {
public:
userStatusRecently();
static const std::int32_t ID = -496024847;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userStatusLastWeek final : public UserStatus {
public:
userStatusLastWeek();
static const std::int32_t ID = 129960444;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userStatusLastMonth final : public UserStatus {
public:
userStatusLastMonth();
static const std::int32_t ID = 2011940674;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class UserType: public Object {
public:
};
class userTypeRegular final : public UserType {
public:
userTypeRegular();
static const std::int32_t ID = -598644325;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userTypeDeleted final : public UserType {
public:
userTypeDeleted();
static const std::int32_t ID = -1807729372;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userTypeBot final : public UserType {
public:
bool can_join_groups_;
bool can_read_all_group_messages_;
bool is_inline_;
2020-12-07 00:03:08 +03:00
string inline_query_placeholder_;
2020-08-10 15:17:29 +03:00
bool need_location_;
userTypeBot();
2020-12-07 00:03:08 +03:00
userTypeBot(bool can_join_groups_, bool can_read_all_group_messages_, bool is_inline_, string const &inline_query_placeholder_, bool need_location_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1262387765;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class userTypeUnknown final : public UserType {
public:
userTypeUnknown();
static const std::int32_t ID = -724541123;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class users final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 total_count_;
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
users();
users(int32 total_count_, array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 171203420;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class validatedOrderInfo final : public Object {
public:
2020-12-07 00:03:08 +03:00
string order_info_id_;
array<object_ptr<shippingOption>> shipping_options_;
2020-08-10 15:17:29 +03:00
validatedOrderInfo();
2020-12-07 00:03:08 +03:00
validatedOrderInfo(string const &order_info_id_, array<object_ptr<shippingOption>> &&shipping_options_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1511451484;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class VectorPathCommand: public Object {
public:
};
class vectorPathCommandLine final : public VectorPathCommand {
public:
object_ptr<point> end_point_;
vectorPathCommandLine();
explicit vectorPathCommandLine(object_ptr<point> &&end_point_);
static const std::int32_t ID = -614056822;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class vectorPathCommandCubicBezierCurve final : public VectorPathCommand {
public:
object_ptr<point> start_control_point_;
object_ptr<point> end_control_point_;
object_ptr<point> end_point_;
vectorPathCommandCubicBezierCurve();
vectorPathCommandCubicBezierCurve(object_ptr<point> &&start_control_point_, object_ptr<point> &&end_control_point_, object_ptr<point> &&end_point_);
static const std::int32_t ID = 1229733434;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class venue final : public Object {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
string title_;
string address_;
string provider_;
string id_;
string type_;
2020-08-10 15:17:29 +03:00
venue();
2020-12-07 00:03:08 +03:00
venue(object_ptr<location> &&location_, string const &title_, string const &address_, string const &provider_, string const &id_, string const &type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1070406393;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class video final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 duration_;
int32 width_;
int32 height_;
string file_name_;
string mime_type_;
2020-08-10 15:17:29 +03:00
bool has_stickers_;
bool supports_streaming_;
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> video_;
video();
2020-12-07 00:03:08 +03:00
video(int32 duration_, int32 width_, int32 height_, string const &file_name_, string const &mime_type_, bool has_stickers_, bool supports_streaming_, object_ptr<minithumbnail> &&minithumbnail_, object_ptr<thumbnail> &&thumbnail_, object_ptr<file> &&video_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 832856268;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class videoChat final : public Object {
public:
int32 group_call_id_;
bool has_participants_;
object_ptr<MessageSender> default_participant_id_;
videoChat();
videoChat(int32 group_call_id_, bool has_participants_, object_ptr<MessageSender> &&default_participant_id_);
static const std::int32_t ID = -1374319320;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class videoNote final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 duration_;
int32 length_;
2020-08-10 15:17:29 +03:00
object_ptr<minithumbnail> minithumbnail_;
2020-12-07 00:03:08 +03:00
object_ptr<thumbnail> thumbnail_;
2020-08-10 15:17:29 +03:00
object_ptr<file> video_;
videoNote();
2020-12-07 00:03:08 +03:00
videoNote(int32 duration_, int32 length_, object_ptr<minithumbnail> &&minithumbnail_, object_ptr<thumbnail> &&thumbnail_, object_ptr<file> &&video_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -71734726;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class voiceNote final : public Object {
public:
2020-12-07 00:03:08 +03:00
int32 duration_;
bytes waveform_;
string mime_type_;
2020-08-10 15:17:29 +03:00
object_ptr<file> voice_;
voiceNote();
2020-12-07 00:03:08 +03:00
voiceNote(int32 duration_, bytes const &waveform_, string const &mime_type_, object_ptr<file> &&voice_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2066012058;
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class webPage final : public Object {
public:
2020-12-07 00:03:08 +03:00
string url_;
string display_url_;
string type_;
string site_name_;
string title_;
object_ptr<formattedText> description_;
2020-08-10 15:17:29 +03:00
object_ptr<photo> photo_;
2020-12-07 00:03:08 +03:00
string embed_url_;
string embed_type_;
int32 embed_width_;
int32 embed_height_;
int32 duration_;
string author_;
2020-08-10 15:17:29 +03:00
object_ptr<animation> animation_;
object_ptr<audio> audio_;
object_ptr<document> document_;
object_ptr<sticker> sticker_;
object_ptr<video> video_;
object_ptr<videoNote> video_note_;
object_ptr<voiceNote> voice_note_;
2020-12-07 00:03:08 +03:00
int32 instant_view_version_;
2020-08-10 15:17:29 +03:00
webPage();
2020-12-07 00:03:08 +03:00
webPage(string const &url_, string const &display_url_, string const &type_, string const &site_name_, string const &title_, object_ptr<formattedText> &&description_, object_ptr<photo> &&photo_, string const &embed_url_, string const &embed_type_, int32 embed_width_, int32 embed_height_, int32 duration_, string const &author_, object_ptr<animation> &&animation_, object_ptr<audio> &&audio_, object_ptr<document> &&document_, object_ptr<sticker> &&sticker_, object_ptr<video> &&video_, object_ptr<videoNote> &&video_note_, object_ptr<voiceNote> &&voice_note_, int32 instant_view_version_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -577333714;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class webPageInstantView final : public Object {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<PageBlock>> page_blocks_;
int32 view_count_;
int32 version_;
2020-08-10 15:17:29 +03:00
bool is_rtl_;
bool is_full_;
object_ptr<InternalLinkType> feedback_link_;
2020-08-10 15:17:29 +03:00
webPageInstantView();
webPageInstantView(array<object_ptr<PageBlock>> &&page_blocks_, int32 view_count_, int32 version_, bool is_rtl_, bool is_full_, object_ptr<InternalLinkType> &&feedback_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 778202453;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
void store(TlStorerToString &s, const char *field_name) const final;
};
class acceptCall final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 call_id_;
2020-08-10 15:17:29 +03:00
object_ptr<callProtocol> protocol_;
acceptCall();
2020-12-07 00:03:08 +03:00
acceptCall(int32 call_id_, object_ptr<callProtocol> &&protocol_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -646618416;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class acceptTermsOfService final : public Function {
public:
2020-12-07 00:03:08 +03:00
string terms_of_service_id_;
2020-08-10 15:17:29 +03:00
acceptTermsOfService();
2020-12-07 00:03:08 +03:00
explicit acceptTermsOfService(string const &terms_of_service_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2130576356;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addChatMember final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
int32 forward_limit_;
2020-08-10 15:17:29 +03:00
addChatMember();
addChatMember(int53 chat_id_, int53 user_id_, int32 forward_limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 499426810;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addChatMembers final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
addChatMembers();
addChatMembers(int53 chat_id_, array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -519951226;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class addChatToList final : public Function {
public:
int53 chat_id_;
object_ptr<ChatList> chat_list_;
addChatToList();
addChatToList(int53 chat_id_, object_ptr<ChatList> &&chat_list_);
static const std::int32_t ID = -80523595;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class addContact final : public Function {
public:
object_ptr<contact> contact_;
bool share_phone_number_;
addContact();
addContact(object_ptr<contact> &&contact_, bool share_phone_number_);
static const std::int32_t ID = 1869640000;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addCustomServerLanguagePack final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
2020-08-10 15:17:29 +03:00
addCustomServerLanguagePack();
2020-12-07 00:03:08 +03:00
explicit addCustomServerLanguagePack(string const &language_pack_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 4492771;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addFavoriteSticker final : public Function {
public:
object_ptr<InputFile> sticker_;
addFavoriteSticker();
explicit addFavoriteSticker(object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = 324504799;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addLocalMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<MessageSender> sender_id_;
2020-12-07 00:03:08 +03:00
int53 reply_to_message_id_;
2020-08-10 15:17:29 +03:00
bool disable_notification_;
object_ptr<InputMessageContent> input_message_content_;
addLocalMessage();
addLocalMessage(int53 chat_id_, object_ptr<MessageSender> &&sender_id_, int53 reply_to_message_id_, bool disable_notification_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1998878725;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addLogMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 verbosity_level_;
string text_;
2020-08-10 15:17:29 +03:00
addLogMessage();
2020-12-07 00:03:08 +03:00
addLogMessage(int32 verbosity_level_, string const &text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1597427692;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addNetworkStatistics final : public Function {
public:
object_ptr<NetworkStatisticsEntry> entry_;
addNetworkStatistics();
explicit addNetworkStatistics(object_ptr<NetworkStatisticsEntry> &&entry_);
static const std::int32_t ID = 1264825305;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
string server_;
int32 port_;
2020-08-10 15:17:29 +03:00
bool enable_;
object_ptr<ProxyType> type_;
addProxy();
2020-12-07 00:03:08 +03:00
addProxy(string const &server_, int32 port_, bool enable_, object_ptr<ProxyType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 331529432;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<proxy>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addRecentSticker final : public Function {
public:
bool is_attached_;
object_ptr<InputFile> sticker_;
addRecentSticker();
addRecentSticker(bool is_attached_, object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = -1478109026;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addRecentlyFoundChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
addRecentlyFoundChat();
2020-12-07 00:03:08 +03:00
explicit addRecentlyFoundChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1746396787;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addSavedAnimation final : public Function {
public:
object_ptr<InputFile> animation_;
addSavedAnimation();
explicit addSavedAnimation(object_ptr<InputFile> &&animation_);
static const std::int32_t ID = -1538525088;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class addStickerToSet final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
string name_;
object_ptr<InputSticker> sticker_;
2020-08-10 15:17:29 +03:00
addStickerToSet();
addStickerToSet(int53 user_id_, string const &name_, object_ptr<InputSticker> &&sticker_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 3869569;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSet>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class answerCallbackQuery final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 callback_query_id_;
string text_;
2020-08-10 15:17:29 +03:00
bool show_alert_;
2020-12-07 00:03:08 +03:00
string url_;
int32 cache_time_;
2020-08-10 15:17:29 +03:00
answerCallbackQuery();
2020-12-07 00:03:08 +03:00
answerCallbackQuery(int64 callback_query_id_, string const &text_, bool show_alert_, string const &url_, int32 cache_time_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1153028490;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class answerCustomQuery final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 custom_query_id_;
string data_;
2020-08-10 15:17:29 +03:00
answerCustomQuery();
2020-12-07 00:03:08 +03:00
answerCustomQuery(int64 custom_query_id_, string const &data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1293603521;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class answerInlineQuery final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 inline_query_id_;
2020-08-10 15:17:29 +03:00
bool is_personal_;
2020-12-07 00:03:08 +03:00
array<object_ptr<InputInlineQueryResult>> results_;
int32 cache_time_;
string next_offset_;
string switch_pm_text_;
string switch_pm_parameter_;
2020-08-10 15:17:29 +03:00
answerInlineQuery();
2020-12-07 00:03:08 +03:00
answerInlineQuery(int64 inline_query_id_, bool is_personal_, array<object_ptr<InputInlineQueryResult>> &&results_, int32 cache_time_, string const &next_offset_, string const &switch_pm_text_, string const &switch_pm_parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 485879477;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class answerPreCheckoutQuery final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 pre_checkout_query_id_;
string error_message_;
2020-08-10 15:17:29 +03:00
answerPreCheckoutQuery();
2020-12-07 00:03:08 +03:00
answerPreCheckoutQuery(int64 pre_checkout_query_id_, string const &error_message_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1486789653;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class answerShippingQuery final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 shipping_query_id_;
array<object_ptr<shippingOption>> shipping_options_;
string error_message_;
2020-08-10 15:17:29 +03:00
answerShippingQuery();
2020-12-07 00:03:08 +03:00
answerShippingQuery(int64 shipping_query_id_, array<object_ptr<shippingOption>> &&shipping_options_, string const &error_message_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -434601324;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class banChatMember final : public Function {
public:
int53 chat_id_;
object_ptr<MessageSender> member_id_;
int32 banned_until_date_;
bool revoke_messages_;
banChatMember();
banChatMember(int53 chat_id_, object_ptr<MessageSender> &&member_id_, int32 banned_until_date_, bool revoke_messages_);
static const std::int32_t ID = -888111748;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class blockMessageSenderFromReplies final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 message_id_;
bool delete_message_;
bool delete_all_messages_;
bool report_spam_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
blockMessageSenderFromReplies();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
blockMessageSenderFromReplies(int53 message_id_, bool delete_message_, bool delete_all_messages_, bool report_spam_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1214384757;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class canTransferOwnership final : public Function {
public:
canTransferOwnership();
static const std::int32_t ID = 634602508;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<CanTransferOwnershipResult>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class cancelDownloadFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
2020-08-10 15:17:29 +03:00
bool only_if_pending_;
cancelDownloadFile();
2020-12-07 00:03:08 +03:00
cancelDownloadFile(int32 file_id_, bool only_if_pending_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1954524450;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class cancelPasswordReset final : public Function {
public:
cancelPasswordReset();
static const std::int32_t ID = 940733538;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class cancelUploadFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
2020-08-10 15:17:29 +03:00
cancelUploadFile();
2020-12-07 00:03:08 +03:00
explicit cancelUploadFile(int32 file_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1623539600;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class changeImportedContacts final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<contact>> contacts_;
2020-08-10 15:17:29 +03:00
changeImportedContacts();
2020-12-07 00:03:08 +03:00
explicit changeImportedContacts(array<object_ptr<contact>> &&contacts_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1968207955;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<importedContacts>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class changePhoneNumber final : public Function {
public:
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<phoneNumberAuthenticationSettings> settings_;
changePhoneNumber();
2020-12-07 00:03:08 +03:00
changePhoneNumber(string const &phone_number_, object_ptr<phoneNumberAuthenticationSettings> &&settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -124666973;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class changeStickerSet final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 set_id_;
2020-08-10 15:17:29 +03:00
bool is_installed_;
bool is_archived_;
changeStickerSet();
2020-12-07 00:03:08 +03:00
changeStickerSet(int64 set_id_, bool is_installed_, bool is_archived_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 449357293;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkAuthenticationBotToken final : public Function {
public:
2020-12-07 00:03:08 +03:00
string token_;
2020-08-10 15:17:29 +03:00
checkAuthenticationBotToken();
2020-12-07 00:03:08 +03:00
explicit checkAuthenticationBotToken(string const &token_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 639321206;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkAuthenticationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string code_;
2020-08-10 15:17:29 +03:00
checkAuthenticationCode();
2020-12-07 00:03:08 +03:00
explicit checkAuthenticationCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -302103382;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkAuthenticationPassword final : public Function {
public:
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
checkAuthenticationPassword();
2020-12-07 00:03:08 +03:00
explicit checkAuthenticationPassword(string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2025698400;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkAuthenticationPasswordRecoveryCode final : public Function {
public:
string recovery_code_;
checkAuthenticationPasswordRecoveryCode();
explicit checkAuthenticationPasswordRecoveryCode(string const &recovery_code_);
static const std::int32_t ID = -603309083;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class checkChangePhoneNumberCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string code_;
2020-08-10 15:17:29 +03:00
checkChangePhoneNumberCode();
2020-12-07 00:03:08 +03:00
explicit checkChangePhoneNumberCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1720278429;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkChatInviteLink final : public Function {
public:
2020-12-07 00:03:08 +03:00
string invite_link_;
2020-08-10 15:17:29 +03:00
checkChatInviteLink();
2020-12-07 00:03:08 +03:00
explicit checkChatInviteLink(string const &invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -496940997;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLinkInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkChatUsername final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string username_;
2020-08-10 15:17:29 +03:00
checkChatUsername();
2020-12-07 00:03:08 +03:00
checkChatUsername(int53 chat_id_, string const &username_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -119119344;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<CheckChatUsernameResult>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkCreatedPublicChatsLimit final : public Function {
public:
object_ptr<PublicChatType> type_;
checkCreatedPublicChatsLimit();
explicit checkCreatedPublicChatsLimit(object_ptr<PublicChatType> &&type_);
static const std::int32_t ID = -445546591;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkDatabaseEncryptionKey final : public Function {
public:
2020-12-07 00:03:08 +03:00
bytes encryption_key_;
2020-08-10 15:17:29 +03:00
checkDatabaseEncryptionKey();
2020-12-07 00:03:08 +03:00
explicit checkDatabaseEncryptionKey(bytes const &encryption_key_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1018769307;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkEmailAddressVerificationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string code_;
2020-08-10 15:17:29 +03:00
checkEmailAddressVerificationCode();
2020-12-07 00:03:08 +03:00
explicit checkEmailAddressVerificationCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -426386685;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkPasswordRecoveryCode final : public Function {
public:
string recovery_code_;
checkPasswordRecoveryCode();
explicit checkPasswordRecoveryCode(string const &recovery_code_);
static const std::int32_t ID = -200794600;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class checkPhoneNumberConfirmationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string code_;
2020-08-10 15:17:29 +03:00
checkPhoneNumberConfirmationCode();
2020-12-07 00:03:08 +03:00
explicit checkPhoneNumberConfirmationCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1348060966;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkPhoneNumberVerificationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string code_;
2020-08-10 15:17:29 +03:00
checkPhoneNumberVerificationCode();
2020-12-07 00:03:08 +03:00
explicit checkPhoneNumberVerificationCode(string const &code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1497462718;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkRecoveryEmailAddressCode final : public Function {
public:
string code_;
checkRecoveryEmailAddressCode();
explicit checkRecoveryEmailAddressCode(string const &code_);
static const std::int32_t ID = -1997039589;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class checkStickerSetName final : public Function {
2020-08-10 15:17:29 +03:00
public:
string name_;
2020-08-10 15:17:29 +03:00
checkStickerSetName();
2020-08-10 15:17:29 +03:00
explicit checkStickerSetName(string const &name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1789392642;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<CheckStickerSetNameResult>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class cleanFileName final : public Function {
public:
2020-12-07 00:03:08 +03:00
string file_name_;
2020-08-10 15:17:29 +03:00
cleanFileName();
2020-12-07 00:03:08 +03:00
explicit cleanFileName(string const &file_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 967964667;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class clearAllDraftMessages final : public Function {
public:
bool exclude_secret_chats_;
clearAllDraftMessages();
explicit clearAllDraftMessages(bool exclude_secret_chats_);
static const std::int32_t ID = -46369573;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class clearImportedContacts final : public Function {
public:
clearImportedContacts();
static const std::int32_t ID = 869503298;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class clearRecentStickers final : public Function {
public:
bool is_attached_;
clearRecentStickers();
explicit clearRecentStickers(bool is_attached_);
static const std::int32_t ID = -321242684;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class clearRecentlyFoundChats final : public Function {
public:
clearRecentlyFoundChats();
static const std::int32_t ID = -285582542;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class clickAnimatedEmojiMessage final : public Function {
public:
int53 chat_id_;
int53 message_id_;
clickAnimatedEmojiMessage();
clickAnimatedEmojiMessage(int53 chat_id_, int53 message_id_);
static const std::int32_t ID = 196179554;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<sticker>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class close final : public Function {
public:
close();
static const std::int32_t ID = -1187782273;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class closeChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
closeChat();
2020-12-07 00:03:08 +03:00
explicit closeChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 39749353;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class closeSecretChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 secret_chat_id_;
2020-08-10 15:17:29 +03:00
closeSecretChat();
2020-12-07 00:03:08 +03:00
explicit closeSecretChat(int32 secret_chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -471006133;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class confirmQrCodeAuthentication final : public Function {
public:
2020-12-07 00:03:08 +03:00
string link_;
2020-08-10 15:17:29 +03:00
confirmQrCodeAuthentication();
2020-12-07 00:03:08 +03:00
explicit confirmQrCodeAuthentication(string const &link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -376199379;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<session>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createBasicGroupChat final : public Function {
public:
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
bool force_;
createBasicGroupChat();
createBasicGroupChat(int53 basic_group_id_, bool force_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1972024548;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createCall final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
object_ptr<callProtocol> protocol_;
2020-12-07 00:03:08 +03:00
bool is_video_;
2020-08-10 15:17:29 +03:00
createCall();
createCall(int53 user_id_, object_ptr<callProtocol> &&protocol_, bool is_video_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1104663024;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<callId>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class createChatFilter final : public Function {
public:
object_ptr<chatFilter> filter_;
createChatFilter();
explicit createChatFilter(object_ptr<chatFilter> &&filter_);
static const std::int32_t ID = 49065126;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatFilterInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createChatInviteLink final : public Function {
public:
int53 chat_id_;
string name_;
int32 expiration_date_;
int32 member_limit_;
bool creates_join_request_;
createChatInviteLink();
createChatInviteLink(int53 chat_id_, string const &name_, int32 expiration_date_, int32 member_limit_, bool creates_join_request_);
static const std::int32_t ID = 287744833;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLink>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class createNewBasicGroupChat final : public Function {
public:
array<int53> user_ids_;
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
createNewBasicGroupChat();
createNewBasicGroupChat(array<int53> &&user_ids_, string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2104438789;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createNewSecretChat final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
createNewSecretChat();
explicit createNewSecretChat(int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -620682651;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createNewStickerSet final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
string title_;
string name_;
2020-08-10 15:17:29 +03:00
bool is_masks_;
2020-12-07 00:03:08 +03:00
array<object_ptr<InputSticker>> stickers_;
string source_;
2020-08-10 15:17:29 +03:00
createNewStickerSet();
createNewStickerSet(int53 user_id_, string const &title_, string const &name_, bool is_masks_, array<object_ptr<InputSticker>> &&stickers_, string const &source_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -396493358;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSet>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createNewSupergroupChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
string title_;
2020-08-10 15:17:29 +03:00
bool is_channel_;
2020-12-07 00:03:08 +03:00
string description_;
2020-08-10 15:17:29 +03:00
object_ptr<chatLocation> location_;
bool for_import_;
2020-08-10 15:17:29 +03:00
createNewSupergroupChat();
createNewSupergroupChat(string const &title_, bool is_channel_, string const &description_, object_ptr<chatLocation> &&location_, bool for_import_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -830232895;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createPrivateChat final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
bool force_;
createPrivateChat();
createPrivateChat(int53 user_id_, bool force_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -947758327;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createSecretChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 secret_chat_id_;
2020-08-10 15:17:29 +03:00
createSecretChat();
2020-12-07 00:03:08 +03:00
explicit createSecretChat(int32 secret_chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1930285615;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createSupergroupChat final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
bool force_;
createSupergroupChat();
createSupergroupChat(int53 supergroup_id_, bool force_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1187475691;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createTemporaryPassword final : public Function {
public:
2020-12-07 00:03:08 +03:00
string password_;
int32 valid_for_;
2020-08-10 15:17:29 +03:00
createTemporaryPassword();
2020-12-07 00:03:08 +03:00
createTemporaryPassword(string const &password_, int32 valid_for_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1626509434;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<temporaryPasswordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class createVideoChat final : public Function {
public:
int53 chat_id_;
string title_;
int32 start_date_;
createVideoChat();
createVideoChat(int53 chat_id_, string const &title_, int32 start_date_);
static const std::int32_t ID = -917641210;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<groupCallId>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class deleteAccount final : public Function {
public:
2020-12-07 00:03:08 +03:00
string reason_;
2020-08-10 15:17:29 +03:00
deleteAccount();
2020-12-07 00:03:08 +03:00
explicit deleteAccount(string const &reason_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1203056508;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteAllCallMessages final : public Function {
public:
bool revoke_;
deleteAllCallMessages();
explicit deleteAllCallMessages(bool revoke_);
static const std::int32_t ID = -1466445325;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteAllRevokedChatInviteLinks final : public Function {
public:
int53 chat_id_;
int53 creator_user_id_;
deleteAllRevokedChatInviteLinks();
deleteAllRevokedChatInviteLinks(int53 chat_id_, int53 creator_user_id_);
static const std::int32_t ID = 1112020698;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteChat final : public Function {
public:
int53 chat_id_;
deleteChat();
explicit deleteChat(int53 chat_id_);
static const std::int32_t ID = -171253666;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class deleteChatFilter final : public Function {
public:
int32 chat_filter_id_;
deleteChatFilter();
explicit deleteChatFilter(int32 chat_filter_id_);
static const std::int32_t ID = -523220877;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class deleteChatHistory final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
bool remove_from_chat_list_;
bool revoke_;
deleteChatHistory();
2020-12-07 00:03:08 +03:00
deleteChatHistory(int53 chat_id_, bool remove_from_chat_list_, bool revoke_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1472081761;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteChatMessagesByDate final : public Function {
public:
int53 chat_id_;
int32 min_date_;
int32 max_date_;
bool revoke_;
deleteChatMessagesByDate();
deleteChatMessagesByDate(int53 chat_id_, int32 min_date_, int32 max_date_, bool revoke_);
static const std::int32_t ID = -1639653185;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteChatMessagesBySender final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<MessageSender> sender_id_;
2020-08-10 15:17:29 +03:00
deleteChatMessagesBySender();
2020-08-10 15:17:29 +03:00
deleteChatMessagesBySender(int53 chat_id_, object_ptr<MessageSender> &&sender_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1164235161;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteChatReplyMarkup final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
deleteChatReplyMarkup();
2020-12-07 00:03:08 +03:00
deleteChatReplyMarkup(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 100637531;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteCommands final : public Function {
public:
object_ptr<BotCommandScope> scope_;
string language_code_;
deleteCommands();
deleteCommands(object_ptr<BotCommandScope> &&scope_, string const &language_code_);
static const std::int32_t ID = 1002732586;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class deleteFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
2020-08-10 15:17:29 +03:00
deleteFile();
2020-12-07 00:03:08 +03:00
explicit deleteFile(int32 file_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1807653676;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteLanguagePack final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
2020-08-10 15:17:29 +03:00
deleteLanguagePack();
2020-12-07 00:03:08 +03:00
explicit deleteLanguagePack(string const &language_pack_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2108761026;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
bool revoke_;
deleteMessages();
2020-12-07 00:03:08 +03:00
deleteMessages(int53 chat_id_, array<int53> &&message_ids_, bool revoke_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1130090173;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deletePassportElement final : public Function {
public:
object_ptr<PassportElementType> type_;
deletePassportElement();
explicit deletePassportElement(object_ptr<PassportElementType> &&type_);
static const std::int32_t ID = -1719555468;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteProfilePhoto final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 profile_photo_id_;
2020-08-10 15:17:29 +03:00
deleteProfilePhoto();
2020-12-07 00:03:08 +03:00
explicit deleteProfilePhoto(int64 profile_photo_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1319794625;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteRevokedChatInviteLink final : public Function {
2020-08-10 15:17:29 +03:00
public:
int53 chat_id_;
string invite_link_;
2020-08-10 15:17:29 +03:00
deleteRevokedChatInviteLink();
2020-08-10 15:17:29 +03:00
deleteRevokedChatInviteLink(int53 chat_id_, string const &invite_link_);
static const std::int32_t ID = -1859711873;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteSavedCredentials final : public Function {
2020-08-10 15:17:29 +03:00
public:
deleteSavedCredentials();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 826300114;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class deleteSavedOrderInfo final : public Function {
2020-08-10 15:17:29 +03:00
public:
deleteSavedOrderInfo();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1629058164;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class destroy final : public Function {
public:
destroy();
static const std::int32_t ID = 685331274;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class disableProxy final : public Function {
public:
disableProxy();
static const std::int32_t ID = -2100095102;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class discardCall final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 call_id_;
2020-08-10 15:17:29 +03:00
bool is_disconnected_;
2020-12-07 00:03:08 +03:00
int32 duration_;
bool is_video_;
int64 connection_id_;
2020-08-10 15:17:29 +03:00
discardCall();
2020-12-07 00:03:08 +03:00
discardCall(int32 call_id_, bool is_disconnected_, int32 duration_, bool is_video_, int64 connection_id_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1784044162;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class disconnectAllWebsites final : public Function {
public:
disconnectAllWebsites();
static const std::int32_t ID = -1082985981;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class disconnectWebsite final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 website_id_;
2020-08-10 15:17:29 +03:00
disconnectWebsite();
2020-12-07 00:03:08 +03:00
explicit disconnectWebsite(int64 website_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -778767395;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class downloadFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
int32 priority_;
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
bool synchronous_;
downloadFile();
2020-12-07 00:03:08 +03:00
downloadFile(int32 file_id_, int32 priority_, int32 offset_, int32 limit_, bool synchronous_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1102026662;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class editChatFilter final : public Function {
public:
int32 chat_filter_id_;
object_ptr<chatFilter> filter_;
editChatFilter();
editChatFilter(int32 chat_filter_id_, object_ptr<chatFilter> &&filter_);
static const std::int32_t ID = -1674793086;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatFilterInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editChatInviteLink final : public Function {
public:
int53 chat_id_;
string invite_link_;
string name_;
int32 expiration_date_;
int32 member_limit_;
bool creates_join_request_;
editChatInviteLink();
editChatInviteLink(int53 chat_id_, string const &invite_link_, string const &name_, int32 expiration_date_, int32 member_limit_, bool creates_join_request_);
static const std::int32_t ID = 1320303996;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLink>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class editCustomLanguagePackInfo final : public Function {
public:
object_ptr<languagePackInfo> info_;
editCustomLanguagePackInfo();
explicit editCustomLanguagePackInfo(object_ptr<languagePackInfo> &&info_);
static const std::int32_t ID = 1320751257;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editInlineMessageCaption final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<formattedText> caption_;
editInlineMessageCaption();
2020-12-07 00:03:08 +03:00
editInlineMessageCaption(string const &inline_message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -760985929;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editInlineMessageLiveLocation final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 heading_;
int32 proximity_alert_radius_;
2020-08-10 15:17:29 +03:00
editInlineMessageLiveLocation();
2020-12-07 00:03:08 +03:00
editInlineMessageLiveLocation(string const &inline_message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<location> &&location_, int32 heading_, int32 proximity_alert_radius_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -156902912;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editInlineMessageMedia final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
editInlineMessageMedia();
2020-12-07 00:03:08 +03:00
editInlineMessageMedia(string const &inline_message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 23553921;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editInlineMessageReplyMarkup final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
editInlineMessageReplyMarkup();
2020-12-07 00:03:08 +03:00
editInlineMessageReplyMarkup(string const &inline_message_id_, object_ptr<ReplyMarkup> &&reply_markup_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -67565858;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editInlineMessageText final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
editInlineMessageText();
2020-12-07 00:03:08 +03:00
editInlineMessageText(string const &inline_message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -855457307;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageCaption final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<formattedText> caption_;
editMessageCaption();
2020-12-07 00:03:08 +03:00
editMessageCaption(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<formattedText> &&caption_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1154677038;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageLiveLocation final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 heading_;
int32 proximity_alert_radius_;
2020-08-10 15:17:29 +03:00
editMessageLiveLocation();
2020-12-07 00:03:08 +03:00
editMessageLiveLocation(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<location> &&location_, int32 heading_, int32 proximity_alert_radius_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -14047982;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageMedia final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
editMessageMedia();
2020-12-07 00:03:08 +03:00
editMessageMedia(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1152678125;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageReplyMarkup final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
editMessageReplyMarkup();
2020-12-07 00:03:08 +03:00
editMessageReplyMarkup(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 332127881;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageSchedulingState final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<MessageSchedulingState> scheduling_state_;
editMessageSchedulingState();
2020-12-07 00:03:08 +03:00
editMessageSchedulingState(int53 chat_id_, int53 message_id_, object_ptr<MessageSchedulingState> &&scheduling_state_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1372976192;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editMessageText final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
editMessageText();
2020-12-07 00:03:08 +03:00
editMessageText(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 196272567;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class editProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 proxy_id_;
string server_;
int32 port_;
2020-08-10 15:17:29 +03:00
bool enable_;
object_ptr<ProxyType> type_;
editProxy();
2020-12-07 00:03:08 +03:00
editProxy(int32 proxy_id_, string const &server_, int32 port_, bool enable_, object_ptr<ProxyType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1605883821;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<proxy>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class enableProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 proxy_id_;
2020-08-10 15:17:29 +03:00
enableProxy();
2020-12-07 00:03:08 +03:00
explicit enableProxy(int32 proxy_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1494450838;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class endGroupCall final : public Function {
public:
int32 group_call_id_;
endGroupCall();
explicit endGroupCall(int32 group_call_id_);
static const std::int32_t ID = 573131959;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class endGroupCallRecording final : public Function {
public:
int32 group_call_id_;
endGroupCallRecording();
explicit endGroupCallRecording(int32 group_call_id_);
static const std::int32_t ID = -75799927;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class endGroupCallScreenSharing final : public Function {
public:
int32 group_call_id_;
endGroupCallScreenSharing();
explicit endGroupCallScreenSharing(int32 group_call_id_);
static const std::int32_t ID = -2047599540;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class finishFileGeneration final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 generation_id_;
2020-08-10 15:17:29 +03:00
object_ptr<error> error_;
finishFileGeneration();
2020-12-07 00:03:08 +03:00
finishFileGeneration(int64 generation_id_, object_ptr<error> &&error_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1055060835;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class forwardMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 from_chat_id_;
array<int53> message_ids_;
object_ptr<messageSendOptions> options_;
2020-08-10 15:17:29 +03:00
bool send_copy_;
bool remove_caption_;
bool only_preview_;
2020-08-10 15:17:29 +03:00
forwardMessages();
forwardMessages(int53 chat_id_, int53 from_chat_id_, array<int53> &&message_ids_, object_ptr<messageSendOptions> &&options_, bool send_copy_, bool remove_caption_, bool only_preview_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -798726491;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAccountTtl final : public Function {
public:
getAccountTtl();
static const std::int32_t ID = -443905161;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<accountTtl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getActiveLiveLocationMessages final : public Function {
public:
getActiveLiveLocationMessages();
static const std::int32_t ID = -1425459567;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getActiveSessions final : public Function {
public:
getActiveSessions();
static const std::int32_t ID = 1119710526;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<sessions>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAllPassportElements final : public Function {
public:
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
getAllPassportElements();
explicit getAllPassportElements(string const &password_);
static const std::int32_t ID = -2038945045;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passportElements>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAnimatedEmoji final : public Function {
public:
string emoji_;
getAnimatedEmoji();
explicit getAnimatedEmoji(string const &emoji_);
static const std::int32_t ID = 1065635702;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<animatedEmoji>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getApplicationConfig final : public Function {
public:
getApplicationConfig();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1823144318;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<JsonValue>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getApplicationDownloadLink final : public Function {
2020-08-10 15:17:29 +03:00
public:
getApplicationDownloadLink();
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 112013252;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getArchivedStickerSets final : public Function {
public:
bool is_masks_;
2020-12-07 00:03:08 +03:00
int64 offset_sticker_set_id_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getArchivedStickerSets();
2020-12-07 00:03:08 +03:00
getArchivedStickerSets(bool is_masks_, int64 offset_sticker_set_id_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1996943238;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAttachedStickerSets final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
2020-08-10 15:17:29 +03:00
getAttachedStickerSets();
2020-12-07 00:03:08 +03:00
explicit getAttachedStickerSets(int32 file_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1302172429;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAuthorizationState final : public Function {
public:
getAuthorizationState();
static const std::int32_t ID = 1949154877;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<AuthorizationState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getAutoDownloadSettingsPresets final : public Function {
public:
getAutoDownloadSettingsPresets();
static const std::int32_t ID = -1721088201;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<autoDownloadSettingsPresets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getBackgroundUrl final : public Function {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
object_ptr<BackgroundType> type_;
getBackgroundUrl();
2020-12-07 00:03:08 +03:00
getBackgroundUrl(string const &name_, object_ptr<BackgroundType> &&type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 733769682;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getBackgrounds final : public Function {
public:
bool for_dark_theme_;
getBackgrounds();
explicit getBackgrounds(bool for_dark_theme_);
static const std::int32_t ID = 249072633;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<backgrounds>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getBankCardInfo final : public Function {
public:
string bank_card_number_;
getBankCardInfo();
explicit getBankCardInfo(string const &bank_card_number_);
static const std::int32_t ID = -1310515792;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<bankCardInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getBasicGroup final : public Function {
public:
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
getBasicGroup();
explicit getBasicGroup(int53 basic_group_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1635174828;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<basicGroup>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getBasicGroupFullInfo final : public Function {
public:
int53 basic_group_id_;
2020-08-10 15:17:29 +03:00
getBasicGroupFullInfo();
explicit getBasicGroupFullInfo(int53 basic_group_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1822039253;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<basicGroupFullInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getBlockedMessageSenders final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
getBlockedMessageSenders();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
getBlockedMessageSenders(int32 offset_, int32 limit_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1947079776;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
2020-12-07 00:03:08 +03:00
using ReturnType = object_ptr<messageSenders>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getCallbackQueryAnswer final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<CallbackQueryPayload> payload_;
getCallbackQueryAnswer();
2020-12-07 00:03:08 +03:00
getCallbackQueryAnswer(int53 chat_id_, int53 message_id_, object_ptr<CallbackQueryPayload> &&payload_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 116357727;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<callbackQueryAnswer>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getCallbackQueryMessage final : public Function {
public:
int53 chat_id_;
int53 message_id_;
int64 callback_query_id_;
getCallbackQueryMessage();
getCallbackQueryMessage(int53 chat_id_, int53 message_id_, int64 callback_query_id_);
static const std::int32_t ID = -1121939086;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
getChat();
2020-12-07 00:03:08 +03:00
explicit getChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1866601536;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatAdministrators final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
getChatAdministrators();
2020-12-07 00:03:08 +03:00
explicit getChatAdministrators(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1544468155;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatAdministrators>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatAvailableMessageSenders final : public Function {
public:
int53 chat_id_;
getChatAvailableMessageSenders();
explicit getChatAvailableMessageSenders(int53 chat_id_);
static const std::int32_t ID = -1541571496;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageSenders>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getChatEventLog final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string query_;
int64 from_event_id_;
int32 limit_;
2020-08-10 15:17:29 +03:00
object_ptr<chatEventLogFilters> filters_;
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
getChatEventLog();
getChatEventLog(int53 chat_id_, string const &query_, int64 from_event_id_, int32 limit_, object_ptr<chatEventLogFilters> &&filters_, array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1281344669;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatEvents>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getChatFilter final : public Function {
public:
int32 chat_filter_id_;
getChatFilter();
explicit getChatFilter(int32 chat_filter_id_);
static const std::int32_t ID = 1826317803;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatFilter>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatFilterDefaultIconName final : public Function {
public:
object_ptr<chatFilter> filter_;
getChatFilterDefaultIconName();
explicit getChatFilterDefaultIconName(object_ptr<chatFilter> &&filter_);
static const std::int32_t ID = -1339828680;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getChatHistory final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 from_message_id_;
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
bool only_local_;
getChatHistory();
2020-12-07 00:03:08 +03:00
getChatHistory(int53 chat_id_, int53 from_message_id_, int32 offset_, int32 limit_, bool only_local_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -799960451;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatInviteLink final : public Function {
public:
int53 chat_id_;
string invite_link_;
getChatInviteLink();
getChatInviteLink(int53 chat_id_, string const &invite_link_);
static const std::int32_t ID = -479575555;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLink>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatInviteLinkCounts final : public Function {
public:
int53 chat_id_;
getChatInviteLinkCounts();
explicit getChatInviteLinkCounts(int53 chat_id_);
static const std::int32_t ID = 890299025;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLinkCounts>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatInviteLinkMembers final : public Function {
public:
int53 chat_id_;
string invite_link_;
object_ptr<chatInviteLinkMember> offset_member_;
int32 limit_;
getChatInviteLinkMembers();
getChatInviteLinkMembers(int53 chat_id_, string const &invite_link_, object_ptr<chatInviteLinkMember> &&offset_member_, int32 limit_);
static const std::int32_t ID = -977921638;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLinkMembers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatInviteLinks final : public Function {
public:
int53 chat_id_;
int53 creator_user_id_;
bool is_revoked_;
int32 offset_date_;
string offset_invite_link_;
int32 limit_;
getChatInviteLinks();
getChatInviteLinks(int53 chat_id_, int53 creator_user_id_, bool is_revoked_, int32 offset_date_, string const &offset_invite_link_, int32 limit_);
static const std::int32_t ID = 883252396;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLinks>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatJoinRequests final : public Function {
public:
int53 chat_id_;
string invite_link_;
string query_;
object_ptr<chatJoinRequest> offset_request_;
int32 limit_;
getChatJoinRequests();
getChatJoinRequests(int53 chat_id_, string const &invite_link_, string const &query_, object_ptr<chatJoinRequest> &&offset_request_, int32 limit_);
static const std::int32_t ID = -388428126;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatJoinRequests>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getChatListsToAddChat final : public Function {
public:
int53 chat_id_;
getChatListsToAddChat();
explicit getChatListsToAddChat(int53 chat_id_);
static const std::int32_t ID = 654956193;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatLists>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getChatMember final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<MessageSender> member_id_;
2020-08-10 15:17:29 +03:00
getChatMember();
getChatMember(int53 chat_id_, object_ptr<MessageSender> &&member_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -792636814;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatMember>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatMessageByDate final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 date_;
2020-08-10 15:17:29 +03:00
getChatMessageByDate();
2020-12-07 00:03:08 +03:00
getChatMessageByDate(int53 chat_id_, int32 date_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1062564150;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatMessageCalendar final : public Function {
public:
int53 chat_id_;
object_ptr<SearchMessagesFilter> filter_;
int53 from_message_id_;
getChatMessageCalendar();
getChatMessageCalendar(int53 chat_id_, object_ptr<SearchMessagesFilter> &&filter_, int53 from_message_id_);
static const std::int32_t ID = -326164204;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageCalendar>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getChatMessageCount final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<SearchMessagesFilter> filter_;
bool return_local_;
getChatMessageCount();
2020-12-07 00:03:08 +03:00
getChatMessageCount(int53 chat_id_, object_ptr<SearchMessagesFilter> &&filter_, bool return_local_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 205435308;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<count>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatNotificationSettingsExceptions final : public Function {
public:
object_ptr<NotificationSettingsScope> scope_;
bool compare_sound_;
getChatNotificationSettingsExceptions();
getChatNotificationSettingsExceptions(object_ptr<NotificationSettingsScope> &&scope_, bool compare_sound_);
static const std::int32_t ID = 201199121;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatPinnedMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
getChatPinnedMessage();
2020-12-07 00:03:08 +03:00
explicit getChatPinnedMessage(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 359865008;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatScheduledMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
getChatScheduledMessages();
2020-12-07 00:03:08 +03:00
explicit getChatScheduledMessages(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -549638149;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatSparseMessagePositions final : public Function {
2020-12-07 00:03:08 +03:00
public:
int53 chat_id_;
object_ptr<SearchMessagesFilter> filter_;
int53 from_message_id_;
int32 limit_;
2020-12-07 00:03:08 +03:00
getChatSparseMessagePositions();
2020-12-07 00:03:08 +03:00
getChatSparseMessagePositions(int53 chat_id_, object_ptr<SearchMessagesFilter> &&filter_, int53 from_message_id_, int32 limit_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -462227580;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messagePositions>;
2020-12-07 00:03:08 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatSponsoredMessage final : public Function {
public:
int53 chat_id_;
getChatSponsoredMessage();
explicit getChatSponsoredMessage(int53 chat_id_);
static const std::int32_t ID = 7520523;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<sponsoredMessage>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChatStatistics final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
bool is_dark_;
getChatStatistics();
2020-08-10 15:17:29 +03:00
getChatStatistics(int53 chat_id_, bool is_dark_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 327057816;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ChatStatistics>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getChats final : public Function {
public:
object_ptr<ChatList> chat_list_;
2020-12-07 00:03:08 +03:00
int32 limit_;
2020-08-10 15:17:29 +03:00
getChats();
getChats(object_ptr<ChatList> &&chat_list_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -972768574;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getCommands final : public Function {
public:
object_ptr<BotCommandScope> scope_;
string language_code_;
getCommands();
getCommands(object_ptr<BotCommandScope> &&scope_, string const &language_code_);
static const std::int32_t ID = 1488621559;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<botCommands>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getConnectedWebsites final : public Function {
public:
getConnectedWebsites();
static const std::int32_t ID = -170536110;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<connectedWebsites>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getContacts final : public Function {
public:
getContacts();
static const std::int32_t ID = -1417722768;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<users>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getCountries final : public Function {
public:
getCountries();
static const std::int32_t ID = -51902050;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<countries>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getCountryCode final : public Function {
public:
getCountryCode();
static const std::int32_t ID = 1540593906;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getCreatedPublicChats final : public Function {
public:
object_ptr<PublicChatType> type_;
getCreatedPublicChats();
explicit getCreatedPublicChats(object_ptr<PublicChatType> &&type_);
static const std::int32_t ID = 710354415;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getCurrentState final : public Function {
public:
getCurrentState();
static const std::int32_t ID = -1191417719;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<updates>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getDatabaseStatistics final : public Function {
public:
getDatabaseStatistics();
static const std::int32_t ID = -1942760263;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<databaseStatistics>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getDeepLinkInfo final : public Function {
public:
2020-12-07 00:03:08 +03:00
string link_;
2020-08-10 15:17:29 +03:00
getDeepLinkInfo();
2020-12-07 00:03:08 +03:00
explicit getDeepLinkInfo(string const &link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 680673150;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<deepLinkInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getEmojiSuggestionsUrl final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_code_;
2020-08-10 15:17:29 +03:00
getEmojiSuggestionsUrl();
2020-12-07 00:03:08 +03:00
explicit getEmojiSuggestionsUrl(string const &language_code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1404101841;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getExternalLink final : public Function {
public:
string link_;
bool allow_write_access_;
getExternalLink();
getExternalLink(string const &link_, bool allow_write_access_);
static const std::int32_t ID = 1586688235;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getExternalLinkInfo final : public Function {
public:
string link_;
getExternalLinkInfo();
explicit getExternalLinkInfo(string const &link_);
static const std::int32_t ID = 1175288383;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<LoginUrlInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getFavoriteStickers final : public Function {
public:
getFavoriteStickers();
static const std::int32_t ID = -338964672;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
2020-08-10 15:17:29 +03:00
getFile();
2020-12-07 00:03:08 +03:00
explicit getFile(int32 file_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1553923406;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getFileDownloadedPrefixSize final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
int32 offset_;
2020-08-10 15:17:29 +03:00
getFileDownloadedPrefixSize();
2020-12-07 00:03:08 +03:00
getFileDownloadedPrefixSize(int32 file_id_, int32 offset_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1668864864;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<count>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getFileExtension final : public Function {
public:
2020-12-07 00:03:08 +03:00
string mime_type_;
2020-08-10 15:17:29 +03:00
getFileExtension();
2020-12-07 00:03:08 +03:00
explicit getFileExtension(string const &mime_type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -106055372;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getFileMimeType final : public Function {
public:
2020-12-07 00:03:08 +03:00
string file_name_;
2020-08-10 15:17:29 +03:00
getFileMimeType();
2020-12-07 00:03:08 +03:00
explicit getFileMimeType(string const &file_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2073879671;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getGameHighScores final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
getGameHighScores();
getGameHighScores(int53 chat_id_, int53 message_id_, int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 15746459;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<gameHighScores>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getGroupCall final : public Function {
public:
int32 group_call_id_;
getGroupCall();
explicit getGroupCall(int32 group_call_id_);
static const std::int32_t ID = 1468491406;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<groupCall>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getGroupCallInviteLink final : public Function {
public:
int32 group_call_id_;
bool can_self_unmute_;
getGroupCallInviteLink();
getGroupCallInviteLink(int32 group_call_id_, bool can_self_unmute_);
static const std::int32_t ID = 719407396;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getGroupCallStreamSegment final : public Function {
public:
int32 group_call_id_;
int53 time_offset_;
int32 scale_;
int32 channel_id_;
object_ptr<GroupCallVideoQuality> video_quality_;
getGroupCallStreamSegment();
getGroupCallStreamSegment(int32 group_call_id_, int53 time_offset_, int32 scale_, int32 channel_id_, object_ptr<GroupCallVideoQuality> &&video_quality_);
static const std::int32_t ID = -2077959515;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<filePart>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getGroupsInCommon final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
int53 offset_chat_id_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getGroupsInCommon();
getGroupsInCommon(int53 user_id_, int53 offset_chat_id_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 381539178;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getImportedContactCount final : public Function {
public:
getImportedContactCount();
static const std::int32_t ID = -656336346;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<count>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getInactiveSupergroupChats final : public Function {
public:
getInactiveSupergroupChats();
static const std::int32_t ID = -657720907;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getInlineGameHighScores final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
int53 user_id_;
2020-08-10 15:17:29 +03:00
getInlineGameHighScores();
getInlineGameHighScores(string const &inline_message_id_, int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -533107798;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<gameHighScores>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getInlineQueryResults final : public Function {
public:
int53 bot_user_id_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<location> user_location_;
2020-12-07 00:03:08 +03:00
string query_;
string offset_;
2020-08-10 15:17:29 +03:00
getInlineQueryResults();
getInlineQueryResults(int53 bot_user_id_, int53 chat_id_, object_ptr<location> &&user_location_, string const &query_, string const &offset_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2044524652;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<inlineQueryResults>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getInstalledStickerSets final : public Function {
public:
bool is_masks_;
getInstalledStickerSets();
explicit getInstalledStickerSets(bool is_masks_);
static const std::int32_t ID = 1214523749;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getInternalLinkType final : public Function {
2020-08-10 15:17:29 +03:00
public:
string link_;
getInternalLinkType();
2020-08-10 15:17:29 +03:00
explicit getInternalLinkType(string const &link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1948428535;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<InternalLinkType>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getJsonString final : public Function {
public:
object_ptr<JsonValue> json_value_;
getJsonString();
explicit getJsonString(object_ptr<JsonValue> &&json_value_);
static const std::int32_t ID = 663458849;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getJsonValue final : public Function {
public:
2020-12-07 00:03:08 +03:00
string json_;
2020-08-10 15:17:29 +03:00
getJsonValue();
2020-12-07 00:03:08 +03:00
explicit getJsonValue(string const &json_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1829086715;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<JsonValue>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLanguagePackInfo final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
2020-08-10 15:17:29 +03:00
getLanguagePackInfo();
2020-12-07 00:03:08 +03:00
explicit getLanguagePackInfo(string const &language_pack_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2077809320;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<languagePackInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLanguagePackString final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_database_path_;
string localization_target_;
string language_pack_id_;
string key_;
2020-08-10 15:17:29 +03:00
getLanguagePackString();
2020-12-07 00:03:08 +03:00
getLanguagePackString(string const &language_pack_database_path_, string const &localization_target_, string const &language_pack_id_, string const &key_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 150789747;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<LanguagePackStringValue>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLanguagePackStrings final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
array<string> keys_;
2020-08-10 15:17:29 +03:00
getLanguagePackStrings();
2020-12-07 00:03:08 +03:00
getLanguagePackStrings(string const &language_pack_id_, array<string> &&keys_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1246259088;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<languagePackStrings>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLocalizationTargetInfo final : public Function {
public:
bool only_local_;
getLocalizationTargetInfo();
explicit getLocalizationTargetInfo(bool only_local_);
static const std::int32_t ID = 1849499526;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<localizationTargetInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLogStream final : public Function {
public:
getLogStream();
static const std::int32_t ID = 1167608667;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<LogStream>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLogTagVerbosityLevel final : public Function {
public:
2020-12-07 00:03:08 +03:00
string tag_;
2020-08-10 15:17:29 +03:00
getLogTagVerbosityLevel();
2020-12-07 00:03:08 +03:00
explicit getLogTagVerbosityLevel(string const &tag_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 951004547;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<logVerbosityLevel>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLogTags final : public Function {
public:
getLogTags();
static const std::int32_t ID = -254449190;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<logTags>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLogVerbosityLevel final : public Function {
public:
getLogVerbosityLevel();
static const std::int32_t ID = 594057956;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<logVerbosityLevel>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLoginUrl final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int53 button_id_;
2020-08-10 15:17:29 +03:00
bool allow_write_access_;
getLoginUrl();
getLoginUrl(int53 chat_id_, int53 message_id_, int53 button_id_, bool allow_write_access_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 791844305;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getLoginUrlInfo final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int53 button_id_;
2020-08-10 15:17:29 +03:00
getLoginUrlInfo();
getLoginUrlInfo(int53 chat_id_, int53 message_id_, int53 button_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -859202125;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<LoginUrlInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMapThumbnailFile final : public Function {
public:
object_ptr<location> location_;
2020-12-07 00:03:08 +03:00
int32 zoom_;
int32 width_;
int32 height_;
int32 scale_;
int53 chat_id_;
2020-08-10 15:17:29 +03:00
getMapThumbnailFile();
2020-12-07 00:03:08 +03:00
getMapThumbnailFile(object_ptr<location> &&location_, int32 zoom_, int32 width_, int32 height_, int32 scale_, int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -152660070;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getMarkdownText final : public Function {
public:
object_ptr<formattedText> text_;
getMarkdownText();
explicit getMarkdownText(object_ptr<formattedText> &&text_);
static const std::int32_t ID = 164524584;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<formattedText>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getMe final : public Function {
public:
getMe();
static const std::int32_t ID = -191516033;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<user>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
getMessage();
2020-12-07 00:03:08 +03:00
getMessage(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1821196160;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getMessageEmbeddingCode final : public Function {
public:
int53 chat_id_;
int53 message_id_;
bool for_album_;
getMessageEmbeddingCode();
getMessageEmbeddingCode(int53 chat_id_, int53 message_id_, bool for_album_);
static const std::int32_t ID = 1654967561;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageFileType final : public Function {
public:
string message_file_head_;
getMessageFileType();
explicit getMessageFileType(string const &message_file_head_);
static const std::int32_t ID = -490270764;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<MessageFileType>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageImportConfirmationText final : public Function {
public:
int53 chat_id_;
getMessageImportConfirmationText();
explicit getMessageImportConfirmationText(int53 chat_id_);
static const std::int32_t ID = 390627752;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getMessageLink final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int32 media_timestamp_;
2020-12-07 00:03:08 +03:00
bool for_album_;
bool for_comment_;
2020-08-10 15:17:29 +03:00
getMessageLink();
getMessageLink(int53 chat_id_, int53 message_id_, int32 media_timestamp_, bool for_album_, bool for_comment_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1607389329;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
2020-12-07 00:03:08 +03:00
using ReturnType = object_ptr<messageLink>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageLinkInfo final : public Function {
public:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
getMessageLinkInfo();
2020-12-07 00:03:08 +03:00
explicit getMessageLinkInfo(string const &url_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -700533672;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageLinkInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageLocally final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
getMessageLocally();
2020-12-07 00:03:08 +03:00
getMessageLocally(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -603575444;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getMessagePublicForwards final : public Function {
public:
int53 chat_id_;
int53 message_id_;
string offset_;
int32 limit_;
getMessagePublicForwards();
getMessagePublicForwards(int53 chat_id_, int53 message_id_, string const &offset_, int32 limit_);
static const std::int32_t ID = 1611049289;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<foundMessages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageStatistics final : public Function {
public:
int53 chat_id_;
int53 message_id_;
bool is_dark_;
getMessageStatistics();
getMessageStatistics(int53 chat_id_, int53 message_id_, bool is_dark_);
static const std::int32_t ID = 1270194648;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageStatistics>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageThread final : public Function {
public:
int53 chat_id_;
int53 message_id_;
getMessageThread();
getMessageThread(int53 chat_id_, int53 message_id_);
static const std::int32_t ID = 2062695998;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageThreadInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageThreadHistory final : public Function {
public:
int53 chat_id_;
int53 message_id_;
int53 from_message_id_;
int32 offset_;
int32 limit_;
getMessageThreadHistory();
getMessageThreadHistory(int53 chat_id_, int53 message_id_, int53 from_message_id_, int32 offset_, int32 limit_);
static const std::int32_t ID = -1808411608;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getMessageViewers final : public Function {
public:
int53 chat_id_;
int53 message_id_;
getMessageViewers();
getMessageViewers(int53 chat_id_, int53 message_id_);
static const std::int32_t ID = -1879496099;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<users>;
2020-12-07 00:03:08 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
getMessages();
2020-12-07 00:03:08 +03:00
getMessages(int53 chat_id_, array<int53> &&message_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 425299338;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getNetworkStatistics final : public Function {
public:
bool only_current_;
getNetworkStatistics();
explicit getNetworkStatistics(bool only_current_);
static const std::int32_t ID = -986228706;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<networkStatistics>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getOption final : public Function {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
getOption();
2020-12-07 00:03:08 +03:00
explicit getOption(string const &name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1572495746;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<OptionValue>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPassportAuthorizationForm final : public Function {
public:
int53 bot_user_id_;
2020-12-07 00:03:08 +03:00
string scope_;
string public_key_;
string nonce_;
2020-08-10 15:17:29 +03:00
getPassportAuthorizationForm();
getPassportAuthorizationForm(int53 bot_user_id_, string const &scope_, string const &public_key_, string const &nonce_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1636107398;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passportAuthorizationForm>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPassportAuthorizationFormAvailableElements final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 autorization_form_id_;
string password_;
2020-08-10 15:17:29 +03:00
getPassportAuthorizationFormAvailableElements();
2020-12-07 00:03:08 +03:00
getPassportAuthorizationFormAvailableElements(int32 autorization_form_id_, string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1738134754;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passportElementsWithErrors>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPassportElement final : public Function {
public:
object_ptr<PassportElementType> type_;
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
getPassportElement();
2020-12-07 00:03:08 +03:00
getPassportElement(object_ptr<PassportElementType> &&type_, string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1882398342;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<PassportElement>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPasswordState final : public Function {
public:
getPasswordState();
static const std::int32_t ID = -174752904;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPaymentForm final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
object_ptr<paymentFormTheme> theme_;
2020-08-10 15:17:29 +03:00
getPaymentForm();
getPaymentForm(int53 chat_id_, int53 message_id_, object_ptr<paymentFormTheme> &&theme_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 158229273;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<paymentForm>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPaymentReceipt final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
getPaymentReceipt();
2020-12-07 00:03:08 +03:00
getPaymentReceipt(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1013758294;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<paymentReceipt>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getPhoneNumberInfo final : public Function {
public:
string phone_number_prefix_;
getPhoneNumberInfo();
explicit getPhoneNumberInfo(string const &phone_number_prefix_);
static const std::int32_t ID = -1608344583;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<phoneNumberInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPhoneNumberInfoSync final : public Function {
public:
string language_code_;
string phone_number_prefix_;
getPhoneNumberInfoSync();
getPhoneNumberInfoSync(string const &language_code_, string const &phone_number_prefix_);
static const std::int32_t ID = 547061048;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<phoneNumberInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getPollVoters final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int32 option_id_;
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getPollVoters();
2020-12-07 00:03:08 +03:00
getPollVoters(int53 chat_id_, int53 message_id_, int32 option_id_, int32 offset_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2075288734;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<users>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPreferredCountryLanguage final : public Function {
public:
2020-12-07 00:03:08 +03:00
string country_code_;
2020-08-10 15:17:29 +03:00
getPreferredCountryLanguage();
2020-12-07 00:03:08 +03:00
explicit getPreferredCountryLanguage(string const &country_code_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -933049386;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getProxies final : public Function {
public:
getProxies();
static const std::int32_t ID = -95026381;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<proxies>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getProxyLink final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 proxy_id_;
2020-08-10 15:17:29 +03:00
getProxyLink();
2020-12-07 00:03:08 +03:00
explicit getProxyLink(int32 proxy_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1054495112;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<httpUrl>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getPushReceiverId final : public Function {
public:
2020-12-07 00:03:08 +03:00
string payload_;
2020-08-10 15:17:29 +03:00
getPushReceiverId();
2020-12-07 00:03:08 +03:00
explicit getPushReceiverId(string const &payload_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -286505294;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<pushReceiverId>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getRecentInlineBots final : public Function {
public:
getRecentInlineBots();
static const std::int32_t ID = 1437823548;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<users>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getRecentStickers final : public Function {
public:
bool is_attached_;
getRecentStickers();
explicit getRecentStickers(bool is_attached_);
static const std::int32_t ID = -579622241;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getRecentlyOpenedChats final : public Function {
public:
int32 limit_;
getRecentlyOpenedChats();
explicit getRecentlyOpenedChats(int32 limit_);
static const std::int32_t ID = -1924156893;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getRecentlyVisitedTMeUrls final : public Function {
public:
2020-12-07 00:03:08 +03:00
string referrer_;
2020-08-10 15:17:29 +03:00
getRecentlyVisitedTMeUrls();
2020-12-07 00:03:08 +03:00
explicit getRecentlyVisitedTMeUrls(string const &referrer_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 806754961;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<tMeUrls>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getRecommendedChatFilters final : public Function {
public:
getRecommendedChatFilters();
static const std::int32_t ID = -779390746;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<recommendedChatFilters>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getRecoveryEmailAddress final : public Function {
public:
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
getRecoveryEmailAddress();
2020-12-07 00:03:08 +03:00
explicit getRecoveryEmailAddress(string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1594770947;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<recoveryEmailAddress>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getRemoteFile final : public Function {
public:
2020-12-07 00:03:08 +03:00
string remote_file_id_;
2020-08-10 15:17:29 +03:00
object_ptr<FileType> file_type_;
getRemoteFile();
2020-12-07 00:03:08 +03:00
getRemoteFile(string const &remote_file_id_, object_ptr<FileType> &&file_type_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2137204530;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getRepliedMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
getRepliedMessage();
2020-12-07 00:03:08 +03:00
getRepliedMessage(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -641918531;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSavedAnimations final : public Function {
public:
getSavedAnimations();
static const std::int32_t ID = 7051032;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<animations>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSavedOrderInfo final : public Function {
public:
getSavedOrderInfo();
static const std::int32_t ID = -1152016675;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<orderInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getScopeNotificationSettings final : public Function {
public:
object_ptr<NotificationSettingsScope> scope_;
getScopeNotificationSettings();
explicit getScopeNotificationSettings(object_ptr<NotificationSettingsScope> &&scope_);
static const std::int32_t ID = -995613361;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<scopeNotificationSettings>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSecretChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 secret_chat_id_;
2020-08-10 15:17:29 +03:00
getSecretChat();
2020-12-07 00:03:08 +03:00
explicit getSecretChat(int32 secret_chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 40599169;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<secretChat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class getStatisticalGraph final : public Function {
public:
int53 chat_id_;
string token_;
int53 x_;
getStatisticalGraph();
getStatisticalGraph(int53 chat_id_, string const &token_, int53 x_);
static const std::int32_t ID = 1100975515;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<StatisticalGraph>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getStickerEmojis final : public Function {
public:
object_ptr<InputFile> sticker_;
getStickerEmojis();
explicit getStickerEmojis(object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = -1895508665;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<emojis>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getStickerSet final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 set_id_;
2020-08-10 15:17:29 +03:00
getStickerSet();
2020-12-07 00:03:08 +03:00
explicit getStickerSet(int64 set_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1052318659;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSet>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getStickers final : public Function {
public:
2020-12-07 00:03:08 +03:00
string emoji_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getStickers();
2020-12-07 00:03:08 +03:00
getStickers(string const &emoji_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1594919556;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getStorageStatistics final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 chat_limit_;
2020-08-10 15:17:29 +03:00
getStorageStatistics();
2020-12-07 00:03:08 +03:00
explicit getStorageStatistics(int32 chat_limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -853193929;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<storageStatistics>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getStorageStatisticsFast final : public Function {
public:
getStorageStatisticsFast();
static const std::int32_t ID = 61368066;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<storageStatisticsFast>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSuggestedFileName final : public Function {
public:
int32 file_id_;
string directory_;
getSuggestedFileName();
getSuggestedFileName(int32 file_id_, string const &directory_);
static const std::int32_t ID = -2049399674;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSuggestedStickerSetName final : public Function {
public:
string title_;
getSuggestedStickerSetName();
explicit getSuggestedStickerSetName(string const &title_);
static const std::int32_t ID = -1340995520;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getSuitableDiscussionChats final : public Function {
public:
getSuitableDiscussionChats();
static const std::int32_t ID = 49044982;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSupergroup final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
getSupergroup();
explicit getSupergroup(int53 supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 989663458;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<supergroup>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSupergroupFullInfo final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
getSupergroupFullInfo();
explicit getSupergroupFullInfo(int53 supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1099776056;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<supergroupFullInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSupergroupMembers final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
object_ptr<SupergroupMembersFilter> filter_;
2020-12-07 00:03:08 +03:00
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getSupergroupMembers();
getSupergroupMembers(int53 supergroup_id_, object_ptr<SupergroupMembersFilter> &&filter_, int32 offset_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -570940984;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatMembers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getSupportUser final : public Function {
public:
getSupportUser();
static const std::int32_t ID = -1733497700;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<user>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getTemporaryPasswordState final : public Function {
public:
getTemporaryPasswordState();
static const std::int32_t ID = -12670830;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<temporaryPasswordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getTextEntities final : public Function {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
getTextEntities();
2020-12-07 00:03:08 +03:00
explicit getTextEntities(string const &text_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -341490693;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<textEntities>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getTopChats final : public Function {
public:
object_ptr<TopChatCategory> category_;
2020-12-07 00:03:08 +03:00
int32 limit_;
2020-08-10 15:17:29 +03:00
getTopChats();
2020-12-07 00:03:08 +03:00
getTopChats(object_ptr<TopChatCategory> &&category_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -388410847;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getTrendingStickerSets final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getTrendingStickerSets();
2020-12-07 00:03:08 +03:00
getTrendingStickerSets(int32 offset_, int32 limit_);
static const std::int32_t ID = -1494581948;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getUser final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
getUser();
explicit getUser(int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1117363211;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<user>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getUserFullInfo final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
getUserFullInfo();
explicit getUserFullInfo(int53 user_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -776823720;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<userFullInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getUserPrivacySettingRules final : public Function {
public:
object_ptr<UserPrivacySetting> setting_;
getUserPrivacySettingRules();
explicit getUserPrivacySettingRules(object_ptr<UserPrivacySetting> &&setting_);
static const std::int32_t ID = -2077223311;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<userPrivacySettingRules>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getUserProfilePhotos final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
getUserProfilePhotos();
getUserProfilePhotos(int53 user_id_, int32 offset_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -908132798;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
2020-12-07 00:03:08 +03:00
using ReturnType = object_ptr<chatPhotos>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class getVideoChatAvailableParticipants final : public Function {
public:
int53 chat_id_;
getVideoChatAvailableParticipants();
explicit getVideoChatAvailableParticipants(int53 chat_id_);
static const std::int32_t ID = -1000496379;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messageSenders>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class getWebPageInstantView final : public Function {
public:
2020-12-07 00:03:08 +03:00
string url_;
2020-08-10 15:17:29 +03:00
bool force_full_;
getWebPageInstantView();
2020-12-07 00:03:08 +03:00
getWebPageInstantView(string const &url_, bool force_full_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1962649975;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<webPageInstantView>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class getWebPagePreview final : public Function {
public:
object_ptr<formattedText> text_;
getWebPagePreview();
explicit getWebPagePreview(object_ptr<formattedText> &&text_);
static const std::int32_t ID = 573441580;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<webPage>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class hideSuggestedAction final : public Function {
public:
object_ptr<SuggestedAction> action_;
hideSuggestedAction();
explicit hideSuggestedAction(object_ptr<SuggestedAction> &&action_);
static const std::int32_t ID = -1561384065;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class importContacts final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<contact>> contacts_;
2020-08-10 15:17:29 +03:00
importContacts();
2020-12-07 00:03:08 +03:00
explicit importContacts(array<object_ptr<contact>> &&contacts_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -215132767;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<importedContacts>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class importMessages final : public Function {
public:
int53 chat_id_;
object_ptr<InputFile> message_file_;
array<object_ptr<InputFile>> attached_files_;
importMessages();
importMessages(int53 chat_id_, object_ptr<InputFile> &&message_file_, array<object_ptr<InputFile>> &&attached_files_);
static const std::int32_t ID = -1864116784;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class inviteGroupCallParticipants final : public Function {
public:
int32 group_call_id_;
array<int53> user_ids_;
inviteGroupCallParticipants();
inviteGroupCallParticipants(int32 group_call_id_, array<int53> &&user_ids_);
static const std::int32_t ID = 1867097679;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class joinChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
joinChat();
2020-12-07 00:03:08 +03:00
explicit joinChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 326769313;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class joinChatByInviteLink final : public Function {
public:
2020-12-07 00:03:08 +03:00
string invite_link_;
2020-08-10 15:17:29 +03:00
joinChatByInviteLink();
2020-12-07 00:03:08 +03:00
explicit joinChatByInviteLink(string const &invite_link_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1049973882;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class joinGroupCall final : public Function {
public:
int32 group_call_id_;
object_ptr<MessageSender> participant_id_;
int32 audio_source_id_;
string payload_;
bool is_muted_;
bool is_my_video_enabled_;
string invite_hash_;
joinGroupCall();
joinGroupCall(int32 group_call_id_, object_ptr<MessageSender> &&participant_id_, int32 audio_source_id_, string const &payload_, bool is_muted_, bool is_my_video_enabled_, string const &invite_hash_);
static const std::int32_t ID = -1043773467;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class leaveChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
leaveChat();
2020-12-07 00:03:08 +03:00
explicit leaveChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1825080735;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class leaveGroupCall final : public Function {
public:
int32 group_call_id_;
leaveGroupCall();
explicit leaveGroupCall(int32 group_call_id_);
static const std::int32_t ID = 980152233;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class loadChats final : public Function {
public:
object_ptr<ChatList> chat_list_;
int32 limit_;
loadChats();
loadChats(object_ptr<ChatList> &&chat_list_, int32 limit_);
static const std::int32_t ID = -1885635205;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class loadGroupCallParticipants final : public Function {
public:
int32 group_call_id_;
int32 limit_;
loadGroupCallParticipants();
loadGroupCallParticipants(int32 group_call_id_, int32 limit_);
static const std::int32_t ID = 938720974;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class logOut final : public Function {
public:
logOut();
static const std::int32_t ID = -1581923301;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class openChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
openChat();
2020-12-07 00:03:08 +03:00
explicit openChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -323371509;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class openMessageContent final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
openMessageContent();
2020-12-07 00:03:08 +03:00
openMessageContent(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -739088005;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class optimizeStorage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 size_;
int32 ttl_;
int32 count_;
int32 immunity_delay_;
array<object_ptr<FileType>> file_types_;
array<int53> chat_ids_;
array<int53> exclude_chat_ids_;
bool return_deleted_file_statistics_;
int32 chat_limit_;
2020-08-10 15:17:29 +03:00
optimizeStorage();
2020-12-07 00:03:08 +03:00
optimizeStorage(int53 size_, int32 ttl_, int32 count_, int32 immunity_delay_, array<object_ptr<FileType>> &&file_types_, array<int53> &&chat_ids_, array<int53> &&exclude_chat_ids_, bool return_deleted_file_statistics_, int32 chat_limit_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 853186759;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<storageStatistics>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class parseMarkdown final : public Function {
public:
object_ptr<formattedText> text_;
parseMarkdown();
explicit parseMarkdown(object_ptr<formattedText> &&text_);
static const std::int32_t ID = 756366063;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<formattedText>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class parseTextEntities final : public Function {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
object_ptr<TextParseMode> parse_mode_;
parseTextEntities();
2020-12-07 00:03:08 +03:00
parseTextEntities(string const &text_, object_ptr<TextParseMode> &&parse_mode_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1709194593;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<formattedText>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class pinChatMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
bool disable_notification_;
2020-12-07 00:03:08 +03:00
bool only_for_self_;
2020-08-10 15:17:29 +03:00
pinChatMessage();
2020-12-07 00:03:08 +03:00
pinChatMessage(int53 chat_id_, int53 message_id_, bool disable_notification_, bool only_for_self_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 2034719663;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class pingProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 proxy_id_;
2020-08-10 15:17:29 +03:00
pingProxy();
2020-12-07 00:03:08 +03:00
explicit pingProxy(int32 proxy_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -979681103;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<seconds>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class processChatJoinRequest final : public Function {
public:
int53 chat_id_;
int53 user_id_;
bool approve_;
processChatJoinRequest();
processChatJoinRequest(int53 chat_id_, int53 user_id_, bool approve_);
static const std::int32_t ID = 1004876963;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class processChatJoinRequests final : public Function {
public:
int53 chat_id_;
string invite_link_;
bool approve_;
processChatJoinRequests();
processChatJoinRequests(int53 chat_id_, string const &invite_link_, bool approve_);
static const std::int32_t ID = 1048722894;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class processPushNotification final : public Function {
public:
2020-12-07 00:03:08 +03:00
string payload_;
2020-08-10 15:17:29 +03:00
processPushNotification();
2020-12-07 00:03:08 +03:00
explicit processPushNotification(string const &payload_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 786679952;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class readAllChatMentions final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
readAllChatMentions();
2020-12-07 00:03:08 +03:00
explicit readAllChatMentions(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1357558453;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class readFilePart final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 file_id_;
int32 offset_;
int32 count_;
2020-08-10 15:17:29 +03:00
readFilePart();
2020-12-07 00:03:08 +03:00
readFilePart(int32 file_id_, int32 offset_, int32 count_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -407749314;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<filePart>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class recoverAuthenticationPassword final : public Function {
public:
2020-12-07 00:03:08 +03:00
string recovery_code_;
string new_password_;
string new_hint_;
2020-08-10 15:17:29 +03:00
recoverAuthenticationPassword();
recoverAuthenticationPassword(string const &recovery_code_, string const &new_password_, string const &new_hint_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -131001053;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class recoverPassword final : public Function {
public:
2020-12-07 00:03:08 +03:00
string recovery_code_;
string new_password_;
string new_hint_;
2020-08-10 15:17:29 +03:00
recoverPassword();
recoverPassword(string const &recovery_code_, string const &new_password_, string const &new_hint_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1524262541;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class registerDevice final : public Function {
public:
object_ptr<DeviceToken> device_token_;
array<int53> other_user_ids_;
2020-08-10 15:17:29 +03:00
registerDevice();
registerDevice(object_ptr<DeviceToken> &&device_token_, array<int53> &&other_user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 366088823;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<pushReceiverId>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class registerUser final : public Function {
public:
2020-12-07 00:03:08 +03:00
string first_name_;
string last_name_;
2020-08-10 15:17:29 +03:00
registerUser();
2020-12-07 00:03:08 +03:00
registerUser(string const &first_name_, string const &last_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -109994467;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeBackground final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 background_id_;
2020-08-10 15:17:29 +03:00
removeBackground();
2020-12-07 00:03:08 +03:00
explicit removeBackground(int64 background_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1484545642;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeChatActionBar final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
removeChatActionBar();
2020-12-07 00:03:08 +03:00
explicit removeChatActionBar(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1650968070;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeContacts final : public Function {
public:
array<int53> user_ids_;
2020-08-10 15:17:29 +03:00
removeContacts();
explicit removeContacts(array<int53> &&user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1943858054;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeFavoriteSticker final : public Function {
public:
object_ptr<InputFile> sticker_;
removeFavoriteSticker();
explicit removeFavoriteSticker(object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = 1152945264;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeNotification final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 notification_group_id_;
int32 notification_id_;
2020-08-10 15:17:29 +03:00
removeNotification();
2020-12-07 00:03:08 +03:00
removeNotification(int32 notification_group_id_, int32 notification_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 862630734;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeNotificationGroup final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 notification_group_id_;
int32 max_notification_id_;
2020-08-10 15:17:29 +03:00
removeNotificationGroup();
2020-12-07 00:03:08 +03:00
removeNotificationGroup(int32 notification_group_id_, int32 max_notification_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1713005454;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 proxy_id_;
2020-08-10 15:17:29 +03:00
removeProxy();
2020-12-07 00:03:08 +03:00
explicit removeProxy(int32 proxy_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1369219847;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeRecentHashtag final : public Function {
public:
2020-12-07 00:03:08 +03:00
string hashtag_;
2020-08-10 15:17:29 +03:00
removeRecentHashtag();
2020-12-07 00:03:08 +03:00
explicit removeRecentHashtag(string const &hashtag_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1013735260;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeRecentSticker final : public Function {
public:
bool is_attached_;
object_ptr<InputFile> sticker_;
removeRecentSticker();
removeRecentSticker(bool is_attached_, object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = 1246577677;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeRecentlyFoundChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
removeRecentlyFoundChat();
2020-12-07 00:03:08 +03:00
explicit removeRecentlyFoundChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 717340444;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeSavedAnimation final : public Function {
public:
object_ptr<InputFile> animation_;
removeSavedAnimation();
explicit removeSavedAnimation(object_ptr<InputFile> &&animation_);
static const std::int32_t ID = -495605479;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeStickerFromSet final : public Function {
public:
object_ptr<InputFile> sticker_;
removeStickerFromSet();
explicit removeStickerFromSet(object_ptr<InputFile> &&sticker_);
static const std::int32_t ID = 1642196644;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class removeTopChat final : public Function {
public:
object_ptr<TopChatCategory> category_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
removeTopChat();
2020-12-07 00:03:08 +03:00
removeTopChat(object_ptr<TopChatCategory> &&category_, int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1907876267;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class reorderChatFilters final : public Function {
public:
array<int32> chat_filter_ids_;
reorderChatFilters();
explicit reorderChatFilters(array<int32> &&chat_filter_ids_);
static const std::int32_t ID = -1258111097;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class reorderInstalledStickerSets final : public Function {
public:
bool is_masks_;
2020-12-07 00:03:08 +03:00
array<int64> sticker_set_ids_;
2020-08-10 15:17:29 +03:00
reorderInstalledStickerSets();
2020-12-07 00:03:08 +03:00
reorderInstalledStickerSets(bool is_masks_, array<int64> &&sticker_set_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1114537563;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class replacePrimaryChatInviteLink final : public Function {
public:
int53 chat_id_;
replacePrimaryChatInviteLink();
explicit replacePrimaryChatInviteLink(int53 chat_id_);
static const std::int32_t ID = 1067350941;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLink>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class reportChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> message_ids_;
object_ptr<ChatReportReason> reason_;
string text_;
2020-08-10 15:17:29 +03:00
reportChat();
reportChat(int53 chat_id_, array<int53> &&message_ids_, object_ptr<ChatReportReason> &&reason_, string const &text_);
static const std::int32_t ID = -964543587;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class reportChatPhoto final : public Function {
public:
int53 chat_id_;
int32 file_id_;
object_ptr<ChatReportReason> reason_;
string text_;
reportChatPhoto();
2020-08-10 15:17:29 +03:00
reportChatPhoto(int53 chat_id_, int32 file_id_, object_ptr<ChatReportReason> &&reason_, string const &text_);
static const std::int32_t ID = 734652708;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class reportSupergroupSpam final : public Function {
public:
int53 supergroup_id_;
2020-12-07 00:03:08 +03:00
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
reportSupergroupSpam();
reportSupergroupSpam(int53 supergroup_id_, array<int53> &&message_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -94825000;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class requestAuthenticationPasswordRecovery final : public Function {
public:
requestAuthenticationPasswordRecovery();
static const std::int32_t ID = 1393896118;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class requestPasswordRecovery final : public Function {
public:
requestPasswordRecovery();
static const std::int32_t ID = -13777582;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<emailAddressAuthenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class requestQrCodeAuthentication final : public Function {
public:
array<int53> other_user_ids_;
2020-08-10 15:17:29 +03:00
requestQrCodeAuthentication();
explicit requestQrCodeAuthentication(array<int53> &&other_user_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1363496527;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendAuthenticationCode final : public Function {
public:
resendAuthenticationCode();
static const std::int32_t ID = -814377191;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendChangePhoneNumberCode final : public Function {
public:
resendChangePhoneNumberCode();
static const std::int32_t ID = -786772060;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendEmailAddressVerificationCode final : public Function {
public:
resendEmailAddressVerificationCode();
static const std::int32_t ID = -1872416732;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<emailAddressAuthenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
resendMessages();
2020-12-07 00:03:08 +03:00
resendMessages(int53 chat_id_, array<int53> &&message_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -940655817;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendPhoneNumberConfirmationCode final : public Function {
public:
resendPhoneNumberConfirmationCode();
static const std::int32_t ID = 2069068522;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendPhoneNumberVerificationCode final : public Function {
public:
resendPhoneNumberVerificationCode();
static const std::int32_t ID = 1367629820;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resendRecoveryEmailAddressCode final : public Function {
public:
resendRecoveryEmailAddressCode();
static const std::int32_t ID = 433483548;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetAllNotificationSettings final : public Function {
public:
resetAllNotificationSettings();
static const std::int32_t ID = -174020359;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetBackgrounds final : public Function {
public:
resetBackgrounds();
static const std::int32_t ID = 204852088;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetNetworkStatistics final : public Function {
public:
resetNetworkStatistics();
static const std::int32_t ID = 1646452102;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class resetPassword final : public Function {
public:
resetPassword();
static const std::int32_t ID = -593589091;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ResetPasswordResult>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class revokeChatInviteLink final : public Function {
public:
int53 chat_id_;
string invite_link_;
revokeChatInviteLink();
revokeChatInviteLink(int53 chat_id_, string const &invite_link_);
static const std::int32_t ID = -776514135;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatInviteLinks>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class revokeGroupCallInviteLink final : public Function {
public:
int32 group_call_id_;
revokeGroupCallInviteLink();
explicit revokeGroupCallInviteLink(int32 group_call_id_);
static const std::int32_t ID = 501589140;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class saveApplicationLogEvent final : public Function {
public:
2020-12-07 00:03:08 +03:00
string type_;
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<JsonValue> data_;
saveApplicationLogEvent();
2020-12-07 00:03:08 +03:00
saveApplicationLogEvent(string const &type_, int53 chat_id_, object_ptr<JsonValue> &&data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -811154930;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchBackground final : public Function {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
searchBackground();
2020-12-07 00:03:08 +03:00
explicit searchBackground(string const &name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2130996959;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<background>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchCallMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 from_message_id_;
int32 limit_;
2020-08-10 15:17:29 +03:00
bool only_missed_;
searchCallMessages();
2020-12-07 00:03:08 +03:00
searchCallMessages(int53 from_message_id_, int32 limit_, bool only_missed_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1077230820;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChatMembers final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string query_;
int32 limit_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMembersFilter> filter_;
searchChatMembers();
2020-12-07 00:03:08 +03:00
searchChatMembers(int53 chat_id_, string const &query_, int32 limit_, object_ptr<ChatMembersFilter> &&filter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -445823291;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatMembers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChatMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string query_;
object_ptr<MessageSender> sender_id_;
2020-12-07 00:03:08 +03:00
int53 from_message_id_;
int32 offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
object_ptr<SearchMessagesFilter> filter_;
2020-12-07 00:03:08 +03:00
int53 message_thread_id_;
2020-08-10 15:17:29 +03:00
searchChatMessages();
searchChatMessages(int53 chat_id_, string const &query_, object_ptr<MessageSender> &&sender_id_, int53 from_message_id_, int32 offset_, int32 limit_, object_ptr<SearchMessagesFilter> &&filter_, int53 message_thread_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -162154976;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChatRecentLocationMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchChatRecentLocationMessages();
2020-12-07 00:03:08 +03:00
searchChatRecentLocationMessages(int53 chat_id_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 950238950;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChats final : public Function {
public:
2020-12-07 00:03:08 +03:00
string query_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchChats();
2020-12-07 00:03:08 +03:00
searchChats(string const &query_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1879787060;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChatsNearby final : public Function {
public:
object_ptr<location> location_;
searchChatsNearby();
explicit searchChatsNearby(object_ptr<location> &&location_);
static const std::int32_t ID = -196753377;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chatsNearby>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchChatsOnServer final : public Function {
public:
2020-12-07 00:03:08 +03:00
string query_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchChatsOnServer();
2020-12-07 00:03:08 +03:00
searchChatsOnServer(string const &query_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1158402188;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchContacts final : public Function {
public:
2020-12-07 00:03:08 +03:00
string query_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchContacts();
2020-12-07 00:03:08 +03:00
searchContacts(string const &query_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1794690715;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<users>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchEmojis final : public Function {
public:
2020-12-07 00:03:08 +03:00
string text_;
2020-08-10 15:17:29 +03:00
bool exact_match_;
2020-12-07 00:03:08 +03:00
array<string> input_language_codes_;
2020-08-10 15:17:29 +03:00
searchEmojis();
2020-12-07 00:03:08 +03:00
searchEmojis(string const &text_, bool exact_match_, array<string> &&input_language_codes_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 398837927;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<emojis>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchHashtags final : public Function {
public:
2020-12-07 00:03:08 +03:00
string prefix_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchHashtags();
2020-12-07 00:03:08 +03:00
searchHashtags(string const &prefix_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1043637617;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<hashtags>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchInstalledStickerSets final : public Function {
public:
bool is_masks_;
2020-12-07 00:03:08 +03:00
string query_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchInstalledStickerSets();
2020-12-07 00:03:08 +03:00
searchInstalledStickerSets(bool is_masks_, string const &query_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 681171344;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchMessages final : public Function {
public:
object_ptr<ChatList> chat_list_;
2020-12-07 00:03:08 +03:00
string query_;
int32 offset_date_;
int53 offset_chat_id_;
int53 offset_message_id_;
int32 limit_;
object_ptr<SearchMessagesFilter> filter_;
int32 min_date_;
int32 max_date_;
2020-08-10 15:17:29 +03:00
searchMessages();
2020-12-07 00:03:08 +03:00
searchMessages(object_ptr<ChatList> &&chat_list_, string const &query_, int32 offset_date_, int53 offset_chat_id_, int53 offset_message_id_, int32 limit_, object_ptr<SearchMessagesFilter> &&filter_, int32 min_date_, int32 max_date_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -225214062;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchPublicChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
string username_;
2020-08-10 15:17:29 +03:00
searchPublicChat();
2020-12-07 00:03:08 +03:00
explicit searchPublicChat(string const &username_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 857135533;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchPublicChats final : public Function {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
searchPublicChats();
2020-12-07 00:03:08 +03:00
explicit searchPublicChats(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 970385337;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chats>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchSecretMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string query_;
string offset_;
int32 limit_;
2020-08-10 15:17:29 +03:00
object_ptr<SearchMessagesFilter> filter_;
searchSecretMessages();
2020-12-07 00:03:08 +03:00
searchSecretMessages(int53 chat_id_, string const &query_, string const &offset_, int32 limit_, object_ptr<SearchMessagesFilter> &&filter_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -852865892;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<foundMessages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchStickerSet final : public Function {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
searchStickerSet();
2020-12-07 00:03:08 +03:00
explicit searchStickerSet(string const &name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1157930222;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSet>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchStickerSets final : public Function {
public:
2020-12-07 00:03:08 +03:00
string query_;
2020-08-10 15:17:29 +03:00
searchStickerSets();
2020-12-07 00:03:08 +03:00
explicit searchStickerSets(string const &query_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1082314629;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSets>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class searchStickers final : public Function {
public:
2020-12-07 00:03:08 +03:00
string emoji_;
int32 limit_;
2020-08-10 15:17:29 +03:00
searchStickers();
2020-12-07 00:03:08 +03:00
searchStickers(string const &emoji_, int32 limit_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1555771203;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickers>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendBotStartMessage final : public Function {
public:
int53 bot_user_id_;
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string parameter_;
2020-08-10 15:17:29 +03:00
sendBotStartMessage();
sendBotStartMessage(int53 bot_user_id_, int53 chat_id_, string const &parameter_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1435877650;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendCallDebugInformation final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 call_id_;
string debug_information_;
2020-08-10 15:17:29 +03:00
sendCallDebugInformation();
2020-12-07 00:03:08 +03:00
sendCallDebugInformation(int32 call_id_, string const &debug_information_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2019243839;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendCallRating final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 call_id_;
int32 rating_;
string comment_;
array<object_ptr<CallProblem>> problems_;
2020-08-10 15:17:29 +03:00
sendCallRating();
2020-12-07 00:03:08 +03:00
sendCallRating(int32 call_id_, int32 rating_, string const &comment_, array<object_ptr<CallProblem>> &&problems_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1402719502;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class sendCallSignalingData final : public Function {
public:
int32 call_id_;
bytes data_;
sendCallSignalingData();
sendCallSignalingData(int32 call_id_, bytes const &data_);
static const std::int32_t ID = 1412280732;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class sendChatAction final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatAction> action_;
sendChatAction();
2020-12-07 00:03:08 +03:00
sendChatAction(int53 chat_id_, int53 message_thread_id_, object_ptr<ChatAction> &&action_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 2096947540;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendChatScreenshotTakenNotification final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
sendChatScreenshotTakenNotification();
2020-08-10 15:17:29 +03:00
explicit sendChatScreenshotTakenNotification(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 448399457;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
2020-08-10 15:17:29 +03:00
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendCustomRequest final : public Function {
public:
2020-12-07 00:03:08 +03:00
string method_;
string parameters_;
2020-08-10 15:17:29 +03:00
sendCustomRequest();
2020-12-07 00:03:08 +03:00
sendCustomRequest(string const &method_, string const &parameters_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 285045153;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<customRequestResult>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendEmailAddressVerificationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string email_address_;
2020-08-10 15:17:29 +03:00
sendEmailAddressVerificationCode();
2020-12-07 00:03:08 +03:00
explicit sendEmailAddressVerificationCode(string const &email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -221621379;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<emailAddressAuthenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendInlineQueryResultMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
int53 reply_to_message_id_;
object_ptr<messageSendOptions> options_;
int64 query_id_;
string result_id_;
2020-08-10 15:17:29 +03:00
bool hide_via_bot_;
sendInlineQueryResultMessage();
2020-12-07 00:03:08 +03:00
sendInlineQueryResultMessage(int53 chat_id_, int53 message_thread_id_, int53 reply_to_message_id_, object_ptr<messageSendOptions> &&options_, int64 query_id_, string const &result_id_, bool hide_via_bot_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -948639588;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
int53 reply_to_message_id_;
object_ptr<messageSendOptions> options_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
object_ptr<InputMessageContent> input_message_content_;
sendMessage();
2020-12-07 00:03:08 +03:00
sendMessage(int53 chat_id_, int53 message_thread_id_, int53 reply_to_message_id_, object_ptr<messageSendOptions> &&options_, object_ptr<ReplyMarkup> &&reply_markup_, object_ptr<InputMessageContent> &&input_message_content_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 960453021;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendMessageAlbum final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
int53 reply_to_message_id_;
object_ptr<messageSendOptions> options_;
array<object_ptr<InputMessageContent>> input_message_contents_;
2020-08-10 15:17:29 +03:00
sendMessageAlbum();
2020-12-07 00:03:08 +03:00
sendMessageAlbum(int53 chat_id_, int53 message_thread_id_, int53 reply_to_message_id_, object_ptr<messageSendOptions> &&options_, array<object_ptr<InputMessageContent>> &&input_message_contents_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 983360432;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<messages>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendPassportAuthorizationForm final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 autorization_form_id_;
array<object_ptr<PassportElementType>> types_;
2020-08-10 15:17:29 +03:00
sendPassportAuthorizationForm();
2020-12-07 00:03:08 +03:00
sendPassportAuthorizationForm(int32 autorization_form_id_, array<object_ptr<PassportElementType>> &&types_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -602402218;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendPaymentForm final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
int64 payment_form_id_;
2020-12-07 00:03:08 +03:00
string order_info_id_;
string shipping_option_id_;
2020-08-10 15:17:29 +03:00
object_ptr<InputCredentials> credentials_;
int53 tip_amount_;
2020-08-10 15:17:29 +03:00
sendPaymentForm();
sendPaymentForm(int53 chat_id_, int53 message_id_, int64 payment_form_id_, string const &order_info_id_, string const &shipping_option_id_, object_ptr<InputCredentials> &&credentials_, int53 tip_amount_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1536242687;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<paymentResult>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendPhoneNumberConfirmationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string hash_;
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<phoneNumberAuthenticationSettings> settings_;
sendPhoneNumberConfirmationCode();
2020-12-07 00:03:08 +03:00
sendPhoneNumberConfirmationCode(string const &hash_, string const &phone_number_, object_ptr<phoneNumberAuthenticationSettings> &&settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1901171495;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class sendPhoneNumberVerificationCode final : public Function {
public:
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<phoneNumberAuthenticationSettings> settings_;
sendPhoneNumberVerificationCode();
2020-12-07 00:03:08 +03:00
sendPhoneNumberVerificationCode(string const &phone_number_, object_ptr<phoneNumberAuthenticationSettings> &&settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2081689035;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<authenticationCodeInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setAccountTtl final : public Function {
public:
object_ptr<accountTtl> ttl_;
setAccountTtl();
explicit setAccountTtl(object_ptr<accountTtl> &&ttl_);
static const std::int32_t ID = 701389032;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setAlarm final : public Function {
public:
double seconds_;
setAlarm();
explicit setAlarm(double seconds_);
static const std::int32_t ID = -873497067;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setAuthenticationPhoneNumber final : public Function {
public:
2020-12-07 00:03:08 +03:00
string phone_number_;
2020-08-10 15:17:29 +03:00
object_ptr<phoneNumberAuthenticationSettings> settings_;
setAuthenticationPhoneNumber();
2020-12-07 00:03:08 +03:00
setAuthenticationPhoneNumber(string const &phone_number_, object_ptr<phoneNumberAuthenticationSettings> &&settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 868276259;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setAutoDownloadSettings final : public Function {
public:
object_ptr<autoDownloadSettings> settings_;
object_ptr<NetworkType> type_;
setAutoDownloadSettings();
setAutoDownloadSettings(object_ptr<autoDownloadSettings> &&settings_, object_ptr<NetworkType> &&type_);
static const std::int32_t ID = -353671948;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setBackground final : public Function {
public:
object_ptr<InputBackground> background_;
object_ptr<BackgroundType> type_;
bool for_dark_theme_;
setBackground();
setBackground(object_ptr<InputBackground> &&background_, object_ptr<BackgroundType> &&type_, bool for_dark_theme_);
static const std::int32_t ID = -1035439225;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<background>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setBio final : public Function {
public:
2020-12-07 00:03:08 +03:00
string bio_;
2020-08-10 15:17:29 +03:00
setBio();
2020-12-07 00:03:08 +03:00
explicit setBio(string const &bio_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1619582124;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setBotUpdatesStatus final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 pending_update_count_;
string error_message_;
2020-08-10 15:17:29 +03:00
setBotUpdatesStatus();
2020-12-07 00:03:08 +03:00
setBotUpdatesStatus(int32 pending_update_count_, string const &error_message_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1154926191;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatClientData final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string client_data_;
2020-08-10 15:17:29 +03:00
setChatClientData();
2020-12-07 00:03:08 +03:00
setChatClientData(int53 chat_id_, string const &client_data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -827119811;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatDescription final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string description_;
2020-08-10 15:17:29 +03:00
setChatDescription();
2020-12-07 00:03:08 +03:00
setChatDescription(int53 chat_id_, string const &description_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1957213277;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatDiscussionGroup final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 discussion_chat_id_;
2020-08-10 15:17:29 +03:00
setChatDiscussionGroup();
2020-12-07 00:03:08 +03:00
setChatDiscussionGroup(int53 chat_id_, int53 discussion_chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -918801736;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatDraftMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
2020-08-10 15:17:29 +03:00
object_ptr<draftMessage> draft_message_;
setChatDraftMessage();
2020-12-07 00:03:08 +03:00
setChatDraftMessage(int53 chat_id_, int53 message_thread_id_, object_ptr<draftMessage> &&draft_message_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1683889946;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatLocation final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<chatLocation> location_;
setChatLocation();
2020-12-07 00:03:08 +03:00
setChatLocation(int53 chat_id_, object_ptr<chatLocation> &&location_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -767091286;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatMemberStatus final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<MessageSender> member_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ChatMemberStatus> status_;
setChatMemberStatus();
setChatMemberStatus(int53 chat_id_, object_ptr<MessageSender> &&member_id_, object_ptr<ChatMemberStatus> &&status_);
static const std::int32_t ID = 81794847;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatMessageSender final : public Function {
public:
int53 chat_id_;
object_ptr<MessageSender> message_sender_id_;
setChatMessageSender();
setChatMessageSender(int53 chat_id_, object_ptr<MessageSender> &&message_sender_id_);
static const std::int32_t ID = -1421513858;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatMessageTtl final : public Function {
public:
int53 chat_id_;
int32 ttl_;
setChatMessageTtl();
setChatMessageTtl(int53 chat_id_, int32 ttl_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1578406279;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatNotificationSettings final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<chatNotificationSettings> notification_settings_;
setChatNotificationSettings();
2020-12-07 00:03:08 +03:00
setChatNotificationSettings(int53 chat_id_, object_ptr<chatNotificationSettings> &&notification_settings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 777199614;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatPermissions final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
object_ptr<chatPermissions> permissions_;
setChatPermissions();
2020-12-07 00:03:08 +03:00
setChatPermissions(int53 chat_id_, object_ptr<chatPermissions> &&permissions_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2138507006;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatPhoto final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
object_ptr<InputChatPhoto> photo_;
2020-08-10 15:17:29 +03:00
setChatPhoto();
2020-12-07 00:03:08 +03:00
setChatPhoto(int53 chat_id_, object_ptr<InputChatPhoto> &&photo_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -377778941;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatSlowModeDelay final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int32 slow_mode_delay_;
2020-08-10 15:17:29 +03:00
setChatSlowModeDelay();
2020-12-07 00:03:08 +03:00
setChatSlowModeDelay(int53 chat_id_, int32 slow_mode_delay_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -540350914;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setChatTheme final : public Function {
public:
int53 chat_id_;
string theme_name_;
setChatTheme();
setChatTheme(int53 chat_id_, string const &theme_name_);
static const std::int32_t ID = -1895234925;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class setChatTitle final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
string title_;
2020-08-10 15:17:29 +03:00
setChatTitle();
2020-12-07 00:03:08 +03:00
setChatTitle(int53 chat_id_, string const &title_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 164282047;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class setCommands final : public Function {
public:
object_ptr<BotCommandScope> scope_;
string language_code_;
2020-12-07 00:03:08 +03:00
array<object_ptr<botCommand>> commands_;
setCommands();
setCommands(object_ptr<BotCommandScope> &&scope_, string const &language_code_, array<object_ptr<botCommand>> &&commands_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -907165606;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class setCustomLanguagePack final : public Function {
public:
object_ptr<languagePackInfo> info_;
2020-12-07 00:03:08 +03:00
array<object_ptr<languagePackString>> strings_;
2020-08-10 15:17:29 +03:00
setCustomLanguagePack();
2020-12-07 00:03:08 +03:00
setCustomLanguagePack(object_ptr<languagePackInfo> &&info_, array<object_ptr<languagePackString>> &&strings_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -296742819;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setCustomLanguagePackString final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
2020-08-10 15:17:29 +03:00
object_ptr<languagePackString> new_string_;
setCustomLanguagePackString();
2020-12-07 00:03:08 +03:00
setCustomLanguagePackString(string const &language_pack_id_, object_ptr<languagePackString> &&new_string_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1316365592;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setDatabaseEncryptionKey final : public Function {
public:
2020-12-07 00:03:08 +03:00
bytes new_encryption_key_;
2020-08-10 15:17:29 +03:00
setDatabaseEncryptionKey();
2020-12-07 00:03:08 +03:00
explicit setDatabaseEncryptionKey(bytes const &new_encryption_key_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1204599371;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setFileGenerationProgress final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 generation_id_;
int32 expected_size_;
int32 local_prefix_size_;
2020-08-10 15:17:29 +03:00
setFileGenerationProgress();
2020-12-07 00:03:08 +03:00
setFileGenerationProgress(int64 generation_id_, int32 expected_size_, int32 local_prefix_size_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -540459953;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setGameScore final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
bool edit_message_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
int32 score_;
2020-08-10 15:17:29 +03:00
bool force_;
setGameScore();
setGameScore(int53 chat_id_, int53 message_id_, bool edit_message_, int53 user_id_, int32 score_, bool force_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2127359430;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<message>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setGroupCallParticipantIsSpeaking final : public Function {
public:
int32 group_call_id_;
int32 audio_source_;
bool is_speaking_;
setGroupCallParticipantIsSpeaking();
setGroupCallParticipantIsSpeaking(int32 group_call_id_, int32 audio_source_, bool is_speaking_);
static const std::int32_t ID = 927506917;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setGroupCallParticipantVolumeLevel final : public Function {
public:
int32 group_call_id_;
object_ptr<MessageSender> participant_id_;
int32 volume_level_;
setGroupCallParticipantVolumeLevel();
setGroupCallParticipantVolumeLevel(int32 group_call_id_, object_ptr<MessageSender> &&participant_id_, int32 volume_level_);
static const std::int32_t ID = -1753769944;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setGroupCallTitle final : public Function {
public:
int32 group_call_id_;
string title_;
setGroupCallTitle();
setGroupCallTitle(int32 group_call_id_, string const &title_);
static const std::int32_t ID = -1228825139;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setInactiveSessionTtl final : public Function {
public:
int32 inactive_session_ttl_days_;
setInactiveSessionTtl();
explicit setInactiveSessionTtl(int32 inactive_session_ttl_days_);
static const std::int32_t ID = 1570548048;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class setInlineGameScore final : public Function {
public:
2020-12-07 00:03:08 +03:00
string inline_message_id_;
2020-08-10 15:17:29 +03:00
bool edit_message_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
int32 score_;
2020-08-10 15:17:29 +03:00
bool force_;
setInlineGameScore();
setInlineGameScore(string const &inline_message_id_, bool edit_message_, int53 user_id_, int32 score_, bool force_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -948871797;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class setLocation final : public Function {
public:
object_ptr<location> location_;
setLocation();
explicit setLocation(object_ptr<location> &&location_);
static const std::int32_t ID = 93926257;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class setLogStream final : public Function {
public:
object_ptr<LogStream> log_stream_;
setLogStream();
explicit setLogStream(object_ptr<LogStream> &&log_stream_);
static const std::int32_t ID = -1364199535;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setLogTagVerbosityLevel final : public Function {
public:
2020-12-07 00:03:08 +03:00
string tag_;
int32 new_verbosity_level_;
2020-08-10 15:17:29 +03:00
setLogTagVerbosityLevel();
2020-12-07 00:03:08 +03:00
setLogTagVerbosityLevel(string const &tag_, int32 new_verbosity_level_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2095589738;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setLogVerbosityLevel final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 new_verbosity_level_;
2020-08-10 15:17:29 +03:00
setLogVerbosityLevel();
2020-12-07 00:03:08 +03:00
explicit setLogVerbosityLevel(int32 new_verbosity_level_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -303429678;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setName final : public Function {
public:
2020-12-07 00:03:08 +03:00
string first_name_;
string last_name_;
2020-08-10 15:17:29 +03:00
setName();
2020-12-07 00:03:08 +03:00
setName(string const &first_name_, string const &last_name_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1711693584;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setNetworkType final : public Function {
public:
object_ptr<NetworkType> type_;
setNetworkType();
explicit setNetworkType(object_ptr<NetworkType> &&type_);
static const std::int32_t ID = -701635234;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setOption final : public Function {
public:
2020-12-07 00:03:08 +03:00
string name_;
2020-08-10 15:17:29 +03:00
object_ptr<OptionValue> value_;
setOption();
2020-12-07 00:03:08 +03:00
setOption(string const &name_, object_ptr<OptionValue> &&value_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2114670322;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setPassportElement final : public Function {
public:
object_ptr<InputPassportElement> element_;
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
setPassportElement();
2020-12-07 00:03:08 +03:00
setPassportElement(object_ptr<InputPassportElement> &&element_, string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2068173212;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<PassportElement>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setPassportElementErrors final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
array<object_ptr<inputPassportElementError>> errors_;
2020-08-10 15:17:29 +03:00
setPassportElementErrors();
setPassportElementErrors(int53 user_id_, array<object_ptr<inputPassportElementError>> &&errors_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2056754881;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setPassword final : public Function {
public:
2020-12-07 00:03:08 +03:00
string old_password_;
string new_password_;
string new_hint_;
2020-08-10 15:17:29 +03:00
bool set_recovery_email_address_;
2020-12-07 00:03:08 +03:00
string new_recovery_email_address_;
2020-08-10 15:17:29 +03:00
setPassword();
2020-12-07 00:03:08 +03:00
setPassword(string const &old_password_, string const &new_password_, string const &new_hint_, bool set_recovery_email_address_, string const &new_recovery_email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1193589027;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setPinnedChats final : public Function {
public:
object_ptr<ChatList> chat_list_;
2020-12-07 00:03:08 +03:00
array<int53> chat_ids_;
2020-08-10 15:17:29 +03:00
setPinnedChats();
2020-12-07 00:03:08 +03:00
setPinnedChats(object_ptr<ChatList> &&chat_list_, array<int53> &&chat_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -695640000;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setPollAnswer final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
array<int32> option_ids_;
2020-08-10 15:17:29 +03:00
setPollAnswer();
2020-12-07 00:03:08 +03:00
setPollAnswer(int53 chat_id_, int53 message_id_, array<int32> &&option_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1399388792;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setProfilePhoto final : public Function {
public:
2020-12-07 00:03:08 +03:00
object_ptr<InputChatPhoto> photo_;
2020-08-10 15:17:29 +03:00
setProfilePhoto();
2020-12-07 00:03:08 +03:00
explicit setProfilePhoto(object_ptr<InputChatPhoto> &&photo_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -2069678882;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setRecoveryEmailAddress final : public Function {
public:
2020-12-07 00:03:08 +03:00
string password_;
string new_recovery_email_address_;
2020-08-10 15:17:29 +03:00
setRecoveryEmailAddress();
2020-12-07 00:03:08 +03:00
setRecoveryEmailAddress(string const &password_, string const &new_recovery_email_address_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1981836385;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<passwordState>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setScopeNotificationSettings final : public Function {
public:
object_ptr<NotificationSettingsScope> scope_;
object_ptr<scopeNotificationSettings> notification_settings_;
setScopeNotificationSettings();
setScopeNotificationSettings(object_ptr<NotificationSettingsScope> &&scope_, object_ptr<scopeNotificationSettings> &&notification_settings_);
static const std::int32_t ID = -2049984966;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setStickerPositionInSet final : public Function {
public:
object_ptr<InputFile> sticker_;
2020-12-07 00:03:08 +03:00
int32 position_;
2020-08-10 15:17:29 +03:00
setStickerPositionInSet();
2020-12-07 00:03:08 +03:00
setStickerPositionInSet(object_ptr<InputFile> &&sticker_, int32 position_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2075281185;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class setStickerSetThumbnail final : public Function {
public:
int53 user_id_;
2020-12-07 00:03:08 +03:00
string name_;
object_ptr<InputFile> thumbnail_;
setStickerSetThumbnail();
setStickerSetThumbnail(int53 user_id_, string const &name_, object_ptr<InputFile> &&thumbnail_);
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 1230174856;
2020-12-07 00:03:08 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<stickerSet>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class setSupergroupStickerSet final : public Function {
public:
int53 supergroup_id_;
2020-12-07 00:03:08 +03:00
int64 sticker_set_id_;
2020-08-10 15:17:29 +03:00
setSupergroupStickerSet();
setSupergroupStickerSet(int53 supergroup_id_, int64 sticker_set_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2056344215;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setSupergroupUsername final : public Function {
public:
int53 supergroup_id_;
2020-12-07 00:03:08 +03:00
string username_;
2020-08-10 15:17:29 +03:00
setSupergroupUsername();
setSupergroupUsername(int53 supergroup_id_, string const &username_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1346325252;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setTdlibParameters final : public Function {
public:
object_ptr<tdlibParameters> parameters_;
setTdlibParameters();
explicit setTdlibParameters(object_ptr<tdlibParameters> &&parameters_);
static const std::int32_t ID = -1912557997;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setUserPrivacySettingRules final : public Function {
public:
object_ptr<UserPrivacySetting> setting_;
object_ptr<userPrivacySettingRules> rules_;
setUserPrivacySettingRules();
setUserPrivacySettingRules(object_ptr<UserPrivacySetting> &&setting_, object_ptr<userPrivacySettingRules> &&rules_);
static const std::int32_t ID = -473812741;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setUsername final : public Function {
public:
2020-12-07 00:03:08 +03:00
string username_;
2020-08-10 15:17:29 +03:00
setUsername();
2020-12-07 00:03:08 +03:00
explicit setUsername(string const &username_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 439901214;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class setVideoChatDefaultParticipant final : public Function {
public:
int53 chat_id_;
object_ptr<MessageSender> default_participant_id_;
setVideoChatDefaultParticipant();
setVideoChatDefaultParticipant(int53 chat_id_, object_ptr<MessageSender> &&default_participant_id_);
static const std::int32_t ID = -240749901;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class sharePhoneNumber final : public Function {
public:
int53 user_id_;
2020-08-10 15:17:29 +03:00
sharePhoneNumber();
explicit sharePhoneNumber(int53 user_id_);
static const std::int32_t ID = 1097130069;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class startGroupCallRecording final : public Function {
public:
int32 group_call_id_;
string title_;
bool record_video_;
bool use_portrait_orientation_;
startGroupCallRecording();
startGroupCallRecording(int32 group_call_id_, string const &title_, bool record_video_, bool use_portrait_orientation_);
static const std::int32_t ID = 1757774971;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class startGroupCallScreenSharing final : public Function {
public:
int32 group_call_id_;
int32 audio_source_id_;
string payload_;
startGroupCallScreenSharing();
startGroupCallScreenSharing(int32 group_call_id_, int32 audio_source_id_, string const &payload_);
static const std::int32_t ID = -884068051;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<text>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class startScheduledGroupCall final : public Function {
public:
int32 group_call_id_;
2020-08-10 15:17:29 +03:00
startScheduledGroupCall();
explicit startScheduledGroupCall(int32 group_call_id_);
static const std::int32_t ID = 1519938838;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class stopPoll final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<ReplyMarkup> reply_markup_;
stopPoll();
2020-12-07 00:03:08 +03:00
stopPoll(int53 chat_id_, int53 message_id_, object_ptr<ReplyMarkup> &&reply_markup_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1659374253;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class synchronizeLanguagePack final : public Function {
public:
2020-12-07 00:03:08 +03:00
string language_pack_id_;
2020-08-10 15:17:29 +03:00
synchronizeLanguagePack();
2020-12-07 00:03:08 +03:00
explicit synchronizeLanguagePack(string const &language_pack_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2065307858;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class terminateAllOtherSessions final : public Function {
public:
terminateAllOtherSessions();
static const std::int32_t ID = 1874485523;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class terminateSession final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 session_id_;
2020-08-10 15:17:29 +03:00
terminateSession();
2020-12-07 00:03:08 +03:00
explicit terminateSession(int64 session_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -407385812;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallBytes final : public Function {
public:
2020-12-07 00:03:08 +03:00
bytes x_;
2020-08-10 15:17:29 +03:00
testCallBytes();
2020-12-07 00:03:08 +03:00
explicit testCallBytes(bytes const &x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -736011607;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testBytes>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallEmpty final : public Function {
public:
testCallEmpty();
static const std::int32_t ID = -627291626;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallString final : public Function {
public:
2020-12-07 00:03:08 +03:00
string x_;
2020-08-10 15:17:29 +03:00
testCallString();
2020-12-07 00:03:08 +03:00
explicit testCallString(string const &x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1732818385;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testString>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallVectorInt final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<int32> x_;
2020-08-10 15:17:29 +03:00
testCallVectorInt();
2020-12-07 00:03:08 +03:00
explicit testCallVectorInt(array<int32> &&x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2137277793;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testVectorInt>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallVectorIntObject final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<testInt>> x_;
2020-08-10 15:17:29 +03:00
testCallVectorIntObject();
2020-12-07 00:03:08 +03:00
explicit testCallVectorIntObject(array<object_ptr<testInt>> &&x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1825428218;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testVectorIntObject>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallVectorString final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<string> x_;
2020-08-10 15:17:29 +03:00
testCallVectorString();
2020-12-07 00:03:08 +03:00
explicit testCallVectorString(array<string> &&x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -408600900;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testVectorString>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testCallVectorStringObject final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<object_ptr<testString>> x_;
2020-08-10 15:17:29 +03:00
testCallVectorStringObject();
2020-12-07 00:03:08 +03:00
explicit testCallVectorStringObject(array<object_ptr<testString>> &&x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1527666429;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testVectorStringObject>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testGetDifference final : public Function {
public:
testGetDifference();
static const std::int32_t ID = 1747084069;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testNetwork final : public Function {
public:
testNetwork();
static const std::int32_t ID = -1343998901;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testProxy final : public Function {
public:
2020-12-07 00:03:08 +03:00
string server_;
int32 port_;
2020-08-10 15:17:29 +03:00
object_ptr<ProxyType> type_;
2020-12-07 00:03:08 +03:00
int32 dc_id_;
2020-08-10 15:17:29 +03:00
double timeout_;
testProxy();
2020-12-07 00:03:08 +03:00
testProxy(string const &server_, int32 port_, object_ptr<ProxyType> &&type_, int32 dc_id_, double timeout_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -1197366626;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testReturnError final : public Function {
public:
object_ptr<error> error_;
testReturnError();
explicit testReturnError(object_ptr<error> &&error_);
static const std::int32_t ID = 455179506;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<error>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testSquareInt final : public Function {
public:
2020-12-07 00:03:08 +03:00
int32 x_;
2020-08-10 15:17:29 +03:00
testSquareInt();
2020-12-07 00:03:08 +03:00
explicit testSquareInt(int32 x_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -60135024;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<testInt>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class testUseUpdate final : public Function {
public:
testUseUpdate();
static const std::int32_t ID = 717094686;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<Update>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleChatDefaultDisableNotification final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
bool default_disable_notification_;
toggleChatDefaultDisableNotification();
2020-12-07 00:03:08 +03:00
toggleChatDefaultDisableNotification(int53 chat_id_, bool default_disable_notification_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 314794002;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleChatHasProtectedContent final : public Function {
public:
int53 chat_id_;
bool has_protected_content_;
toggleChatHasProtectedContent();
toggleChatHasProtectedContent(int53 chat_id_, bool has_protected_content_);
static const std::int32_t ID = 975231309;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-08-10 15:17:29 +03:00
class toggleChatIsMarkedAsUnread final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
bool is_marked_as_unread_;
toggleChatIsMarkedAsUnread();
2020-12-07 00:03:08 +03:00
toggleChatIsMarkedAsUnread(int53 chat_id_, bool is_marked_as_unread_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -986129697;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleChatIsPinned final : public Function {
public:
2020-12-07 00:03:08 +03:00
object_ptr<ChatList> chat_list_;
int53 chat_id_;
2020-08-10 15:17:29 +03:00
bool is_pinned_;
toggleChatIsPinned();
2020-12-07 00:03:08 +03:00
toggleChatIsPinned(object_ptr<ChatList> &&chat_list_, int53 chat_id_, bool is_pinned_);
static const std::int32_t ID = -1485429186;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallEnabledStartNotification final : public Function {
public:
int32 group_call_id_;
bool enabled_start_notification_;
toggleGroupCallEnabledStartNotification();
toggleGroupCallEnabledStartNotification(int32 group_call_id_, bool enabled_start_notification_);
static const std::int32_t ID = 707839826;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallIsMyVideoEnabled final : public Function {
public:
int32 group_call_id_;
bool is_my_video_enabled_;
toggleGroupCallIsMyVideoEnabled();
toggleGroupCallIsMyVideoEnabled(int32 group_call_id_, bool is_my_video_enabled_);
static const std::int32_t ID = -1624289030;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallIsMyVideoPaused final : public Function {
public:
int32 group_call_id_;
bool is_my_video_paused_;
toggleGroupCallIsMyVideoPaused();
toggleGroupCallIsMyVideoPaused(int32 group_call_id_, bool is_my_video_paused_);
static const std::int32_t ID = -478875239;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallMuteNewParticipants final : public Function {
public:
int32 group_call_id_;
bool mute_new_participants_;
toggleGroupCallMuteNewParticipants();
toggleGroupCallMuteNewParticipants(int32 group_call_id_, bool mute_new_participants_);
static const std::int32_t ID = 284082626;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallParticipantIsHandRaised final : public Function {
public:
int32 group_call_id_;
object_ptr<MessageSender> participant_id_;
bool is_hand_raised_;
toggleGroupCallParticipantIsHandRaised();
toggleGroupCallParticipantIsHandRaised(int32 group_call_id_, object_ptr<MessageSender> &&participant_id_, bool is_hand_raised_);
static const std::int32_t ID = -1896127519;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallParticipantIsMuted final : public Function {
public:
int32 group_call_id_;
object_ptr<MessageSender> participant_id_;
bool is_muted_;
toggleGroupCallParticipantIsMuted();
toggleGroupCallParticipantIsMuted(int32 group_call_id_, object_ptr<MessageSender> &&participant_id_, bool is_muted_);
static const std::int32_t ID = -1308093433;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleGroupCallScreenSharingIsPaused final : public Function {
public:
int32 group_call_id_;
bool is_paused_;
toggleGroupCallScreenSharingIsPaused();
toggleGroupCallScreenSharingIsPaused(int32 group_call_id_, bool is_paused_);
static const std::int32_t ID = -1602530464;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class toggleMessageSenderIsBlocked final : public Function {
public:
object_ptr<MessageSender> sender_id_;
2020-12-07 00:03:08 +03:00
bool is_blocked_;
toggleMessageSenderIsBlocked();
toggleMessageSenderIsBlocked(object_ptr<MessageSender> &&sender_id_, bool is_blocked_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2008084779;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleSessionCanAcceptCalls final : public Function {
public:
int64 session_id_;
bool can_accept_calls_;
toggleSessionCanAcceptCalls();
toggleSessionCanAcceptCalls(int64 session_id_, bool can_accept_calls_);
static const std::int32_t ID = 1819027208;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleSessionCanAcceptSecretChats final : public Function {
public:
int64 session_id_;
bool can_accept_secret_chats_;
toggleSessionCanAcceptSecretChats();
toggleSessionCanAcceptSecretChats(int64 session_id_, bool can_accept_secret_chats_);
static const std::int32_t ID = 1000843390;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleSupergroupIsAllHistoryAvailable final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
bool is_all_history_available_;
toggleSupergroupIsAllHistoryAvailable();
toggleSupergroupIsAllHistoryAvailable(int53 supergroup_id_, bool is_all_history_available_);
static const std::int32_t ID = 1155110478;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleSupergroupIsBroadcastGroup final : public Function {
public:
int53 supergroup_id_;
toggleSupergroupIsBroadcastGroup();
explicit toggleSupergroupIsBroadcastGroup(int53 supergroup_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 884089365;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class toggleSupergroupSignMessages final : public Function {
public:
int53 supergroup_id_;
2020-08-10 15:17:29 +03:00
bool sign_messages_;
toggleSupergroupSignMessages();
toggleSupergroupSignMessages(int53 supergroup_id_, bool sign_messages_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 1156568356;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class transferChatOwnership final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 user_id_;
2020-12-07 00:03:08 +03:00
string password_;
2020-08-10 15:17:29 +03:00
transferChatOwnership();
transferChatOwnership(int53 chat_id_, int53 user_id_, string const &password_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 2006977043;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
2020-12-07 00:03:08 +03:00
class unpinAllChatMessages final : public Function {
2020-08-10 15:17:29 +03:00
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
unpinAllChatMessages();
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
explicit unpinAllChatMessages(int53 chat_id_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1437805385;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class unpinChatMessage final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
unpinChatMessage();
2020-12-07 00:03:08 +03:00
unpinChatMessage(int53 chat_id_, int53 message_id_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = 2065448670;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class upgradeBasicGroupChatToSupergroupChat final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
2020-08-10 15:17:29 +03:00
upgradeBasicGroupChatToSupergroupChat();
2020-12-07 00:03:08 +03:00
explicit upgradeBasicGroupChatToSupergroupChat(int53 chat_id_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 300488122;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<chat>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class uploadFile final : public Function {
public:
object_ptr<InputFile> file_;
object_ptr<FileType> file_type_;
2020-12-07 00:03:08 +03:00
int32 priority_;
2020-08-10 15:17:29 +03:00
uploadFile();
2020-12-07 00:03:08 +03:00
uploadFile(object_ptr<InputFile> &&file_, object_ptr<FileType> &&file_type_, int32 priority_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -745597786;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class uploadStickerFile final : public Function {
public:
int53 user_id_;
object_ptr<InputSticker> sticker_;
2020-08-10 15:17:29 +03:00
uploadStickerFile();
uploadStickerFile(int53 user_id_, object_ptr<InputSticker> &&sticker_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 597751182;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<file>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class validateOrderInfo final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_id_;
2020-08-10 15:17:29 +03:00
object_ptr<orderInfo> order_info_;
bool allow_save_;
validateOrderInfo();
2020-12-07 00:03:08 +03:00
validateOrderInfo(int53 chat_id_, int53 message_id_, object_ptr<orderInfo> &&order_info_, bool allow_save_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = 9480644;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<validatedOrderInfo>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class viewMessages final : public Function {
public:
2020-12-07 00:03:08 +03:00
int53 chat_id_;
int53 message_thread_id_;
array<int53> message_ids_;
2020-08-10 15:17:29 +03:00
bool force_read_;
viewMessages();
2020-12-07 00:03:08 +03:00
viewMessages(int53 chat_id_, int53 message_thread_id_, array<int53> &&message_ids_, bool force_read_);
2020-08-10 15:17:29 +03:00
2020-12-07 00:03:08 +03:00
static const std::int32_t ID = -1155961496;
2020-08-10 15:17:29 +03:00
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class viewTrendingStickerSets final : public Function {
public:
2020-12-07 00:03:08 +03:00
array<int64> sticker_set_ids_;
2020-08-10 15:17:29 +03:00
viewTrendingStickerSets();
2020-12-07 00:03:08 +03:00
explicit viewTrendingStickerSets(array<int64> &&sticker_set_ids_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -952416520;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
class writeGeneratedFilePart final : public Function {
public:
2020-12-07 00:03:08 +03:00
int64 generation_id_;
int32 offset_;
bytes data_;
2020-08-10 15:17:29 +03:00
writeGeneratedFilePart();
2020-12-07 00:03:08 +03:00
writeGeneratedFilePart(int64 generation_id_, int32 offset_, bytes const &data_);
2020-08-10 15:17:29 +03:00
static const std::int32_t ID = -2062358189;
std::int32_t get_id() const final {
return ID;
}
using ReturnType = object_ptr<ok>;
void store(TlStorerToString &s, const char *field_name) const final;
};
} // namespace td_api
} // namespace td