// This file is generated automatically using the Generator class using System; using System.Threading.Tasks; namespace TL { using BinaryWriter = System.IO.BinaryWriter; using Client = WTelegram.Client; ///See public enum Bool : uint { ///See False = 0xBC799737, ///See True = 0x997275B5, } ///See [TLDef(0x3FEDD339)] public partial class True : ITLObject { } ///See [TLDef(0xC4B9F9BB)] public partial class Error : ITLObject { public int code; public string text; } ///See [TLDef(0x56730BCC)] public partial class Null : ITLObject { } ///See public abstract partial class InputPeer : ITLObject { } ///See [TLDef(0x7F3B18EA)] public partial class InputPeerEmpty : InputPeer { } ///See [TLDef(0x7DA07EC9)] public partial class InputPeerSelf : InputPeer { } ///See [TLDef(0x35A95CB9)] public partial class InputPeerChat : InputPeer { public long chat_id; } ///See [TLDef(0xDDE8A54C)] public partial class InputPeerUser : InputPeer { public long user_id; public long access_hash; } ///See [TLDef(0x27BCBBFC)] public partial class InputPeerChannel : InputPeer { public long channel_id; public long access_hash; } ///See [TLDef(0xA87B0A1C)] public partial class InputPeerUserFromMessage : InputPeer { public InputPeer peer; public int msg_id; public long user_id; } ///See [TLDef(0xBD2A0840)] public partial class InputPeerChannelFromMessage : InputPeer { public InputPeer peer; public int msg_id; public long channel_id; } ///See public abstract partial class InputUserBase : ITLObject { } ///See [TLDef(0xB98886CF)] public partial class InputUserEmpty : InputUserBase { } ///See [TLDef(0xF7C1B13F)] public partial class InputUserSelf : InputUserBase { } ///See [TLDef(0xF21158C6)] public partial class InputUser : InputUserBase { public long user_id; public long access_hash; } ///See [TLDef(0x1DA448E2)] public partial class InputUserFromMessage : InputUserBase { public InputPeer peer; public int msg_id; public long user_id; } ///See public abstract partial class InputContact : ITLObject { } ///See [TLDef(0xF392B7F4)] public partial class InputPhoneContact : InputContact { public long client_id; public string phone; public string first_name; public string last_name; } ///See public abstract partial class InputFileBase : ITLObject { } ///See [TLDef(0xF52FF27F)] public partial class InputFile : InputFileBase { public long id; public int parts; public string name; public byte[] md5_checksum; } ///See [TLDef(0xFA4F0BB5)] public partial class InputFileBig : InputFileBase { public long id; public int parts; public string name; } ///See public abstract partial class InputMedia : ITLObject { } ///See [TLDef(0x9664F57F)] public partial class InputMediaEmpty : InputMedia { } ///See [TLDef(0x1E287D04)] public partial class InputMediaUploadedPhoto : InputMedia { [Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2 } public Flags flags; public InputFileBase file; [IfFlag(0)] public InputDocumentBase[] stickers; [IfFlag(1)] public int ttl_seconds; } ///See [TLDef(0xB3BA0635)] public partial class InputMediaPhoto : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; public InputPhotoBase id; [IfFlag(0)] public int ttl_seconds; } ///See [TLDef(0xF9C44144)] public partial class InputMediaGeoPoint : InputMedia { public InputGeoPointBase geo_point; } ///See [TLDef(0xF8AB7DFB)] public partial class InputMediaContact : InputMedia { public string phone_number; public string first_name; public string last_name; public string vcard; } ///See [TLDef(0x5B38C6C1)] public partial class InputMediaUploadedDocument : InputMedia { [Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2, has_thumb = 0x4, nosound_video = 0x8, force_file = 0x10 } public Flags flags; public InputFileBase file; [IfFlag(2)] public InputFileBase thumb; public string mime_type; public DocumentAttribute[] attributes; [IfFlag(0)] public InputDocumentBase[] stickers; [IfFlag(1)] public int ttl_seconds; } ///See [TLDef(0x33473058)] public partial class InputMediaDocument : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1, has_query = 0x2 } public Flags flags; public InputDocumentBase id; [IfFlag(0)] public int ttl_seconds; [IfFlag(1)] public string query; } ///See [TLDef(0xC13D1C11)] public partial class InputMediaVenue : InputMedia { public InputGeoPointBase geo_point; public string title; public string address; public string provider; public string venue_id; public string venue_type; } ///See [TLDef(0xE5BBFE1A)] public partial class InputMediaPhotoExternal : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; public string url; [IfFlag(0)] public int ttl_seconds; } ///See [TLDef(0xFB52DC99)] public partial class InputMediaDocumentExternal : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; public string url; [IfFlag(0)] public int ttl_seconds; } ///See [TLDef(0xD33F43F3)] public partial class InputMediaGame : InputMedia { public InputGame id; } ///See [TLDef(0xD9799874)] public partial class InputMediaInvoice : InputMedia { [Flags] public enum Flags { has_photo = 0x1, has_start_param = 0x2 } public Flags flags; public string title; public string description; [IfFlag(0)] public InputWebDocument photo; public Invoice invoice; public byte[] payload; public string provider; public DataJSON provider_data; [IfFlag(1)] public string start_param; } ///See [TLDef(0x971FA843)] public partial class InputMediaGeoLive : InputMedia { [Flags] public enum Flags { stopped = 0x1, has_period = 0x2, has_heading = 0x4, has_proximity_notification_radius = 0x8 } public Flags flags; public InputGeoPointBase geo_point; [IfFlag(2)] public int heading; [IfFlag(1)] public int period; [IfFlag(3)] public int proximity_notification_radius; } ///See [TLDef(0x0F94E5F1)] public partial class InputMediaPoll : InputMedia { [Flags] public enum Flags { has_correct_answers = 0x1, has_solution = 0x2 } public Flags flags; public Poll poll; [IfFlag(0)] public byte[][] correct_answers; [IfFlag(1)] public string solution; [IfFlag(1)] public MessageEntity[] solution_entities; } ///See [TLDef(0xE66FBF7B)] public partial class InputMediaDice : InputMedia { public string emoticon; } ///See public abstract partial class InputChatPhotoBase : ITLObject { } ///See [TLDef(0x1CA48F57)] public partial class InputChatPhotoEmpty : InputChatPhotoBase { } ///See [TLDef(0xC642724E)] public partial class InputChatUploadedPhoto : InputChatPhotoBase { [Flags] public enum Flags { has_file = 0x1, has_video = 0x2, has_video_start_ts = 0x4 } public Flags flags; [IfFlag(0)] public InputFileBase file; [IfFlag(1)] public InputFileBase video; [IfFlag(2)] public double video_start_ts; } ///See [TLDef(0x8953AD37)] public partial class InputChatPhoto : InputChatPhotoBase { public InputPhotoBase id; } ///See public abstract partial class InputGeoPointBase : ITLObject { } ///See [TLDef(0xE4C123D6)] public partial class InputGeoPointEmpty : InputGeoPointBase { } ///See [TLDef(0x48222FAF)] public partial class InputGeoPoint : InputGeoPointBase { [Flags] public enum Flags { has_accuracy_radius = 0x1 } public Flags flags; public double lat; public double long_; [IfFlag(0)] public int accuracy_radius; } ///See public abstract partial class InputPhotoBase : ITLObject { } ///See [TLDef(0x1CD7BF0D)] public partial class InputPhotoEmpty : InputPhotoBase { } ///See [TLDef(0x3BB3B94A)] public partial class InputPhoto : InputPhotoBase { public long id; public long access_hash; public byte[] file_reference; } ///See public abstract partial class InputFileLocationBase : ITLObject { } ///See [TLDef(0xDFDAABE1)] public partial class InputFileLocation : InputFileLocationBase { public long volume_id; public int local_id; public long secret; public byte[] file_reference; } ///See [TLDef(0xF5235D55)] public partial class InputEncryptedFileLocation : InputFileLocationBase { public long id; public long access_hash; } ///See [TLDef(0xBAD07584)] public partial class InputDocumentFileLocation : InputFileLocationBase { public long id; public long access_hash; public byte[] file_reference; public string thumb_size; } ///See [TLDef(0xCBC7EE28)] public partial class InputSecureFileLocation : InputFileLocationBase { public long id; public long access_hash; } ///See [TLDef(0x29BE5899)] public partial class InputTakeoutFileLocation : InputFileLocationBase { } ///See [TLDef(0x40181FFE)] public partial class InputPhotoFileLocation : InputFileLocationBase { public long id; public long access_hash; public byte[] file_reference; public string thumb_size; } ///See [TLDef(0xD83466F3)] public partial class InputPhotoLegacyFileLocation : InputFileLocationBase { public long id; public long access_hash; public byte[] file_reference; public long volume_id; public int local_id; public long secret; } ///See [TLDef(0x37257E99)] public partial class InputPeerPhotoFileLocation : InputFileLocationBase { [Flags] public enum Flags { big = 0x1 } public Flags flags; public InputPeer peer; public long photo_id; } ///See [TLDef(0x9D84F3DB)] public partial class InputStickerSetThumb : InputFileLocationBase { public InputStickerSet stickerset; public int thumb_version; } ///See [TLDef(0x0598A92A)] public partial class InputGroupCallStream : InputFileLocationBase { [Flags] public enum Flags { has_video_channel = 0x1 } public Flags flags; public InputGroupCall call; public long time_ms; public int scale; [IfFlag(0)] public int video_channel; [IfFlag(0)] public int video_quality; } ///See public abstract partial class Peer : ITLObject { } ///See [TLDef(0x59511722)] public partial class PeerUser : Peer { public long user_id; } ///See [TLDef(0x36C6019A)] public partial class PeerChat : Peer { public long chat_id; } ///See [TLDef(0xA2A5371E)] public partial class PeerChannel : Peer { public long channel_id; } ///See public enum Storage_FileType : uint { ///See unknown = 0xAA963B05, ///See partial = 0x40BC6F52, ///See jpeg = 0x007EFE0E, ///See gif = 0xCAE1AADF, ///See png = 0x0A4F63C0, ///See pdf = 0xAE1E508D, ///See mp3 = 0x528A0677, ///See mov = 0x4B09EBBC, ///See mp4 = 0xB3CEA0E4, ///See webp = 0x1081464C, } ///See public abstract partial class UserBase : ITLObject { } ///See [TLDef(0xD3BC4B7A)] public partial class UserEmpty : UserBase { public long id; } ///See [TLDef(0x3FF6ECB0)] public partial class User : UserBase { [Flags] public enum Flags { has_access_hash = 0x1, has_first_name = 0x2, has_last_name = 0x4, has_username = 0x8, has_phone = 0x10, has_photo = 0x20, has_status = 0x40, self = 0x400, contact = 0x800, mutual_contact = 0x1000, deleted = 0x2000, bot = 0x4000, bot_chat_history = 0x8000, bot_nochats = 0x10000, verified = 0x20000, restricted = 0x40000, has_bot_inline_placeholder = 0x80000, min = 0x100000, bot_inline_geo = 0x200000, has_lang_code = 0x400000, support = 0x800000, scam = 0x1000000, apply_min_photo = 0x2000000, fake = 0x4000000 } public Flags flags; public long id; [IfFlag(0)] public long access_hash; [IfFlag(1)] public string first_name; [IfFlag(2)] public string last_name; [IfFlag(3)] public string username; [IfFlag(4)] public string phone; [IfFlag(5)] public UserProfilePhotoBase photo; [IfFlag(6)] public UserStatus status; [IfFlag(14)] public int bot_info_version; [IfFlag(18)] public RestrictionReason[] restriction_reason; [IfFlag(19)] public string bot_inline_placeholder; [IfFlag(22)] public string lang_code; } ///See public abstract partial class UserProfilePhotoBase : ITLObject { } ///See [TLDef(0x4F11BAE1)] public partial class UserProfilePhotoEmpty : UserProfilePhotoBase { } ///See [TLDef(0x82D1F706)] public partial class UserProfilePhoto : UserProfilePhotoBase { [Flags] public enum Flags { has_video = 0x1, has_stripped_thumb = 0x2 } public Flags flags; public long photo_id; [IfFlag(1)] public byte[] stripped_thumb; public int dc_id; } ///See public abstract partial class UserStatus : ITLObject { } ///See [TLDef(0x09D05049)] public partial class UserStatusEmpty : UserStatus { } ///See [TLDef(0xEDB93949)] public partial class UserStatusOnline : UserStatus { public DateTime expires; } ///See [TLDef(0x008C703F)] public partial class UserStatusOffline : UserStatus { public int was_online; } ///See [TLDef(0xE26F42F1)] public partial class UserStatusRecently : UserStatus { } ///See [TLDef(0x07BF09FC)] public partial class UserStatusLastWeek : UserStatus { } ///See [TLDef(0x77EBC742)] public partial class UserStatusLastMonth : UserStatus { } ///See public abstract partial class ChatBase : ITLObject { } ///See [TLDef(0x29562865)] public partial class ChatEmpty : ChatBase { public long id; } ///See [TLDef(0x41CBF256)] public partial class Chat : ChatBase { [Flags] public enum Flags { creator = 0x1, kicked = 0x2, left = 0x4, deactivated = 0x20, has_migrated_to = 0x40, has_admin_rights = 0x4000, has_default_banned_rights = 0x40000, call_active = 0x800000, call_not_empty = 0x1000000 } public Flags flags; public long id; public string title; public ChatPhotoBase photo; public int participants_count; public DateTime date; public int version; [IfFlag(6)] public InputChannelBase migrated_to; [IfFlag(14)] public ChatAdminRights admin_rights; [IfFlag(18)] public ChatBannedRights default_banned_rights; } ///See [TLDef(0x6592A1A7)] public partial class ChatForbidden : ChatBase { public long id; public string title; } ///See [TLDef(0x8261AC61)] public partial class Channel : ChatBase { [Flags] public enum Flags { creator = 0x1, left = 0x4, broadcast = 0x20, has_username = 0x40, verified = 0x80, megagroup = 0x100, restricted = 0x200, signatures = 0x800, min = 0x1000, has_access_hash = 0x2000, has_admin_rights = 0x4000, has_banned_rights = 0x8000, has_participants_count = 0x20000, has_default_banned_rights = 0x40000, scam = 0x80000, has_link = 0x100000, has_geo = 0x200000, slowmode_enabled = 0x400000, call_active = 0x800000, call_not_empty = 0x1000000, fake = 0x2000000, gigagroup = 0x4000000 } public Flags flags; public long id; [IfFlag(13)] public long access_hash; public string title; [IfFlag(6)] public string username; public ChatPhotoBase photo; public DateTime date; [IfFlag(9)] public RestrictionReason[] restriction_reason; [IfFlag(14)] public ChatAdminRights admin_rights; [IfFlag(15)] public ChatBannedRights banned_rights; [IfFlag(18)] public ChatBannedRights default_banned_rights; [IfFlag(17)] public int participants_count; } ///See [TLDef(0x17D493D5)] public partial class ChannelForbidden : ChatBase { [Flags] public enum Flags { broadcast = 0x20, megagroup = 0x100, has_until_date = 0x10000 } public Flags flags; public long id; public long access_hash; public string title; [IfFlag(16)] public DateTime until_date; } ///See public abstract partial class ChatFullBase : ITLObject { } ///See [TLDef(0x4DBDC099)] public partial class ChatFull : ChatFullBase { [Flags] public enum Flags { has_chat_photo = 0x4, has_bot_info = 0x8, has_pinned_msg_id = 0x40, can_set_username = 0x80, has_scheduled = 0x100, has_folder_id = 0x800, has_call = 0x1000, has_exported_invite = 0x2000, has_ttl_period = 0x4000, has_groupcall_default_join_as = 0x8000, has_theme_emoticon = 0x10000 } public Flags flags; public long id; public string about; public ChatParticipantsBase participants; [IfFlag(2)] public PhotoBase chat_photo; public PeerNotifySettings notify_settings; [IfFlag(13)] public ExportedChatInvite exported_invite; [IfFlag(3)] public BotInfo[] bot_info; [IfFlag(6)] public int pinned_msg_id; [IfFlag(11)] public int folder_id; [IfFlag(12)] public InputGroupCall call; [IfFlag(14)] public int ttl_period; [IfFlag(15)] public Peer groupcall_default_join_as; [IfFlag(16)] public string theme_emoticon; } ///See [TLDef(0xE9B27A17)] public partial class ChannelFull : ChatFullBase { [Flags] public enum Flags { has_participants_count = 0x1, has_admins_count = 0x2, has_kicked_count = 0x4, can_view_participants = 0x8, has_migrated_from_chat_id = 0x10, has_pinned_msg_id = 0x20, can_set_username = 0x40, can_set_stickers = 0x80, has_stickerset = 0x100, has_available_min_id = 0x200, hidden_prehistory = 0x400, has_folder_id = 0x800, has_stats_dc = 0x1000, has_online_count = 0x2000, has_linked_chat_id = 0x4000, has_location = 0x8000, can_set_location = 0x10000, has_slowmode_seconds = 0x20000, has_slowmode_next_send_date = 0x40000, has_scheduled = 0x80000, can_view_stats = 0x100000, has_call = 0x200000, blocked = 0x400000, has_exported_invite = 0x800000, has_ttl_period = 0x1000000, has_pending_suggestions = 0x2000000, has_groupcall_default_join_as = 0x4000000, has_theme_emoticon = 0x8000000 } public Flags flags; public long id; public string about; [IfFlag(0)] public int participants_count; [IfFlag(1)] public int admins_count; [IfFlag(2)] public int kicked_count; [IfFlag(2)] public int banned_count; [IfFlag(13)] public int online_count; public int read_inbox_max_id; public int read_outbox_max_id; public int unread_count; public PhotoBase chat_photo; public PeerNotifySettings notify_settings; [IfFlag(23)] public ExportedChatInvite exported_invite; public BotInfo[] bot_info; [IfFlag(4)] public long migrated_from_chat_id; [IfFlag(4)] public int migrated_from_max_id; [IfFlag(5)] public int pinned_msg_id; [IfFlag(8)] public StickerSet stickerset; [IfFlag(9)] public int available_min_id; [IfFlag(11)] public int folder_id; [IfFlag(14)] public long linked_chat_id; [IfFlag(15)] public ChannelLocationBase location; [IfFlag(17)] public int slowmode_seconds; [IfFlag(18)] public DateTime slowmode_next_send_date; [IfFlag(12)] public int stats_dc; public int pts; [IfFlag(21)] public InputGroupCall call; [IfFlag(24)] public int ttl_period; [IfFlag(25)] public string[] pending_suggestions; [IfFlag(26)] public Peer groupcall_default_join_as; [IfFlag(27)] public string theme_emoticon; } ///See public abstract partial class ChatParticipantBase : ITLObject { } ///See [TLDef(0xC02D4007)] public partial class ChatParticipant : ChatParticipantBase { public long user_id; public long inviter_id; public DateTime date; } ///See [TLDef(0xE46BCEE4)] public partial class ChatParticipantCreator : ChatParticipantBase { public long user_id; } ///See [TLDef(0xA0933F5B)] public partial class ChatParticipantAdmin : ChatParticipant { } ///See public abstract partial class ChatParticipantsBase : ITLObject { } ///See [TLDef(0x8763D3E1)] public partial class ChatParticipantsForbidden : ChatParticipantsBase { [Flags] public enum Flags { has_self_participant = 0x1 } public Flags flags; public long chat_id; [IfFlag(0)] public ChatParticipantBase self_participant; } ///See [TLDef(0x3CBC93F8)] public partial class ChatParticipants : ChatParticipantsBase { public long chat_id; public ChatParticipantBase[] participants; public int version; } ///See public abstract partial class ChatPhotoBase : ITLObject { } ///See [TLDef(0x37C1011C)] public partial class ChatPhotoEmpty : ChatPhotoBase { } ///See [TLDef(0x1C6E1C11)] public partial class ChatPhoto : ChatPhotoBase { [Flags] public enum Flags { has_video = 0x1, has_stripped_thumb = 0x2 } public Flags flags; public long photo_id; [IfFlag(1)] public byte[] stripped_thumb; public int dc_id; } ///See public abstract partial class MessageBase : ITLObject { } ///See [TLDef(0x90A6CA84)] public partial class MessageEmpty : MessageBase { [Flags] public enum Flags { has_peer_id = 0x1 } public Flags flags; public int id; [IfFlag(0)] public Peer peer_id; } ///See [TLDef(0x85D6CBE2)] public partial class Message : MessageBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_reply_markup = 0x40, has_entities = 0x80, has_from_id = 0x100, has_media = 0x200, has_views = 0x400, has_via_bot_id = 0x800, silent = 0x2000, post = 0x4000, has_edit_date = 0x8000, has_post_author = 0x10000, has_grouped_id = 0x20000, from_scheduled = 0x40000, legacy = 0x80000, edit_hide = 0x200000, has_restriction_reason = 0x400000, has_replies = 0x800000, pinned = 0x1000000, has_ttl_period = 0x2000000 } public Flags flags; public int id; [IfFlag(8)] public Peer from_id; public Peer peer_id; [IfFlag(2)] public MessageFwdHeader fwd_from; [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; public DateTime date; public string message; [IfFlag(9)] public MessageMedia media; [IfFlag(6)] public ReplyMarkup reply_markup; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(10)] public int views; [IfFlag(10)] public int forwards; [IfFlag(23)] public MessageReplies replies; [IfFlag(15)] public DateTime edit_date; [IfFlag(16)] public string post_author; [IfFlag(17)] public long grouped_id; [IfFlag(22)] public RestrictionReason[] restriction_reason; [IfFlag(25)] public int ttl_period; } ///See [TLDef(0x2B085862)] public partial class MessageService : MessageBase { [Flags] public enum Flags { out_ = 0x2, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_from_id = 0x100, silent = 0x2000, post = 0x4000, legacy = 0x80000, has_ttl_period = 0x2000000 } public Flags flags; public int id; [IfFlag(8)] public Peer from_id; public Peer peer_id; [IfFlag(3)] public MessageReplyHeader reply_to; public DateTime date; public MessageAction action; [IfFlag(25)] public int ttl_period; } ///See public abstract partial class MessageMedia : ITLObject { } ///See [TLDef(0x3DED6320)] public partial class MessageMediaEmpty : MessageMedia { } ///See [TLDef(0x695150D7)] public partial class MessageMediaPhoto : MessageMedia { [Flags] public enum Flags { has_photo = 0x1, has_ttl_seconds = 0x4 } public Flags flags; [IfFlag(0)] public PhotoBase photo; [IfFlag(2)] public int ttl_seconds; } ///See [TLDef(0x56E0D474)] public partial class MessageMediaGeo : MessageMedia { public GeoPointBase geo; } ///See [TLDef(0x70322949)] public partial class MessageMediaContact : MessageMedia { public string phone_number; public string first_name; public string last_name; public string vcard; public long user_id; } ///See [TLDef(0x9F84F49E)] public partial class MessageMediaUnsupported : MessageMedia { } ///See [TLDef(0x9CB070D7)] public partial class MessageMediaDocument : MessageMedia { [Flags] public enum Flags { has_document = 0x1, has_ttl_seconds = 0x4 } public Flags flags; [IfFlag(0)] public DocumentBase document; [IfFlag(2)] public int ttl_seconds; } ///See [TLDef(0xA32DD600)] public partial class MessageMediaWebPage : MessageMedia { public WebPageBase webpage; } ///See [TLDef(0x2EC0533F)] public partial class MessageMediaVenue : MessageMedia { public GeoPointBase geo; public string title; public string address; public string provider; public string venue_id; public string venue_type; } ///See [TLDef(0xFDB19008)] public partial class MessageMediaGame : MessageMedia { public Game game; } ///See [TLDef(0x84551347)] public partial class MessageMediaInvoice : MessageMedia { [Flags] public enum Flags { has_photo = 0x1, shipping_address_requested = 0x2, has_receipt_msg_id = 0x4, test = 0x8 } public Flags flags; public string title; public string description; [IfFlag(0)] public WebDocumentBase photo; [IfFlag(2)] public int receipt_msg_id; public string currency; public long total_amount; public string start_param; } ///See [TLDef(0xB940C666)] public partial class MessageMediaGeoLive : MessageMedia { [Flags] public enum Flags { has_heading = 0x1, has_proximity_notification_radius = 0x2 } public Flags flags; public GeoPointBase geo; [IfFlag(0)] public int heading; public int period; [IfFlag(1)] public int proximity_notification_radius; } ///See [TLDef(0x4BD6E798)] public partial class MessageMediaPoll : MessageMedia { public Poll poll; public PollResults results; } ///See [TLDef(0x3F7EE58B)] public partial class MessageMediaDice : MessageMedia { public int value; public string emoticon; } ///See public abstract partial class MessageAction : ITLObject { } ///See [TLDef(0xB6AEF7B0)] public partial class MessageActionEmpty : MessageAction { } ///See [TLDef(0xBD47CBAD)] public partial class MessageActionChatCreate : MessageAction { public string title; public long[] users; } ///See [TLDef(0xB5A1CE5A)] public partial class MessageActionChatEditTitle : MessageAction { public string title; } ///See [TLDef(0x7FCB13A8)] public partial class MessageActionChatEditPhoto : MessageAction { public PhotoBase photo; } ///See [TLDef(0x95E3FBEF)] public partial class MessageActionChatDeletePhoto : MessageAction { } ///See [TLDef(0x15CEFD00)] public partial class MessageActionChatAddUser : MessageAction { public long[] users; } ///See [TLDef(0xA43F30CC)] public partial class MessageActionChatDeleteUser : MessageAction { public long user_id; } ///See [TLDef(0x031224C3)] public partial class MessageActionChatJoinedByLink : MessageAction { public long inviter_id; } ///See [TLDef(0x95D2AC92)] public partial class MessageActionChannelCreate : MessageAction { public string title; } ///See [TLDef(0xE1037F92)] public partial class MessageActionChatMigrateTo : MessageAction { public long channel_id; } ///See [TLDef(0xEA3948E9)] public partial class MessageActionChannelMigrateFrom : MessageAction { public string title; public long chat_id; } ///See [TLDef(0x94BD38ED)] public partial class MessageActionPinMessage : MessageAction { } ///See [TLDef(0x9FBAB604)] public partial class MessageActionHistoryClear : MessageAction { } ///See [TLDef(0x92A72876)] public partial class MessageActionGameScore : MessageAction { public long game_id; public int score; } ///See [TLDef(0x8F31B327)] public partial class MessageActionPaymentSentMe : MessageAction { [Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 } public Flags flags; public string currency; public long total_amount; public byte[] payload; [IfFlag(0)] public PaymentRequestedInfo info; [IfFlag(1)] public string shipping_option_id; public PaymentCharge charge; } ///See [TLDef(0x40699CD0)] public partial class MessageActionPaymentSent : MessageAction { public string currency; public long total_amount; } ///See [TLDef(0x80E11A7F)] public partial class MessageActionPhoneCall : MessageAction { [Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, video = 0x4 } public Flags flags; public long call_id; [IfFlag(0)] public PhoneCallDiscardReason reason; [IfFlag(1)] public int duration; } ///See [TLDef(0x4792929B)] public partial class MessageActionScreenshotTaken : MessageAction { } ///See [TLDef(0xFAE69F56)] public partial class MessageActionCustomAction : MessageAction { public string message; } ///See [TLDef(0xABE9AFFE)] public partial class MessageActionBotAllowed : MessageAction { public string domain; } ///See [TLDef(0x1B287353)] public partial class MessageActionSecureValuesSentMe : MessageAction { public SecureValue[] values; public SecureCredentialsEncrypted credentials; } ///See [TLDef(0xD95C6154)] public partial class MessageActionSecureValuesSent : MessageAction { public SecureValueType[] types; } ///See [TLDef(0xF3F25F76)] public partial class MessageActionContactSignUp : MessageAction { } ///See [TLDef(0x98E0D697)] public partial class MessageActionGeoProximityReached : MessageAction { public Peer from_id; public Peer to_id; public int distance; } ///See [TLDef(0x7A0D7F42)] public partial class MessageActionGroupCall : MessageAction { [Flags] public enum Flags { has_duration = 0x1 } public Flags flags; public InputGroupCall call; [IfFlag(0)] public int duration; } ///See [TLDef(0x502F92F7)] public partial class MessageActionInviteToGroupCall : MessageAction { public InputGroupCall call; public long[] users; } ///See [TLDef(0xAA1AFBFD)] public partial class MessageActionSetMessagesTTL : MessageAction { public int period; } ///See [TLDef(0xB3A07661)] public partial class MessageActionGroupCallScheduled : MessageAction { public InputGroupCall call; public DateTime schedule_date; } ///See [TLDef(0xAA786345)] public partial class MessageActionSetChatTheme : MessageAction { public string emoticon; } ///See public abstract partial class DialogBase : ITLObject { } ///See [TLDef(0x2C171F72)] public partial class Dialog : DialogBase { [Flags] public enum Flags { has_pts = 0x1, has_draft = 0x2, pinned = 0x4, unread_mark = 0x8, has_folder_id = 0x10 } public Flags flags; public Peer peer; public int top_message; public int read_inbox_max_id; public int read_outbox_max_id; public int unread_count; public int unread_mentions_count; public PeerNotifySettings notify_settings; [IfFlag(0)] public int pts; [IfFlag(1)] public DraftMessageBase draft; [IfFlag(4)] public int folder_id; } ///See [TLDef(0x71BD134C)] public partial class DialogFolder : DialogBase { [Flags] public enum Flags { pinned = 0x4 } public Flags flags; public Folder folder; public Peer peer; public int top_message; public int unread_muted_peers_count; public int unread_unmuted_peers_count; public int unread_muted_messages_count; public int unread_unmuted_messages_count; } ///See public abstract partial class PhotoBase : ITLObject { } ///See [TLDef(0x2331B22D)] public partial class PhotoEmpty : PhotoBase { public long id; } ///See [TLDef(0xFB197A65)] public partial class Photo : PhotoBase { [Flags] public enum Flags { has_stickers = 0x1, has_video_sizes = 0x2 } public Flags flags; public long id; public long access_hash; public byte[] file_reference; public DateTime date; public PhotoSizeBase[] sizes; [IfFlag(1)] public VideoSize[] video_sizes; public int dc_id; } ///See public abstract partial class PhotoSizeBase : ITLObject { } ///See [TLDef(0x0E17E23C)] public partial class PhotoSizeEmpty : PhotoSizeBase { public string type; } ///See [TLDef(0x75C78E60)] public partial class PhotoSize : PhotoSizeBase { public string type; public int w; public int h; public int size; } ///See [TLDef(0x021E1AD6)] public partial class PhotoCachedSize : PhotoSizeBase { public string type; public int w; public int h; public byte[] bytes; } ///See [TLDef(0xE0B0BC2E)] public partial class PhotoStrippedSize : PhotoSizeBase { public string type; public byte[] bytes; } ///See [TLDef(0xFA3EFB95)] public partial class PhotoSizeProgressive : PhotoSizeBase { public string type; public int w; public int h; public int[] sizes; } ///See [TLDef(0xD8214D41)] public partial class PhotoPathSize : PhotoSizeBase { public string type; public byte[] bytes; } ///See public abstract partial class GeoPointBase : ITLObject { } ///See [TLDef(0x1117DD5F)] public partial class GeoPointEmpty : GeoPointBase { } ///See [TLDef(0xB2A2F663)] public partial class GeoPoint : GeoPointBase { [Flags] public enum Flags { has_accuracy_radius = 0x1 } public Flags flags; public double long_; public double lat; public long access_hash; [IfFlag(0)] public int accuracy_radius; } ///See [TLDef(0x5E002502)] public partial class Auth_SentCode : ITLObject { [Flags] public enum Flags { has_next_type = 0x2, has_timeout = 0x4 } public Flags flags; public Auth_SentCodeType type; public string phone_code_hash; [IfFlag(1)] public Auth_CodeType next_type; [IfFlag(2)] public int timeout; } ///See public abstract partial class Auth_AuthorizationBase : ITLObject { } ///See [TLDef(0xCD050916)] public partial class Auth_Authorization : Auth_AuthorizationBase { [Flags] public enum Flags { has_tmp_sessions = 0x1 } public Flags flags; [IfFlag(0)] public int tmp_sessions; public UserBase user; } ///See [TLDef(0x44747E9A)] public partial class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase { [Flags] public enum Flags { has_terms_of_service = 0x1 } public Flags flags; [IfFlag(0)] public Help_TermsOfService terms_of_service; } ///See [TLDef(0xB434E2B8)] public partial class Auth_ExportedAuthorization : ITLObject { public long id; public byte[] bytes; } ///See public abstract partial class InputNotifyPeerBase : ITLObject { } ///See [TLDef(0xB8BC5B0C)] public partial class InputNotifyPeer : InputNotifyPeerBase { public InputPeer peer; } ///See [TLDef(0x193B4417)] public partial class InputNotifyUsers : InputNotifyPeerBase { } ///See [TLDef(0x4A95E84E)] public partial class InputNotifyChats : InputNotifyPeerBase { } ///See [TLDef(0xB1DB7C7E)] public partial class InputNotifyBroadcasts : InputNotifyPeerBase { } ///See [TLDef(0x9C3D198E)] public partial class InputPeerNotifySettings : ITLObject { [Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 } public Flags flags; [IfFlag(0)] public bool show_previews; [IfFlag(1)] public bool silent; [IfFlag(2)] public int mute_until; [IfFlag(3)] public string sound; } ///See [TLDef(0xAF509D20)] public partial class PeerNotifySettings : ITLObject { [Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 } public Flags flags; [IfFlag(0)] public bool show_previews; [IfFlag(1)] public bool silent; [IfFlag(2)] public int mute_until; [IfFlag(3)] public string sound; } ///See [TLDef(0x733F2961)] public partial class PeerSettings : ITLObject { [Flags] public enum Flags { report_spam = 0x1, add_contact = 0x2, block_contact = 0x4, share_contact = 0x8, need_contacts_exception = 0x10, report_geo = 0x20, has_geo_distance = 0x40, autoarchived = 0x80, invite_members = 0x100 } public Flags flags; [IfFlag(6)] public int geo_distance; } ///See public abstract partial class WallPaperBase : ITLObject { } ///See [TLDef(0xA437C3ED)] public partial class WallPaper : WallPaperBase { [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_settings = 0x4, pattern = 0x8, dark = 0x10 } public long id; public Flags flags; public long access_hash; public string slug; public DocumentBase document; [IfFlag(2)] public WallPaperSettings settings; } ///See [TLDef(0xE0804116)] public partial class WallPaperNoFile : WallPaperBase { [Flags] public enum Flags { default_ = 0x2, has_settings = 0x4, dark = 0x10 } public long id; public Flags flags; [IfFlag(2)] public WallPaperSettings settings; } ///See public enum ReportReason : uint { ///See Spam = 0x58DBCAB8, ///See Violence = 0x1E22C78D, ///See Pornography = 0x2E59D922, ///See ChildAbuse = 0xADF44EE3, ///See Other = 0xC1E4A2B1, ///See Copyright = 0x9B89F93A, ///See GeoIrrelevant = 0xDBD4FEED, ///See Fake = 0xF5DDD6E7, } ///See [TLDef(0xD697FF05)] public partial class UserFull : ITLObject { [Flags] public enum Flags { blocked = 0x1, has_about = 0x2, has_profile_photo = 0x4, has_bot_info = 0x8, phone_calls_available = 0x10, phone_calls_private = 0x20, has_pinned_msg_id = 0x40, can_pin_message = 0x80, has_folder_id = 0x800, has_scheduled = 0x1000, video_calls_available = 0x2000, has_ttl_period = 0x4000, has_theme_emoticon = 0x8000 } public Flags flags; public UserBase user; [IfFlag(1)] public string about; public PeerSettings settings; [IfFlag(2)] public PhotoBase profile_photo; public PeerNotifySettings notify_settings; [IfFlag(3)] public BotInfo bot_info; [IfFlag(6)] public int pinned_msg_id; public int common_chats_count; [IfFlag(11)] public int folder_id; [IfFlag(14)] public int ttl_period; [IfFlag(15)] public string theme_emoticon; } ///See [TLDef(0x145ADE0B)] public partial class Contact : ITLObject { public long user_id; public bool mutual; } ///See [TLDef(0xC13E3C50)] public partial class ImportedContact : ITLObject { public long user_id; public long client_id; } ///See [TLDef(0x16D9703B)] public partial class ContactStatus : ITLObject { public long user_id; public UserStatus status; } ///See public abstract partial class Contacts_ContactsBase : ITLObject { } ///See [TLDef(0xB74BA9D2)] public partial class Contacts_ContactsNotModified : Contacts_ContactsBase { } ///See [TLDef(0xEAE87E42)] public partial class Contacts_Contacts : Contacts_ContactsBase { public Contact[] contacts; public int saved_count; public UserBase[] users; } ///See [TLDef(0x77D01C3B)] public partial class Contacts_ImportedContacts : ITLObject { public ImportedContact[] imported; public PopularContact[] popular_invites; public long[] retry_contacts; public UserBase[] users; } ///See [TLDef(0x0ADE1591)] public partial class Contacts_Blocked : ITLObject { public PeerBlocked[] blocked; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xE1664194, inheritAfter = true)] public partial class Contacts_BlockedSlice : Contacts_Blocked { public int count; } ///See public abstract partial class Messages_DialogsBase : ITLObject { } ///See [TLDef(0x15BA6C40)] public partial class Messages_Dialogs : Messages_DialogsBase { public DialogBase[] dialogs; public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x71E094F3, inheritAfter = true)] public partial class Messages_DialogsSlice : Messages_Dialogs { public int count; } ///See [TLDef(0xF0E3E596)] public partial class Messages_DialogsNotModified : Messages_DialogsBase { public int count; } ///See public abstract partial class Messages_MessagesBase : ITLObject { } ///See [TLDef(0x8C718E87)] public partial class Messages_Messages : Messages_MessagesBase { public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x3A54685E, inheritAfter = true)] public partial class Messages_MessagesSlice : Messages_Messages { [Flags] public enum Flags { has_next_rate = 0x1, inexact = 0x2, has_offset_id_offset = 0x4 } public Flags flags; public int count; [IfFlag(0)] public int next_rate; [IfFlag(2)] public int offset_id_offset; } ///See [TLDef(0x64479808)] public partial class Messages_ChannelMessages : Messages_MessagesBase { [Flags] public enum Flags { inexact = 0x2, has_offset_id_offset = 0x4 } public Flags flags; public int pts; public int count; [IfFlag(2)] public int offset_id_offset; public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x74535F21)] public partial class Messages_MessagesNotModified : Messages_MessagesBase { public int count; } ///See [TLDef(0x64FF9FD5)] public partial class Messages_Chats : ITLObject { public ChatBase[] chats; } ///See [TLDef(0x9CD81144, inheritAfter = true)] public partial class Messages_ChatsSlice : Messages_Chats { public int count; } ///See [TLDef(0xE5D7D19C)] public partial class Messages_ChatFull : ITLObject { public ChatFullBase full_chat; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xB45C69D1)] public partial class Messages_AffectedHistory : ITLObject { public int pts; public int pts_count; public int offset; } ///See public abstract partial class MessagesFilter : ITLObject { } ///See [TLDef(0x57E2F66C)] public partial class InputMessagesFilterEmpty : MessagesFilter { } ///See [TLDef(0x9609A51C)] public partial class InputMessagesFilterPhotos : MessagesFilter { } ///See [TLDef(0x9FC00E65)] public partial class InputMessagesFilterVideo : MessagesFilter { } ///See [TLDef(0x56E9F0E4)] public partial class InputMessagesFilterPhotoVideo : MessagesFilter { } ///See [TLDef(0x9EDDF188)] public partial class InputMessagesFilterDocument : MessagesFilter { } ///See [TLDef(0x7EF0DD87)] public partial class InputMessagesFilterUrl : MessagesFilter { } ///See [TLDef(0xFFC86587)] public partial class InputMessagesFilterGif : MessagesFilter { } ///See [TLDef(0x50F5C392)] public partial class InputMessagesFilterVoice : MessagesFilter { } ///See [TLDef(0x3751B49E)] public partial class InputMessagesFilterMusic : MessagesFilter { } ///See [TLDef(0x3A20ECB8)] public partial class InputMessagesFilterChatPhotos : MessagesFilter { } ///See [TLDef(0x80C99768)] public partial class InputMessagesFilterPhoneCalls : MessagesFilter { [Flags] public enum Flags { missed = 0x1 } public Flags flags; } ///See [TLDef(0x7A7C17A4)] public partial class InputMessagesFilterRoundVoice : MessagesFilter { } ///See [TLDef(0xB549DA53)] public partial class InputMessagesFilterRoundVideo : MessagesFilter { } ///See [TLDef(0xC1F8E69A)] public partial class InputMessagesFilterMyMentions : MessagesFilter { } ///See [TLDef(0xE7026D0D)] public partial class InputMessagesFilterGeo : MessagesFilter { } ///See [TLDef(0xE062DB83)] public partial class InputMessagesFilterContacts : MessagesFilter { } ///See [TLDef(0x1BB00451)] public partial class InputMessagesFilterPinned : MessagesFilter { } ///See public abstract partial class Update : ITLObject { } ///See [TLDef(0x1F2B0AFD)] public partial class UpdateNewMessage : Update { public MessageBase message; public int pts; public int pts_count; } ///See [TLDef(0x4E90BFD6)] public partial class UpdateMessageID : Update { public int id; public long random_id; } ///See [TLDef(0xA20DB0E5)] public partial class UpdateDeleteMessages : Update { public int[] messages; public int pts; public int pts_count; } ///See [TLDef(0xC01E857F)] public partial class UpdateUserTyping : Update { public long user_id; public SendMessageAction action; } ///See [TLDef(0x83487AF0)] public partial class UpdateChatUserTyping : UpdateChat { public Peer from_id; public SendMessageAction action; } ///See [TLDef(0x07761198)] public partial class UpdateChatParticipants : Update { public ChatParticipantsBase participants; } ///See [TLDef(0xE5BDF8DE)] public partial class UpdateUserStatus : Update { public long user_id; public UserStatus status; } ///See [TLDef(0xC3F202E0)] public partial class UpdateUserName : Update { public long user_id; public string first_name; public string last_name; public string username; } ///See [TLDef(0xF227868C)] public partial class UpdateUserPhoto : Update { public long user_id; public DateTime date; public UserProfilePhotoBase photo; public bool previous; } ///See [TLDef(0x12BCBD9A)] public partial class UpdateNewEncryptedMessage : Update { public EncryptedMessageBase message; public int qts; } ///See [TLDef(0x1710F156)] public partial class UpdateEncryptedChatTyping : Update { public int chat_id; } ///See [TLDef(0xB4A2E88D)] public partial class UpdateEncryption : Update { public EncryptedChatBase chat; public DateTime date; } ///See [TLDef(0x38FE25B7)] public partial class UpdateEncryptedMessagesRead : Update { public int chat_id; public DateTime max_date; public DateTime date; } ///See [TLDef(0x3DDA5451)] public partial class UpdateChatParticipantAdd : UpdateChat { public long user_id; public long inviter_id; public DateTime date; public int version; } ///See [TLDef(0xE32F3D77)] public partial class UpdateChatParticipantDelete : UpdateChat { public long user_id; public int version; } ///See [TLDef(0x8E5E9873)] public partial class UpdateDcOptions : Update { public DcOption[] dc_options; } ///See [TLDef(0xBEC268EF)] public partial class UpdateNotifySettings : Update { public NotifyPeerBase peer; public PeerNotifySettings notify_settings; } ///See [TLDef(0xEBE46819)] public partial class UpdateServiceNotification : Update { [Flags] public enum Flags { popup = 0x1, has_inbox_date = 0x2 } public Flags flags; [IfFlag(1)] public DateTime inbox_date; public string type; public string message; public MessageMedia media; public MessageEntity[] entities; } ///See [TLDef(0xEE3B272A)] public partial class UpdatePrivacy : Update { public PrivacyKey key; public PrivacyRule[] rules; } ///See [TLDef(0x05492A13)] public partial class UpdateUserPhone : Update { public long user_id; public string phone; } ///See [TLDef(0x9C974FDF)] public partial class UpdateReadHistoryInbox : Update { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; [IfFlag(0)] public int folder_id; public Peer peer; public int max_id; public int still_unread_count; public int pts; public int pts_count; } ///See [TLDef(0x2F2F21BF)] public partial class UpdateReadHistoryOutbox : Update { public Peer peer; public int max_id; public int pts; public int pts_count; } ///See [TLDef(0x7F891213)] public partial class UpdateWebPage : Update { public WebPageBase webpage; public int pts; public int pts_count; } ///See [TLDef(0x68C13933)] public partial class UpdateReadMessagesContents : Update { public int[] messages; public int pts; public int pts_count; } ///See [TLDef(0x108D941F)] public partial class UpdateChannelTooLong : Update { [Flags] public enum Flags { has_pts = 0x1 } public Flags flags; public long channel_id; [IfFlag(0)] public int pts; } ///See [TLDef(0x635B4C09)] public partial class UpdateChannel : Update { public long channel_id; } ///See [TLDef(0x62BA04D9)] public partial class UpdateNewChannelMessage : UpdateNewMessage { } ///See [TLDef(0x922E6E10)] public partial class UpdateReadChannelInbox : Update { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; [IfFlag(0)] public int folder_id; public long channel_id; public int max_id; public int still_unread_count; public int pts; } ///See [TLDef(0xC32D5B12, inheritAfter = true)] public partial class UpdateDeleteChannelMessages : UpdateDeleteMessages { public long channel_id; } ///See [TLDef(0xF226AC08)] public partial class UpdateChannelMessageViews : UpdateChannel { public int id; public int views; } ///See [TLDef(0xD7CA61A2)] public partial class UpdateChatParticipantAdmin : UpdateChat { public long user_id; public bool is_admin; public int version; } ///See [TLDef(0x688A30AA)] public partial class UpdateNewStickerSet : Update { public Messages_StickerSet stickerset; } ///See [TLDef(0x0BB2D201)] public partial class UpdateStickerSetsOrder : Update { [Flags] public enum Flags { masks = 0x1 } public Flags flags; public long[] order; } ///See [TLDef(0x43AE3DEC)] public partial class UpdateStickerSets : Update { } ///See [TLDef(0x9375341E)] public partial class UpdateSavedGifs : Update { } ///See [TLDef(0x496F379C)] public partial class UpdateBotInlineQuery : Update { [Flags] public enum Flags { has_geo = 0x1, has_peer_type = 0x2 } public Flags flags; public long query_id; public long user_id; public string query; [IfFlag(0)] public GeoPointBase geo; [IfFlag(1)] public InlineQueryPeerType peer_type; public string offset; } ///See [TLDef(0x12F12A07)] public partial class UpdateBotInlineSend : Update { [Flags] public enum Flags { has_geo = 0x1, has_msg_id = 0x2 } public Flags flags; public long user_id; public string query; [IfFlag(0)] public GeoPointBase geo; public string id; [IfFlag(1)] public InputBotInlineMessageIDBase msg_id; } ///See [TLDef(0x1B3F4DF7)] public partial class UpdateEditChannelMessage : UpdateEditMessage { } ///See [TLDef(0xB9CFC48D)] public partial class UpdateBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; public long query_id; public long user_id; public Peer peer; public int msg_id; public long chat_instance; [IfFlag(0)] public byte[] data; [IfFlag(1)] public string game_short_name; } ///See [TLDef(0xE40370A3)] public partial class UpdateEditMessage : Update { public MessageBase message; public int pts; public int pts_count; } ///See [TLDef(0x691E9052)] public partial class UpdateInlineBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; public long query_id; public long user_id; public InputBotInlineMessageIDBase msg_id; public long chat_instance; [IfFlag(0)] public byte[] data; [IfFlag(1)] public string game_short_name; } ///See [TLDef(0xB75F99A9)] public partial class UpdateReadChannelOutbox : Update { public long channel_id; public int max_id; } ///See [TLDef(0xEE2BB969)] public partial class UpdateDraftMessage : Update { public Peer peer; public DraftMessageBase draft; } ///See [TLDef(0x571D2742)] public partial class UpdateReadFeaturedStickers : Update { } ///See [TLDef(0x9A422C20)] public partial class UpdateRecentStickers : Update { } ///See [TLDef(0xA229DD06)] public partial class UpdateConfig : Update { } ///See [TLDef(0x3354678F)] public partial class UpdatePtsChanged : Update { } ///See [TLDef(0x2F2BA99F, inheritAfter = true)] public partial class UpdateChannelWebPage : UpdateWebPage { public long channel_id; } ///See [TLDef(0x6E6FE51C)] public partial class UpdateDialogPinned : Update { [Flags] public enum Flags { pinned = 0x1, has_folder_id = 0x2 } public Flags flags; [IfFlag(1)] public int folder_id; public DialogPeerBase peer; } ///See [TLDef(0xFA0F3CA2)] public partial class UpdatePinnedDialogs : Update { [Flags] public enum Flags { has_order = 0x1, has_folder_id = 0x2 } public Flags flags; [IfFlag(1)] public int folder_id; [IfFlag(0)] public DialogPeerBase[] order; } ///See [TLDef(0x8317C0C3)] public partial class UpdateBotWebhookJSON : Update { public DataJSON data; } ///See [TLDef(0x9B9240A6)] public partial class UpdateBotWebhookJSONQuery : Update { public long query_id; public DataJSON data; public int timeout; } ///See [TLDef(0xB5AEFD7D)] public partial class UpdateBotShippingQuery : Update { public long query_id; public long user_id; public byte[] payload; public PostAddress shipping_address; } ///See [TLDef(0x8CAA9A96)] public partial class UpdateBotPrecheckoutQuery : Update { [Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 } public Flags flags; public long query_id; public long user_id; public byte[] payload; [IfFlag(0)] public PaymentRequestedInfo info; [IfFlag(1)] public string shipping_option_id; public string currency; public long total_amount; } ///See [TLDef(0xAB0F6B1E)] public partial class UpdatePhoneCall : Update { public PhoneCallBase phone_call; } ///See [TLDef(0x46560264)] public partial class UpdateLangPackTooLong : Update { public string lang_code; } ///See [TLDef(0x56022F4D)] public partial class UpdateLangPack : Update { public LangPackDifference difference; } ///See [TLDef(0xE511996D)] public partial class UpdateFavedStickers : Update { } ///See [TLDef(0x44BDD535)] public partial class UpdateChannelReadMessagesContents : UpdateChannel { public int[] messages; } ///See [TLDef(0x7084A7BE)] public partial class UpdateContactsReset : Update { } ///See [TLDef(0xB23FC698)] public partial class UpdateChannelAvailableMessages : UpdateChannel { public int available_min_id; } ///See [TLDef(0xE16459C3)] public partial class UpdateDialogUnreadMark : Update { [Flags] public enum Flags { unread = 0x1 } public Flags flags; public DialogPeerBase peer; } ///See [TLDef(0xACA1657B)] public partial class UpdateMessagePoll : Update { [Flags] public enum Flags { has_poll = 0x1 } public Flags flags; public long poll_id; [IfFlag(0)] public Poll poll; public PollResults results; } ///See [TLDef(0x54C01850)] public partial class UpdateChatDefaultBannedRights : Update { public Peer peer; public ChatBannedRights default_banned_rights; public int version; } ///See [TLDef(0x19360DC0)] public partial class UpdateFolderPeers : Update { public FolderPeer[] folder_peers; public int pts; public int pts_count; } ///See [TLDef(0x6A7E7366)] public partial class UpdatePeerSettings : Update { public Peer peer; public PeerSettings settings; } ///See [TLDef(0xB4AFCFB0)] public partial class UpdatePeerLocated : Update { public PeerLocatedBase[] peers; } ///See [TLDef(0x39A51DFB)] public partial class UpdateNewScheduledMessage : Update { public MessageBase message; } ///See [TLDef(0x90866CEE)] public partial class UpdateDeleteScheduledMessages : Update { public Peer peer; public int[] messages; } ///See [TLDef(0x8216FBA3)] public partial class UpdateTheme : Update { public Theme theme; } ///See [TLDef(0x871FB939)] public partial class UpdateGeoLiveViewed : Update { public Peer peer; public int msg_id; } ///See [TLDef(0x564FE691)] public partial class UpdateLoginToken : Update { } ///See [TLDef(0x106395C9)] public partial class UpdateMessagePollVote : Update { public long poll_id; public long user_id; public byte[][] options; public int qts; } ///See [TLDef(0x26FFDE7D)] public partial class UpdateDialogFilter : Update { [Flags] public enum Flags { has_filter = 0x1 } public Flags flags; public int id; [IfFlag(0)] public DialogFilter filter; } ///See [TLDef(0xA5D72105)] public partial class UpdateDialogFilterOrder : Update { public int[] order; } ///See [TLDef(0x3504914F)] public partial class UpdateDialogFilters : Update { } ///See [TLDef(0x2661BF09)] public partial class UpdatePhoneCallSignalingData : Update { public long phone_call_id; public byte[] data; } ///See [TLDef(0xD29A27F4)] public partial class UpdateChannelMessageForwards : UpdateChannel { public int id; public int forwards; } ///See [TLDef(0xD6B19546)] public partial class UpdateReadChannelDiscussionInbox : Update { [Flags] public enum Flags { has_broadcast_id = 0x1 } public Flags flags; public long channel_id; public int top_msg_id; public int read_max_id; [IfFlag(0)] public long broadcast_id; [IfFlag(0)] public int broadcast_post; } ///See [TLDef(0x695C9E7C)] public partial class UpdateReadChannelDiscussionOutbox : Update { public long channel_id; public int top_msg_id; public int read_max_id; } ///See [TLDef(0x246A4B22)] public partial class UpdatePeerBlocked : Update { public Peer peer_id; public bool blocked; } ///See [TLDef(0x8C88C923)] public partial class UpdateChannelUserTyping : Update { [Flags] public enum Flags { has_top_msg_id = 0x1 } public Flags flags; public long channel_id; [IfFlag(0)] public int top_msg_id; public Peer from_id; public SendMessageAction action; } ///See [TLDef(0xED85EAB5)] public partial class UpdatePinnedMessages : Update { [Flags] public enum Flags { pinned = 0x1 } public Flags flags; public Peer peer; public int[] messages; public int pts; public int pts_count; } ///See [TLDef(0x5BB98608)] public partial class UpdatePinnedChannelMessages : Update { [Flags] public enum Flags { pinned = 0x1 } public Flags flags; public long channel_id; public int[] messages; public int pts; public int pts_count; } ///See [TLDef(0xF89A6A4E)] public partial class UpdateChat : Update { public long chat_id; } ///See [TLDef(0xF2EBDB4E)] public partial class UpdateGroupCallParticipants : Update { public InputGroupCall call; public GroupCallParticipant[] participants; public int version; } ///See [TLDef(0x14B24500)] public partial class UpdateGroupCall : Update { public long chat_id; public GroupCallBase call; } ///See [TLDef(0xBB9BB9A5)] public partial class UpdatePeerHistoryTTL : Update { [Flags] public enum Flags { has_ttl_period = 0x1 } public Flags flags; public Peer peer; [IfFlag(0)] public int ttl_period; } ///See [TLDef(0xD087663A)] public partial class UpdateChatParticipant : Update { [Flags] public enum Flags { has_prev_participant = 0x1, has_new_participant = 0x2, has_invite = 0x4 } public Flags flags; public long chat_id; public DateTime date; public long actor_id; public long user_id; [IfFlag(0)] public ChatParticipantBase prev_participant; [IfFlag(1)] public ChatParticipantBase new_participant; [IfFlag(2)] public ExportedChatInvite invite; public int qts; } ///See [TLDef(0x985D3ABB)] public partial class UpdateChannelParticipant : Update { [Flags] public enum Flags { has_prev_participant = 0x1, has_new_participant = 0x2, has_invite = 0x4 } public Flags flags; public long channel_id; public DateTime date; public long actor_id; public long user_id; [IfFlag(0)] public ChannelParticipantBase prev_participant; [IfFlag(1)] public ChannelParticipantBase new_participant; [IfFlag(2)] public ExportedChatInvite invite; public int qts; } ///See [TLDef(0xC4870A49)] public partial class UpdateBotStopped : Update { public long user_id; public DateTime date; public bool stopped; public int qts; } ///See [TLDef(0x0B783982)] public partial class UpdateGroupCallConnection : Update { [Flags] public enum Flags { presentation = 0x1 } public Flags flags; public DataJSON params_; } ///See [TLDef(0x4D712F2E)] public partial class UpdateBotCommands : Update { public Peer peer; public long bot_id; public BotCommand[] commands; } ///See [TLDef(0xA56C2A3E)] public partial class Updates_State : ITLObject { public int pts; public int qts; public DateTime date; public int seq; public int unread_count; } ///See public abstract partial class Updates_DifferenceBase : ITLObject { } ///See [TLDef(0x5D75A138)] public partial class Updates_DifferenceEmpty : Updates_DifferenceBase { public DateTime date; public int seq; } ///See [TLDef(0x00F49CA0)] public partial class Updates_Difference : Updates_DifferenceBase { public MessageBase[] new_messages; public EncryptedMessageBase[] new_encrypted_messages; public Update[] other_updates; public ChatBase[] chats; public UserBase[] users; public Updates_State state; } ///See [TLDef(0xA8FB1981)] public partial class Updates_DifferenceSlice : Updates_DifferenceBase { public MessageBase[] new_messages; public EncryptedMessageBase[] new_encrypted_messages; public Update[] other_updates; public ChatBase[] chats; public UserBase[] users; public Updates_State intermediate_state; } ///See [TLDef(0x4AFE8F6D)] public partial class Updates_DifferenceTooLong : Updates_DifferenceBase { public int pts; } ///See public abstract partial class UpdatesBase : ITLObject { } ///See [TLDef(0xE317AF7E)] public partial class UpdatesTooLong : UpdatesBase { } ///See [TLDef(0x313BC7F8)] public partial class UpdateShortMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000, has_ttl_period = 0x2000000 } public Flags flags; public int id; public long user_id; public string message; public int pts; public int pts_count; public DateTime date; [IfFlag(2)] public MessageFwdHeader fwd_from; [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(25)] public int ttl_period; } ///See [TLDef(0x4D6DEEA5)] public partial class UpdateShortChatMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000, has_ttl_period = 0x2000000 } public Flags flags; public int id; public long from_id; public long chat_id; public string message; public int pts; public int pts_count; public DateTime date; [IfFlag(2)] public MessageFwdHeader fwd_from; [IfFlag(11)] public long via_bot_id; [IfFlag(3)] public MessageReplyHeader reply_to; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(25)] public int ttl_period; } ///See [TLDef(0x78D4DEC1)] public partial class UpdateShort : UpdatesBase { public Update update; public DateTime date; } ///See [TLDef(0x725B04C3)] public partial class UpdatesCombined : UpdatesBase { public Update[] updates; public UserBase[] users; public ChatBase[] chats; public DateTime date; public int seq_start; public int seq; } ///See [TLDef(0x74AE4240)] public partial class Updates : UpdatesBase { public Update[] updates; public UserBase[] users; public ChatBase[] chats; public DateTime date; public int seq; } ///See [TLDef(0x9015E101)] public partial class UpdateShortSentMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_entities = 0x80, has_media = 0x200, has_ttl_period = 0x2000000 } public Flags flags; public int id; public int pts; public int pts_count; public DateTime date; [IfFlag(9)] public MessageMedia media; [IfFlag(7)] public MessageEntity[] entities; [IfFlag(25)] public int ttl_period; } ///See [TLDef(0x8DCA6AA5)] public partial class Photos_Photos : ITLObject { public PhotoBase[] photos; public UserBase[] users; } ///See [TLDef(0x15051F54, inheritAfter = true)] public partial class Photos_PhotosSlice : Photos_Photos { public int count; } ///See [TLDef(0x20212CA8)] public partial class Photos_Photo : ITLObject { public PhotoBase photo; public UserBase[] users; } ///See public abstract partial class Upload_FileBase : ITLObject { } ///See [TLDef(0x096A18D5)] public partial class Upload_File : Upload_FileBase { public Storage_FileType type; public int mtime; public byte[] bytes; } ///See [TLDef(0xF18CDA44)] public partial class Upload_FileCdnRedirect : Upload_FileBase { public int dc_id; public byte[] file_token; public byte[] encryption_key; public byte[] encryption_iv; public FileHash[] file_hashes; } ///See [TLDef(0x18B7A10D)] public partial class DcOption : ITLObject { [Flags] public enum Flags { ipv6 = 0x1, media_only = 0x2, tcpo_only = 0x4, cdn = 0x8, static_ = 0x10, has_secret = 0x400 } public Flags flags; public int id; public string ip_address; public int port; [IfFlag(10)] public byte[] secret; } ///See [TLDef(0x330B4067)] public partial class Config : ITLObject { [Flags] public enum Flags { has_tmp_sessions = 0x1, phonecalls_enabled = 0x2, has_suggested_lang_code = 0x4, default_p2p_contacts = 0x8, preload_featured_stickers = 0x10, ignore_phone_entities = 0x20, revoke_pm_inbox = 0x40, has_autoupdate_url_prefix = 0x80, blocked_mode = 0x100, has_gif_search_username = 0x200, has_venue_search_username = 0x400, has_img_search_username = 0x800, has_static_maps_provider = 0x1000, pfs_enabled = 0x2000 } public Flags flags; public DateTime date; public DateTime expires; public bool test_mode; public int this_dc; public DcOption[] dc_options; public string dc_txt_domain_name; public int chat_size_max; public int megagroup_size_max; public int forwarded_count_max; public int online_update_period_ms; public int offline_blur_timeout_ms; public int offline_idle_timeout_ms; public int online_cloud_timeout_ms; public int notify_cloud_delay_ms; public int notify_default_delay_ms; public int push_chat_period_ms; public int push_chat_limit; public int saved_gifs_limit; public int edit_time_limit; public int revoke_time_limit; public int revoke_pm_time_limit; public int rating_e_decay; public int stickers_recent_limit; public int stickers_faved_limit; public int channels_read_media_period; [IfFlag(0)] public int tmp_sessions; public int pinned_dialogs_count_max; public int pinned_infolder_count_max; public int call_receive_timeout_ms; public int call_ring_timeout_ms; public int call_connect_timeout_ms; public int call_packet_timeout_ms; public string me_url_prefix; [IfFlag(7)] public string autoupdate_url_prefix; [IfFlag(9)] public string gif_search_username; [IfFlag(10)] public string venue_search_username; [IfFlag(11)] public string img_search_username; [IfFlag(12)] public string static_maps_provider; public int caption_length_max; public int message_length_max; public int webfile_dc_id; [IfFlag(2)] public string suggested_lang_code; [IfFlag(2)] public int lang_pack_version; [IfFlag(2)] public int base_lang_pack_version; } ///See [TLDef(0x8E1A1775)] public partial class NearestDc : ITLObject { public string country; public int this_dc; public int nearest_dc; } ///See public abstract partial class Help_AppUpdateBase : ITLObject { } ///See [TLDef(0xCCBBCE30)] public partial class Help_AppUpdate : Help_AppUpdateBase { [Flags] public enum Flags { can_not_skip = 0x1, has_document = 0x2, has_url = 0x4, has_sticker = 0x8 } public Flags flags; public int id; public string version; public string text; public MessageEntity[] entities; [IfFlag(1)] public DocumentBase document; [IfFlag(2)] public string url; [IfFlag(3)] public DocumentBase sticker; } ///See [TLDef(0xC45A6536)] public partial class Help_NoAppUpdate : Help_AppUpdateBase { } ///See [TLDef(0x18CB9F78)] public partial class Help_InviteText : ITLObject { public string message; } ///See public abstract partial class EncryptedChatBase : ITLObject { } ///See [TLDef(0xAB7EC0A0)] public partial class EncryptedChatEmpty : EncryptedChatBase { public int id; } ///See [TLDef(0x66B25953)] public partial class EncryptedChatWaiting : EncryptedChatBase { public int id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; } ///See [TLDef(0x48F1D94C)] public partial class EncryptedChatRequested : EncryptedChatBase { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; [IfFlag(0)] public int folder_id; public int id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public byte[] g_a; } ///See [TLDef(0x61F0D4C7)] public partial class EncryptedChat : EncryptedChatBase { public int id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public byte[] g_a_or_b; public long key_fingerprint; } ///See [TLDef(0x1E1C7C45)] public partial class EncryptedChatDiscarded : EncryptedChatBase { [Flags] public enum Flags { history_deleted = 0x1 } public Flags flags; public int id; } ///See [TLDef(0xF141B5E1)] public partial class InputEncryptedChat : ITLObject { public int chat_id; public long access_hash; } ///See public abstract partial class EncryptedFileBase : ITLObject { } ///See [TLDef(0xC21F497E)] public partial class EncryptedFileEmpty : EncryptedFileBase { } ///See [TLDef(0x4A70994C)] public partial class EncryptedFile : EncryptedFileBase { public long id; public long access_hash; public int size; public int dc_id; public int key_fingerprint; } ///See public abstract partial class InputEncryptedFileBase : ITLObject { } ///See [TLDef(0x1837C364)] public partial class InputEncryptedFileEmpty : InputEncryptedFileBase { } ///See [TLDef(0x64BD0306)] public partial class InputEncryptedFileUploaded : InputEncryptedFileBase { public long id; public int parts; public byte[] md5_checksum; public int key_fingerprint; } ///See [TLDef(0x5A17B5E5)] public partial class InputEncryptedFile : InputEncryptedFileBase { public long id; public long access_hash; } ///See [TLDef(0x2DC173C8)] public partial class InputEncryptedFileBigUploaded : InputEncryptedFileBase { public long id; public int parts; public int key_fingerprint; } ///See public abstract partial class EncryptedMessageBase : ITLObject { } ///See [TLDef(0xED18C118)] public partial class EncryptedMessage : EncryptedMessageBase { public long random_id; public int chat_id; public DateTime date; public byte[] bytes; public EncryptedFileBase file; } ///See [TLDef(0x23734B06)] public partial class EncryptedMessageService : EncryptedMessageBase { public long random_id; public int chat_id; public DateTime date; public byte[] bytes; } ///See public abstract partial class Messages_DhConfigBase : ITLObject { } ///See [TLDef(0xC0E24635)] public partial class Messages_DhConfigNotModified : Messages_DhConfigBase { public byte[] random; } ///See [TLDef(0x2C221EDD)] public partial class Messages_DhConfig : Messages_DhConfigBase { public int g; public byte[] p; public int version; public byte[] random; } ///See [TLDef(0x560F8935)] public partial class Messages_SentEncryptedMessage : ITLObject { public DateTime date; } ///See [TLDef(0x9493FF32)] public partial class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { public EncryptedFileBase file; } ///See public abstract partial class InputDocumentBase : ITLObject { } ///See [TLDef(0x72F0EAAE)] public partial class InputDocumentEmpty : InputDocumentBase { } ///See [TLDef(0x1ABFB575)] public partial class InputDocument : InputDocumentBase { public long id; public long access_hash; public byte[] file_reference; } ///See public abstract partial class DocumentBase : ITLObject { } ///See [TLDef(0x36F8C871)] public partial class DocumentEmpty : DocumentBase { public long id; } ///See [TLDef(0x1E87342B)] public partial class Document : DocumentBase { [Flags] public enum Flags { has_thumbs = 0x1, has_video_thumbs = 0x2 } public Flags flags; public long id; public long access_hash; public byte[] file_reference; public DateTime date; public string mime_type; public int size; [IfFlag(0)] public PhotoSizeBase[] thumbs; [IfFlag(1)] public VideoSize[] video_thumbs; public int dc_id; public DocumentAttribute[] attributes; } ///See [TLDef(0x17C6B5F6)] public partial class Help_Support : ITLObject { public string phone_number; public UserBase user; } ///See public abstract partial class NotifyPeerBase : ITLObject { } ///See [TLDef(0x9FD40BD8)] public partial class NotifyPeer : NotifyPeerBase { public Peer peer; } ///See [TLDef(0xB4C83B4C)] public partial class NotifyUsers : NotifyPeerBase { } ///See [TLDef(0xC007CEC3)] public partial class NotifyChats : NotifyPeerBase { } ///See [TLDef(0xD612E8EF)] public partial class NotifyBroadcasts : NotifyPeerBase { } ///See public abstract partial class SendMessageAction : ITLObject { } ///See [TLDef(0x16BF744E)] public partial class SendMessageTypingAction : SendMessageAction { } ///See [TLDef(0xFD5EC8F5)] public partial class SendMessageCancelAction : SendMessageAction { } ///See [TLDef(0xA187D66F)] public partial class SendMessageRecordVideoAction : SendMessageAction { } ///See [TLDef(0xE9763AEC)] public partial class SendMessageUploadVideoAction : SendMessageAction { public int progress; } ///See [TLDef(0xD52F73F7)] public partial class SendMessageRecordAudioAction : SendMessageAction { } ///See [TLDef(0xF351D7AB)] public partial class SendMessageUploadAudioAction : SendMessageAction { public int progress; } ///See [TLDef(0xD1D34A26)] public partial class SendMessageUploadPhotoAction : SendMessageAction { public int progress; } ///See [TLDef(0xAA0CD9E4)] public partial class SendMessageUploadDocumentAction : SendMessageAction { public int progress; } ///See [TLDef(0x176F8BA1)] public partial class SendMessageGeoLocationAction : SendMessageAction { } ///See [TLDef(0x628CBC6F)] public partial class SendMessageChooseContactAction : SendMessageAction { } ///See [TLDef(0xDD6A8F48)] public partial class SendMessageGamePlayAction : SendMessageAction { } ///See [TLDef(0x88F27FBC)] public partial class SendMessageRecordRoundAction : SendMessageAction { } ///See [TLDef(0x243E1C66)] public partial class SendMessageUploadRoundAction : SendMessageAction { public int progress; } ///See [TLDef(0xD92C2285)] public partial class SpeakingInGroupCallAction : SendMessageAction { } ///See [TLDef(0xDBDA9246)] public partial class SendMessageHistoryImportAction : SendMessageAction { public int progress; } ///See [TLDef(0xB05AC6B1)] public partial class SendMessageChooseStickerAction : SendMessageAction { } ///See [TLDef(0x6A3233B6)] public partial class SendMessageEmojiInteraction : SendMessageAction { public string emoticon; public DataJSON interaction; } ///See [TLDef(0xB665902E)] public partial class SendMessageEmojiInteractionSeen : SendMessageAction { public string emoticon; } ///See [TLDef(0xB3134D9D)] public partial class Contacts_Found : ITLObject { public Peer[] my_results; public Peer[] results; public ChatBase[] chats; public UserBase[] users; } ///See public enum InputPrivacyKey : uint { ///See StatusTimestamp = 0x4F96CB18, ///See ChatInvite = 0xBDFB0426, ///See PhoneCall = 0xFABADC5F, ///See PhoneP2P = 0xDB9E70D2, ///See Forwards = 0xA4DD4C08, ///See ProfilePhoto = 0x5719BACC, ///See PhoneNumber = 0x0352DAFA, ///See AddedByPhone = 0xD1219BDD, } ///See public enum PrivacyKey : uint { ///See StatusTimestamp = 0xBC2EAB30, ///See ChatInvite = 0x500E6DFA, ///See PhoneCall = 0x3D662B7B, ///See PhoneP2P = 0x39491CC8, ///See Forwards = 0x69EC56A3, ///See ProfilePhoto = 0x96151FED, ///See PhoneNumber = 0xD19AE46D, ///See AddedByPhone = 0x42FFD42B, } ///See public abstract partial class InputPrivacyRule : ITLObject { } ///See [TLDef(0x0D09E07B)] public partial class InputPrivacyValueAllowContacts : InputPrivacyRule { } ///See [TLDef(0x184B35CE)] public partial class InputPrivacyValueAllowAll : InputPrivacyRule { } ///See [TLDef(0x131CC67F)] public partial class InputPrivacyValueAllowUsers : InputPrivacyRule { public InputUserBase[] users; } ///See [TLDef(0x0BA52007)] public partial class InputPrivacyValueDisallowContacts : InputPrivacyRule { } ///See [TLDef(0xD66B66C9)] public partial class InputPrivacyValueDisallowAll : InputPrivacyRule { } ///See [TLDef(0x90110467)] public partial class InputPrivacyValueDisallowUsers : InputPrivacyRule { public InputUserBase[] users; } ///See [TLDef(0x840649CF)] public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public long[] chats; } ///See [TLDef(0xE94F0F86)] public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public long[] chats; } ///See public abstract partial class PrivacyRule : ITLObject { } ///See [TLDef(0xFFFE1BAC)] public partial class PrivacyValueAllowContacts : PrivacyRule { } ///See [TLDef(0x65427B82)] public partial class PrivacyValueAllowAll : PrivacyRule { } ///See [TLDef(0xB8905FB2)] public partial class PrivacyValueAllowUsers : PrivacyRule { public long[] users; } ///See [TLDef(0xF888FA1A)] public partial class PrivacyValueDisallowContacts : PrivacyRule { } ///See [TLDef(0x8B73E763)] public partial class PrivacyValueDisallowAll : PrivacyRule { } ///See [TLDef(0xE4621141)] public partial class PrivacyValueDisallowUsers : PrivacyRule { public long[] users; } ///See [TLDef(0x6B134E8E)] public partial class PrivacyValueAllowChatParticipants : PrivacyRule { public long[] chats; } ///See [TLDef(0x41C87565)] public partial class PrivacyValueDisallowChatParticipants : PrivacyRule { public long[] chats; } ///See [TLDef(0x50A04E45)] public partial class Account_PrivacyRules : ITLObject { public PrivacyRule[] rules; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xB8D0AFDF)] public partial class AccountDaysTTL : ITLObject { public int days; } ///See public abstract partial class DocumentAttribute : ITLObject { } ///See [TLDef(0x6C37C15C)] public partial class DocumentAttributeImageSize : DocumentAttribute { public int w; public int h; } ///See [TLDef(0x11B58939)] public partial class DocumentAttributeAnimated : DocumentAttribute { } ///See [TLDef(0x6319D612)] public partial class DocumentAttributeSticker : DocumentAttribute { [Flags] public enum Flags { has_mask_coords = 0x1, mask = 0x2 } public Flags flags; public string alt; public InputStickerSet stickerset; [IfFlag(0)] public MaskCoords mask_coords; } ///See [TLDef(0x0EF02CE6)] public partial class DocumentAttributeVideo : DocumentAttribute { [Flags] public enum Flags { round_message = 0x1, supports_streaming = 0x2 } public Flags flags; public int duration; public int w; public int h; } ///See [TLDef(0x9852F9C6)] public partial class DocumentAttributeAudio : DocumentAttribute { [Flags] public enum Flags { has_title = 0x1, has_performer = 0x2, has_waveform = 0x4, voice = 0x400 } public Flags flags; public int duration; [IfFlag(0)] public string title; [IfFlag(1)] public string performer; [IfFlag(2)] public byte[] waveform; } ///See [TLDef(0x15590068)] public partial class DocumentAttributeFilename : DocumentAttribute { public string file_name; } ///See [TLDef(0x9801D2F7)] public partial class DocumentAttributeHasStickers : DocumentAttribute { } ///See public abstract partial class Messages_StickersBase : ITLObject { } ///See [TLDef(0xF1749A22)] public partial class Messages_StickersNotModified : Messages_StickersBase { } ///See [TLDef(0x30A6EC7E)] public partial class Messages_Stickers : Messages_StickersBase { public long hash; public DocumentBase[] stickers; } ///See [TLDef(0x12B299D4)] public partial class StickerPack : ITLObject { public string emoticon; public long[] documents; } ///See public abstract partial class Messages_AllStickersBase : ITLObject { } ///See [TLDef(0xE86602C3)] public partial class Messages_AllStickersNotModified : Messages_AllStickersBase { } ///See [TLDef(0xCDBBCEBB)] public partial class Messages_AllStickers : Messages_AllStickersBase { public long hash; public StickerSet[] sets; } ///See [TLDef(0x84D19185)] public partial class Messages_AffectedMessages : ITLObject { public int pts; public int pts_count; } ///See public abstract partial class WebPageBase : ITLObject { } ///See [TLDef(0xEB1477E8)] public partial class WebPageEmpty : WebPageBase { public long id; } ///See [TLDef(0xC586DA1C)] public partial class WebPagePending : WebPageBase { public long id; public DateTime date; } ///See [TLDef(0xE89C45B2)] public partial class WebPage : WebPageBase { [Flags] public enum Flags { has_type = 0x1, has_site_name = 0x2, has_title = 0x4, has_description = 0x8, has_photo = 0x10, has_embed_url = 0x20, has_embed_width = 0x40, has_duration = 0x80, has_author = 0x100, has_document = 0x200, has_cached_page = 0x400, has_attributes = 0x1000 } public Flags flags; public long id; public string url; public string display_url; public int hash; [IfFlag(0)] public string type; [IfFlag(1)] public string site_name; [IfFlag(2)] public string title; [IfFlag(3)] public string description; [IfFlag(4)] public PhotoBase photo; [IfFlag(5)] public string embed_url; [IfFlag(5)] public string embed_type; [IfFlag(6)] public int embed_width; [IfFlag(6)] public int embed_height; [IfFlag(7)] public int duration; [IfFlag(8)] public string author; [IfFlag(9)] public DocumentBase document; [IfFlag(10)] public Page cached_page; [IfFlag(12)] public WebPageAttribute[] attributes; } ///See [TLDef(0x7311CA11)] public partial class WebPageNotModified : WebPageBase { [Flags] public enum Flags { has_cached_page_views = 0x1 } public Flags flags; [IfFlag(0)] public int cached_page_views; } ///See [TLDef(0xAD01D61D)] public partial class Authorization : ITLObject { [Flags] public enum Flags { current = 0x1, official_app = 0x2, password_pending = 0x4 } public Flags flags; public long hash; public string device_model; public string platform; public string system_version; public int api_id; public string app_name; public string app_version; public int date_created; public int date_active; public string ip; public string country; public string region; } ///See [TLDef(0x1250ABDE)] public partial class Account_Authorizations : ITLObject { public Authorization[] authorizations; } ///See [TLDef(0x185B184F)] public partial class Account_Password : ITLObject { [Flags] public enum Flags { has_recovery = 0x1, has_secure_values = 0x2, has_password = 0x4, has_hint = 0x8, has_email_unconfirmed_pattern = 0x10, has_pending_reset_date = 0x20 } public Flags flags; [IfFlag(2)] public PasswordKdfAlgo current_algo; [IfFlag(2)] public byte[] srp_B; [IfFlag(2)] public long srp_id; [IfFlag(3)] public string hint; [IfFlag(4)] public string email_unconfirmed_pattern; public PasswordKdfAlgo new_algo; public SecurePasswordKdfAlgo new_secure_algo; public byte[] secure_random; [IfFlag(5)] public DateTime pending_reset_date; } ///See [TLDef(0x9A5C33E5)] public partial class Account_PasswordSettings : ITLObject { [Flags] public enum Flags { has_email = 0x1, has_secure_settings = 0x2 } public Flags flags; [IfFlag(0)] public string email; [IfFlag(1)] public SecureSecretSettings secure_settings; } ///See [TLDef(0xC23727C9)] public partial class Account_PasswordInputSettings : ITLObject { [Flags] public enum Flags { has_new_algo = 0x1, has_email = 0x2, has_new_secure_settings = 0x4 } public Flags flags; [IfFlag(0)] public PasswordKdfAlgo new_algo; [IfFlag(0)] public byte[] new_password_hash; [IfFlag(0)] public string hint; [IfFlag(1)] public string email; [IfFlag(2)] public SecureSecretSettings new_secure_settings; } ///See [TLDef(0x137948A5)] public partial class Auth_PasswordRecovery : ITLObject { public string email_pattern; } ///See [TLDef(0xA384B779)] public partial class ReceivedNotifyMessage : ITLObject { public int id; public int flags; } ///See public abstract partial class ExportedChatInvite : ITLObject { } ///See [TLDef(0xB18105E8)] public partial class ChatInviteExported : ExportedChatInvite { [Flags] public enum Flags { revoked = 0x1, has_expire_date = 0x2, has_usage_limit = 0x4, has_usage = 0x8, has_start_date = 0x10, permanent = 0x20 } public Flags flags; public string link; public long admin_id; public DateTime date; [IfFlag(4)] public DateTime start_date; [IfFlag(1)] public DateTime expire_date; [IfFlag(2)] public int usage_limit; [IfFlag(3)] public int usage; } ///See public abstract partial class ChatInviteBase : ITLObject { } ///See [TLDef(0x5A686D7C)] public partial class ChatInviteAlready : ChatInviteBase { public ChatBase chat; } ///See [TLDef(0xDFC2F58E)] public partial class ChatInvite : ChatInviteBase { [Flags] public enum Flags { channel = 0x1, broadcast = 0x2, public_ = 0x4, megagroup = 0x8, has_participants = 0x10 } public Flags flags; public string title; public PhotoBase photo; public int participants_count; [IfFlag(4)] public UserBase[] participants; } ///See [TLDef(0x61695CB0)] public partial class ChatInvitePeek : ChatInviteBase { public ChatBase chat; public DateTime expires; } ///See public abstract partial class InputStickerSet : ITLObject { } ///See [TLDef(0xFFB62B95)] public partial class InputStickerSetEmpty : InputStickerSet { } ///See [TLDef(0x9DE7A269)] public partial class InputStickerSetID : InputStickerSet { public long id; public long access_hash; } ///See [TLDef(0x861CC8A0)] public partial class InputStickerSetShortName : InputStickerSet { public string short_name; } ///See [TLDef(0x028703C8)] public partial class InputStickerSetAnimatedEmoji : InputStickerSet { } ///See [TLDef(0xE67F520E)] public partial class InputStickerSetDice : InputStickerSet { public string emoticon; } ///See [TLDef(0xD7DF217A)] public partial class StickerSet : ITLObject { [Flags] public enum Flags { has_installed_date = 0x1, archived = 0x2, official = 0x4, masks = 0x8, has_thumbs = 0x10, animated = 0x20 } public Flags flags; [IfFlag(0)] public DateTime installed_date; public long id; public long access_hash; public string title; public string short_name; [IfFlag(4)] public PhotoSizeBase[] thumbs; [IfFlag(4)] public int thumb_dc_id; [IfFlag(4)] public int thumb_version; public int count; public int hash; } ///See [TLDef(0xB60A24A6)] public partial class Messages_StickerSet : ITLObject { public StickerSet set; public StickerPack[] packs; public DocumentBase[] documents; } ///See [TLDef(0xC27AC8C7)] public partial class BotCommand : ITLObject { public string command; public string description; } ///See [TLDef(0x1B74B335)] public partial class BotInfo : ITLObject { public long user_id; public string description; public BotCommand[] commands; } ///See public abstract partial class KeyboardButtonBase : ITLObject { } ///See [TLDef(0xA2FA4880)] public partial class KeyboardButton : KeyboardButtonBase { public string text; } ///See [TLDef(0x258AFF05)] public partial class KeyboardButtonUrl : KeyboardButton { public string url; } ///See [TLDef(0x35BBDB6B)] public partial class KeyboardButtonCallback : KeyboardButtonBase { [Flags] public enum Flags { requires_password = 0x1 } public Flags flags; public string text; public byte[] data; } ///See [TLDef(0xB16A6C29)] public partial class KeyboardButtonRequestPhone : KeyboardButton { } ///See [TLDef(0xFC796B3F)] public partial class KeyboardButtonRequestGeoLocation : KeyboardButton { } ///See [TLDef(0x0568A748)] public partial class KeyboardButtonSwitchInline : KeyboardButtonBase { [Flags] public enum Flags { same_peer = 0x1 } public Flags flags; public string text; public string query; } ///See [TLDef(0x50F41CCF)] public partial class KeyboardButtonGame : KeyboardButton { } ///See [TLDef(0xAFD93FBB)] public partial class KeyboardButtonBuy : KeyboardButton { } ///See [TLDef(0x10B78D29)] public partial class KeyboardButtonUrlAuth : KeyboardButtonBase { [Flags] public enum Flags { has_fwd_text = 0x1 } public Flags flags; public string text; [IfFlag(0)] public string fwd_text; public string url; public int button_id; } ///See [TLDef(0xD02E7FD4)] public partial class InputKeyboardButtonUrlAuth : KeyboardButtonBase { [Flags] public enum Flags { request_write_access = 0x1, has_fwd_text = 0x2 } public Flags flags; public string text; [IfFlag(1)] public string fwd_text; public string url; public InputUserBase bot; } ///See [TLDef(0xBBC7515D, inheritAfter = true)] public partial class KeyboardButtonRequestPoll : KeyboardButton { [Flags] public enum Flags { has_quiz = 0x1 } public Flags flags; [IfFlag(0)] public bool quiz; } ///See [TLDef(0x77608B83)] public partial class KeyboardButtonRow : ITLObject { public KeyboardButtonBase[] buttons; } ///See public abstract partial class ReplyMarkup : ITLObject { } ///See [TLDef(0xA03E5B85)] public partial class ReplyKeyboardHide : ReplyMarkup { [Flags] public enum Flags { selective = 0x4 } public Flags flags; } ///See [TLDef(0x86B40B08)] public partial class ReplyKeyboardForceReply : ReplyMarkup { [Flags] public enum Flags { single_use = 0x2, selective = 0x4, has_placeholder = 0x8 } public Flags flags; [IfFlag(3)] public string placeholder; } ///See [TLDef(0x85DD99D1)] public partial class ReplyKeyboardMarkup : ReplyMarkup { [Flags] public enum Flags { resize = 0x1, single_use = 0x2, selective = 0x4, has_placeholder = 0x8 } public Flags flags; public KeyboardButtonRow[] rows; [IfFlag(3)] public string placeholder; } ///See [TLDef(0x48A30254)] public partial class ReplyInlineMarkup : ReplyMarkup { public KeyboardButtonRow[] rows; } ///See public abstract partial class MessageEntity : ITLObject { public int offset; public int length; } ///See [TLDef(0xBB92BA95)] public partial class MessageEntityUnknown : MessageEntity { } ///See [TLDef(0xFA04579D)] public partial class MessageEntityMention : MessageEntity { } ///See [TLDef(0x6F635B0D)] public partial class MessageEntityHashtag : MessageEntity { } ///See [TLDef(0x6CEF8AC7)] public partial class MessageEntityBotCommand : MessageEntity { } ///See [TLDef(0x6ED02538)] public partial class MessageEntityUrl : MessageEntity { } ///See [TLDef(0x64E475C2)] public partial class MessageEntityEmail : MessageEntity { } ///See [TLDef(0xBD610BC9)] public partial class MessageEntityBold : MessageEntity { } ///See [TLDef(0x826F8B60)] public partial class MessageEntityItalic : MessageEntity { } ///See [TLDef(0x28A20571)] public partial class MessageEntityCode : MessageEntity { } ///See [TLDef(0x73924BE0)] public partial class MessageEntityPre : MessageEntity { public string language; } ///See [TLDef(0x76A6D327)] public partial class MessageEntityTextUrl : MessageEntity { public string url; } ///See [TLDef(0xDC7B1140)] public partial class MessageEntityMentionName : MessageEntity { public long user_id; } ///See [TLDef(0x208E68C9)] public partial class InputMessageEntityMentionName : MessageEntity { public InputUserBase user_id; } ///See [TLDef(0x9B69E34B)] public partial class MessageEntityPhone : MessageEntity { } ///See [TLDef(0x4C4E743F)] public partial class MessageEntityCashtag : MessageEntity { } ///See [TLDef(0x9C4E7E8B)] public partial class MessageEntityUnderline : MessageEntity { } ///See [TLDef(0xBF0693D4)] public partial class MessageEntityStrike : MessageEntity { } ///See [TLDef(0x020DF5D0)] public partial class MessageEntityBlockquote : MessageEntity { } ///See [TLDef(0x761E6AF4)] public partial class MessageEntityBankCard : MessageEntity { } ///See public abstract partial class InputChannelBase : ITLObject { } ///See [TLDef(0xEE8C1E86)] public partial class InputChannelEmpty : InputChannelBase { } ///See [TLDef(0xF35AEC28)] public partial class InputChannel : InputChannelBase { public long channel_id; public long access_hash; } ///See [TLDef(0x5B934F9D)] public partial class InputChannelFromMessage : InputChannelBase { public InputPeer peer; public int msg_id; public long channel_id; } ///See [TLDef(0x7F077AD9)] public partial class Contacts_ResolvedPeer : ITLObject { public Peer peer; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x0AE30253)] public partial class MessageRange : ITLObject { public int min_id; public int max_id; } ///See public abstract partial class Updates_ChannelDifferenceBase : ITLObject { } ///See [TLDef(0x3E11AFFB)] public partial class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; public int pts; [IfFlag(1)] public int timeout; } ///See [TLDef(0xA4BCC6FE)] public partial class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; [IfFlag(1)] public int timeout; public DialogBase dialog; public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x2064674E)] public partial class Updates_ChannelDifference : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; public int pts; [IfFlag(1)] public int timeout; public MessageBase[] new_messages; public Update[] other_updates; public ChatBase[] chats; public UserBase[] users; } ///See public abstract partial class ChannelMessagesFilterBase : ITLObject { } ///See [TLDef(0x94D42EE7)] public partial class ChannelMessagesFilterEmpty : ChannelMessagesFilterBase { } ///See [TLDef(0xCD77D957)] public partial class ChannelMessagesFilter : ChannelMessagesFilterBase { [Flags] public enum Flags { exclude_new_messages = 0x2 } public Flags flags; public MessageRange[] ranges; } ///See public abstract partial class ChannelParticipantBase : ITLObject { } ///See [TLDef(0xC00C07C0)] public partial class ChannelParticipant : ChannelParticipantBase { public long user_id; public DateTime date; } ///See [TLDef(0x28A8BC67)] public partial class ChannelParticipantSelf : ChannelParticipantBase { public long user_id; public long inviter_id; public DateTime date; } ///See [TLDef(0x2FE601D3)] public partial class ChannelParticipantCreator : ChannelParticipantBase { [Flags] public enum Flags { has_rank = 0x1 } public Flags flags; public long user_id; public ChatAdminRights admin_rights; [IfFlag(0)] public string rank; } ///See [TLDef(0x34C3BB53)] public partial class ChannelParticipantAdmin : ChannelParticipantBase { [Flags] public enum Flags { can_edit = 0x1, self = 0x2, has_rank = 0x4 } public Flags flags; public long user_id; [IfFlag(1)] public long inviter_id; public long promoted_by; public DateTime date; public ChatAdminRights admin_rights; [IfFlag(2)] public string rank; } ///See [TLDef(0x6DF8014E)] public partial class ChannelParticipantBanned : ChannelParticipantBase { [Flags] public enum Flags { left = 0x1 } public Flags flags; public Peer peer; public long kicked_by; public DateTime date; public ChatBannedRights banned_rights; } ///See [TLDef(0x1B03F006)] public partial class ChannelParticipantLeft : ChannelParticipantBase { public Peer peer; } ///See public abstract partial class ChannelParticipantsFilter : ITLObject { } ///See [TLDef(0xDE3F3C79)] public partial class ChannelParticipantsRecent : ChannelParticipantsFilter { } ///See [TLDef(0xB4608969)] public partial class ChannelParticipantsAdmins : ChannelParticipantsFilter { } ///See [TLDef(0xA3B54985)] public partial class ChannelParticipantsKicked : ChannelParticipantsFilter { public string q; } ///See [TLDef(0xB0D1865B)] public partial class ChannelParticipantsBots : ChannelParticipantsFilter { } ///See [TLDef(0x1427A5E1)] public partial class ChannelParticipantsBanned : ChannelParticipantsFilter { public string q; } ///See [TLDef(0x0656AC4B)] public partial class ChannelParticipantsSearch : ChannelParticipantsFilter { public string q; } ///See [TLDef(0xBB6AE88D)] public partial class ChannelParticipantsContacts : ChannelParticipantsFilter { public string q; } ///See [TLDef(0xE04B5CEB)] public partial class ChannelParticipantsMentions : ChannelParticipantsFilter { [Flags] public enum Flags { has_q = 0x1, has_top_msg_id = 0x2 } public Flags flags; [IfFlag(0)] public string q; [IfFlag(1)] public int top_msg_id; } ///See public abstract partial class Channels_ChannelParticipantsBase : ITLObject { } ///See [TLDef(0x9AB0FEAF)] public partial class Channels_ChannelParticipants : Channels_ChannelParticipantsBase { public int count; public ChannelParticipantBase[] participants; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xF0173FE9)] public partial class Channels_ChannelParticipantsNotModified : Channels_ChannelParticipantsBase { } ///See [TLDef(0xDFB80317)] public partial class Channels_ChannelParticipant : ITLObject { public ChannelParticipantBase participant; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x780A0310)] public partial class Help_TermsOfService : ITLObject { [Flags] public enum Flags { popup = 0x1, has_min_age_confirm = 0x2 } public Flags flags; public DataJSON id; public string text; public MessageEntity[] entities; [IfFlag(1)] public int min_age_confirm; } ///See public abstract partial class Messages_SavedGifsBase : ITLObject { } ///See [TLDef(0xE8025CA2)] public partial class Messages_SavedGifsNotModified : Messages_SavedGifsBase { } ///See [TLDef(0x84A02A0D)] public partial class Messages_SavedGifs : Messages_SavedGifsBase { public long hash; public DocumentBase[] gifs; } ///See public abstract partial class InputBotInlineMessage : ITLObject { public int flags; } ///See [TLDef(0x3380C786)] public partial class InputBotInlineMessageMediaAuto : InputBotInlineMessage { [Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 } public string message; [IfFlag(1)] public MessageEntity[] entities; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x3DCD7A87)] public partial class InputBotInlineMessageText : InputBotInlineMessage { [Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 } public string message; [IfFlag(1)] public MessageEntity[] entities; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x96929A85)] public partial class InputBotInlineMessageMediaGeo : InputBotInlineMessage { [Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4, has_proximity_notification_radius = 0x8 } public InputGeoPointBase geo_point; [IfFlag(0)] public int heading; [IfFlag(1)] public int period; [IfFlag(3)] public int proximity_notification_radius; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x417BBF11)] public partial class InputBotInlineMessageMediaVenue : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public InputGeoPointBase geo_point; public string title; public string address; public string provider; public string venue_id; public string venue_type; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0xA6EDBFFD)] public partial class InputBotInlineMessageMediaContact : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public string phone_number; public string first_name; public string last_name; public string vcard; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x4B425864)] public partial class InputBotInlineMessageGame : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0xD7E78225)] public partial class InputBotInlineMessageMediaInvoice : InputBotInlineMessage { [Flags] public enum Flags { has_photo = 0x1, has_reply_markup = 0x4 } public string title; public string description; [IfFlag(0)] public InputWebDocument photo; public Invoice invoice; public byte[] payload; public string provider; public DataJSON provider_data; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See public abstract partial class InputBotInlineResultBase : ITLObject { } ///See [TLDef(0x88BF9319)] public partial class InputBotInlineResult : InputBotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 } public Flags flags; public string id; public string type; [IfFlag(1)] public string title; [IfFlag(2)] public string description; [IfFlag(3)] public string url; [IfFlag(4)] public InputWebDocument thumb; [IfFlag(5)] public InputWebDocument content; public InputBotInlineMessage send_message; } ///See [TLDef(0xA8D864A7)] public partial class InputBotInlineResultPhoto : InputBotInlineResultBase { public string id; public string type; public InputPhotoBase photo; public InputBotInlineMessage send_message; } ///See [TLDef(0xFFF8FDC4)] public partial class InputBotInlineResultDocument : InputBotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4 } public Flags flags; public string id; public string type; [IfFlag(1)] public string title; [IfFlag(2)] public string description; public InputDocumentBase document; public InputBotInlineMessage send_message; } ///See [TLDef(0x4FA417F2)] public partial class InputBotInlineResultGame : InputBotInlineResultBase { public string id; public string short_name; public InputBotInlineMessage send_message; } ///See public abstract partial class BotInlineMessage : ITLObject { public int flags; } ///See [TLDef(0x764CF810)] public partial class BotInlineMessageMediaAuto : BotInlineMessage { [Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 } public string message; [IfFlag(1)] public MessageEntity[] entities; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x8C7F65E2)] public partial class BotInlineMessageText : BotInlineMessage { [Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 } public string message; [IfFlag(1)] public MessageEntity[] entities; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x051846FD)] public partial class BotInlineMessageMediaGeo : BotInlineMessage { [Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4, has_proximity_notification_radius = 0x8 } public GeoPointBase geo; [IfFlag(0)] public int heading; [IfFlag(1)] public int period; [IfFlag(3)] public int proximity_notification_radius; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x8A86659C)] public partial class BotInlineMessageMediaVenue : BotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public GeoPointBase geo; public string title; public string address; public string provider; public string venue_id; public string venue_type; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x18D1CDC2)] public partial class BotInlineMessageMediaContact : BotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public string phone_number; public string first_name; public string last_name; public string vcard; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See [TLDef(0x354A9B09)] public partial class BotInlineMessageMediaInvoice : BotInlineMessage { [Flags] public enum Flags { has_photo = 0x1, shipping_address_requested = 0x2, has_reply_markup = 0x4, test = 0x8 } public string title; public string description; [IfFlag(0)] public WebDocumentBase photo; public string currency; public long total_amount; [IfFlag(2)] public ReplyMarkup reply_markup; } ///See public abstract partial class BotInlineResultBase : ITLObject { } ///See [TLDef(0x11965F3A)] public partial class BotInlineResult : BotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 } public Flags flags; public string id; public string type; [IfFlag(1)] public string title; [IfFlag(2)] public string description; [IfFlag(3)] public string url; [IfFlag(4)] public WebDocumentBase thumb; [IfFlag(5)] public WebDocumentBase content; public BotInlineMessage send_message; } ///See [TLDef(0x17DB940B)] public partial class BotInlineMediaResult : BotInlineResultBase { [Flags] public enum Flags { has_photo = 0x1, has_document = 0x2, has_title = 0x4, has_description = 0x8 } public Flags flags; public string id; public string type; [IfFlag(0)] public PhotoBase photo; [IfFlag(1)] public DocumentBase document; [IfFlag(2)] public string title; [IfFlag(3)] public string description; public BotInlineMessage send_message; } ///See [TLDef(0x947CA848)] public partial class Messages_BotResults : ITLObject { [Flags] public enum Flags { gallery = 0x1, has_next_offset = 0x2, has_switch_pm = 0x4 } public Flags flags; public long query_id; [IfFlag(1)] public string next_offset; [IfFlag(2)] public InlineBotSwitchPM switch_pm; public BotInlineResultBase[] results; public DateTime cache_time; public UserBase[] users; } ///See [TLDef(0x5DAB1AF4)] public partial class ExportedMessageLink : ITLObject { public string link; public string html; } ///See [TLDef(0x5F777DCE)] public partial class MessageFwdHeader : ITLObject { [Flags] public enum Flags { has_from_id = 0x1, has_channel_post = 0x4, has_post_author = 0x8, has_saved_from_peer = 0x10, has_from_name = 0x20, has_psa_type = 0x40, imported = 0x80 } public Flags flags; [IfFlag(0)] public Peer from_id; [IfFlag(5)] public string from_name; public DateTime date; [IfFlag(2)] public int channel_post; [IfFlag(3)] public string post_author; [IfFlag(4)] public Peer saved_from_peer; [IfFlag(4)] public int saved_from_msg_id; [IfFlag(6)] public string psa_type; } ///See public enum Auth_CodeType : uint { ///See Sms = 0x72A3158C, ///See Call = 0x741CD3E3, ///See FlashCall = 0x226CCEFB, } ///See public abstract partial class Auth_SentCodeType : ITLObject { } ///See [TLDef(0x3DBB5986)] public partial class Auth_SentCodeTypeApp : Auth_SentCodeType { public int length; } ///See [TLDef(0xC000BBA2)] public partial class Auth_SentCodeTypeSms : Auth_SentCodeType { public int length; } ///See [TLDef(0x5353E5A7)] public partial class Auth_SentCodeTypeCall : Auth_SentCodeType { public int length; } ///See [TLDef(0xAB03C6D9)] public partial class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { public string pattern; } ///See [TLDef(0x36585EA4)] public partial class Messages_BotCallbackAnswer : ITLObject { [Flags] public enum Flags { has_message = 0x1, alert = 0x2, has_url_field = 0x4, has_url = 0x8, native_ui = 0x10 } public Flags flags; [IfFlag(0)] public string message; [IfFlag(2)] public string url; public DateTime cache_time; } ///See [TLDef(0x26B5DDE6)] public partial class Messages_MessageEditData : ITLObject { [Flags] public enum Flags { caption = 0x1 } public Flags flags; } ///See public abstract partial class InputBotInlineMessageIDBase : ITLObject { } ///See [TLDef(0x890C3D89)] public partial class InputBotInlineMessageID : InputBotInlineMessageIDBase { public int dc_id; public long id; public long access_hash; } ///See [TLDef(0xB6D915D7)] public partial class InputBotInlineMessageID64 : InputBotInlineMessageIDBase { public int dc_id; public long owner_id; public int id; public long access_hash; } ///See [TLDef(0x3C20629F)] public partial class InlineBotSwitchPM : ITLObject { public string text; public string start_param; } ///See [TLDef(0x3371C354)] public partial class Messages_PeerDialogs : ITLObject { public DialogBase[] dialogs; public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; public Updates_State state; } ///See [TLDef(0xEDCDC05B)] public partial class TopPeer : ITLObject { public Peer peer; public double rating; } ///See public enum TopPeerCategory : uint { ///See BotsPM = 0xAB661B5B, ///See BotsInline = 0x148677E2, ///See Correspondents = 0x0637B7ED, ///See Groups = 0xBD17A14A, ///See Channels = 0x161D9628, ///See PhoneCalls = 0x1E76A78C, ///See ForwardUsers = 0xA8406CA9, ///See ForwardChats = 0xFBEEC0F0, } ///See [TLDef(0xFB834291)] public partial class TopPeerCategoryPeers : ITLObject { public TopPeerCategory category; public int count; public TopPeer[] peers; } ///See public abstract partial class Contacts_TopPeersBase : ITLObject { } ///See [TLDef(0xDE266EF5)] public partial class Contacts_TopPeersNotModified : Contacts_TopPeersBase { } ///See [TLDef(0x70B772A8)] public partial class Contacts_TopPeers : Contacts_TopPeersBase { public TopPeerCategoryPeers[] categories; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xB52C939D)] public partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } ///See public abstract partial class DraftMessageBase : ITLObject { } ///See [TLDef(0x1B0C841A)] public partial class DraftMessageEmpty : DraftMessageBase { [Flags] public enum Flags { has_date = 0x1 } public Flags flags; [IfFlag(0)] public DateTime date; } ///See [TLDef(0xFD8E711F)] public partial class DraftMessage : DraftMessageBase { [Flags] public enum Flags { has_reply_to_msg_id = 0x1, no_webpage = 0x2, has_entities = 0x8 } public Flags flags; [IfFlag(0)] public int reply_to_msg_id; public string message; [IfFlag(3)] public MessageEntity[] entities; public DateTime date; } ///See public abstract partial class Messages_FeaturedStickersBase : ITLObject { } ///See [TLDef(0xC6DC0C66)] public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { public int count; } ///See [TLDef(0x84C02310)] public partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase { public long hash; public int count; public StickerSetCoveredBase[] sets; public long[] unread; } ///See public abstract partial class Messages_RecentStickersBase : ITLObject { } ///See [TLDef(0x0B17F890)] public partial class Messages_RecentStickersNotModified : Messages_RecentStickersBase { } ///See [TLDef(0x88D37C56)] public partial class Messages_RecentStickers : Messages_RecentStickersBase { public long hash; public StickerPack[] packs; public DocumentBase[] stickers; public int[] dates; } ///See [TLDef(0x4FCBA9C8)] public partial class Messages_ArchivedStickers : ITLObject { public int count; public StickerSetCoveredBase[] sets; } ///See public abstract partial class Messages_StickerSetInstallResult : ITLObject { } ///See [TLDef(0x38641628)] public partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } ///See [TLDef(0x35E410A8)] public partial class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { public StickerSetCoveredBase[] sets; } ///See public abstract partial class StickerSetCoveredBase : ITLObject { } ///See [TLDef(0x6410A5D2)] public partial class StickerSetCovered : StickerSetCoveredBase { public StickerSet set; public DocumentBase cover; } ///See [TLDef(0x3407E51B)] public partial class StickerSetMultiCovered : StickerSetCoveredBase { public StickerSet set; public DocumentBase[] covers; } ///See [TLDef(0xAED6DBB2)] public partial class MaskCoords : ITLObject { public int n; public double x; public double y; public double zoom; } ///See public abstract partial class InputStickeredMedia : ITLObject { } ///See [TLDef(0x4A992157)] public partial class InputStickeredMediaPhoto : InputStickeredMedia { public InputPhotoBase id; } ///See [TLDef(0x0438865B)] public partial class InputStickeredMediaDocument : InputStickeredMedia { public InputDocumentBase id; } ///See [TLDef(0xBDF9653B)] public partial class Game : ITLObject { [Flags] public enum Flags { has_document = 0x1 } public Flags flags; public long id; public long access_hash; public string short_name; public string title; public string description; public PhotoBase photo; [IfFlag(0)] public DocumentBase document; } ///See public abstract partial class InputGame : ITLObject { } ///See [TLDef(0x032C3E77)] public partial class InputGameID : InputGame { public long id; public long access_hash; } ///See [TLDef(0xC331E80A)] public partial class InputGameShortName : InputGame { public InputUserBase bot_id; public string short_name; } ///See [TLDef(0x73A379EB)] public partial class HighScore : ITLObject { public int pos; public long user_id; public int score; } ///See [TLDef(0x9A3BFD99)] public partial class Messages_HighScores : ITLObject { public HighScore[] scores; public UserBase[] users; } ///See public abstract partial class RichText : ITLObject { } ///See [TLDef(0xDC3D824F)] public partial class TextEmpty : RichText { } ///See [TLDef(0x744694E0)] public partial class TextPlain : RichText { public string text; } ///See [TLDef(0x6724ABC4)] public partial class TextBold : RichText { public RichText text; } ///See [TLDef(0xD912A59C)] public partial class TextItalic : RichText { public RichText text; } ///See [TLDef(0xC12622C4)] public partial class TextUnderline : RichText { public RichText text; } ///See [TLDef(0x9BF8BB95)] public partial class TextStrike : RichText { public RichText text; } ///See [TLDef(0x6C3F19B9)] public partial class TextFixed : RichText { public RichText text; } ///See [TLDef(0x3C2884C1)] public partial class TextUrl : RichText { public RichText text; public string url; public long webpage_id; } ///See [TLDef(0xDE5A0DD6)] public partial class TextEmail : RichText { public RichText text; public string email; } ///See [TLDef(0x7E6260D7)] public partial class TextConcat : RichText { public RichText[] texts; } ///See [TLDef(0xED6A8504)] public partial class TextSubscript : RichText { public RichText text; } ///See [TLDef(0xC7FB5E01)] public partial class TextSuperscript : RichText { public RichText text; } ///See [TLDef(0x034B8621)] public partial class TextMarked : RichText { public RichText text; } ///See [TLDef(0x1CCB966A)] public partial class TextPhone : RichText { public RichText text; public string phone; } ///See [TLDef(0x081CCF4F)] public partial class TextImage : RichText { public long document_id; public int w; public int h; } ///See [TLDef(0x35553762)] public partial class TextAnchor : RichText { public RichText text; public string name; } ///See public abstract partial class PageBlock : ITLObject { } ///See [TLDef(0x13567E8A)] public partial class PageBlockUnsupported : PageBlock { } ///See [TLDef(0x70ABC3FD)] public partial class PageBlockTitle : PageBlock { public RichText text; } ///See [TLDef(0x8FFA9A1F)] public partial class PageBlockSubtitle : PageBlock { public RichText text; } ///See [TLDef(0xBAAFE5E0)] public partial class PageBlockAuthorDate : PageBlock { public RichText author; public DateTime published_date; } ///See [TLDef(0xBFD064EC)] public partial class PageBlockHeader : PageBlock { public RichText text; } ///See [TLDef(0xF12BB6E1)] public partial class PageBlockSubheader : PageBlock { public RichText text; } ///See [TLDef(0x467A0766)] public partial class PageBlockParagraph : PageBlock { public RichText text; } ///See [TLDef(0xC070D93E)] public partial class PageBlockPreformatted : PageBlock { public RichText text; public string language; } ///See [TLDef(0x48870999)] public partial class PageBlockFooter : PageBlock { public RichText text; } ///See [TLDef(0xDB20B188)] public partial class PageBlockDivider : PageBlock { } ///See [TLDef(0xCE0D37B0)] public partial class PageBlockAnchor : PageBlock { public string name; } ///See [TLDef(0xE4E88011)] public partial class PageBlockList : PageBlock { public PageListItem[] items; } ///See [TLDef(0x263D7C26)] public partial class PageBlockBlockquote : PageBlock { public RichText text; public RichText caption; } ///See [TLDef(0x4F4456D3)] public partial class PageBlockPullquote : PageBlock { public RichText text; public RichText caption; } ///See [TLDef(0x1759C560)] public partial class PageBlockPhoto : PageBlock { [Flags] public enum Flags { has_url = 0x1 } public Flags flags; public long photo_id; public PageCaption caption; [IfFlag(0)] public string url; [IfFlag(0)] public long webpage_id; } ///See [TLDef(0x7C8FE7B6)] public partial class PageBlockVideo : PageBlock { [Flags] public enum Flags { autoplay = 0x1, loop = 0x2 } public Flags flags; public long video_id; public PageCaption caption; } ///See [TLDef(0x39F23300)] public partial class PageBlockCover : PageBlock { public PageBlock cover; } ///See [TLDef(0xA8718DC5)] public partial class PageBlockEmbed : PageBlock { [Flags] public enum Flags { full_width = 0x1, has_url = 0x2, has_html = 0x4, allow_scrolling = 0x8, has_poster_photo_id = 0x10, has_w = 0x20 } public Flags flags; [IfFlag(1)] public string url; [IfFlag(2)] public string html; [IfFlag(4)] public long poster_photo_id; [IfFlag(5)] public int w; [IfFlag(5)] public int h; public PageCaption caption; } ///See [TLDef(0xF259A80B)] public partial class PageBlockEmbedPost : PageBlock { public string url; public long webpage_id; public long author_photo_id; public string author; public DateTime date; public PageBlock[] blocks; public PageCaption caption; } ///See [TLDef(0x65A0FA4D)] public partial class PageBlockCollage : PageBlock { public PageBlock[] items; public PageCaption caption; } ///See [TLDef(0x031F9590)] public partial class PageBlockSlideshow : PageBlock { public PageBlock[] items; public PageCaption caption; } ///See [TLDef(0xEF1751B5)] public partial class PageBlockChannel : PageBlock { public ChatBase channel; } ///See [TLDef(0x804361EA)] public partial class PageBlockAudio : PageBlock { public long audio_id; public PageCaption caption; } ///See [TLDef(0x1E148390)] public partial class PageBlockKicker : PageBlock { public RichText text; } ///See [TLDef(0xBF4DEA82)] public partial class PageBlockTable : PageBlock { [Flags] public enum Flags { bordered = 0x1, striped = 0x2 } public Flags flags; public RichText title; public PageTableRow[] rows; } ///See [TLDef(0x9A8AE1E1)] public partial class PageBlockOrderedList : PageBlock { public PageListOrderedItem[] items; } ///See [TLDef(0x76768BED)] public partial class PageBlockDetails : PageBlock { [Flags] public enum Flags { open = 0x1 } public Flags flags; public PageBlock[] blocks; public RichText title; } ///See [TLDef(0x16115A96)] public partial class PageBlockRelatedArticles : PageBlock { public RichText title; public PageRelatedArticle[] articles; } ///See [TLDef(0xA44F3EF6)] public partial class PageBlockMap : PageBlock { public GeoPointBase geo; public int zoom; public int w; public int h; public PageCaption caption; } ///See public enum PhoneCallDiscardReason : uint { ///See Missed = 0x85E42301, ///See Disconnect = 0xE095C1A0, ///See Hangup = 0x57ADC690, ///See Busy = 0xFAF7E8C9, } ///See [TLDef(0x7D748D04)] public partial class DataJSON : ITLObject { public string data; } ///See [TLDef(0xCB296BF8)] public partial class LabeledPrice : ITLObject { public string label; public long amount; } ///See [TLDef(0x0CD886E0)] public partial class Invoice : ITLObject { [Flags] public enum Flags { test = 0x1, name_requested = 0x2, phone_requested = 0x4, email_requested = 0x8, shipping_address_requested = 0x10, flexible = 0x20, phone_to_provider = 0x40, email_to_provider = 0x80, has_max_tip_amount = 0x100 } public Flags flags; public string currency; public LabeledPrice[] prices; [IfFlag(8)] public long max_tip_amount; [IfFlag(8)] public long[] suggested_tip_amounts; } ///See [TLDef(0xEA02C27E)] public partial class PaymentCharge : ITLObject { public string id; public string provider_charge_id; } ///See [TLDef(0x1E8CAAEB)] public partial class PostAddress : ITLObject { public string street_line1; public string street_line2; public string city; public string state; public string country_iso2; public string post_code; } ///See [TLDef(0x909C3F94)] public partial class PaymentRequestedInfo : ITLObject { [Flags] public enum Flags { has_name = 0x1, has_phone = 0x2, has_email = 0x4, has_shipping_address = 0x8 } public Flags flags; [IfFlag(0)] public string name; [IfFlag(1)] public string phone; [IfFlag(2)] public string email; [IfFlag(3)] public PostAddress shipping_address; } ///See public abstract partial class PaymentSavedCredentials : ITLObject { } ///See [TLDef(0xCDC27A1F)] public partial class PaymentSavedCredentialsCard : PaymentSavedCredentials { public string id; public string title; } ///See public abstract partial class WebDocumentBase : ITLObject { } ///See [TLDef(0x1C570ED1)] public partial class WebDocument : WebDocumentBase { public string url; public long access_hash; public int size; public string mime_type; public DocumentAttribute[] attributes; } ///See [TLDef(0xF9C8BCC6)] public partial class WebDocumentNoProxy : WebDocumentBase { public string url; public int size; public string mime_type; public DocumentAttribute[] attributes; } ///See [TLDef(0x9BED434D)] public partial class InputWebDocument : ITLObject { public string url; public int size; public string mime_type; public DocumentAttribute[] attributes; } ///See public abstract partial class InputWebFileLocationBase : ITLObject { } ///See [TLDef(0xC239D686)] public partial class InputWebFileLocation : InputWebFileLocationBase { public string url; public long access_hash; } ///See [TLDef(0x9F2221C9)] public partial class InputWebFileGeoPointLocation : InputWebFileLocationBase { public InputGeoPointBase geo_point; public long access_hash; public int w; public int h; public int zoom; public int scale; } ///See [TLDef(0x21E753BC)] public partial class Upload_WebFile : ITLObject { public int size; public string mime_type; public Storage_FileType file_type; public int mtime; public byte[] bytes; } ///See [TLDef(0x1694761B)] public partial class Payments_PaymentForm : ITLObject { [Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2, can_save_credentials = 0x4, password_missing = 0x8, has_native_provider = 0x10 } public Flags flags; public long form_id; public long bot_id; public Invoice invoice; public long provider_id; public string url; [IfFlag(4)] public string native_provider; [IfFlag(4)] public DataJSON native_params; [IfFlag(0)] public PaymentRequestedInfo saved_info; [IfFlag(1)] public PaymentSavedCredentials saved_credentials; public UserBase[] users; } ///See [TLDef(0xD1451883)] public partial class Payments_ValidatedRequestedInfo : ITLObject { [Flags] public enum Flags { has_id = 0x1, has_shipping_options = 0x2 } public Flags flags; [IfFlag(0)] public string id; [IfFlag(1)] public ShippingOption[] shipping_options; } ///See public abstract partial class Payments_PaymentResultBase : ITLObject { } ///See [TLDef(0x4E5F810D)] public partial class Payments_PaymentResult : Payments_PaymentResultBase { public UpdatesBase updates; } ///See [TLDef(0xD8411139)] public partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { public string url; } ///See [TLDef(0x70C4FE03)] public partial class Payments_PaymentReceipt : ITLObject { [Flags] public enum Flags { has_info = 0x1, has_shipping = 0x2, has_photo = 0x4, has_tip_amount = 0x8 } public Flags flags; public DateTime date; public long bot_id; public long provider_id; public string title; public string description; [IfFlag(2)] public WebDocumentBase photo; public Invoice invoice; [IfFlag(0)] public PaymentRequestedInfo info; [IfFlag(1)] public ShippingOption shipping; [IfFlag(3)] public long tip_amount; public string currency; public long total_amount; public string credentials_title; public UserBase[] users; } ///See [TLDef(0xFB8FE43C)] public partial class Payments_SavedInfo : ITLObject { [Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2 } public Flags flags; [IfFlag(0)] public PaymentRequestedInfo saved_info; } ///See public abstract partial class InputPaymentCredentialsBase : ITLObject { } ///See [TLDef(0xC10EB2CF)] public partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase { public string id; public byte[] tmp_password; } ///See [TLDef(0x3417D728)] public partial class InputPaymentCredentials : InputPaymentCredentialsBase { [Flags] public enum Flags { save = 0x1 } public Flags flags; public DataJSON data; } ///See [TLDef(0x0AA1C39F)] public partial class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { public DataJSON payment_data; } ///See [TLDef(0x8AC32801)] public partial class InputPaymentCredentialsGooglePay : InputPaymentCredentialsBase { public DataJSON payment_token; } ///See [TLDef(0xDB64FD34)] public partial class Account_TmpPassword : ITLObject { public byte[] tmp_password; public DateTime valid_until; } ///See [TLDef(0xB6213CDF)] public partial class ShippingOption : ITLObject { public string id; public string title; public LabeledPrice[] prices; } ///See [TLDef(0xFFA0A496)] public partial class InputStickerSetItem : ITLObject { [Flags] public enum Flags { has_mask_coords = 0x1 } public Flags flags; public InputDocumentBase document; public string emoji; [IfFlag(0)] public MaskCoords mask_coords; } ///See [TLDef(0x1E36FDED)] public partial class InputPhoneCall : ITLObject { public long id; public long access_hash; } ///See public abstract partial class PhoneCallBase : ITLObject { } ///See [TLDef(0x5366C915)] public partial class PhoneCallEmpty : PhoneCallBase { public long id; } ///See [TLDef(0xC5226F17)] public partial class PhoneCallWaiting : PhoneCallBase { [Flags] public enum Flags { has_receive_date = 0x1, video = 0x40 } public Flags flags; public long id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public PhoneCallProtocol protocol; [IfFlag(0)] public DateTime receive_date; } ///See [TLDef(0x14B0ED0C)] public partial class PhoneCallRequested : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } public Flags flags; public long id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public byte[] g_a_hash; public PhoneCallProtocol protocol; } ///See [TLDef(0x3660C311)] public partial class PhoneCallAccepted : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } public Flags flags; public long id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public byte[] g_b; public PhoneCallProtocol protocol; } ///See [TLDef(0x967F7C67)] public partial class PhoneCall : PhoneCallBase { [Flags] public enum Flags { p2p_allowed = 0x20, video = 0x40 } public Flags flags; public long id; public long access_hash; public DateTime date; public long admin_id; public long participant_id; public byte[] g_a_or_b; public long key_fingerprint; public PhoneCallProtocol protocol; public PhoneConnectionBase[] connections; public DateTime start_date; } ///See [TLDef(0x50CA4DE1)] public partial class PhoneCallDiscarded : PhoneCallBase { [Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, need_rating = 0x4, need_debug = 0x8, video = 0x40 } public Flags flags; public long id; [IfFlag(0)] public PhoneCallDiscardReason reason; [IfFlag(1)] public int duration; } ///See public abstract partial class PhoneConnectionBase : ITLObject { } ///See [TLDef(0x9D4C17C0)] public partial class PhoneConnection : PhoneConnectionBase { public long id; public string ip; public string ipv6; public int port; public byte[] peer_tag; } ///See [TLDef(0x635FE375)] public partial class PhoneConnectionWebrtc : PhoneConnectionBase { [Flags] public enum Flags { turn = 0x1, stun = 0x2 } public Flags flags; public long id; public string ip; public string ipv6; public int port; public string username; public string password; } ///See [TLDef(0xFC878FC8)] public partial class PhoneCallProtocol : ITLObject { [Flags] public enum Flags { udp_p2p = 0x1, udp_reflector = 0x2 } public Flags flags; public int min_layer; public int max_layer; public string[] library_versions; } ///See [TLDef(0xEC82E140)] public partial class Phone_PhoneCall : ITLObject { public PhoneCallBase phone_call; public UserBase[] users; } ///See public abstract partial class Upload_CdnFileBase : ITLObject { } ///See [TLDef(0xEEA8E46E)] public partial class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { public byte[] request_token; } ///See [TLDef(0xA99FCA4F)] public partial class Upload_CdnFile : Upload_CdnFileBase { public byte[] bytes; } ///See [TLDef(0xC982EABA)] public partial class CdnPublicKey : ITLObject { public int dc_id; public string public_key; } ///See [TLDef(0x5725E40A)] public partial class CdnConfig : ITLObject { public CdnPublicKey[] public_keys; } ///See public abstract partial class LangPackStringBase : ITLObject { } ///See [TLDef(0xCAD181F6)] public partial class LangPackString : LangPackStringBase { public string key; public string value; } ///See [TLDef(0x6C47AC9F)] public partial class LangPackStringPluralized : LangPackStringBase { [Flags] public enum Flags { has_zero_value = 0x1, has_one_value = 0x2, has_two_value = 0x4, has_few_value = 0x8, has_many_value = 0x10 } public Flags flags; public string key; [IfFlag(0)] public string zero_value; [IfFlag(1)] public string one_value; [IfFlag(2)] public string two_value; [IfFlag(3)] public string few_value; [IfFlag(4)] public string many_value; public string other_value; } ///See [TLDef(0x2979EEB2)] public partial class LangPackStringDeleted : LangPackStringBase { public string key; } ///See [TLDef(0xF385C1F6)] public partial class LangPackDifference : ITLObject { public string lang_code; public int from_version; public int version; public LangPackStringBase[] strings; } ///See [TLDef(0xEECA5CE3)] public partial class LangPackLanguage : ITLObject { [Flags] public enum Flags { official = 0x1, has_base_lang_code = 0x2, rtl = 0x4, beta = 0x8 } public Flags flags; public string name; public string native_name; public string lang_code; [IfFlag(1)] public string base_lang_code; public string plural_code; public int strings_count; public int translated_count; public string translations_url; } ///See public abstract partial class ChannelAdminLogEventAction : ITLObject { } ///See [TLDef(0xE6DFB825)] public partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction { public string prev_value; public string new_value; } ///See [TLDef(0x55188A2E)] public partial class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction { public string prev_value; public string new_value; } ///See [TLDef(0x6A4AFC38)] public partial class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction { public string prev_value; public string new_value; } ///See [TLDef(0x434BD2AF)] public partial class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction { public PhotoBase prev_photo; public PhotoBase new_photo; } ///See [TLDef(0x1B7907AE)] public partial class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { public bool new_value; } ///See [TLDef(0x26AE0971)] public partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { public bool new_value; } ///See [TLDef(0xE9E82C18)] public partial class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { public MessageBase message; } ///See [TLDef(0x709B2405)] public partial class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction { public MessageBase prev_message; public MessageBase new_message; } ///See [TLDef(0x42E047BB)] public partial class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction { public MessageBase message; } ///See [TLDef(0x183040D3)] public partial class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } ///See [TLDef(0xF89777F2)] public partial class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } ///See [TLDef(0xE31C34D8)] public partial class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { public ChannelParticipantBase participant; } ///See [TLDef(0xE6D83D7E)] public partial class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction { public ChannelParticipantBase prev_participant; public ChannelParticipantBase new_participant; } ///See [TLDef(0xD5676710)] public partial class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction { public ChannelParticipantBase prev_participant; public ChannelParticipantBase new_participant; } ///See [TLDef(0xB1C3CAA7)] public partial class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction { public InputStickerSet prev_stickerset; public InputStickerSet new_stickerset; } ///See [TLDef(0x5F5C95F1)] public partial class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { public bool new_value; } ///See [TLDef(0x2DF5FC0A)] public partial class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction { public ChatBannedRights prev_banned_rights; public ChatBannedRights new_banned_rights; } ///See [TLDef(0x8F079643)] public partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { public MessageBase message; } ///See [TLDef(0x050C7AC8)] public partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction { public long prev_value; public long new_value; } ///See [TLDef(0x0E6B76AE)] public partial class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction { public ChannelLocationBase prev_value; public ChannelLocationBase new_value; } ///See [TLDef(0x53909779)] public partial class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction { public int prev_value; public int new_value; } ///See [TLDef(0x23209745)] public partial class ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventAction { public InputGroupCall call; } ///See [TLDef(0xDB9F9140)] public partial class ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventAction { public InputGroupCall call; } ///See [TLDef(0xF92424D2)] public partial class ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventAction { public GroupCallParticipant participant; } ///See [TLDef(0xE64429C0)] public partial class ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventAction { public GroupCallParticipant participant; } ///See [TLDef(0x56D6A247)] public partial class ChannelAdminLogEventActionToggleGroupCallSetting : ChannelAdminLogEventAction { public bool join_muted; } ///See [TLDef(0x5CDADA77)] public partial class ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventAction { public ExportedChatInvite invite; } ///See [TLDef(0x5A50FCA4)] public partial class ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventAction { public ExportedChatInvite invite; } ///See [TLDef(0x410A134E)] public partial class ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventAction { public ExportedChatInvite invite; } ///See [TLDef(0xE90EBB59)] public partial class ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventAction { public ExportedChatInvite prev_invite; public ExportedChatInvite new_invite; } ///See [TLDef(0x3E7F6847)] public partial class ChannelAdminLogEventActionParticipantVolume : ChannelAdminLogEventAction { public GroupCallParticipant participant; } ///See [TLDef(0x6E941A38)] public partial class ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventAction { public int prev_value; public int new_value; } ///See [TLDef(0xFE69018D)] public partial class ChannelAdminLogEventActionChangeTheme : ChannelAdminLogEventAction { public string prev_value; public string new_value; } ///See [TLDef(0x1FAD68CD)] public partial class ChannelAdminLogEvent : ITLObject { public long id; public DateTime date; public long user_id; public ChannelAdminLogEventAction action; } ///See [TLDef(0xED8AF74D)] public partial class Channels_AdminLogResults : ITLObject { public ChannelAdminLogEvent[] events; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xEA107AE4)] public partial class ChannelAdminLogEventsFilter : ITLObject { [Flags] public enum Flags { join = 0x1, leave = 0x2, invite = 0x4, ban = 0x8, unban = 0x10, kick = 0x20, unkick = 0x40, promote = 0x80, demote = 0x100, info = 0x200, settings = 0x400, pinned = 0x800, edit = 0x1000, delete = 0x2000, group_call = 0x4000, invites = 0x8000 } public Flags flags; } ///See [TLDef(0x5CE14175)] public partial class PopularContact : ITLObject { public long client_id; public int importers; } ///See public abstract partial class Messages_FavedStickersBase : ITLObject { } ///See [TLDef(0x9E8FA6D3)] public partial class Messages_FavedStickersNotModified : Messages_FavedStickersBase { } ///See [TLDef(0x2CB51097)] public partial class Messages_FavedStickers : Messages_FavedStickersBase { public long hash; public StickerPack[] packs; public DocumentBase[] stickers; } ///See public abstract partial class RecentMeUrl : ITLObject { public string url; } ///See [TLDef(0x46E1D13D)] public partial class RecentMeUrlUnknown : RecentMeUrl { } ///See [TLDef(0xB92C09E2)] public partial class RecentMeUrlUser : RecentMeUrl { public long user_id; } ///See [TLDef(0xB2DA71D2)] public partial class RecentMeUrlChat : RecentMeUrl { public long chat_id; } ///See [TLDef(0xEB49081D)] public partial class RecentMeUrlChatInvite : RecentMeUrl { public ChatInviteBase chat_invite; } ///See [TLDef(0xBC0A57DC)] public partial class RecentMeUrlStickerSet : RecentMeUrl { public StickerSetCoveredBase set; } ///See [TLDef(0x0E0310D7)] public partial class Help_RecentMeUrls : ITLObject { public RecentMeUrl[] urls; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x1CC6E91F)] public partial class InputSingleMedia : ITLObject { [Flags] public enum Flags { has_entities = 0x1 } public Flags flags; public InputMedia media; public long random_id; public string message; [IfFlag(0)] public MessageEntity[] entities; } ///See [TLDef(0xA6F8F452)] public partial class WebAuthorization : ITLObject { public long hash; public long bot_id; public string domain; public string browser; public string platform; public int date_created; public int date_active; public string ip; public string region; } ///See [TLDef(0xED56C9FC)] public partial class Account_WebAuthorizations : ITLObject { public WebAuthorization[] authorizations; public UserBase[] users; } ///See public abstract partial class InputMessage : ITLObject { } ///See [TLDef(0xA676A322)] public partial class InputMessageID : InputMessage { public int id; } ///See [TLDef(0xBAD88395)] public partial class InputMessageReplyTo : InputMessage { public int id; } ///See [TLDef(0x86872538)] public partial class InputMessagePinned : InputMessage { } ///See [TLDef(0xACFA1A7E)] public partial class InputMessageCallbackQuery : InputMessage { public int id; public long query_id; } ///See public abstract partial class InputDialogPeerBase : ITLObject { } ///See [TLDef(0xFCAAFEB7)] public partial class InputDialogPeer : InputDialogPeerBase { public InputPeer peer; } ///See [TLDef(0x64600527)] public partial class InputDialogPeerFolder : InputDialogPeerBase { public int folder_id; } ///See public abstract partial class DialogPeerBase : ITLObject { } ///See [TLDef(0xE56DBF05)] public partial class DialogPeer : DialogPeerBase { public Peer peer; } ///See [TLDef(0x514519E2)] public partial class DialogPeerFolder : DialogPeerBase { public int folder_id; } ///See public abstract partial class Messages_FoundStickerSetsBase : ITLObject { } ///See [TLDef(0x0D54B65D)] public partial class Messages_FoundStickerSetsNotModified : Messages_FoundStickerSetsBase { } ///See [TLDef(0x8AF09DD2)] public partial class Messages_FoundStickerSets : Messages_FoundStickerSetsBase { public long hash; public StickerSetCoveredBase[] sets; } ///See [TLDef(0x6242C773)] public partial class FileHash : ITLObject { public int offset; public int limit; public byte[] hash; } ///See [TLDef(0x75588B3F)] public partial class InputClientProxy : ITLObject { public string address; public int port; } ///See public abstract partial class Help_TermsOfServiceUpdateBase : ITLObject { } ///See [TLDef(0xE3309F7F)] public partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase { public DateTime expires; } ///See [TLDef(0x28ECF961)] public partial class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase { public DateTime expires; public Help_TermsOfService terms_of_service; } ///See public abstract partial class InputSecureFileBase : ITLObject { } ///See [TLDef(0x3334B0F0)] public partial class InputSecureFileUploaded : InputSecureFileBase { public long id; public int parts; public byte[] md5_checksum; public byte[] file_hash; public byte[] secret; } ///See [TLDef(0x5367E5BE)] public partial class InputSecureFile : InputSecureFileBase { public long id; public long access_hash; } ///See public abstract partial class SecureFileBase : ITLObject { } ///See [TLDef(0x64199744)] public partial class SecureFileEmpty : SecureFileBase { } ///See [TLDef(0xE0277A62)] public partial class SecureFile : SecureFileBase { public long id; public long access_hash; public int size; public int dc_id; public DateTime date; public byte[] file_hash; public byte[] secret; } ///See [TLDef(0x8AEABEC3)] public partial class SecureData : ITLObject { public byte[] data; public byte[] data_hash; public byte[] secret; } ///See public abstract partial class SecurePlainData : ITLObject { } ///See [TLDef(0x7D6099DD)] public partial class SecurePlainPhone : SecurePlainData { public string phone; } ///See [TLDef(0x21EC5A5F)] public partial class SecurePlainEmail : SecurePlainData { public string email; } ///See public enum SecureValueType : uint { ///See PersonalDetails = 0x9D2A81E3, ///See Passport = 0x3DAC6A00, ///See DriverLicense = 0x06E425C4, ///See IdentityCard = 0xA0D0744B, ///See InternalPassport = 0x99A48F23, ///See Address = 0xCBE31E26, ///See UtilityBill = 0xFC36954E, ///See BankStatement = 0x89137C0D, ///See RentalAgreement = 0x8B883488, ///See PassportRegistration = 0x99E3806A, ///See TemporaryRegistration = 0xEA02EC33, ///See Phone = 0xB320AADB, ///See Email = 0x8E3CA7EE, } ///See [TLDef(0x187FA0CA)] public partial class SecureValue : ITLObject { [Flags] public enum Flags { has_data = 0x1, has_front_side = 0x2, has_reverse_side = 0x4, has_selfie = 0x8, has_files = 0x10, has_plain_data = 0x20, has_translation = 0x40 } public Flags flags; public SecureValueType type; [IfFlag(0)] public SecureData data; [IfFlag(1)] public SecureFileBase front_side; [IfFlag(2)] public SecureFileBase reverse_side; [IfFlag(3)] public SecureFileBase selfie; [IfFlag(6)] public SecureFileBase[] translation; [IfFlag(4)] public SecureFileBase[] files; [IfFlag(5)] public SecurePlainData plain_data; public byte[] hash; } ///See [TLDef(0xDB21D0A7)] public partial class InputSecureValue : ITLObject { [Flags] public enum Flags { has_data = 0x1, has_front_side = 0x2, has_reverse_side = 0x4, has_selfie = 0x8, has_files = 0x10, has_plain_data = 0x20, has_translation = 0x40 } public Flags flags; public SecureValueType type; [IfFlag(0)] public SecureData data; [IfFlag(1)] public InputSecureFileBase front_side; [IfFlag(2)] public InputSecureFileBase reverse_side; [IfFlag(3)] public InputSecureFileBase selfie; [IfFlag(6)] public InputSecureFileBase[] translation; [IfFlag(4)] public InputSecureFileBase[] files; [IfFlag(5)] public SecurePlainData plain_data; } ///See [TLDef(0xED1ECDB0)] public partial class SecureValueHash : ITLObject { public SecureValueType type; public byte[] hash; } ///See public abstract partial class SecureValueErrorBase : ITLObject { } ///See [TLDef(0xE8A40BD9)] public partial class SecureValueErrorData : SecureValueErrorBase { public SecureValueType type; public byte[] data_hash; public string field; public string text; } ///See [TLDef(0x00BE3DFA)] public partial class SecureValueErrorFrontSide : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } ///See [TLDef(0x868A2AA5)] public partial class SecureValueErrorReverseSide : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } ///See [TLDef(0xE537CED6)] public partial class SecureValueErrorSelfie : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } ///See [TLDef(0x7A700873)] public partial class SecureValueErrorFile : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } ///See [TLDef(0x666220E9)] public partial class SecureValueErrorFiles : SecureValueErrorBase { public SecureValueType type; public byte[][] file_hash; public string text; } ///See [TLDef(0x869D758F)] public partial class SecureValueError : SecureValueErrorBase { public SecureValueType type; public byte[] hash; public string text; } ///See [TLDef(0xA1144770)] public partial class SecureValueErrorTranslationFile : SecureValueErrorFile { } ///See [TLDef(0x34636DD8)] public partial class SecureValueErrorTranslationFiles : SecureValueErrorFiles { } ///See [TLDef(0x33F0EA47)] public partial class SecureCredentialsEncrypted : ITLObject { public byte[] data; public byte[] hash; public byte[] secret; } ///See [TLDef(0xAD2E1CD8)] public partial class Account_AuthorizationForm : ITLObject { [Flags] public enum Flags { has_privacy_policy_url = 0x1 } public Flags flags; public SecureRequiredTypeBase[] required_types; public SecureValue[] values; public SecureValueErrorBase[] errors; public UserBase[] users; [IfFlag(0)] public string privacy_policy_url; } ///See [TLDef(0x811F854F)] public partial class Account_SentEmailCode : ITLObject { public string email_pattern; public int length; } ///See public abstract partial class Help_DeepLinkInfoBase : ITLObject { } ///See [TLDef(0x66AFA166)] public partial class Help_DeepLinkInfoEmpty : Help_DeepLinkInfoBase { } ///See [TLDef(0x6A4EE832)] public partial class Help_DeepLinkInfo : Help_DeepLinkInfoBase { [Flags] public enum Flags { update_app = 0x1, has_entities = 0x2 } public Flags flags; public string message; [IfFlag(1)] public MessageEntity[] entities; } ///See public abstract partial class SavedContact : ITLObject { } ///See [TLDef(0x1142BD56)] public partial class SavedPhoneContact : SavedContact { public string phone; public string first_name; public string last_name; public DateTime date; } ///See [TLDef(0x4DBA4501)] public partial class Account_Takeout : ITLObject { public long id; } ///See public abstract partial class PasswordKdfAlgo : ITLObject { } ///See [TLDef(0xD45AB096)] public partial class PasswordKdfAlgoUnknown : PasswordKdfAlgo { } ///See [TLDef(0x3A912D4A)] public partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo { public byte[] salt1; public byte[] salt2; public int g; public byte[] p; } ///See public abstract partial class SecurePasswordKdfAlgo : ITLObject { } ///See [TLDef(0x004A8537)] public partial class SecurePasswordKdfAlgoUnknown : SecurePasswordKdfAlgo { } ///See [TLDef(0xBBF2DDA0)] public partial class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { public byte[] salt; } ///See [TLDef(0x86471D92)] public partial class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { public byte[] salt; } ///See [TLDef(0x1527BCAC)] public partial class SecureSecretSettings : ITLObject { public SecurePasswordKdfAlgo secure_algo; public byte[] secure_secret; public long secure_secret_id; } ///See public abstract partial class InputCheckPasswordSRPBase : ITLObject { } ///See [TLDef(0x9880F658)] public partial class InputCheckPasswordEmpty : InputCheckPasswordSRPBase { } ///See [TLDef(0xD27FF082)] public partial class InputCheckPasswordSRP : InputCheckPasswordSRPBase { public long srp_id; public byte[] A; public byte[] M1; } ///See public abstract partial class SecureRequiredTypeBase : ITLObject { } ///See [TLDef(0x829D99DA)] public partial class SecureRequiredType : SecureRequiredTypeBase { [Flags] public enum Flags { native_names = 0x1, selfie_required = 0x2, translation_required = 0x4 } public Flags flags; public SecureValueType type; } ///See [TLDef(0x027477B4)] public partial class SecureRequiredTypeOneOf : SecureRequiredTypeBase { public SecureRequiredTypeBase[] types; } ///See public abstract partial class Help_PassportConfigBase : ITLObject { } ///See [TLDef(0xBFB9F457)] public partial class Help_PassportConfigNotModified : Help_PassportConfigBase { } ///See [TLDef(0xA098D6AF)] public partial class Help_PassportConfig : Help_PassportConfigBase { public int hash; public DataJSON countries_langs; } ///See [TLDef(0x1D1B1245)] public partial class InputAppEvent : ITLObject { public double time; public string type; public long peer; public JSONValue data; } ///See public abstract partial class JSONObjectValue : ITLObject { } ///See [TLDef(0xC0DE1BD9)] public partial class JsonObjectValue : JSONObjectValue { public string key; public JSONValue value; } ///See public abstract partial class JSONValue : ITLObject { } ///See [TLDef(0x3F6D7B68)] public partial class JsonNull : JSONValue { } ///See [TLDef(0xC7345E6A)] public partial class JsonBool : JSONValue { public bool value; } ///See [TLDef(0x2BE0DFA4)] public partial class JsonNumber : JSONValue { public double value; } ///See [TLDef(0xB71E767A)] public partial class JsonString : JSONValue { public string value; } ///See [TLDef(0xF7444763)] public partial class JsonArray : JSONValue { public JSONValue[] value; } ///See [TLDef(0x99C1D49D)] public partial class JsonObject : JSONValue { public JSONObjectValue[] value; } ///See [TLDef(0x34566B6A)] public partial class PageTableCell : ITLObject { [Flags] public enum Flags { header = 0x1, has_colspan = 0x2, has_rowspan = 0x4, align_center = 0x8, align_right = 0x10, valign_middle = 0x20, valign_bottom = 0x40, has_text = 0x80 } public Flags flags; [IfFlag(7)] public RichText text; [IfFlag(1)] public int colspan; [IfFlag(2)] public int rowspan; } ///See [TLDef(0xE0C0C5E5)] public partial class PageTableRow : ITLObject { public PageTableCell[] cells; } ///See [TLDef(0x6F747657)] public partial class PageCaption : ITLObject { public RichText text; public RichText credit; } ///See public abstract partial class PageListItem : ITLObject { } ///See [TLDef(0xB92FB6CD)] public partial class PageListItemText : PageListItem { public RichText text; } ///See [TLDef(0x25E073FC)] public partial class PageListItemBlocks : PageListItem { public PageBlock[] blocks; } ///See public abstract partial class PageListOrderedItem : ITLObject { public string num; } ///See [TLDef(0x5E068047)] public partial class PageListOrderedItemText : PageListOrderedItem { public RichText text; } ///See [TLDef(0x98DD8936)] public partial class PageListOrderedItemBlocks : PageListOrderedItem { public PageBlock[] blocks; } ///See [TLDef(0xB390DC08)] public partial class PageRelatedArticle : ITLObject { [Flags] public enum Flags { has_title = 0x1, has_description = 0x2, has_photo_id = 0x4, has_author = 0x8, has_published_date = 0x10 } public Flags flags; public string url; public long webpage_id; [IfFlag(0)] public string title; [IfFlag(1)] public string description; [IfFlag(2)] public long photo_id; [IfFlag(3)] public string author; [IfFlag(4)] public DateTime published_date; } ///See [TLDef(0x98657F0D)] public partial class Page : ITLObject { [Flags] public enum Flags { part = 0x1, rtl = 0x2, v2 = 0x4, has_views = 0x8 } public Flags flags; public string url; public PageBlock[] blocks; public PhotoBase[] photos; public DocumentBase[] documents; [IfFlag(3)] public int views; } ///See [TLDef(0x8C05F1C9)] public partial class Help_SupportName : ITLObject { public string name; } ///See public abstract partial class Help_UserInfoBase : ITLObject { } ///See [TLDef(0xF3AE2EED)] public partial class Help_UserInfoEmpty : Help_UserInfoBase { } ///See [TLDef(0x01EB3758)] public partial class Help_UserInfo : Help_UserInfoBase { public string message; public MessageEntity[] entities; public string author; public DateTime date; } ///See [TLDef(0x6CA9C2E9)] public partial class PollAnswer : ITLObject { public string text; public byte[] option; } ///See [TLDef(0x86E18161)] public partial class Poll : ITLObject { [Flags] public enum Flags { closed = 0x1, public_voters = 0x2, multiple_choice = 0x4, quiz = 0x8, has_close_period = 0x10, has_close_date = 0x20 } public long id; public Flags flags; public string question; public PollAnswer[] answers; [IfFlag(4)] public int close_period; [IfFlag(5)] public DateTime close_date; } ///See [TLDef(0x3B6DDAD2)] public partial class PollAnswerVoters : ITLObject { [Flags] public enum Flags { chosen = 0x1, correct = 0x2 } public Flags flags; public byte[] option; public int voters; } ///See [TLDef(0xDCB82EA3)] public partial class PollResults : ITLObject { [Flags] public enum Flags { min = 0x1, has_results = 0x2, has_total_voters = 0x4, has_recent_voters = 0x8, has_solution = 0x10 } public Flags flags; [IfFlag(1)] public PollAnswerVoters[] results; [IfFlag(2)] public int total_voters; [IfFlag(3)] public long[] recent_voters; [IfFlag(4)] public string solution; [IfFlag(4)] public MessageEntity[] solution_entities; } ///See [TLDef(0xF041E250)] public partial class ChatOnlines : ITLObject { public int onlines; } ///See [TLDef(0x47A971E0)] public partial class StatsURL : ITLObject { public string url; } ///See [TLDef(0x5FB224D5)] public partial class ChatAdminRights : ITLObject { [Flags] public enum Flags { change_info = 0x1, post_messages = 0x2, edit_messages = 0x4, delete_messages = 0x8, ban_users = 0x10, invite_users = 0x20, pin_messages = 0x80, add_admins = 0x200, anonymous = 0x400, manage_call = 0x800, other = 0x1000 } public Flags flags; } ///See [TLDef(0x9F120418)] public partial class ChatBannedRights : ITLObject { [Flags] public enum Flags { view_messages = 0x1, send_messages = 0x2, send_media = 0x4, send_stickers = 0x8, send_gifs = 0x10, send_games = 0x20, send_inline = 0x40, embed_links = 0x80, send_polls = 0x100, change_info = 0x400, invite_users = 0x8000, pin_messages = 0x20000 } public Flags flags; public DateTime until_date; } ///See public abstract partial class InputWallPaperBase : ITLObject { } ///See [TLDef(0xE630B979)] public partial class InputWallPaper : InputWallPaperBase { public long id; public long access_hash; } ///See [TLDef(0x72091C80)] public partial class InputWallPaperSlug : InputWallPaperBase { public string slug; } ///See [TLDef(0x967A462E)] public partial class InputWallPaperNoFile : InputWallPaperBase { public long id; } ///See public abstract partial class Account_WallPapersBase : ITLObject { } ///See [TLDef(0x1C199183)] public partial class Account_WallPapersNotModified : Account_WallPapersBase { } ///See [TLDef(0xCDC3858C)] public partial class Account_WallPapers : Account_WallPapersBase { public long hash; public WallPaperBase[] wallpapers; } ///See [TLDef(0xDEBEBE83)] public partial class CodeSettings : ITLObject { [Flags] public enum Flags { allow_flashcall = 0x1, current_number = 0x2, allow_app_hash = 0x10 } public Flags flags; } ///See [TLDef(0x1DC1BCA4)] public partial class WallPaperSettings : ITLObject { [Flags] public enum Flags { has_background_color = 0x1, blur = 0x2, motion = 0x4, has_intensity = 0x8, has_second_background_color = 0x10, has_third_background_color = 0x20, has_fourth_background_color = 0x40 } public Flags flags; [IfFlag(0)] public int background_color; [IfFlag(4)] public int second_background_color; [IfFlag(5)] public int third_background_color; [IfFlag(6)] public int fourth_background_color; [IfFlag(3)] public int intensity; [IfFlag(4)] public int rotation; } ///See [TLDef(0xE04232F3)] public partial class AutoDownloadSettings : ITLObject { [Flags] public enum Flags { disabled = 0x1, video_preload_large = 0x2, audio_preload_next = 0x4, phonecalls_less_data = 0x8 } public Flags flags; public int photo_size_max; public int video_size_max; public int file_size_max; public int video_upload_maxbitrate; } ///See [TLDef(0x63CACF26)] public partial class Account_AutoDownloadSettings : ITLObject { public AutoDownloadSettings low; public AutoDownloadSettings medium; public AutoDownloadSettings high; } ///See [TLDef(0xD5B3B9F9)] public partial class EmojiKeyword : ITLObject { public string keyword; public string[] emoticons; } ///See [TLDef(0x236DF622)] public partial class EmojiKeywordDeleted : EmojiKeyword { } ///See [TLDef(0x5CC761BD)] public partial class EmojiKeywordsDifference : ITLObject { public string lang_code; public int from_version; public int version; public EmojiKeyword[] keywords; } ///See [TLDef(0xA575739D)] public partial class EmojiURL : ITLObject { public string url; } ///See [TLDef(0xB3FB5361)] public partial class EmojiLanguage : ITLObject { public string lang_code; } ///See [TLDef(0xFF544E65)] public partial class Folder : ITLObject { [Flags] public enum Flags { autofill_new_broadcasts = 0x1, autofill_public_groups = 0x2, autofill_new_correspondents = 0x4, has_photo = 0x8 } public Flags flags; public int id; public string title; [IfFlag(3)] public ChatPhotoBase photo; } ///See [TLDef(0xFBD2C296)] public partial class InputFolderPeer : ITLObject { public InputPeer peer; public int folder_id; } ///See [TLDef(0xE9BAA668)] public partial class FolderPeer : ITLObject { public Peer peer; public int folder_id; } ///See [TLDef(0xE844EBFF)] public partial class Messages_SearchCounter : ITLObject { [Flags] public enum Flags { inexact = 0x2 } public Flags flags; public MessagesFilter filter; public int count; } ///See public abstract partial class UrlAuthResult : ITLObject { } ///See [TLDef(0x92D33A0E)] public partial class UrlAuthResultRequest : UrlAuthResult { [Flags] public enum Flags { request_write_access = 0x1 } public Flags flags; public UserBase bot; public string domain; } ///See [TLDef(0x8F8C0E4E)] public partial class UrlAuthResultAccepted : UrlAuthResult { public string url; } ///See [TLDef(0xA9D6DB1F)] public partial class UrlAuthResultDefault : UrlAuthResult { } ///See public abstract partial class ChannelLocationBase : ITLObject { } ///See [TLDef(0xBFB5AD8B)] public partial class ChannelLocationEmpty : ChannelLocationBase { } ///See [TLDef(0x209B82DB)] public partial class ChannelLocation : ChannelLocationBase { public GeoPointBase geo_point; public string address; } ///See public abstract partial class PeerLocatedBase : ITLObject { } ///See [TLDef(0xCA461B5D)] public partial class PeerLocated : PeerLocatedBase { public Peer peer; public DateTime expires; public int distance; } ///See [TLDef(0xF8EC284B)] public partial class PeerSelfLocated : PeerLocatedBase { public DateTime expires; } ///See [TLDef(0xD072ACB4)] public partial class RestrictionReason : ITLObject { public string platform; public string reason; public string text; } ///See public abstract partial class InputThemeBase : ITLObject { } ///See [TLDef(0x3C5693E9)] public partial class InputTheme : InputThemeBase { public long id; public long access_hash; } ///See [TLDef(0xF5890DF1)] public partial class InputThemeSlug : InputThemeBase { public string slug; } ///See [TLDef(0xE802B8DC)] public partial class Theme : ITLObject { [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_document = 0x4, has_settings = 0x8, has_installs_count = 0x10, for_chat = 0x20 } public Flags flags; public long id; public long access_hash; public string slug; public string title; [IfFlag(2)] public DocumentBase document; [IfFlag(3)] public ThemeSettings settings; [IfFlag(4)] public int installs_count; } ///See public abstract partial class Account_ThemesBase : ITLObject { } ///See [TLDef(0xF41EB622)] public partial class Account_ThemesNotModified : Account_ThemesBase { } ///See [TLDef(0x9A3D8C6D)] public partial class Account_Themes : Account_ThemesBase { public long hash; public Theme[] themes; } ///See public abstract partial class Auth_LoginTokenBase : ITLObject { } ///See [TLDef(0x629F1980)] public partial class Auth_LoginToken : Auth_LoginTokenBase { public DateTime expires; public byte[] token; } ///See [TLDef(0x068E9916)] public partial class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase { public int dc_id; public byte[] token; } ///See [TLDef(0x390D5C5E)] public partial class Auth_LoginTokenSuccess : Auth_LoginTokenBase { public Auth_AuthorizationBase authorization; } ///See [TLDef(0x57E28221)] public partial class Account_ContentSettings : ITLObject { [Flags] public enum Flags { sensitive_enabled = 0x1, sensitive_can_change = 0x2 } public Flags flags; } ///See [TLDef(0xA927FEC5)] public partial class Messages_InactiveChats : ITLObject { public int[] dates; public ChatBase[] chats; public UserBase[] users; } ///See public enum BaseTheme : uint { ///See Classic = 0xC3A12462, ///See Day = 0xFBD81688, ///See Night = 0xB7B31EA8, ///See Tinted = 0x6D5F77EE, ///See Arctic = 0x5B11125A, } ///See [TLDef(0x8FDE504F)] public partial class InputThemeSettings : ITLObject { [Flags] public enum Flags { has_message_colors = 0x1, has_wallpaper = 0x2, message_colors_animated = 0x4, has_outbox_accent_color = 0x8 } public Flags flags; public BaseTheme base_theme; public int accent_color; [IfFlag(3)] public int outbox_accent_color; [IfFlag(0)] public int[] message_colors; [IfFlag(1)] public InputWallPaperBase wallpaper; [IfFlag(1)] public WallPaperSettings wallpaper_settings; } ///See [TLDef(0xFA58B6D4)] public partial class ThemeSettings : ITLObject { [Flags] public enum Flags { has_message_colors = 0x1, has_wallpaper = 0x2, message_colors_animated = 0x4, has_outbox_accent_color = 0x8 } public Flags flags; public BaseTheme base_theme; public int accent_color; [IfFlag(3)] public int outbox_accent_color; [IfFlag(0)] public int[] message_colors; [IfFlag(1)] public WallPaperBase wallpaper; } ///See public abstract partial class WebPageAttribute : ITLObject { } ///See [TLDef(0x54B56617)] public partial class WebPageAttributeTheme : WebPageAttribute { [Flags] public enum Flags { has_documents = 0x1, has_settings = 0x2 } public Flags flags; [IfFlag(0)] public DocumentBase[] documents; [IfFlag(1)] public ThemeSettings settings; } ///See public abstract partial class MessageUserVoteBase : ITLObject { } ///See [TLDef(0x34D247B4)] public partial class MessageUserVote : MessageUserVoteBase { public long user_id; public byte[] option; public DateTime date; } ///See [TLDef(0x3CA5B0EC)] public partial class MessageUserVoteInputOption : MessageUserVoteBase { public long user_id; public DateTime date; } ///See [TLDef(0x8A65E557)] public partial class MessageUserVoteMultiple : MessageUserVoteBase { public long user_id; public byte[][] options; public DateTime date; } ///See [TLDef(0x0823F649)] public partial class Messages_VotesList : ITLObject { [Flags] public enum Flags { has_next_offset = 0x1 } public Flags flags; public int count; public MessageUserVoteBase[] votes; public UserBase[] users; [IfFlag(0)] public string next_offset; } ///See [TLDef(0xF568028A)] public partial class BankCardOpenUrl : ITLObject { public string url; public string name; } ///See [TLDef(0x3E24E573)] public partial class Payments_BankCardData : ITLObject { public string title; public BankCardOpenUrl[] open_urls; } ///See [TLDef(0x7438F7E8)] public partial class DialogFilter : ITLObject { [Flags] public enum Flags { contacts = 0x1, non_contacts = 0x2, groups = 0x4, broadcasts = 0x8, bots = 0x10, exclude_muted = 0x800, exclude_read = 0x1000, exclude_archived = 0x2000, has_emoticon = 0x2000000 } public Flags flags; public int id; public string title; [IfFlag(25)] public string emoticon; public InputPeer[] pinned_peers; public InputPeer[] include_peers; public InputPeer[] exclude_peers; } ///See [TLDef(0x77744D4A)] public partial class DialogFilterSuggested : ITLObject { public DialogFilter filter; public string description; } ///See [TLDef(0xB637EDAF)] public partial class StatsDateRangeDays : ITLObject { public DateTime min_date; public DateTime max_date; } ///See [TLDef(0xCB43ACDE)] public partial class StatsAbsValueAndPrev : ITLObject { public double current; public double previous; } ///See [TLDef(0xCBCE2FE0)] public partial class StatsPercentValue : ITLObject { public double part; public double total; } ///See public abstract partial class StatsGraphBase : ITLObject { } ///See [TLDef(0x4A27EB2D)] public partial class StatsGraphAsync : StatsGraphBase { public string token; } ///See [TLDef(0xBEDC9822)] public partial class StatsGraphError : StatsGraphBase { public string error; } ///See [TLDef(0x8EA464B6)] public partial class StatsGraph : StatsGraphBase { [Flags] public enum Flags { has_zoom_token = 0x1 } public Flags flags; public DataJSON json; [IfFlag(0)] public string zoom_token; } ///See [TLDef(0xAD4FC9BD)] public partial class MessageInteractionCounters : ITLObject { public int msg_id; public int views; public int forwards; } ///See [TLDef(0xBDF78394)] public partial class Stats_BroadcastStats : ITLObject { public StatsDateRangeDays period; public StatsAbsValueAndPrev followers; public StatsAbsValueAndPrev views_per_post; public StatsAbsValueAndPrev shares_per_post; public StatsPercentValue enabled_notifications; public StatsGraphBase growth_graph; public StatsGraphBase followers_graph; public StatsGraphBase mute_graph; public StatsGraphBase top_hours_graph; public StatsGraphBase interactions_graph; public StatsGraphBase iv_interactions_graph; public StatsGraphBase views_by_source_graph; public StatsGraphBase new_followers_by_source_graph; public StatsGraphBase languages_graph; public MessageInteractionCounters[] recent_message_interactions; } ///See public abstract partial class Help_PromoDataBase : ITLObject { } ///See [TLDef(0x98F6AC75)] public partial class Help_PromoDataEmpty : Help_PromoDataBase { public DateTime expires; } ///See [TLDef(0x8C39793F)] public partial class Help_PromoData : Help_PromoDataBase { [Flags] public enum Flags { proxy = 0x1, has_psa_type = 0x2, has_psa_message = 0x4 } public Flags flags; public DateTime expires; public Peer peer; public ChatBase[] chats; public UserBase[] users; [IfFlag(1)] public string psa_type; [IfFlag(2)] public string psa_message; } ///See [TLDef(0xDE33B094)] public partial class VideoSize : ITLObject { [Flags] public enum Flags { has_video_start_ts = 0x1 } public Flags flags; public string type; public int w; public int h; public int size; [IfFlag(0)] public double video_start_ts; } ///See [TLDef(0x9D04AF9B)] public partial class StatsGroupTopPoster : ITLObject { public long user_id; public int messages; public int avg_chars; } ///See [TLDef(0xD7584C87)] public partial class StatsGroupTopAdmin : ITLObject { public long user_id; public int deleted; public int kicked; public int banned; } ///See [TLDef(0x535F779D)] public partial class StatsGroupTopInviter : ITLObject { public long user_id; public int invitations; } ///See [TLDef(0xEF7FF916)] public partial class Stats_MegagroupStats : ITLObject { public StatsDateRangeDays period; public StatsAbsValueAndPrev members; public StatsAbsValueAndPrev messages; public StatsAbsValueAndPrev viewers; public StatsAbsValueAndPrev posters; public StatsGraphBase growth_graph; public StatsGraphBase members_graph; public StatsGraphBase new_members_by_source_graph; public StatsGraphBase languages_graph; public StatsGraphBase messages_graph; public StatsGraphBase actions_graph; public StatsGraphBase top_hours_graph; public StatsGraphBase weekdays_graph; public StatsGroupTopPoster[] top_posters; public StatsGroupTopAdmin[] top_admins; public StatsGroupTopInviter[] top_inviters; public UserBase[] users; } ///See [TLDef(0xBEA2F424)] public partial class GlobalPrivacySettings : ITLObject { [Flags] public enum Flags { has_archive_and_mute_new_noncontact_peers = 0x1 } public Flags flags; [IfFlag(0)] public bool archive_and_mute_new_noncontact_peers; } ///See [TLDef(0x4203C5EF)] public partial class Help_CountryCode : ITLObject { [Flags] public enum Flags { has_prefixes = 0x1, has_patterns = 0x2 } public Flags flags; public string country_code; [IfFlag(0)] public string[] prefixes; [IfFlag(1)] public string[] patterns; } ///See [TLDef(0xC3878E23)] public partial class Help_Country : ITLObject { [Flags] public enum Flags { hidden = 0x1, has_name = 0x2 } public Flags flags; public string iso2; public string default_name; [IfFlag(1)] public string name; public Help_CountryCode[] country_codes; } ///See public abstract partial class Help_CountriesListBase : ITLObject { } ///See [TLDef(0x93CC1F32)] public partial class Help_CountriesListNotModified : Help_CountriesListBase { } ///See [TLDef(0x87D0759E)] public partial class Help_CountriesList : Help_CountriesListBase { public Help_Country[] countries; public int hash; } ///See [TLDef(0x455B853D)] public partial class MessageViews : ITLObject { [Flags] public enum Flags { has_views = 0x1, has_forwards = 0x2, has_replies = 0x4 } public Flags flags; [IfFlag(0)] public int views; [IfFlag(1)] public int forwards; [IfFlag(2)] public MessageReplies replies; } ///See [TLDef(0xB6C4F543)] public partial class Messages_MessageViews : ITLObject { public MessageViews[] views; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xA6341782)] public partial class Messages_DiscussionMessage : ITLObject { [Flags] public enum Flags { has_max_id = 0x1, has_read_inbox_max_id = 0x2, has_read_outbox_max_id = 0x4 } public Flags flags; public MessageBase[] messages; [IfFlag(0)] public int max_id; [IfFlag(1)] public int read_inbox_max_id; [IfFlag(2)] public int read_outbox_max_id; public int unread_count; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xA6D57763)] public partial class MessageReplyHeader : ITLObject { [Flags] public enum Flags { has_reply_to_peer_id = 0x1, has_reply_to_top_id = 0x2 } public Flags flags; public int reply_to_msg_id; [IfFlag(0)] public Peer reply_to_peer_id; [IfFlag(1)] public int reply_to_top_id; } ///See [TLDef(0x83D60FC2)] public partial class MessageReplies : ITLObject { [Flags] public enum Flags { comments = 0x1, has_recent_repliers = 0x2, has_max_id = 0x4, has_read_max_id = 0x8 } public Flags flags; public int replies; public int replies_pts; [IfFlag(1)] public Peer[] recent_repliers; [IfFlag(0)] public long channel_id; [IfFlag(2)] public int max_id; [IfFlag(3)] public int read_max_id; } ///See [TLDef(0xE8FD8014)] public partial class PeerBlocked : ITLObject { public Peer peer_id; public DateTime date; } ///See [TLDef(0x8999F295)] public partial class Stats_MessageStats : ITLObject { public StatsGraphBase views_graph; } ///See public abstract partial class GroupCallBase : ITLObject { } ///See [TLDef(0x7780BCB4)] public partial class GroupCallDiscarded : GroupCallBase { public long id; public long access_hash; public int duration; } ///See [TLDef(0xD597650C)] public partial class GroupCall : GroupCallBase { [Flags] public enum Flags { join_muted = 0x2, can_change_join_muted = 0x4, has_title = 0x8, has_stream_dc_id = 0x10, has_record_start_date = 0x20, join_date_asc = 0x40, has_schedule_date = 0x80, schedule_start_subscribed = 0x100, can_start_video = 0x200, has_unmuted_video_count = 0x400, record_video_active = 0x800 } public Flags flags; public long id; public long access_hash; public int participants_count; [IfFlag(3)] public string title; [IfFlag(4)] public int stream_dc_id; [IfFlag(5)] public DateTime record_start_date; [IfFlag(7)] public DateTime schedule_date; [IfFlag(10)] public int unmuted_video_count; public int unmuted_video_limit; public int version; } ///See [TLDef(0xD8AA840F)] public partial class InputGroupCall : ITLObject { public long id; public long access_hash; } ///See [TLDef(0xEBA636FE)] public partial class GroupCallParticipant : ITLObject { [Flags] public enum Flags { muted = 0x1, left = 0x2, can_self_unmute = 0x4, has_active_date = 0x8, just_joined = 0x10, versioned = 0x20, has_video = 0x40, has_volume = 0x80, min = 0x100, muted_by_you = 0x200, volume_by_admin = 0x400, has_about = 0x800, self = 0x1000, has_raise_hand_rating = 0x2000, has_presentation = 0x4000, video_joined = 0x8000 } public Flags flags; public Peer peer; public DateTime date; [IfFlag(3)] public DateTime active_date; public int source; [IfFlag(7)] public int volume; [IfFlag(11)] public string about; [IfFlag(13)] public long raise_hand_rating; [IfFlag(6)] public GroupCallParticipantVideo video; [IfFlag(14)] public GroupCallParticipantVideo presentation; } ///See [TLDef(0x9E727AAD)] public partial class Phone_GroupCall : ITLObject { public GroupCallBase call; public GroupCallParticipant[] participants; public string participants_next_offset; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0xF47751B6)] public partial class Phone_GroupParticipants : ITLObject { public int count; public GroupCallParticipant[] participants; public string next_offset; public ChatBase[] chats; public UserBase[] users; public int version; } ///See public enum InlineQueryPeerType : uint { ///See SameBotPM = 0x3081ED9D, ///See PM = 0x833C0FAC, ///See Chat = 0xD766C50A, ///See Megagroup = 0x5EC4BE43, ///See Broadcast = 0x6334EE9A, } ///See [TLDef(0x1662AF0B)] public partial class Messages_HistoryImport : ITLObject { public long id; } ///See [TLDef(0x5E0FB7B9)] public partial class Messages_HistoryImportParsed : ITLObject { [Flags] public enum Flags { pm = 0x1, group = 0x2, has_title = 0x4 } public Flags flags; [IfFlag(2)] public string title; } ///See [TLDef(0xEF8D3E6C)] public partial class Messages_AffectedFoundMessages : ITLObject { public int pts; public int pts_count; public int offset; public int[] messages; } ///See [TLDef(0x0B5CD5F4)] public partial class ChatInviteImporter : ITLObject { public long user_id; public DateTime date; } ///See [TLDef(0xBDC62DCC)] public partial class Messages_ExportedChatInvites : ITLObject { public int count; public ExportedChatInvite[] invites; public UserBase[] users; } ///See public abstract partial class Messages_ExportedChatInviteBase : ITLObject { } ///See [TLDef(0x1871BE50)] public partial class Messages_ExportedChatInvite : Messages_ExportedChatInviteBase { public ExportedChatInvite invite; public UserBase[] users; } ///See [TLDef(0x222600EF)] public partial class Messages_ExportedChatInviteReplaced : Messages_ExportedChatInviteBase { public ExportedChatInvite invite; public ExportedChatInvite new_invite; public UserBase[] users; } ///See [TLDef(0x81B6B00A)] public partial class Messages_ChatInviteImporters : ITLObject { public int count; public ChatInviteImporter[] importers; public UserBase[] users; } ///See [TLDef(0xF2ECEF23)] public partial class ChatAdminWithInvites : ITLObject { public long admin_id; public int invites_count; public int revoked_invites_count; } ///See [TLDef(0xB69B72D7)] public partial class Messages_ChatAdminsWithInvites : ITLObject { public ChatAdminWithInvites[] admins; public UserBase[] users; } ///See [TLDef(0xA24DE717)] public partial class Messages_CheckedHistoryImportPeer : ITLObject { public string confirm_text; } ///See [TLDef(0xAFE5623F)] public partial class Phone_JoinAsPeers : ITLObject { public Peer[] peers; public ChatBase[] chats; public UserBase[] users; } ///See [TLDef(0x204BD158)] public partial class Phone_ExportedGroupCallInvite : ITLObject { public string link; } ///See [TLDef(0xDCB118B7)] public partial class GroupCallParticipantVideoSourceGroup : ITLObject { public string semantics; public int[] sources; } ///See [TLDef(0x67753AC8)] public partial class GroupCallParticipantVideo : ITLObject { [Flags] public enum Flags { paused = 0x1, has_audio_source = 0x2 } public Flags flags; public string endpoint; public GroupCallParticipantVideoSourceGroup[] source_groups; [IfFlag(1)] public int audio_source; } ///See [TLDef(0x85FEA03F)] public partial class Stickers_SuggestedShortName : ITLObject { public string short_name; } ///See public abstract partial class BotCommandScope : ITLObject { } ///See [TLDef(0x2F6CB2AB)] public partial class BotCommandScopeDefault : BotCommandScope { } ///See [TLDef(0x3C4F04D8)] public partial class BotCommandScopeUsers : BotCommandScope { } ///See [TLDef(0x6FE1A881)] public partial class BotCommandScopeChats : BotCommandScope { } ///See [TLDef(0xB9AA606A)] public partial class BotCommandScopeChatAdmins : BotCommandScope { } ///See [TLDef(0xDB9D897D)] public partial class BotCommandScopePeer : BotCommandScope { public InputPeer peer; } ///See [TLDef(0x3FD863D1)] public partial class BotCommandScopePeerAdmins : BotCommandScopePeer { } ///See [TLDef(0x0A1321F3)] public partial class BotCommandScopePeerUser : BotCommandScopePeer { public InputUserBase user_id; } ///See public abstract partial class Account_ResetPasswordResult : ITLObject { } ///See [TLDef(0xE3779861)] public partial class Account_ResetPasswordFailedWait : Account_ResetPasswordResult { public DateTime retry_date; } ///See [TLDef(0xE9EFFC7D)] public partial class Account_ResetPasswordRequestedWait : Account_ResetPasswordResult { public DateTime until_date; } ///See [TLDef(0xE926D63E)] public partial class Account_ResetPasswordOk : Account_ResetPasswordResult { } ///See [TLDef(0xED0B5C33)] public partial class ChatTheme : ITLObject { public string emoticon; public Theme theme; public Theme dark_theme; } ///See public abstract partial class Account_ChatThemesBase : ITLObject { } ///See [TLDef(0xE011E1C4)] public partial class Account_ChatThemesNotModified : Account_ChatThemesBase { } ///See [TLDef(0xFE4CBEBD)] public partial class Account_ChatThemes : Account_ChatThemesBase { public int hash; public ChatTheme[] themes; } ///See [TLDef(0x2A3C381F)] public partial class SponsoredMessage : ITLObject { [Flags] public enum Flags { has_start_param = 0x1, has_entities = 0x2 } public Flags flags; public byte[] random_id; public Peer from_id; [IfFlag(0)] public string start_param; public string message; [IfFlag(1)] public MessageEntity[] entities; } ///See [TLDef(0x65A4C7D5)] public partial class Messages_SponsoredMessages : ITLObject { public SponsoredMessage[] messages; public ChatBase[] chats; public UserBase[] users; } // ---functions--- public static class Schema { ///See public static Task InvokeAfterMsg(this Client client, long msg_id, ITLFunction query) => client.CallAsync(writer => { writer.Write(0xCB9F372D); writer.Write(msg_id); query(writer); return "InvokeAfterMsg"; }); ///See public static Task InvokeAfterMsgs(this Client client, long[] msg_ids, ITLFunction query) => client.CallAsync(writer => { writer.Write(0x3DC4B4F0); writer.WriteTLVector(msg_ids); query(writer); return "InvokeAfterMsgs"; }); ///See public static ITLFunction InitConnection(int api_id, string device_model, string system_version, string app_version, string system_lang_code, string lang_pack, string lang_code, ITLFunction query, InputClientProxy proxy = null, JSONValue params_ = null) => writer => { writer.Write(0xC1CD5EA9); writer.Write((proxy != null ? 0x1 : 0) | (params_ != null ? 0x2 : 0)); writer.Write(api_id); writer.WriteTLString(device_model); writer.WriteTLString(system_version); writer.WriteTLString(app_version); writer.WriteTLString(system_lang_code); writer.WriteTLString(lang_pack); writer.WriteTLString(lang_code); if (proxy != null) writer.WriteTLObject(proxy); if (params_ != null) writer.WriteTLObject(params_); query(writer); return "InitConnection"; }; ///See public static Task InvokeWithLayer(this Client client, int layer, ITLFunction query) => client.CallAsync(writer => { writer.Write(0xDA9B0D0D); writer.Write(layer); query(writer); return "InvokeWithLayer"; }); ///See public static Task InvokeWithoutUpdates(this Client client, ITLFunction query) => client.CallAsync(writer => { writer.Write(0xBF9459B7); query(writer); return "InvokeWithoutUpdates"; }); ///See public static Task InvokeWithMessagesRange(this Client client, MessageRange range, ITLFunction query) => client.CallAsync(writer => { writer.Write(0x365275F2); writer.WriteTLObject(range); query(writer); return "InvokeWithMessagesRange"; }); ///See public static Task InvokeWithTakeout(this Client client, long takeout_id, ITLFunction query) => client.CallAsync(writer => { writer.Write(0xACA9FD2E); writer.Write(takeout_id); query(writer); return "InvokeWithTakeout"; }); ///See public static Task Auth_SendCode(this Client client, string phone_number, int api_id, string api_hash, CodeSettings settings) => client.CallAsync(writer => { writer.Write(0xA677244F); writer.WriteTLString(phone_number); writer.Write(api_id); writer.WriteTLString(api_hash); writer.WriteTLObject(settings); return "Auth_SendCode"; }); ///See public static Task Auth_SignUp(this Client client, string phone_number, string phone_code_hash, string first_name, string last_name) => client.CallAsync(writer => { writer.Write(0x80EEE427); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); writer.WriteTLString(first_name); writer.WriteTLString(last_name); return "Auth_SignUp"; }); ///See public static Task Auth_SignIn(this Client client, string phone_number, string phone_code_hash, string phone_code) => client.CallAsync(writer => { writer.Write(0xBCD51581); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); writer.WriteTLString(phone_code); return "Auth_SignIn"; }); ///See public static Task Auth_LogOut(this Client client) => client.CallAsync(writer => { writer.Write(0x5717DA40); return "Auth_LogOut"; }); ///See public static Task Auth_ResetAuthorizations(this Client client) => client.CallAsync(writer => { writer.Write(0x9FAB0D1A); return "Auth_ResetAuthorizations"; }); ///See public static Task Auth_ExportAuthorization(this Client client, int dc_id) => client.CallAsync(writer => { writer.Write(0xE5BFFFCD); writer.Write(dc_id); return "Auth_ExportAuthorization"; }); ///See public static Task Auth_ImportAuthorization(this Client client, long id, byte[] bytes) => client.CallAsync(writer => { writer.Write(0xA57A7DAD); writer.Write(id); writer.WriteTLBytes(bytes); return "Auth_ImportAuthorization"; }); ///See public static Task Auth_BindTempAuthKey(this Client client, long perm_auth_key_id, long nonce, DateTime expires_at, byte[] encrypted_message) => client.CallAsync(writer => { writer.Write(0xCDD42A05); writer.Write(perm_auth_key_id); writer.Write(nonce); writer.WriteTLStamp(expires_at); writer.WriteTLBytes(encrypted_message); return "Auth_BindTempAuthKey"; }); ///See public static Task Auth_ImportBotAuthorization(this Client client, int flags, int api_id, string api_hash, string bot_auth_token) => client.CallAsync(writer => { writer.Write(0x67A3FF2C); writer.Write(flags); writer.Write(api_id); writer.WriteTLString(api_hash); writer.WriteTLString(bot_auth_token); return "Auth_ImportBotAuthorization"; }); ///See public static Task Auth_CheckPassword(this Client client, InputCheckPasswordSRPBase password) => client.CallAsync(writer => { writer.Write(0xD18B4D16); writer.WriteTLObject(password); return "Auth_CheckPassword"; }); ///See public static Task Auth_RequestPasswordRecovery(this Client client) => client.CallAsync(writer => { writer.Write(0xD897BC66); return "Auth_RequestPasswordRecovery"; }); ///See public static Task Auth_RecoverPassword(this Client client, string code, Account_PasswordInputSettings new_settings = null) => client.CallAsync(writer => { writer.Write(0x37096C70); writer.Write(new_settings != null ? 0x1 : 0); writer.WriteTLString(code); if (new_settings != null) writer.WriteTLObject(new_settings); return "Auth_RecoverPassword"; }); ///See public static Task Auth_ResendCode(this Client client, string phone_number, string phone_code_hash) => client.CallAsync(writer => { writer.Write(0x3EF1A9BF); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); return "Auth_ResendCode"; }); ///See public static Task Auth_CancelCode(this Client client, string phone_number, string phone_code_hash) => client.CallAsync(writer => { writer.Write(0x1F040578); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); return "Auth_CancelCode"; }); ///See public static Task Auth_DropTempAuthKeys(this Client client, long[] except_auth_keys) => client.CallAsync(writer => { writer.Write(0x8E48A188); writer.WriteTLVector(except_auth_keys); return "Auth_DropTempAuthKeys"; }); ///See public static Task Auth_ExportLoginToken(this Client client, int api_id, string api_hash, long[] except_ids) => client.CallAsync(writer => { writer.Write(0xB7E085FE); writer.Write(api_id); writer.WriteTLString(api_hash); writer.WriteTLVector(except_ids); return "Auth_ExportLoginToken"; }); ///See public static Task Auth_ImportLoginToken(this Client client, byte[] token) => client.CallAsync(writer => { writer.Write(0x95AC5CE4); writer.WriteTLBytes(token); return "Auth_ImportLoginToken"; }); ///See public static Task Auth_AcceptLoginToken(this Client client, byte[] token) => client.CallAsync(writer => { writer.Write(0xE894AD4D); writer.WriteTLBytes(token); return "Auth_AcceptLoginToken"; }); ///See public static Task Auth_CheckRecoveryPassword(this Client client, string code) => client.CallAsync(writer => { writer.Write(0x0D36BF79); writer.WriteTLString(code); return "Auth_CheckRecoveryPassword"; }); ///See public static Task Account_RegisterDevice(this Client client, int token_type, string token, bool app_sandbox, byte[] secret, long[] other_uids, bool no_muted = false) => client.CallAsync(writer => { writer.Write(0xEC86017A); writer.Write(no_muted ? 0x1 : 0); writer.Write(token_type); writer.WriteTLString(token); writer.Write(app_sandbox ? 0x997275B5 : 0xBC799737); writer.WriteTLBytes(secret); writer.WriteTLVector(other_uids); return "Account_RegisterDevice"; }); ///See public static Task Account_UnregisterDevice(this Client client, int token_type, string token, long[] other_uids) => client.CallAsync(writer => { writer.Write(0x6A0D3206); writer.Write(token_type); writer.WriteTLString(token); writer.WriteTLVector(other_uids); return "Account_UnregisterDevice"; }); ///See public static Task Account_UpdateNotifySettings(this Client client, InputNotifyPeerBase peer, InputPeerNotifySettings settings) => client.CallAsync(writer => { writer.Write(0x84BE5B93); writer.WriteTLObject(peer); writer.WriteTLObject(settings); return "Account_UpdateNotifySettings"; }); ///See public static Task Account_GetNotifySettings(this Client client, InputNotifyPeerBase peer) => client.CallAsync(writer => { writer.Write(0x12B3AD31); writer.WriteTLObject(peer); return "Account_GetNotifySettings"; }); ///See public static Task Account_ResetNotifySettings(this Client client) => client.CallAsync(writer => { writer.Write(0xDB7E1747); return "Account_ResetNotifySettings"; }); ///See public static Task Account_UpdateProfile(this Client client, string first_name = null, string last_name = null, string about = null) => client.CallAsync(writer => { writer.Write(0x78515775); writer.Write((first_name != null ? 0x1 : 0) | (last_name != null ? 0x2 : 0) | (about != null ? 0x4 : 0)); if (first_name != null) writer.WriteTLString(first_name); if (last_name != null) writer.WriteTLString(last_name); if (about != null) writer.WriteTLString(about); return "Account_UpdateProfile"; }); ///See public static Task Account_UpdateStatus(this Client client, bool offline) => client.CallAsync(writer => { writer.Write(0x6628562C); writer.Write(offline ? 0x997275B5 : 0xBC799737); return "Account_UpdateStatus"; }); ///See public static Task Account_GetWallPapers(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x07967D36); writer.Write(hash); return "Account_GetWallPapers"; }); ///See public static Task Account_ReportPeer(this Client client, InputPeer peer, ReportReason reason, string message) => client.CallAsync(writer => { writer.Write(0xC5BA3D86); writer.WriteTLObject(peer); writer.Write((uint)reason); writer.WriteTLString(message); return "Account_ReportPeer"; }); ///See public static Task Account_CheckUsername(this Client client, string username) => client.CallAsync(writer => { writer.Write(0x2714D86C); writer.WriteTLString(username); return "Account_CheckUsername"; }); ///See public static Task Account_UpdateUsername(this Client client, string username) => client.CallAsync(writer => { writer.Write(0x3E0BDD7C); writer.WriteTLString(username); return "Account_UpdateUsername"; }); ///See public static Task Account_GetPrivacy(this Client client, InputPrivacyKey key) => client.CallAsync(writer => { writer.Write(0xDADBC950); writer.Write((uint)key); return "Account_GetPrivacy"; }); ///See public static Task Account_SetPrivacy(this Client client, InputPrivacyKey key, InputPrivacyRule[] rules) => client.CallAsync(writer => { writer.Write(0xC9F81CE8); writer.Write((uint)key); writer.WriteTLVector(rules); return "Account_SetPrivacy"; }); ///See public static Task Account_DeleteAccount(this Client client, string reason) => client.CallAsync(writer => { writer.Write(0x418D4E0B); writer.WriteTLString(reason); return "Account_DeleteAccount"; }); ///See public static Task Account_GetAccountTTL(this Client client) => client.CallAsync(writer => { writer.Write(0x08FC711D); return "Account_GetAccountTTL"; }); ///See public static Task Account_SetAccountTTL(this Client client, AccountDaysTTL ttl) => client.CallAsync(writer => { writer.Write(0x2442485E); writer.WriteTLObject(ttl); return "Account_SetAccountTTL"; }); ///See public static Task Account_SendChangePhoneCode(this Client client, string phone_number, CodeSettings settings) => client.CallAsync(writer => { writer.Write(0x82574AE5); writer.WriteTLString(phone_number); writer.WriteTLObject(settings); return "Account_SendChangePhoneCode"; }); ///See public static Task Account_ChangePhone(this Client client, string phone_number, string phone_code_hash, string phone_code) => client.CallAsync(writer => { writer.Write(0x70C32EDB); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); writer.WriteTLString(phone_code); return "Account_ChangePhone"; }); ///See public static Task Account_UpdateDeviceLocked(this Client client, int period) => client.CallAsync(writer => { writer.Write(0x38DF3532); writer.Write(period); return "Account_UpdateDeviceLocked"; }); ///See public static Task Account_GetAuthorizations(this Client client) => client.CallAsync(writer => { writer.Write(0xE320C158); return "Account_GetAuthorizations"; }); ///See public static Task Account_ResetAuthorization(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0xDF77F3BC); writer.Write(hash); return "Account_ResetAuthorization"; }); ///See public static Task Account_GetPassword(this Client client) => client.CallAsync(writer => { writer.Write(0x548A30F5); return "Account_GetPassword"; }); ///See public static Task Account_GetPasswordSettings(this Client client, InputCheckPasswordSRPBase password) => client.CallAsync(writer => { writer.Write(0x9CD4EAF9); writer.WriteTLObject(password); return "Account_GetPasswordSettings"; }); ///See public static Task Account_UpdatePasswordSettings(this Client client, InputCheckPasswordSRPBase password, Account_PasswordInputSettings new_settings) => client.CallAsync(writer => { writer.Write(0xA59B102F); writer.WriteTLObject(password); writer.WriteTLObject(new_settings); return "Account_UpdatePasswordSettings"; }); ///See public static Task Account_SendConfirmPhoneCode(this Client client, string hash, CodeSettings settings) => client.CallAsync(writer => { writer.Write(0x1B3FAA88); writer.WriteTLString(hash); writer.WriteTLObject(settings); return "Account_SendConfirmPhoneCode"; }); ///See public static Task Account_ConfirmPhone(this Client client, string phone_code_hash, string phone_code) => client.CallAsync(writer => { writer.Write(0x5F2178C3); writer.WriteTLString(phone_code_hash); writer.WriteTLString(phone_code); return "Account_ConfirmPhone"; }); ///See public static Task Account_GetTmpPassword(this Client client, InputCheckPasswordSRPBase password, int period) => client.CallAsync(writer => { writer.Write(0x449E0B51); writer.WriteTLObject(password); writer.Write(period); return "Account_GetTmpPassword"; }); ///See public static Task Account_GetWebAuthorizations(this Client client) => client.CallAsync(writer => { writer.Write(0x182E6D6F); return "Account_GetWebAuthorizations"; }); ///See public static Task Account_ResetWebAuthorization(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x2D01B9EF); writer.Write(hash); return "Account_ResetWebAuthorization"; }); ///See public static Task Account_ResetWebAuthorizations(this Client client) => client.CallAsync(writer => { writer.Write(0x682D2594); return "Account_ResetWebAuthorizations"; }); ///See public static Task Account_GetAllSecureValues(this Client client) => client.CallAsync(writer => { writer.Write(0xB288BC7D); return "Account_GetAllSecureValues"; }); ///See public static Task Account_GetSecureValue(this Client client, SecureValueType[] types) => client.CallAsync(writer => { writer.Write(0x73665BC2); writer.WriteTLVector(types); return "Account_GetSecureValue"; }); ///See public static Task Account_SaveSecureValue(this Client client, InputSecureValue value, long secure_secret_id) => client.CallAsync(writer => { writer.Write(0x899FE31D); writer.WriteTLObject(value); writer.Write(secure_secret_id); return "Account_SaveSecureValue"; }); ///See public static Task Account_DeleteSecureValue(this Client client, SecureValueType[] types) => client.CallAsync(writer => { writer.Write(0xB880BC4B); writer.WriteTLVector(types); return "Account_DeleteSecureValue"; }); ///See public static Task Account_GetAuthorizationForm(this Client client, long bot_id, string scope, string public_key) => client.CallAsync(writer => { writer.Write(0xA929597A); writer.Write(bot_id); writer.WriteTLString(scope); writer.WriteTLString(public_key); return "Account_GetAuthorizationForm"; }); ///See public static Task Account_AcceptAuthorization(this Client client, long bot_id, string scope, string public_key, SecureValueHash[] value_hashes, SecureCredentialsEncrypted credentials) => client.CallAsync(writer => { writer.Write(0xF3ED4C73); writer.Write(bot_id); writer.WriteTLString(scope); writer.WriteTLString(public_key); writer.WriteTLVector(value_hashes); writer.WriteTLObject(credentials); return "Account_AcceptAuthorization"; }); ///See public static Task Account_SendVerifyPhoneCode(this Client client, string phone_number, CodeSettings settings) => client.CallAsync(writer => { writer.Write(0xA5A356F9); writer.WriteTLString(phone_number); writer.WriteTLObject(settings); return "Account_SendVerifyPhoneCode"; }); ///See public static Task Account_VerifyPhone(this Client client, string phone_number, string phone_code_hash, string phone_code) => client.CallAsync(writer => { writer.Write(0x4DD3A7F6); writer.WriteTLString(phone_number); writer.WriteTLString(phone_code_hash); writer.WriteTLString(phone_code); return "Account_VerifyPhone"; }); ///See public static Task Account_SendVerifyEmailCode(this Client client, string email) => client.CallAsync(writer => { writer.Write(0x7011509F); writer.WriteTLString(email); return "Account_SendVerifyEmailCode"; }); ///See public static Task Account_VerifyEmail(this Client client, string email, string code) => client.CallAsync(writer => { writer.Write(0xECBA39DB); writer.WriteTLString(email); writer.WriteTLString(code); return "Account_VerifyEmail"; }); ///See public static Task Account_InitTakeoutSession(this Client client, bool contacts = false, bool message_users = false, bool message_chats = false, bool message_megagroups = false, bool message_channels = false, bool files = false, int? file_max_size = null) => client.CallAsync(writer => { writer.Write(0xF05B4804); writer.Write((contacts ? 0x1 : 0) | (message_users ? 0x2 : 0) | (message_chats ? 0x4 : 0) | (message_megagroups ? 0x8 : 0) | (message_channels ? 0x10 : 0) | (files ? 0x20 : 0) | (file_max_size != null ? 0x20 : 0)); if (file_max_size != null) writer.Write(file_max_size.Value); return "Account_InitTakeoutSession"; }); ///See public static Task Account_FinishTakeoutSession(this Client client, bool success = false) => client.CallAsync(writer => { writer.Write(0x1D2652EE); writer.Write(success ? 0x1 : 0); return "Account_FinishTakeoutSession"; }); ///See public static Task Account_ConfirmPasswordEmail(this Client client, string code) => client.CallAsync(writer => { writer.Write(0x8FDF1920); writer.WriteTLString(code); return "Account_ConfirmPasswordEmail"; }); ///See public static Task Account_ResendPasswordEmail(this Client client) => client.CallAsync(writer => { writer.Write(0x7A7F2A15); return "Account_ResendPasswordEmail"; }); ///See public static Task Account_CancelPasswordEmail(this Client client) => client.CallAsync(writer => { writer.Write(0xC1CBD5B6); return "Account_CancelPasswordEmail"; }); ///See public static Task Account_GetContactSignUpNotification(this Client client) => client.CallAsync(writer => { writer.Write(0x9F07C728); return "Account_GetContactSignUpNotification"; }); ///See public static Task Account_SetContactSignUpNotification(this Client client, bool silent) => client.CallAsync(writer => { writer.Write(0xCFF43F61); writer.Write(silent ? 0x997275B5 : 0xBC799737); return "Account_SetContactSignUpNotification"; }); ///See public static Task Account_GetNotifyExceptions(this Client client, bool compare_sound = false, InputNotifyPeerBase peer = null) => client.CallAsync(writer => { writer.Write(0x53577479); writer.Write((compare_sound ? 0x2 : 0) | (peer != null ? 0x1 : 0)); if (peer != null) writer.WriteTLObject(peer); return "Account_GetNotifyExceptions"; }); ///See public static Task Account_GetWallPaper(this Client client, InputWallPaperBase wallpaper) => client.CallAsync(writer => { writer.Write(0xFC8DDBEA); writer.WriteTLObject(wallpaper); return "Account_GetWallPaper"; }); ///See public static Task Account_UploadWallPaper(this Client client, InputFileBase file, string mime_type, WallPaperSettings settings) => client.CallAsync(writer => { writer.Write(0xDD853661); writer.WriteTLObject(file); writer.WriteTLString(mime_type); writer.WriteTLObject(settings); return "Account_UploadWallPaper"; }); ///See public static Task Account_SaveWallPaper(this Client client, InputWallPaperBase wallpaper, bool unsave, WallPaperSettings settings) => client.CallAsync(writer => { writer.Write(0x6C5A5B37); writer.WriteTLObject(wallpaper); writer.Write(unsave ? 0x997275B5 : 0xBC799737); writer.WriteTLObject(settings); return "Account_SaveWallPaper"; }); ///See public static Task Account_InstallWallPaper(this Client client, InputWallPaperBase wallpaper, WallPaperSettings settings) => client.CallAsync(writer => { writer.Write(0xFEED5769); writer.WriteTLObject(wallpaper); writer.WriteTLObject(settings); return "Account_InstallWallPaper"; }); ///See public static Task Account_ResetWallPapers(this Client client) => client.CallAsync(writer => { writer.Write(0xBB3B9804); return "Account_ResetWallPapers"; }); ///See public static Task Account_GetAutoDownloadSettings(this Client client) => client.CallAsync(writer => { writer.Write(0x56DA0B3F); return "Account_GetAutoDownloadSettings"; }); ///See public static Task Account_SaveAutoDownloadSettings(this Client client, AutoDownloadSettings settings, bool low = false, bool high = false) => client.CallAsync(writer => { writer.Write(0x76F36233); writer.Write((low ? 0x1 : 0) | (high ? 0x2 : 0)); writer.WriteTLObject(settings); return "Account_SaveAutoDownloadSettings"; }); ///See public static Task Account_UploadTheme(this Client client, InputFileBase file, string file_name, string mime_type, InputFileBase thumb = null) => client.CallAsync(writer => { writer.Write(0x1C3DB333); writer.Write(thumb != null ? 0x1 : 0); writer.WriteTLObject(file); if (thumb != null) writer.WriteTLObject(thumb); writer.WriteTLString(file_name); writer.WriteTLString(mime_type); return "Account_UploadTheme"; }); ///See public static Task Account_CreateTheme(this Client client, string slug, string title, InputDocumentBase document = null, InputThemeSettings settings = null) => client.CallAsync(writer => { writer.Write(0x8432C21F); writer.Write((document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)); writer.WriteTLString(slug); writer.WriteTLString(title); if (document != null) writer.WriteTLObject(document); if (settings != null) writer.WriteTLObject(settings); return "Account_CreateTheme"; }); ///See public static Task Account_UpdateTheme(this Client client, string format, InputThemeBase theme, string slug = null, string title = null, InputDocumentBase document = null, InputThemeSettings settings = null) => client.CallAsync(writer => { writer.Write(0x5CB367D5); writer.Write((slug != null ? 0x1 : 0) | (title != null ? 0x2 : 0) | (document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)); writer.WriteTLString(format); writer.WriteTLObject(theme); if (slug != null) writer.WriteTLString(slug); if (title != null) writer.WriteTLString(title); if (document != null) writer.WriteTLObject(document); if (settings != null) writer.WriteTLObject(settings); return "Account_UpdateTheme"; }); ///See public static Task Account_SaveTheme(this Client client, InputThemeBase theme, bool unsave) => client.CallAsync(writer => { writer.Write(0xF257106C); writer.WriteTLObject(theme); writer.Write(unsave ? 0x997275B5 : 0xBC799737); return "Account_SaveTheme"; }); ///See public static Task Account_InstallTheme(this Client client, bool dark = false, string format = null, InputThemeBase theme = null) => client.CallAsync(writer => { writer.Write(0x7AE43737); writer.Write((dark ? 0x1 : 0) | (format != null ? 0x2 : 0) | (theme != null ? 0x2 : 0)); if (format != null) writer.WriteTLString(format); if (theme != null) writer.WriteTLObject(theme); return "Account_InstallTheme"; }); ///See public static Task Account_GetTheme(this Client client, string format, InputThemeBase theme, long document_id) => client.CallAsync(writer => { writer.Write(0x8D9D742B); writer.WriteTLString(format); writer.WriteTLObject(theme); writer.Write(document_id); return "Account_GetTheme"; }); ///See public static Task Account_GetThemes(this Client client, string format, long hash) => client.CallAsync(writer => { writer.Write(0x7206E458); writer.WriteTLString(format); writer.Write(hash); return "Account_GetThemes"; }); ///See public static Task Account_SetContentSettings(this Client client, bool sensitive_enabled = false) => client.CallAsync(writer => { writer.Write(0xB574B16B); writer.Write(sensitive_enabled ? 0x1 : 0); return "Account_SetContentSettings"; }); ///See public static Task Account_GetContentSettings(this Client client) => client.CallAsync(writer => { writer.Write(0x8B9B4DAE); return "Account_GetContentSettings"; }); ///See public static Task Account_GetMultiWallPapers(this Client client, InputWallPaperBase[] wallpapers) => client.CallAsync(writer => { writer.Write(0x65AD71DC); writer.WriteTLVector(wallpapers); return "Account_GetMultiWallPapers"; }); ///See public static Task Account_GetGlobalPrivacySettings(this Client client) => client.CallAsync(writer => { writer.Write(0xEB2B4CF6); return "Account_GetGlobalPrivacySettings"; }); ///See public static Task Account_SetGlobalPrivacySettings(this Client client, GlobalPrivacySettings settings) => client.CallAsync(writer => { writer.Write(0x1EDAAAC2); writer.WriteTLObject(settings); return "Account_SetGlobalPrivacySettings"; }); ///See public static Task Account_ReportProfilePhoto(this Client client, InputPeer peer, InputPhotoBase photo_id, ReportReason reason, string message) => client.CallAsync(writer => { writer.Write(0xFA8CC6F5); writer.WriteTLObject(peer); writer.WriteTLObject(photo_id); writer.Write((uint)reason); writer.WriteTLString(message); return "Account_ReportProfilePhoto"; }); ///See public static Task Account_ResetPassword(this Client client) => client.CallAsync(writer => { writer.Write(0x9308CE1B); return "Account_ResetPassword"; }); ///See public static Task Account_DeclinePasswordReset(this Client client) => client.CallAsync(writer => { writer.Write(0x4C9409F6); return "Account_DeclinePasswordReset"; }); ///See public static Task Account_GetChatThemes(this Client client, int hash) => client.CallAsync(writer => { writer.Write(0xD6D71D7B); writer.Write(hash); return "Account_GetChatThemes"; }); ///See public static Task Users_GetUsers(this Client client, InputUserBase[] id) => client.CallAsync(writer => { writer.Write(0x0D91A548); writer.WriteTLVector(id); return "Users_GetUsers"; }); ///See public static Task Users_GetFullUser(this Client client, InputUserBase id) => client.CallAsync(writer => { writer.Write(0xCA30A5B1); writer.WriteTLObject(id); return "Users_GetFullUser"; }); ///See public static Task Users_SetSecureValueErrors(this Client client, InputUserBase id, SecureValueErrorBase[] errors) => client.CallAsync(writer => { writer.Write(0x90C894B5); writer.WriteTLObject(id); writer.WriteTLVector(errors); return "Users_SetSecureValueErrors"; }); ///See public static Task Contacts_GetContactIDs(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x7ADC669D); writer.Write(hash); return "Contacts_GetContactIDs"; }); ///See public static Task Contacts_GetStatuses(this Client client) => client.CallAsync(writer => { writer.Write(0xC4A353EE); return "Contacts_GetStatuses"; }); ///See public static Task Contacts_GetContacts(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x5DD69E12); writer.Write(hash); return "Contacts_GetContacts"; }); ///See public static Task Contacts_ImportContacts(this Client client, InputContact[] contacts) => client.CallAsync(writer => { writer.Write(0x2C800BE5); writer.WriteTLVector(contacts); return "Contacts_ImportContacts"; }); ///See public static Task Contacts_DeleteContacts(this Client client, InputUserBase[] id) => client.CallAsync(writer => { writer.Write(0x096A0E00); writer.WriteTLVector(id); return "Contacts_DeleteContacts"; }); ///See public static Task Contacts_DeleteByPhones(this Client client, string[] phones) => client.CallAsync(writer => { writer.Write(0x1013FD9E); writer.WriteTLVector(phones); return "Contacts_DeleteByPhones"; }); ///See public static Task Contacts_Block(this Client client, InputPeer id) => client.CallAsync(writer => { writer.Write(0x68CC1411); writer.WriteTLObject(id); return "Contacts_Block"; }); ///See public static Task Contacts_Unblock(this Client client, InputPeer id) => client.CallAsync(writer => { writer.Write(0xBEA65D50); writer.WriteTLObject(id); return "Contacts_Unblock"; }); ///See public static Task Contacts_GetBlocked(this Client client, int offset, int limit) => client.CallAsync(writer => { writer.Write(0xF57C350F); writer.Write(offset); writer.Write(limit); return "Contacts_GetBlocked"; }); ///See public static Task Contacts_Search(this Client client, string q, int limit) => client.CallAsync(writer => { writer.Write(0x11F812D8); writer.WriteTLString(q); writer.Write(limit); return "Contacts_Search"; }); ///See public static Task Contacts_ResolveUsername(this Client client, string username) => client.CallAsync(writer => { writer.Write(0xF93CCBA3); writer.WriteTLString(username); return "Contacts_ResolveUsername"; }); ///See public static Task Contacts_GetTopPeers(this Client client, int offset, int limit, long hash, bool correspondents = false, bool bots_pm = false, bool bots_inline = false, bool phone_calls = false, bool forward_users = false, bool forward_chats = false, bool groups = false, bool channels = false) => client.CallAsync(writer => { writer.Write(0x973478B6); writer.Write((correspondents ? 0x1 : 0) | (bots_pm ? 0x2 : 0) | (bots_inline ? 0x4 : 0) | (phone_calls ? 0x8 : 0) | (forward_users ? 0x10 : 0) | (forward_chats ? 0x20 : 0) | (groups ? 0x400 : 0) | (channels ? 0x8000 : 0)); writer.Write(offset); writer.Write(limit); writer.Write(hash); return "Contacts_GetTopPeers"; }); ///See public static Task Contacts_ResetTopPeerRating(this Client client, TopPeerCategory category, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x1AE373AC); writer.Write((uint)category); writer.WriteTLObject(peer); return "Contacts_ResetTopPeerRating"; }); ///See public static Task Contacts_ResetSaved(this Client client) => client.CallAsync(writer => { writer.Write(0x879537F1); return "Contacts_ResetSaved"; }); ///See public static Task Contacts_GetSaved(this Client client) => client.CallAsync(writer => { writer.Write(0x82F1E39F); return "Contacts_GetSaved"; }); ///See public static Task Contacts_ToggleTopPeers(this Client client, bool enabled) => client.CallAsync(writer => { writer.Write(0x8514BDDA); writer.Write(enabled ? 0x997275B5 : 0xBC799737); return "Contacts_ToggleTopPeers"; }); ///See public static Task Contacts_AddContact(this Client client, InputUserBase id, string first_name, string last_name, string phone, bool add_phone_privacy_exception = false) => client.CallAsync(writer => { writer.Write(0xE8F463D0); writer.Write(add_phone_privacy_exception ? 0x1 : 0); writer.WriteTLObject(id); writer.WriteTLString(first_name); writer.WriteTLString(last_name); writer.WriteTLString(phone); return "Contacts_AddContact"; }); ///See public static Task Contacts_AcceptContact(this Client client, InputUserBase id) => client.CallAsync(writer => { writer.Write(0xF831A20F); writer.WriteTLObject(id); return "Contacts_AcceptContact"; }); ///See public static Task Contacts_GetLocated(this Client client, InputGeoPointBase geo_point, bool background = false, int? self_expires = null) => client.CallAsync(writer => { writer.Write(0xD348BC44); writer.Write((background ? 0x2 : 0) | (self_expires != null ? 0x1 : 0)); writer.WriteTLObject(geo_point); if (self_expires != null) writer.Write(self_expires.Value); return "Contacts_GetLocated"; }); ///See public static Task Contacts_BlockFromReplies(this Client client, int msg_id, bool delete_message = false, bool delete_history = false, bool report_spam = false) => client.CallAsync(writer => { writer.Write(0x29A8962C); writer.Write((delete_message ? 0x1 : 0) | (delete_history ? 0x2 : 0) | (report_spam ? 0x4 : 0)); writer.Write(msg_id); return "Contacts_BlockFromReplies"; }); ///See public static Task Messages_GetMessages(this Client client, InputMessage[] id) => client.CallAsync(writer => { writer.Write(0x63C66506); writer.WriteTLVector(id); return "Messages_GetMessages"; }); ///See public static Task Messages_GetDialogs(this Client client, DateTime offset_date, int offset_id, InputPeer offset_peer, int limit, long hash, bool exclude_pinned = false, int? folder_id = null) => client.CallAsync(writer => { writer.Write(0xA0F4CB4F); writer.Write((exclude_pinned ? 0x1 : 0) | (folder_id != null ? 0x2 : 0)); if (folder_id != null) writer.Write(folder_id.Value); writer.WriteTLStamp(offset_date); writer.Write(offset_id); writer.WriteTLObject(offset_peer); writer.Write(limit); writer.Write(hash); return "Messages_GetDialogs"; }); ///See public static Task Messages_GetHistory(this Client client, InputPeer peer, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) => client.CallAsync(writer => { writer.Write(0x4423E6C5); writer.WriteTLObject(peer); writer.Write(offset_id); writer.WriteTLStamp(offset_date); writer.Write(add_offset); writer.Write(limit); writer.Write(max_id); writer.Write(min_id); writer.Write(hash); return "Messages_GetHistory"; }); ///See public static Task Messages_Search(this Client client, InputPeer peer, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_id, int add_offset, int limit, int max_id, int min_id, long hash, InputPeer from_id = null, int? top_msg_id = null) => client.CallAsync(writer => { writer.Write(0xA0FDA762); writer.Write((from_id != null ? 0x1 : 0) | (top_msg_id != null ? 0x2 : 0)); writer.WriteTLObject(peer); writer.WriteTLString(q); if (from_id != null) writer.WriteTLObject(from_id); if (top_msg_id != null) writer.Write(top_msg_id.Value); writer.WriteTLObject(filter); writer.WriteTLStamp(min_date); writer.WriteTLStamp(max_date); writer.Write(offset_id); writer.Write(add_offset); writer.Write(limit); writer.Write(max_id); writer.Write(min_id); writer.Write(hash); return "Messages_Search"; }); ///See public static Task Messages_ReadHistory(this Client client, InputPeer peer, int max_id) => client.CallAsync(writer => { writer.Write(0x0E306D3A); writer.WriteTLObject(peer); writer.Write(max_id); return "Messages_ReadHistory"; }); ///See public static Task Messages_DeleteHistory(this Client client, InputPeer peer, int max_id, bool just_clear = false, bool revoke = false) => client.CallAsync(writer => { writer.Write(0x1C015B09); writer.Write((just_clear ? 0x1 : 0) | (revoke ? 0x2 : 0)); writer.WriteTLObject(peer); writer.Write(max_id); return "Messages_DeleteHistory"; }); ///See public static Task Messages_DeleteMessages(this Client client, int[] id, bool revoke = false) => client.CallAsync(writer => { writer.Write(0xE58E95D2); writer.Write(revoke ? 0x1 : 0); writer.WriteTLVector(id); return "Messages_DeleteMessages"; }); ///See public static Task Messages_ReceivedMessages(this Client client, int max_id) => client.CallAsync(writer => { writer.Write(0x05A954C0); writer.Write(max_id); return "Messages_ReceivedMessages"; }); ///See public static Task Messages_SetTyping(this Client client, InputPeer peer, SendMessageAction action, int? top_msg_id = null) => client.CallAsync(writer => { writer.Write(0x58943EE2); writer.Write(top_msg_id != null ? 0x1 : 0); writer.WriteTLObject(peer); if (top_msg_id != null) writer.Write(top_msg_id.Value); writer.WriteTLObject(action); return "Messages_SetTyping"; }); ///See public static Task Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0x520C3870); writer.Write((no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(peer); if (reply_to_msg_id != null) writer.Write(reply_to_msg_id.Value); writer.WriteTLString(message); writer.Write(random_id); if (reply_markup != null) writer.WriteTLObject(reply_markup); if (entities != null) writer.WriteTLVector(entities); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_SendMessage"; }); ///See public static Task Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0x3491EBA9); writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(peer); if (reply_to_msg_id != null) writer.Write(reply_to_msg_id.Value); writer.WriteTLObject(media); writer.WriteTLString(message); writer.Write(random_id); if (reply_markup != null) writer.WriteTLObject(reply_markup); if (entities != null) writer.WriteTLVector(entities); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_SendMedia"; }); ///See public static Task Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0xD9FEE60E); writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(from_peer); writer.WriteTLVector(id); writer.WriteTLVector(random_id); writer.WriteTLObject(to_peer); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_ForwardMessages"; }); ///See public static Task Messages_ReportSpam(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0xCF1592DB); writer.WriteTLObject(peer); return "Messages_ReportSpam"; }); ///See public static Task Messages_GetPeerSettings(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x3672E09C); writer.WriteTLObject(peer); return "Messages_GetPeerSettings"; }); ///See public static Task Messages_Report(this Client client, InputPeer peer, int[] id, ReportReason reason, string message) => client.CallAsync(writer => { writer.Write(0x8953AB4E); writer.WriteTLObject(peer); writer.WriteTLVector(id); writer.Write((uint)reason); writer.WriteTLString(message); return "Messages_Report"; }); ///See public static Task Messages_GetChats(this Client client, long[] id) => client.CallAsync(writer => { writer.Write(0x49E9528F); writer.WriteTLVector(id); return "Messages_GetChats"; }); ///See public static Task Messages_GetFullChat(this Client client, long chat_id) => client.CallAsync(writer => { writer.Write(0xAEB00B34); writer.Write(chat_id); return "Messages_GetFullChat"; }); ///See public static Task Messages_EditChatTitle(this Client client, long chat_id, string title) => client.CallAsync(writer => { writer.Write(0x73783FFD); writer.Write(chat_id); writer.WriteTLString(title); return "Messages_EditChatTitle"; }); ///See public static Task Messages_EditChatPhoto(this Client client, long chat_id, InputChatPhotoBase photo) => client.CallAsync(writer => { writer.Write(0x35DDD674); writer.Write(chat_id); writer.WriteTLObject(photo); return "Messages_EditChatPhoto"; }); ///See public static Task Messages_AddChatUser(this Client client, long chat_id, InputUserBase user_id, int fwd_limit) => client.CallAsync(writer => { writer.Write(0xF24753E3); writer.Write(chat_id); writer.WriteTLObject(user_id); writer.Write(fwd_limit); return "Messages_AddChatUser"; }); ///See public static Task Messages_DeleteChatUser(this Client client, long chat_id, InputUserBase user_id, bool revoke_history = false) => client.CallAsync(writer => { writer.Write(0xA2185CAB); writer.Write(revoke_history ? 0x1 : 0); writer.Write(chat_id); writer.WriteTLObject(user_id); return "Messages_DeleteChatUser"; }); ///See public static Task Messages_CreateChat(this Client client, InputUserBase[] users, string title) => client.CallAsync(writer => { writer.Write(0x09CB126E); writer.WriteTLVector(users); writer.WriteTLString(title); return "Messages_CreateChat"; }); ///See public static Task Messages_GetDhConfig(this Client client, int version, int random_length) => client.CallAsync(writer => { writer.Write(0x26CF8950); writer.Write(version); writer.Write(random_length); return "Messages_GetDhConfig"; }); ///See public static Task Messages_RequestEncryption(this Client client, InputUserBase user_id, int random_id, byte[] g_a) => client.CallAsync(writer => { writer.Write(0xF64DAF43); writer.WriteTLObject(user_id); writer.Write(random_id); writer.WriteTLBytes(g_a); return "Messages_RequestEncryption"; }); ///See public static Task Messages_AcceptEncryption(this Client client, InputEncryptedChat peer, byte[] g_b, long key_fingerprint) => client.CallAsync(writer => { writer.Write(0x3DBC0415); writer.WriteTLObject(peer); writer.WriteTLBytes(g_b); writer.Write(key_fingerprint); return "Messages_AcceptEncryption"; }); ///See public static Task Messages_DiscardEncryption(this Client client, int chat_id, bool delete_history = false) => client.CallAsync(writer => { writer.Write(0xF393AEA0); writer.Write(delete_history ? 0x1 : 0); writer.Write(chat_id); return "Messages_DiscardEncryption"; }); ///See public static Task Messages_SetEncryptedTyping(this Client client, InputEncryptedChat peer, bool typing) => client.CallAsync(writer => { writer.Write(0x791451ED); writer.WriteTLObject(peer); writer.Write(typing ? 0x997275B5 : 0xBC799737); return "Messages_SetEncryptedTyping"; }); ///See public static Task Messages_ReadEncryptedHistory(this Client client, InputEncryptedChat peer, DateTime max_date) => client.CallAsync(writer => { writer.Write(0x7F4B690A); writer.WriteTLObject(peer); writer.WriteTLStamp(max_date); return "Messages_ReadEncryptedHistory"; }); ///See public static Task Messages_SendEncrypted(this Client client, InputEncryptedChat peer, long random_id, byte[] data, bool silent = false) => client.CallAsync(writer => { writer.Write(0x44FA7A15); writer.Write(silent ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(random_id); writer.WriteTLBytes(data); return "Messages_SendEncrypted"; }); ///See public static Task Messages_SendEncryptedFile(this Client client, InputEncryptedChat peer, long random_id, byte[] data, InputEncryptedFileBase file, bool silent = false) => client.CallAsync(writer => { writer.Write(0x5559481D); writer.Write(silent ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(random_id); writer.WriteTLBytes(data); writer.WriteTLObject(file); return "Messages_SendEncryptedFile"; }); ///See public static Task Messages_SendEncryptedService(this Client client, InputEncryptedChat peer, long random_id, byte[] data) => client.CallAsync(writer => { writer.Write(0x32D439A4); writer.WriteTLObject(peer); writer.Write(random_id); writer.WriteTLBytes(data); return "Messages_SendEncryptedService"; }); ///See public static Task Messages_ReceivedQueue(this Client client, int max_qts) => client.CallAsync(writer => { writer.Write(0x55A5BB66); writer.Write(max_qts); return "Messages_ReceivedQueue"; }); ///See public static Task Messages_ReportEncryptedSpam(this Client client, InputEncryptedChat peer) => client.CallAsync(writer => { writer.Write(0x4B0C8C0F); writer.WriteTLObject(peer); return "Messages_ReportEncryptedSpam"; }); ///See public static Task Messages_ReadMessageContents(this Client client, int[] id) => client.CallAsync(writer => { writer.Write(0x36A73F77); writer.WriteTLVector(id); return "Messages_ReadMessageContents"; }); ///See public static Task Messages_GetStickers(this Client client, string emoticon, long hash) => client.CallAsync(writer => { writer.Write(0xD5A5D3A1); writer.WriteTLString(emoticon); writer.Write(hash); return "Messages_GetStickers"; }); ///See public static Task Messages_GetAllStickers(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0xB8A0A1A8); writer.Write(hash); return "Messages_GetAllStickers"; }); ///See public static Task Messages_GetWebPagePreview(this Client client, string message, MessageEntity[] entities = null) => client.CallAsync(writer => { writer.Write(0x8B68B0CC); writer.Write(entities != null ? 0x8 : 0); writer.WriteTLString(message); if (entities != null) writer.WriteTLVector(entities); return "Messages_GetWebPagePreview"; }); ///See public static Task Messages_ExportChatInvite(this Client client, InputPeer peer, bool legacy_revoke_permanent = false, DateTime? expire_date = null, int? usage_limit = null) => client.CallAsync(writer => { writer.Write(0x14B9BCD7); writer.Write((legacy_revoke_permanent ? 0x4 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0)); writer.WriteTLObject(peer); if (expire_date != null) writer.WriteTLStamp(expire_date.Value); if (usage_limit != null) writer.Write(usage_limit.Value); return "Messages_ExportChatInvite"; }); ///See public static Task Messages_CheckChatInvite(this Client client, string hash) => client.CallAsync(writer => { writer.Write(0x3EADB1BB); writer.WriteTLString(hash); return "Messages_CheckChatInvite"; }); ///See public static Task Messages_ImportChatInvite(this Client client, string hash) => client.CallAsync(writer => { writer.Write(0x6C50051C); writer.WriteTLString(hash); return "Messages_ImportChatInvite"; }); ///See public static Task Messages_GetStickerSet(this Client client, InputStickerSet stickerset) => client.CallAsync(writer => { writer.Write(0x2619A90E); writer.WriteTLObject(stickerset); return "Messages_GetStickerSet"; }); ///See public static Task Messages_InstallStickerSet(this Client client, InputStickerSet stickerset, bool archived) => client.CallAsync(writer => { writer.Write(0xC78FE460); writer.WriteTLObject(stickerset); writer.Write(archived ? 0x997275B5 : 0xBC799737); return "Messages_InstallStickerSet"; }); ///See public static Task Messages_UninstallStickerSet(this Client client, InputStickerSet stickerset) => client.CallAsync(writer => { writer.Write(0xF96E55DE); writer.WriteTLObject(stickerset); return "Messages_UninstallStickerSet"; }); ///See public static Task Messages_StartBot(this Client client, InputUserBase bot, InputPeer peer, long random_id, string start_param) => client.CallAsync(writer => { writer.Write(0xE6DF7378); writer.WriteTLObject(bot); writer.WriteTLObject(peer); writer.Write(random_id); writer.WriteTLString(start_param); return "Messages_StartBot"; }); ///See public static Task Messages_GetMessagesViews(this Client client, InputPeer peer, int[] id, bool increment) => client.CallAsync(writer => { writer.Write(0x5784D3E1); writer.WriteTLObject(peer); writer.WriteTLVector(id); writer.Write(increment ? 0x997275B5 : 0xBC799737); return "Messages_GetMessagesViews"; }); ///See public static Task Messages_EditChatAdmin(this Client client, long chat_id, InputUserBase user_id, bool is_admin) => client.CallAsync(writer => { writer.Write(0xA85BD1C2); writer.Write(chat_id); writer.WriteTLObject(user_id); writer.Write(is_admin ? 0x997275B5 : 0xBC799737); return "Messages_EditChatAdmin"; }); ///See public static Task Messages_MigrateChat(this Client client, long chat_id) => client.CallAsync(writer => { writer.Write(0xA2875319); writer.Write(chat_id); return "Messages_MigrateChat"; }); ///See public static Task Messages_SearchGlobal(this Client client, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_rate, InputPeer offset_peer, int offset_id, int limit, int? folder_id = null) => client.CallAsync(writer => { writer.Write(0x4BC6589A); writer.Write(folder_id != null ? 0x1 : 0); if (folder_id != null) writer.Write(folder_id.Value); writer.WriteTLString(q); writer.WriteTLObject(filter); writer.WriteTLStamp(min_date); writer.WriteTLStamp(max_date); writer.Write(offset_rate); writer.WriteTLObject(offset_peer); writer.Write(offset_id); writer.Write(limit); return "Messages_SearchGlobal"; }); ///See public static Task Messages_ReorderStickerSets(this Client client, long[] order, bool masks = false) => client.CallAsync(writer => { writer.Write(0x78337739); writer.Write(masks ? 0x1 : 0); writer.WriteTLVector(order); return "Messages_ReorderStickerSets"; }); ///See public static Task Messages_GetDocumentByHash(this Client client, byte[] sha256, int size, string mime_type) => client.CallAsync(writer => { writer.Write(0x338E2464); writer.WriteTLBytes(sha256); writer.Write(size); writer.WriteTLString(mime_type); return "Messages_GetDocumentByHash"; }); ///See public static Task Messages_GetSavedGifs(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x5CF09635); writer.Write(hash); return "Messages_GetSavedGifs"; }); ///See public static Task Messages_SaveGif(this Client client, InputDocumentBase id, bool unsave) => client.CallAsync(writer => { writer.Write(0x327A30CB); writer.WriteTLObject(id); writer.Write(unsave ? 0x997275B5 : 0xBC799737); return "Messages_SaveGif"; }); ///See public static Task Messages_GetInlineBotResults(this Client client, InputUserBase bot, InputPeer peer, string query, string offset, InputGeoPointBase geo_point = null) => client.CallAsync(writer => { writer.Write(0x514E999D); writer.Write(geo_point != null ? 0x1 : 0); writer.WriteTLObject(bot); writer.WriteTLObject(peer); if (geo_point != null) writer.WriteTLObject(geo_point); writer.WriteTLString(query); writer.WriteTLString(offset); return "Messages_GetInlineBotResults"; }); ///See public static Task Messages_SetInlineBotResults(this Client client, long query_id, InputBotInlineResultBase[] results, DateTime cache_time, bool gallery = false, bool private_ = false, string next_offset = null, InlineBotSwitchPM switch_pm = null) => client.CallAsync(writer => { writer.Write(0xEB5EA206); writer.Write((gallery ? 0x1 : 0) | (private_ ? 0x2 : 0) | (next_offset != null ? 0x4 : 0) | (switch_pm != null ? 0x8 : 0)); writer.Write(query_id); writer.WriteTLVector(results); writer.WriteTLStamp(cache_time); if (next_offset != null) writer.WriteTLString(next_offset); if (switch_pm != null) writer.WriteTLObject(switch_pm); return "Messages_SetInlineBotResults"; }); ///See public static Task Messages_SendInlineBotResult(this Client client, InputPeer peer, long random_id, long query_id, string id, bool silent = false, bool background = false, bool clear_draft = false, bool hide_via = false, int? reply_to_msg_id = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0x220815B0); writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (hide_via ? 0x800 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(peer); if (reply_to_msg_id != null) writer.Write(reply_to_msg_id.Value); writer.Write(random_id); writer.Write(query_id); writer.WriteTLString(id); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_SendInlineBotResult"; }); ///See public static Task Messages_GetMessageEditData(this Client client, InputPeer peer, int id) => client.CallAsync(writer => { writer.Write(0xFDA68D36); writer.WriteTLObject(peer); writer.Write(id); return "Messages_GetMessageEditData"; }); ///See public static Task Messages_EditMessage(this Client client, InputPeer peer, int id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0x48F71778); writer.Write((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x8000 : 0)); writer.WriteTLObject(peer); writer.Write(id); if (message != null) writer.WriteTLString(message); if (media != null) writer.WriteTLObject(media); if (reply_markup != null) writer.WriteTLObject(reply_markup); if (entities != null) writer.WriteTLVector(entities); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_EditMessage"; }); ///See public static Task Messages_EditInlineBotMessage(this Client client, InputBotInlineMessageIDBase id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null) => client.CallAsync(writer => { writer.Write(0x83557DBA); writer.Write((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0)); writer.WriteTLObject(id); if (message != null) writer.WriteTLString(message); if (media != null) writer.WriteTLObject(media); if (reply_markup != null) writer.WriteTLObject(reply_markup); if (entities != null) writer.WriteTLVector(entities); return "Messages_EditInlineBotMessage"; }); ///See public static Task Messages_GetBotCallbackAnswer(this Client client, InputPeer peer, int msg_id, bool game = false, byte[] data = null, InputCheckPasswordSRPBase password = null) => client.CallAsync(writer => { writer.Write(0x9342CA07); writer.Write((game ? 0x2 : 0) | (data != null ? 0x1 : 0) | (password != null ? 0x4 : 0)); writer.WriteTLObject(peer); writer.Write(msg_id); if (data != null) writer.WriteTLBytes(data); if (password != null) writer.WriteTLObject(password); return "Messages_GetBotCallbackAnswer"; }); ///See public static Task Messages_SetBotCallbackAnswer(this Client client, long query_id, DateTime cache_time, bool alert = false, string message = null, string url = null) => client.CallAsync(writer => { writer.Write(0xD58F130A); writer.Write((alert ? 0x2 : 0) | (message != null ? 0x1 : 0) | (url != null ? 0x4 : 0)); writer.Write(query_id); if (message != null) writer.WriteTLString(message); if (url != null) writer.WriteTLString(url); writer.WriteTLStamp(cache_time); return "Messages_SetBotCallbackAnswer"; }); ///See public static Task Messages_GetPeerDialogs(this Client client, InputDialogPeerBase[] peers) => client.CallAsync(writer => { writer.Write(0xE470BCFD); writer.WriteTLVector(peers); return "Messages_GetPeerDialogs"; }); ///See public static Task Messages_SaveDraft(this Client client, InputPeer peer, string message, bool no_webpage = false, int? reply_to_msg_id = null, MessageEntity[] entities = null) => client.CallAsync(writer => { writer.Write(0xBC39E14B); writer.Write((no_webpage ? 0x2 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (entities != null ? 0x8 : 0)); if (reply_to_msg_id != null) writer.Write(reply_to_msg_id.Value); writer.WriteTLObject(peer); writer.WriteTLString(message); if (entities != null) writer.WriteTLVector(entities); return "Messages_SaveDraft"; }); ///See public static Task Messages_GetAllDrafts(this Client client) => client.CallAsync(writer => { writer.Write(0x6A3F8D65); return "Messages_GetAllDrafts"; }); ///See public static Task Messages_GetFeaturedStickers(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x64780B14); writer.Write(hash); return "Messages_GetFeaturedStickers"; }); ///See public static Task Messages_ReadFeaturedStickers(this Client client, long[] id) => client.CallAsync(writer => { writer.Write(0x5B118126); writer.WriteTLVector(id); return "Messages_ReadFeaturedStickers"; }); ///See public static Task Messages_GetRecentStickers(this Client client, long hash, bool attached = false) => client.CallAsync(writer => { writer.Write(0x9DA9403B); writer.Write(attached ? 0x1 : 0); writer.Write(hash); return "Messages_GetRecentStickers"; }); ///See public static Task Messages_SaveRecentSticker(this Client client, InputDocumentBase id, bool unsave, bool attached = false) => client.CallAsync(writer => { writer.Write(0x392718F8); writer.Write(attached ? 0x1 : 0); writer.WriteTLObject(id); writer.Write(unsave ? 0x997275B5 : 0xBC799737); return "Messages_SaveRecentSticker"; }); ///See public static Task Messages_ClearRecentStickers(this Client client, bool attached = false) => client.CallAsync(writer => { writer.Write(0x8999602D); writer.Write(attached ? 0x1 : 0); return "Messages_ClearRecentStickers"; }); ///See public static Task Messages_GetArchivedStickers(this Client client, long offset_id, int limit, bool masks = false) => client.CallAsync(writer => { writer.Write(0x57F17692); writer.Write(masks ? 0x1 : 0); writer.Write(offset_id); writer.Write(limit); return "Messages_GetArchivedStickers"; }); ///See public static Task Messages_GetMaskStickers(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x640F82B8); writer.Write(hash); return "Messages_GetMaskStickers"; }); ///See public static Task Messages_GetAttachedStickers(this Client client, InputStickeredMedia media) => client.CallAsync(writer => { writer.Write(0xCC5B67CC); writer.WriteTLObject(media); return "Messages_GetAttachedStickers"; }); ///See public static Task Messages_SetGameScore(this Client client, InputPeer peer, int id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) => client.CallAsync(writer => { writer.Write(0x8EF8ECC0); writer.Write((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)); writer.WriteTLObject(peer); writer.Write(id); writer.WriteTLObject(user_id); writer.Write(score); return "Messages_SetGameScore"; }); ///See public static Task Messages_SetInlineGameScore(this Client client, InputBotInlineMessageIDBase id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) => client.CallAsync(writer => { writer.Write(0x15AD9F64); writer.Write((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)); writer.WriteTLObject(id); writer.WriteTLObject(user_id); writer.Write(score); return "Messages_SetInlineGameScore"; }); ///See public static Task Messages_GetGameHighScores(this Client client, InputPeer peer, int id, InputUserBase user_id) => client.CallAsync(writer => { writer.Write(0xE822649D); writer.WriteTLObject(peer); writer.Write(id); writer.WriteTLObject(user_id); return "Messages_GetGameHighScores"; }); ///See public static Task Messages_GetInlineGameHighScores(this Client client, InputBotInlineMessageIDBase id, InputUserBase user_id) => client.CallAsync(writer => { writer.Write(0x0F635E1B); writer.WriteTLObject(id); writer.WriteTLObject(user_id); return "Messages_GetInlineGameHighScores"; }); ///See public static Task Messages_GetCommonChats(this Client client, InputUserBase user_id, long max_id, int limit) => client.CallAsync(writer => { writer.Write(0xE40CA104); writer.WriteTLObject(user_id); writer.Write(max_id); writer.Write(limit); return "Messages_GetCommonChats"; }); ///See public static Task Messages_GetAllChats(this Client client, long[] except_ids) => client.CallAsync(writer => { writer.Write(0x875F74BE); writer.WriteTLVector(except_ids); return "Messages_GetAllChats"; }); ///See public static Task Messages_GetWebPage(this Client client, string url, int hash) => client.CallAsync(writer => { writer.Write(0x32CA8F91); writer.WriteTLString(url); writer.Write(hash); return "Messages_GetWebPage"; }); ///See public static Task Messages_ToggleDialogPin(this Client client, InputDialogPeerBase peer, bool pinned = false) => client.CallAsync(writer => { writer.Write(0xA731E257); writer.Write(pinned ? 0x1 : 0); writer.WriteTLObject(peer); return "Messages_ToggleDialogPin"; }); ///See public static Task Messages_ReorderPinnedDialogs(this Client client, int folder_id, InputDialogPeerBase[] order, bool force = false) => client.CallAsync(writer => { writer.Write(0x3B1ADF37); writer.Write(force ? 0x1 : 0); writer.Write(folder_id); writer.WriteTLVector(order); return "Messages_ReorderPinnedDialogs"; }); ///See public static Task Messages_GetPinnedDialogs(this Client client, int folder_id) => client.CallAsync(writer => { writer.Write(0xD6B94DF2); writer.Write(folder_id); return "Messages_GetPinnedDialogs"; }); ///See public static Task Messages_SetBotShippingResults(this Client client, long query_id, string error = null, ShippingOption[] shipping_options = null) => client.CallAsync(writer => { writer.Write(0xE5F672FA); writer.Write((error != null ? 0x1 : 0) | (shipping_options != null ? 0x2 : 0)); writer.Write(query_id); if (error != null) writer.WriteTLString(error); if (shipping_options != null) writer.WriteTLVector(shipping_options); return "Messages_SetBotShippingResults"; }); ///See public static Task Messages_SetBotPrecheckoutResults(this Client client, long query_id, bool success = false, string error = null) => client.CallAsync(writer => { writer.Write(0x09C2DD95); writer.Write((success ? 0x2 : 0) | (error != null ? 0x1 : 0)); writer.Write(query_id); if (error != null) writer.WriteTLString(error); return "Messages_SetBotPrecheckoutResults"; }); ///See public static Task Messages_UploadMedia(this Client client, InputPeer peer, InputMedia media) => client.CallAsync(writer => { writer.Write(0x519BC2B1); writer.WriteTLObject(peer); writer.WriteTLObject(media); return "Messages_UploadMedia"; }); ///See public static Task Messages_SendScreenshotNotification(this Client client, InputPeer peer, int reply_to_msg_id, long random_id) => client.CallAsync(writer => { writer.Write(0xC97DF020); writer.WriteTLObject(peer); writer.Write(reply_to_msg_id); writer.Write(random_id); return "Messages_SendScreenshotNotification"; }); ///See public static Task Messages_GetFavedStickers(this Client client, long hash) => client.CallAsync(writer => { writer.Write(0x04F1AAA9); writer.Write(hash); return "Messages_GetFavedStickers"; }); ///See public static Task Messages_FaveSticker(this Client client, InputDocumentBase id, bool unfave) => client.CallAsync(writer => { writer.Write(0xB9FFC55B); writer.WriteTLObject(id); writer.Write(unfave ? 0x997275B5 : 0xBC799737); return "Messages_FaveSticker"; }); ///See public static Task Messages_GetUnreadMentions(this Client client, InputPeer peer, int offset_id, int add_offset, int limit, int max_id, int min_id) => client.CallAsync(writer => { writer.Write(0x46578472); writer.WriteTLObject(peer); writer.Write(offset_id); writer.Write(add_offset); writer.Write(limit); writer.Write(max_id); writer.Write(min_id); return "Messages_GetUnreadMentions"; }); ///See public static Task Messages_ReadMentions(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x0F0189D3); writer.WriteTLObject(peer); return "Messages_ReadMentions"; }); ///See public static Task Messages_GetRecentLocations(this Client client, InputPeer peer, int limit, long hash) => client.CallAsync(writer => { writer.Write(0x702A40E0); writer.WriteTLObject(peer); writer.Write(limit); writer.Write(hash); return "Messages_GetRecentLocations"; }); ///See public static Task Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0xCC0110CB); writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)); writer.WriteTLObject(peer); if (reply_to_msg_id != null) writer.Write(reply_to_msg_id.Value); writer.WriteTLVector(multi_media); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Messages_SendMultiMedia"; }); ///See public static Task Messages_UploadEncryptedFile(this Client client, InputEncryptedChat peer, InputEncryptedFileBase file) => client.CallAsync(writer => { writer.Write(0x5057C497); writer.WriteTLObject(peer); writer.WriteTLObject(file); return "Messages_UploadEncryptedFile"; }); ///See public static Task Messages_SearchStickerSets(this Client client, string q, long hash, bool exclude_featured = false) => client.CallAsync(writer => { writer.Write(0x35705B8A); writer.Write(exclude_featured ? 0x1 : 0); writer.WriteTLString(q); writer.Write(hash); return "Messages_SearchStickerSets"; }); ///See public static Task Messages_GetSplitRanges(this Client client) => client.CallAsync(writer => { writer.Write(0x1CFF7E08); return "Messages_GetSplitRanges"; }); ///See public static Task Messages_MarkDialogUnread(this Client client, InputDialogPeerBase peer, bool unread = false) => client.CallAsync(writer => { writer.Write(0xC286D98F); writer.Write(unread ? 0x1 : 0); writer.WriteTLObject(peer); return "Messages_MarkDialogUnread"; }); ///See public static Task Messages_GetDialogUnreadMarks(this Client client) => client.CallAsync(writer => { writer.Write(0x22E24E22); return "Messages_GetDialogUnreadMarks"; }); ///See public static Task Messages_ClearAllDrafts(this Client client) => client.CallAsync(writer => { writer.Write(0x7E58EE9C); return "Messages_ClearAllDrafts"; }); ///See public static Task Messages_UpdatePinnedMessage(this Client client, InputPeer peer, int id, bool silent = false, bool unpin = false, bool pm_oneside = false) => client.CallAsync(writer => { writer.Write(0xD2AAF7EC); writer.Write((silent ? 0x1 : 0) | (unpin ? 0x2 : 0) | (pm_oneside ? 0x4 : 0)); writer.WriteTLObject(peer); writer.Write(id); return "Messages_UpdatePinnedMessage"; }); ///See public static Task Messages_SendVote(this Client client, InputPeer peer, int msg_id, byte[][] options) => client.CallAsync(writer => { writer.Write(0x10EA6184); writer.WriteTLObject(peer); writer.Write(msg_id); writer.WriteTLVector(options); return "Messages_SendVote"; }); ///See public static Task Messages_GetPollResults(this Client client, InputPeer peer, int msg_id) => client.CallAsync(writer => { writer.Write(0x73BB643B); writer.WriteTLObject(peer); writer.Write(msg_id); return "Messages_GetPollResults"; }); ///See public static Task Messages_GetOnlines(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x6E2BE050); writer.WriteTLObject(peer); return "Messages_GetOnlines"; }); ///See public static Task Messages_GetStatsURL(this Client client, InputPeer peer, string params_, bool dark = false) => client.CallAsync(writer => { writer.Write(0x812C2AE6); writer.Write(dark ? 0x1 : 0); writer.WriteTLObject(peer); writer.WriteTLString(params_); return "Messages_GetStatsURL"; }); ///See public static Task Messages_EditChatAbout(this Client client, InputPeer peer, string about) => client.CallAsync(writer => { writer.Write(0xDEF60797); writer.WriteTLObject(peer); writer.WriteTLString(about); return "Messages_EditChatAbout"; }); ///See public static Task Messages_EditChatDefaultBannedRights(this Client client, InputPeer peer, ChatBannedRights banned_rights) => client.CallAsync(writer => { writer.Write(0xA5866B41); writer.WriteTLObject(peer); writer.WriteTLObject(banned_rights); return "Messages_EditChatDefaultBannedRights"; }); ///See public static Task Messages_GetEmojiKeywords(this Client client, string lang_code) => client.CallAsync(writer => { writer.Write(0x35A0E062); writer.WriteTLString(lang_code); return "Messages_GetEmojiKeywords"; }); ///See public static Task Messages_GetEmojiKeywordsDifference(this Client client, string lang_code, int from_version) => client.CallAsync(writer => { writer.Write(0x1508B6AF); writer.WriteTLString(lang_code); writer.Write(from_version); return "Messages_GetEmojiKeywordsDifference"; }); ///See public static Task Messages_GetEmojiKeywordsLanguages(this Client client, string[] lang_codes) => client.CallAsync(writer => { writer.Write(0x4E9963B2); writer.WriteTLVector(lang_codes); return "Messages_GetEmojiKeywordsLanguages"; }); ///See public static Task Messages_GetEmojiURL(this Client client, string lang_code) => client.CallAsync(writer => { writer.Write(0xD5B10C26); writer.WriteTLString(lang_code); return "Messages_GetEmojiURL"; }); ///See public static Task Messages_GetSearchCounters(this Client client, InputPeer peer, MessagesFilter[] filters) => client.CallAsync(writer => { writer.Write(0x732EEF00); writer.WriteTLObject(peer); writer.WriteTLVector(filters); return "Messages_GetSearchCounters"; }); ///See public static Task Messages_RequestUrlAuth(this Client client, InputPeer peer = null, int? msg_id = null, int? button_id = null, string url = null) => client.CallAsync(writer => { writer.Write(0x198FB446); writer.Write((peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)); if (peer != null) writer.WriteTLObject(peer); if (msg_id != null) writer.Write(msg_id.Value); if (button_id != null) writer.Write(button_id.Value); if (url != null) writer.WriteTLString(url); return "Messages_RequestUrlAuth"; }); ///See public static Task Messages_AcceptUrlAuth(this Client client, bool write_allowed = false, InputPeer peer = null, int? msg_id = null, int? button_id = null, string url = null) => client.CallAsync(writer => { writer.Write(0xB12C7125); writer.Write((write_allowed ? 0x1 : 0) | (peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)); if (peer != null) writer.WriteTLObject(peer); if (msg_id != null) writer.Write(msg_id.Value); if (button_id != null) writer.Write(button_id.Value); if (url != null) writer.WriteTLString(url); return "Messages_AcceptUrlAuth"; }); ///See public static Task Messages_HidePeerSettingsBar(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x4FACB138); writer.WriteTLObject(peer); return "Messages_HidePeerSettingsBar"; }); ///See public static Task Messages_GetScheduledHistory(this Client client, InputPeer peer, long hash) => client.CallAsync(writer => { writer.Write(0xF516760B); writer.WriteTLObject(peer); writer.Write(hash); return "Messages_GetScheduledHistory"; }); ///See public static Task Messages_GetScheduledMessages(this Client client, InputPeer peer, int[] id) => client.CallAsync(writer => { writer.Write(0xBDBB0464); writer.WriteTLObject(peer); writer.WriteTLVector(id); return "Messages_GetScheduledMessages"; }); ///See public static Task Messages_SendScheduledMessages(this Client client, InputPeer peer, int[] id) => client.CallAsync(writer => { writer.Write(0xBD38850A); writer.WriteTLObject(peer); writer.WriteTLVector(id); return "Messages_SendScheduledMessages"; }); ///See public static Task Messages_DeleteScheduledMessages(this Client client, InputPeer peer, int[] id) => client.CallAsync(writer => { writer.Write(0x59AE2B16); writer.WriteTLObject(peer); writer.WriteTLVector(id); return "Messages_DeleteScheduledMessages"; }); ///See public static Task Messages_GetPollVotes(this Client client, InputPeer peer, int id, int limit, byte[] option = null, string offset = null) => client.CallAsync(writer => { writer.Write(0xB86E380E); writer.Write((option != null ? 0x1 : 0) | (offset != null ? 0x2 : 0)); writer.WriteTLObject(peer); writer.Write(id); if (option != null) writer.WriteTLBytes(option); if (offset != null) writer.WriteTLString(offset); writer.Write(limit); return "Messages_GetPollVotes"; }); ///See public static Task Messages_ToggleStickerSets(this Client client, InputStickerSet[] stickersets, bool uninstall = false, bool archive = false, bool unarchive = false) => client.CallAsync(writer => { writer.Write(0xB5052FEA); writer.Write((uninstall ? 0x1 : 0) | (archive ? 0x2 : 0) | (unarchive ? 0x4 : 0)); writer.WriteTLVector(stickersets); return "Messages_ToggleStickerSets"; }); ///See public static Task Messages_GetDialogFilters(this Client client) => client.CallAsync(writer => { writer.Write(0xF19ED96D); return "Messages_GetDialogFilters"; }); ///See public static Task Messages_GetSuggestedDialogFilters(this Client client) => client.CallAsync(writer => { writer.Write(0xA29CD42C); return "Messages_GetSuggestedDialogFilters"; }); ///See public static Task Messages_UpdateDialogFilter(this Client client, int id, DialogFilter filter = null) => client.CallAsync(writer => { writer.Write(0x1AD4A04A); writer.Write(filter != null ? 0x1 : 0); writer.Write(id); if (filter != null) writer.WriteTLObject(filter); return "Messages_UpdateDialogFilter"; }); ///See public static Task Messages_UpdateDialogFiltersOrder(this Client client, int[] order) => client.CallAsync(writer => { writer.Write(0xC563C1E4); writer.WriteTLVector(order); return "Messages_UpdateDialogFiltersOrder"; }); ///See public static Task Messages_GetOldFeaturedStickers(this Client client, int offset, int limit, long hash) => client.CallAsync(writer => { writer.Write(0x7ED094A1); writer.Write(offset); writer.Write(limit); writer.Write(hash); return "Messages_GetOldFeaturedStickers"; }); ///See public static Task Messages_GetReplies(this Client client, InputPeer peer, int msg_id, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) => client.CallAsync(writer => { writer.Write(0x22DDD30C); writer.WriteTLObject(peer); writer.Write(msg_id); writer.Write(offset_id); writer.WriteTLStamp(offset_date); writer.Write(add_offset); writer.Write(limit); writer.Write(max_id); writer.Write(min_id); writer.Write(hash); return "Messages_GetReplies"; }); ///See public static Task Messages_GetDiscussionMessage(this Client client, InputPeer peer, int msg_id) => client.CallAsync(writer => { writer.Write(0x446972FD); writer.WriteTLObject(peer); writer.Write(msg_id); return "Messages_GetDiscussionMessage"; }); ///See public static Task Messages_ReadDiscussion(this Client client, InputPeer peer, int msg_id, int read_max_id) => client.CallAsync(writer => { writer.Write(0xF731A9F4); writer.WriteTLObject(peer); writer.Write(msg_id); writer.Write(read_max_id); return "Messages_ReadDiscussion"; }); ///See public static Task Messages_UnpinAllMessages(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0xF025BC8B); writer.WriteTLObject(peer); return "Messages_UnpinAllMessages"; }); ///See public static Task Messages_DeleteChat(this Client client, long chat_id) => client.CallAsync(writer => { writer.Write(0x5BD0EE50); writer.Write(chat_id); return "Messages_DeleteChat"; }); ///See public static Task Messages_DeletePhoneCallHistory(this Client client, bool revoke = false) => client.CallAsync(writer => { writer.Write(0xF9CBE409); writer.Write(revoke ? 0x1 : 0); return "Messages_DeletePhoneCallHistory"; }); ///See public static Task Messages_CheckHistoryImport(this Client client, string import_head) => client.CallAsync(writer => { writer.Write(0x43FE19F3); writer.WriteTLString(import_head); return "Messages_CheckHistoryImport"; }); ///See public static Task Messages_InitHistoryImport(this Client client, InputPeer peer, InputFileBase file, int media_count) => client.CallAsync(writer => { writer.Write(0x34090C3B); writer.WriteTLObject(peer); writer.WriteTLObject(file); writer.Write(media_count); return "Messages_InitHistoryImport"; }); ///See public static Task Messages_UploadImportedMedia(this Client client, InputPeer peer, long import_id, string file_name, InputMedia media) => client.CallAsync(writer => { writer.Write(0x2A862092); writer.WriteTLObject(peer); writer.Write(import_id); writer.WriteTLString(file_name); writer.WriteTLObject(media); return "Messages_UploadImportedMedia"; }); ///See public static Task Messages_StartHistoryImport(this Client client, InputPeer peer, long import_id) => client.CallAsync(writer => { writer.Write(0xB43DF344); writer.WriteTLObject(peer); writer.Write(import_id); return "Messages_StartHistoryImport"; }); ///See public static Task Messages_GetExportedChatInvites(this Client client, InputPeer peer, InputUserBase admin_id, int limit, bool revoked = false, DateTime? offset_date = null, string offset_link = null) => client.CallAsync(writer => { writer.Write(0xA2B5A3F6); writer.Write((revoked ? 0x8 : 0) | (offset_date != null ? 0x4 : 0) | (offset_link != null ? 0x4 : 0)); writer.WriteTLObject(peer); writer.WriteTLObject(admin_id); if (offset_date != null) writer.WriteTLStamp(offset_date.Value); if (offset_link != null) writer.WriteTLString(offset_link); writer.Write(limit); return "Messages_GetExportedChatInvites"; }); ///See public static Task Messages_GetExportedChatInvite(this Client client, InputPeer peer, string link) => client.CallAsync(writer => { writer.Write(0x73746F5C); writer.WriteTLObject(peer); writer.WriteTLString(link); return "Messages_GetExportedChatInvite"; }); ///See public static Task Messages_EditExportedChatInvite(this Client client, InputPeer peer, string link, bool revoked = false, DateTime? expire_date = null, int? usage_limit = null) => client.CallAsync(writer => { writer.Write(0x02E4FFBE); writer.Write((revoked ? 0x4 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0)); writer.WriteTLObject(peer); writer.WriteTLString(link); if (expire_date != null) writer.WriteTLStamp(expire_date.Value); if (usage_limit != null) writer.Write(usage_limit.Value); return "Messages_EditExportedChatInvite"; }); ///See public static Task Messages_DeleteRevokedExportedChatInvites(this Client client, InputPeer peer, InputUserBase admin_id) => client.CallAsync(writer => { writer.Write(0x56987BD5); writer.WriteTLObject(peer); writer.WriteTLObject(admin_id); return "Messages_DeleteRevokedExportedChatInvites"; }); ///See public static Task Messages_DeleteExportedChatInvite(this Client client, InputPeer peer, string link) => client.CallAsync(writer => { writer.Write(0xD464A42B); writer.WriteTLObject(peer); writer.WriteTLString(link); return "Messages_DeleteExportedChatInvite"; }); ///See public static Task Messages_GetAdminsWithInvites(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x3920E6EF); writer.WriteTLObject(peer); return "Messages_GetAdminsWithInvites"; }); ///See public static Task Messages_GetChatInviteImporters(this Client client, InputPeer peer, string link, DateTime offset_date, InputUserBase offset_user, int limit) => client.CallAsync(writer => { writer.Write(0x26FB7289); writer.WriteTLObject(peer); writer.WriteTLString(link); writer.WriteTLStamp(offset_date); writer.WriteTLObject(offset_user); writer.Write(limit); return "Messages_GetChatInviteImporters"; }); ///See public static Task Messages_SetHistoryTTL(this Client client, InputPeer peer, int period) => client.CallAsync(writer => { writer.Write(0xB80E5FE4); writer.WriteTLObject(peer); writer.Write(period); return "Messages_SetHistoryTTL"; }); ///See public static Task Messages_CheckHistoryImportPeer(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x5DC60F03); writer.WriteTLObject(peer); return "Messages_CheckHistoryImportPeer"; }); ///See public static Task Messages_SetChatTheme(this Client client, InputPeer peer, string emoticon) => client.CallAsync(writer => { writer.Write(0xE63BE13F); writer.WriteTLObject(peer); writer.WriteTLString(emoticon); return "Messages_SetChatTheme"; }); ///See public static Task Messages_GetMessageReadParticipants(this Client client, InputPeer peer, int msg_id) => client.CallAsync(writer => { writer.Write(0x2C6F97B7); writer.WriteTLObject(peer); writer.Write(msg_id); return "Messages_GetMessageReadParticipants"; }); ///See public static Task Updates_GetState(this Client client) => client.CallAsync(writer => { writer.Write(0xEDD4882A); return "Updates_GetState"; }); ///See public static Task Updates_GetDifference(this Client client, int pts, DateTime date, int qts, int? pts_total_limit = null) => client.CallAsync(writer => { writer.Write(0x25939651); writer.Write(pts_total_limit != null ? 0x1 : 0); writer.Write(pts); if (pts_total_limit != null) writer.Write(pts_total_limit.Value); writer.WriteTLStamp(date); writer.Write(qts); return "Updates_GetDifference"; }); ///See public static Task Updates_GetChannelDifference(this Client client, InputChannelBase channel, ChannelMessagesFilterBase filter, int pts, int limit, bool force = false) => client.CallAsync(writer => { writer.Write(0x03173D78); writer.Write(force ? 0x1 : 0); writer.WriteTLObject(channel); writer.WriteTLObject(filter); writer.Write(pts); writer.Write(limit); return "Updates_GetChannelDifference"; }); ///See public static Task Photos_UpdateProfilePhoto(this Client client, InputPhotoBase id) => client.CallAsync(writer => { writer.Write(0x72D4742C); writer.WriteTLObject(id); return "Photos_UpdateProfilePhoto"; }); ///See public static Task Photos_UploadProfilePhoto(this Client client, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null) => client.CallAsync(writer => { writer.Write(0x89F30F69); writer.Write((file != null ? 0x1 : 0) | (video != null ? 0x2 : 0) | (video_start_ts != null ? 0x4 : 0)); if (file != null) writer.WriteTLObject(file); if (video != null) writer.WriteTLObject(video); if (video_start_ts != null) writer.Write(video_start_ts.Value); return "Photos_UploadProfilePhoto"; }); ///See public static Task Photos_DeletePhotos(this Client client, InputPhotoBase[] id) => client.CallAsync(writer => { writer.Write(0x87CF7F2F); writer.WriteTLVector(id); return "Photos_DeletePhotos"; }); ///See public static Task Photos_GetUserPhotos(this Client client, InputUserBase user_id, int offset, long max_id, int limit) => client.CallAsync(writer => { writer.Write(0x91CD32A8); writer.WriteTLObject(user_id); writer.Write(offset); writer.Write(max_id); writer.Write(limit); return "Photos_GetUserPhotos"; }); ///See public static Task Upload_SaveFilePart(this Client client, long file_id, int file_part, byte[] bytes) => client.CallAsync(writer => { writer.Write(0xB304A621); writer.Write(file_id); writer.Write(file_part); writer.WriteTLBytes(bytes); return "Upload_SaveFilePart"; }); ///See public static Task Upload_GetFile(this Client client, InputFileLocationBase location, int offset, int limit, bool precise = false, bool cdn_supported = false) => client.CallAsync(writer => { writer.Write(0xB15A9AFC); writer.Write((precise ? 0x1 : 0) | (cdn_supported ? 0x2 : 0)); writer.WriteTLObject(location); writer.Write(offset); writer.Write(limit); return "Upload_GetFile"; }); ///See public static Task Upload_SaveBigFilePart(this Client client, long file_id, int file_part, int file_total_parts, byte[] bytes) => client.CallAsync(writer => { writer.Write(0xDE7B673D); writer.Write(file_id); writer.Write(file_part); writer.Write(file_total_parts); writer.WriteTLBytes(bytes); return "Upload_SaveBigFilePart"; }); ///See public static Task Upload_GetWebFile(this Client client, InputWebFileLocationBase location, int offset, int limit) => client.CallAsync(writer => { writer.Write(0x24E6818D); writer.WriteTLObject(location); writer.Write(offset); writer.Write(limit); return "Upload_GetWebFile"; }); ///See public static Task Upload_GetCdnFile(this Client client, byte[] file_token, int offset, int limit) => client.CallAsync(writer => { writer.Write(0x2000BCC3); writer.WriteTLBytes(file_token); writer.Write(offset); writer.Write(limit); return "Upload_GetCdnFile"; }); ///See public static Task Upload_ReuploadCdnFile(this Client client, byte[] file_token, byte[] request_token) => client.CallAsync(writer => { writer.Write(0x9B2754A8); writer.WriteTLBytes(file_token); writer.WriteTLBytes(request_token); return "Upload_ReuploadCdnFile"; }); ///See public static Task Upload_GetCdnFileHashes(this Client client, byte[] file_token, int offset) => client.CallAsync(writer => { writer.Write(0x4DA54231); writer.WriteTLBytes(file_token); writer.Write(offset); return "Upload_GetCdnFileHashes"; }); ///See public static Task Upload_GetFileHashes(this Client client, InputFileLocationBase location, int offset) => client.CallAsync(writer => { writer.Write(0xC7025931); writer.WriteTLObject(location); writer.Write(offset); return "Upload_GetFileHashes"; }); ///See public static Task Help_GetConfig(this Client client) => client.CallAsync(Help_GetConfig); public static string Help_GetConfig(BinaryWriter writer) { writer.Write(0xC4F9186B); return "Help_GetConfig"; } ///See public static Task Help_GetNearestDc(this Client client) => client.CallAsync(writer => { writer.Write(0x1FB33026); return "Help_GetNearestDc"; }); ///See public static Task Help_GetAppUpdate(this Client client, string source) => client.CallAsync(writer => { writer.Write(0x522D5A7D); writer.WriteTLString(source); return "Help_GetAppUpdate"; }); ///See public static Task Help_GetInviteText(this Client client) => client.CallAsync(writer => { writer.Write(0x4D392343); return "Help_GetInviteText"; }); ///See public static Task Help_GetSupport(this Client client) => client.CallAsync(writer => { writer.Write(0x9CDF08CD); return "Help_GetSupport"; }); ///See public static Task Help_GetAppChangelog(this Client client, string prev_app_version) => client.CallAsync(writer => { writer.Write(0x9010EF6F); writer.WriteTLString(prev_app_version); return "Help_GetAppChangelog"; }); ///See public static Task Help_SetBotUpdatesStatus(this Client client, int pending_updates_count, string message) => client.CallAsync(writer => { writer.Write(0xEC22CFCD); writer.Write(pending_updates_count); writer.WriteTLString(message); return "Help_SetBotUpdatesStatus"; }); ///See public static Task Help_GetCdnConfig(this Client client) => client.CallAsync(writer => { writer.Write(0x52029342); return "Help_GetCdnConfig"; }); ///See public static Task Help_GetRecentMeUrls(this Client client, string referer) => client.CallAsync(writer => { writer.Write(0x3DC0F114); writer.WriteTLString(referer); return "Help_GetRecentMeUrls"; }); ///See public static Task Help_GetTermsOfServiceUpdate(this Client client) => client.CallAsync(writer => { writer.Write(0x2CA51FD1); return "Help_GetTermsOfServiceUpdate"; }); ///See public static Task Help_AcceptTermsOfService(this Client client, DataJSON id) => client.CallAsync(writer => { writer.Write(0xEE72F79A); writer.WriteTLObject(id); return "Help_AcceptTermsOfService"; }); ///See public static Task Help_GetDeepLinkInfo(this Client client, string path) => client.CallAsync(writer => { writer.Write(0x3FEDC75F); writer.WriteTLString(path); return "Help_GetDeepLinkInfo"; }); ///See public static Task Help_GetAppConfig(this Client client) => client.CallAsync(writer => { writer.Write(0x98914110); return "Help_GetAppConfig"; }); ///See public static Task Help_SaveAppLog(this Client client, InputAppEvent[] events) => client.CallAsync(writer => { writer.Write(0x6F02F748); writer.WriteTLVector(events); return "Help_SaveAppLog"; }); ///See public static Task Help_GetPassportConfig(this Client client, int hash) => client.CallAsync(writer => { writer.Write(0xC661AD08); writer.Write(hash); return "Help_GetPassportConfig"; }); ///See public static Task Help_GetSupportName(this Client client) => client.CallAsync(writer => { writer.Write(0xD360E72C); return "Help_GetSupportName"; }); ///See public static Task Help_GetUserInfo(this Client client, InputUserBase user_id) => client.CallAsync(writer => { writer.Write(0x038A08D3); writer.WriteTLObject(user_id); return "Help_GetUserInfo"; }); ///See public static Task Help_EditUserInfo(this Client client, InputUserBase user_id, string message, MessageEntity[] entities) => client.CallAsync(writer => { writer.Write(0x66B91B70); writer.WriteTLObject(user_id); writer.WriteTLString(message); writer.WriteTLVector(entities); return "Help_EditUserInfo"; }); ///See public static Task Help_GetPromoData(this Client client) => client.CallAsync(writer => { writer.Write(0xC0977421); return "Help_GetPromoData"; }); ///See public static Task Help_HidePromoData(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0x1E251C95); writer.WriteTLObject(peer); return "Help_HidePromoData"; }); ///See public static Task Help_DismissSuggestion(this Client client, InputPeer peer, string suggestion) => client.CallAsync(writer => { writer.Write(0xF50DBAA1); writer.WriteTLObject(peer); writer.WriteTLString(suggestion); return "Help_DismissSuggestion"; }); ///See public static Task Help_GetCountriesList(this Client client, string lang_code, int hash) => client.CallAsync(writer => { writer.Write(0x735787A8); writer.WriteTLString(lang_code); writer.Write(hash); return "Help_GetCountriesList"; }); ///See public static Task Channels_ReadHistory(this Client client, InputChannelBase channel, int max_id) => client.CallAsync(writer => { writer.Write(0xCC104937); writer.WriteTLObject(channel); writer.Write(max_id); return "Channels_ReadHistory"; }); ///See public static Task Channels_DeleteMessages(this Client client, InputChannelBase channel, int[] id) => client.CallAsync(writer => { writer.Write(0x84C1FD4E); writer.WriteTLObject(channel); writer.WriteTLVector(id); return "Channels_DeleteMessages"; }); ///See public static Task Channels_DeleteUserHistory(this Client client, InputChannelBase channel, InputUserBase user_id) => client.CallAsync(writer => { writer.Write(0xD10DD71B); writer.WriteTLObject(channel); writer.WriteTLObject(user_id); return "Channels_DeleteUserHistory"; }); ///See public static Task Channels_ReportSpam(this Client client, InputChannelBase channel, InputUserBase user_id, int[] id) => client.CallAsync(writer => { writer.Write(0xFE087810); writer.WriteTLObject(channel); writer.WriteTLObject(user_id); writer.WriteTLVector(id); return "Channels_ReportSpam"; }); ///See public static Task Channels_GetMessages(this Client client, InputChannelBase channel, InputMessage[] id) => client.CallAsync(writer => { writer.Write(0xAD8C9A23); writer.WriteTLObject(channel); writer.WriteTLVector(id); return "Channels_GetMessages"; }); ///See public static Task Channels_GetParticipants(this Client client, InputChannelBase channel, ChannelParticipantsFilter filter, int offset, int limit, long hash) => client.CallAsync(writer => { writer.Write(0x77CED9D0); writer.WriteTLObject(channel); writer.WriteTLObject(filter); writer.Write(offset); writer.Write(limit); writer.Write(hash); return "Channels_GetParticipants"; }); ///See public static Task Channels_GetParticipant(this Client client, InputChannelBase channel, InputPeer participant) => client.CallAsync(writer => { writer.Write(0xA0AB6CC6); writer.WriteTLObject(channel); writer.WriteTLObject(participant); return "Channels_GetParticipant"; }); ///See public static Task Channels_GetChannels(this Client client, InputChannelBase[] id) => client.CallAsync(writer => { writer.Write(0x0A7F6BBB); writer.WriteTLVector(id); return "Channels_GetChannels"; }); ///See public static Task Channels_GetFullChannel(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0x08736A09); writer.WriteTLObject(channel); return "Channels_GetFullChannel"; }); ///See public static Task Channels_CreateChannel(this Client client, string title, string about, bool broadcast = false, bool megagroup = false, bool for_import = false, InputGeoPointBase geo_point = null, string address = null) => client.CallAsync(writer => { writer.Write(0x3D5FB10F); writer.Write((broadcast ? 0x1 : 0) | (megagroup ? 0x2 : 0) | (for_import ? 0x8 : 0) | (geo_point != null ? 0x4 : 0) | (address != null ? 0x4 : 0)); writer.WriteTLString(title); writer.WriteTLString(about); if (geo_point != null) writer.WriteTLObject(geo_point); if (address != null) writer.WriteTLString(address); return "Channels_CreateChannel"; }); ///See public static Task Channels_EditAdmin(this Client client, InputChannelBase channel, InputUserBase user_id, ChatAdminRights admin_rights, string rank) => client.CallAsync(writer => { writer.Write(0xD33C8902); writer.WriteTLObject(channel); writer.WriteTLObject(user_id); writer.WriteTLObject(admin_rights); writer.WriteTLString(rank); return "Channels_EditAdmin"; }); ///See public static Task Channels_EditTitle(this Client client, InputChannelBase channel, string title) => client.CallAsync(writer => { writer.Write(0x566DECD0); writer.WriteTLObject(channel); writer.WriteTLString(title); return "Channels_EditTitle"; }); ///See public static Task Channels_EditPhoto(this Client client, InputChannelBase channel, InputChatPhotoBase photo) => client.CallAsync(writer => { writer.Write(0xF12E57C9); writer.WriteTLObject(channel); writer.WriteTLObject(photo); return "Channels_EditPhoto"; }); ///See public static Task Channels_CheckUsername(this Client client, InputChannelBase channel, string username) => client.CallAsync(writer => { writer.Write(0x10E6BD2C); writer.WriteTLObject(channel); writer.WriteTLString(username); return "Channels_CheckUsername"; }); ///See public static Task Channels_UpdateUsername(this Client client, InputChannelBase channel, string username) => client.CallAsync(writer => { writer.Write(0x3514B3DE); writer.WriteTLObject(channel); writer.WriteTLString(username); return "Channels_UpdateUsername"; }); ///See public static Task Channels_JoinChannel(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0x24B524C5); writer.WriteTLObject(channel); return "Channels_JoinChannel"; }); ///See public static Task Channels_LeaveChannel(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0xF836AA95); writer.WriteTLObject(channel); return "Channels_LeaveChannel"; }); ///See public static Task Channels_InviteToChannel(this Client client, InputChannelBase channel, InputUserBase[] users) => client.CallAsync(writer => { writer.Write(0x199F3A6C); writer.WriteTLObject(channel); writer.WriteTLVector(users); return "Channels_InviteToChannel"; }); ///See public static Task Channels_DeleteChannel(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0xC0111FE3); writer.WriteTLObject(channel); return "Channels_DeleteChannel"; }); ///See public static Task Channels_ExportMessageLink(this Client client, InputChannelBase channel, int id, bool grouped = false, bool thread = false) => client.CallAsync(writer => { writer.Write(0xE63FADEB); writer.Write((grouped ? 0x1 : 0) | (thread ? 0x2 : 0)); writer.WriteTLObject(channel); writer.Write(id); return "Channels_ExportMessageLink"; }); ///See public static Task Channels_ToggleSignatures(this Client client, InputChannelBase channel, bool enabled) => client.CallAsync(writer => { writer.Write(0x1F69B606); writer.WriteTLObject(channel); writer.Write(enabled ? 0x997275B5 : 0xBC799737); return "Channels_ToggleSignatures"; }); ///See public static Task Channels_GetAdminedPublicChannels(this Client client, bool by_location = false, bool check_limit = false) => client.CallAsync(writer => { writer.Write(0xF8B036AF); writer.Write((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0)); return "Channels_GetAdminedPublicChannels"; }); ///See public static Task Channels_EditBanned(this Client client, InputChannelBase channel, InputPeer participant, ChatBannedRights banned_rights) => client.CallAsync(writer => { writer.Write(0x96E6CD81); writer.WriteTLObject(channel); writer.WriteTLObject(participant); writer.WriteTLObject(banned_rights); return "Channels_EditBanned"; }); ///See public static Task Channels_GetAdminLog(this Client client, InputChannelBase channel, string q, long max_id, long min_id, int limit, ChannelAdminLogEventsFilter events_filter = null, InputUserBase[] admins = null) => client.CallAsync(writer => { writer.Write(0x33DDF480); writer.Write((events_filter != null ? 0x1 : 0) | (admins != null ? 0x2 : 0)); writer.WriteTLObject(channel); writer.WriteTLString(q); if (events_filter != null) writer.WriteTLObject(events_filter); if (admins != null) writer.WriteTLVector(admins); writer.Write(max_id); writer.Write(min_id); writer.Write(limit); return "Channels_GetAdminLog"; }); ///See public static Task Channels_SetStickers(this Client client, InputChannelBase channel, InputStickerSet stickerset) => client.CallAsync(writer => { writer.Write(0xEA8CA4F9); writer.WriteTLObject(channel); writer.WriteTLObject(stickerset); return "Channels_SetStickers"; }); ///See public static Task Channels_ReadMessageContents(this Client client, InputChannelBase channel, int[] id) => client.CallAsync(writer => { writer.Write(0xEAB5DC38); writer.WriteTLObject(channel); writer.WriteTLVector(id); return "Channels_ReadMessageContents"; }); ///See public static Task Channels_DeleteHistory(this Client client, InputChannelBase channel, int max_id) => client.CallAsync(writer => { writer.Write(0xAF369D42); writer.WriteTLObject(channel); writer.Write(max_id); return "Channels_DeleteHistory"; }); ///See public static Task Channels_TogglePreHistoryHidden(this Client client, InputChannelBase channel, bool enabled) => client.CallAsync(writer => { writer.Write(0xEABBB94C); writer.WriteTLObject(channel); writer.Write(enabled ? 0x997275B5 : 0xBC799737); return "Channels_TogglePreHistoryHidden"; }); ///See public static Task Channels_GetLeftChannels(this Client client, int offset) => client.CallAsync(writer => { writer.Write(0x8341ECC0); writer.Write(offset); return "Channels_GetLeftChannels"; }); ///See public static Task Channels_GetGroupsForDiscussion(this Client client) => client.CallAsync(writer => { writer.Write(0xF5DAD378); return "Channels_GetGroupsForDiscussion"; }); ///See public static Task Channels_SetDiscussionGroup(this Client client, InputChannelBase broadcast, InputChannelBase group) => client.CallAsync(writer => { writer.Write(0x40582BB2); writer.WriteTLObject(broadcast); writer.WriteTLObject(group); return "Channels_SetDiscussionGroup"; }); ///See public static Task Channels_EditCreator(this Client client, InputChannelBase channel, InputUserBase user_id, InputCheckPasswordSRPBase password) => client.CallAsync(writer => { writer.Write(0x8F38CD1F); writer.WriteTLObject(channel); writer.WriteTLObject(user_id); writer.WriteTLObject(password); return "Channels_EditCreator"; }); ///See public static Task Channels_EditLocation(this Client client, InputChannelBase channel, InputGeoPointBase geo_point, string address) => client.CallAsync(writer => { writer.Write(0x58E63F6D); writer.WriteTLObject(channel); writer.WriteTLObject(geo_point); writer.WriteTLString(address); return "Channels_EditLocation"; }); ///See public static Task Channels_ToggleSlowMode(this Client client, InputChannelBase channel, int seconds) => client.CallAsync(writer => { writer.Write(0xEDD49EF0); writer.WriteTLObject(channel); writer.Write(seconds); return "Channels_ToggleSlowMode"; }); ///See public static Task Channels_GetInactiveChannels(this Client client) => client.CallAsync(writer => { writer.Write(0x11E831EE); return "Channels_GetInactiveChannels"; }); ///See public static Task Channels_ConvertToGigagroup(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0x0B290C69); writer.WriteTLObject(channel); return "Channels_ConvertToGigagroup"; }); ///See public static Task Channels_ViewSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id) => client.CallAsync(writer => { writer.Write(0xBEAEDB94); writer.WriteTLObject(channel); writer.WriteTLBytes(random_id); return "Channels_ViewSponsoredMessage"; }); ///See public static Task Channels_GetSponsoredMessages(this Client client, InputChannelBase channel) => client.CallAsync(writer => { writer.Write(0xEC210FBF); writer.WriteTLObject(channel); return "Channels_GetSponsoredMessages"; }); ///See public static Task Bots_SendCustomRequest(this Client client, string custom_method, DataJSON params_) => client.CallAsync(writer => { writer.Write(0xAA2769ED); writer.WriteTLString(custom_method); writer.WriteTLObject(params_); return "Bots_SendCustomRequest"; }); ///See public static Task Bots_AnswerWebhookJSONQuery(this Client client, long query_id, DataJSON data) => client.CallAsync(writer => { writer.Write(0xE6213F4D); writer.Write(query_id); writer.WriteTLObject(data); return "Bots_AnswerWebhookJSONQuery"; }); ///See public static Task Bots_SetBotCommands(this Client client, BotCommandScope scope, string lang_code, BotCommand[] commands) => client.CallAsync(writer => { writer.Write(0x0517165A); writer.WriteTLObject(scope); writer.WriteTLString(lang_code); writer.WriteTLVector(commands); return "Bots_SetBotCommands"; }); ///See public static Task Bots_ResetBotCommands(this Client client, BotCommandScope scope, string lang_code) => client.CallAsync(writer => { writer.Write(0x3D8DE0F9); writer.WriteTLObject(scope); writer.WriteTLString(lang_code); return "Bots_ResetBotCommands"; }); ///See public static Task Bots_GetBotCommands(this Client client, BotCommandScope scope, string lang_code) => client.CallAsync(writer => { writer.Write(0xE34C0DD6); writer.WriteTLObject(scope); writer.WriteTLString(lang_code); return "Bots_GetBotCommands"; }); ///See public static Task Payments_GetPaymentForm(this Client client, InputPeer peer, int msg_id, DataJSON theme_params = null) => client.CallAsync(writer => { writer.Write(0x8A333C8D); writer.Write(theme_params != null ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(msg_id); if (theme_params != null) writer.WriteTLObject(theme_params); return "Payments_GetPaymentForm"; }); ///See public static Task Payments_GetPaymentReceipt(this Client client, InputPeer peer, int msg_id) => client.CallAsync(writer => { writer.Write(0x2478D1CC); writer.WriteTLObject(peer); writer.Write(msg_id); return "Payments_GetPaymentReceipt"; }); ///See public static Task Payments_ValidateRequestedInfo(this Client client, InputPeer peer, int msg_id, PaymentRequestedInfo info, bool save = false) => client.CallAsync(writer => { writer.Write(0xDB103170); writer.Write(save ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(msg_id); writer.WriteTLObject(info); return "Payments_ValidateRequestedInfo"; }); ///See public static Task Payments_SendPaymentForm(this Client client, long form_id, InputPeer peer, int msg_id, InputPaymentCredentialsBase credentials, string requested_info_id = null, string shipping_option_id = null, long? tip_amount = null) => client.CallAsync(writer => { writer.Write(0x30C3BC9D); writer.Write((requested_info_id != null ? 0x1 : 0) | (shipping_option_id != null ? 0x2 : 0) | (tip_amount != null ? 0x4 : 0)); writer.Write(form_id); writer.WriteTLObject(peer); writer.Write(msg_id); if (requested_info_id != null) writer.WriteTLString(requested_info_id); if (shipping_option_id != null) writer.WriteTLString(shipping_option_id); writer.WriteTLObject(credentials); if (tip_amount != null) writer.Write(tip_amount.Value); return "Payments_SendPaymentForm"; }); ///See public static Task Payments_GetSavedInfo(this Client client) => client.CallAsync(writer => { writer.Write(0x227D824B); return "Payments_GetSavedInfo"; }); ///See public static Task Payments_ClearSavedInfo(this Client client, bool credentials = false, bool info = false) => client.CallAsync(writer => { writer.Write(0xD83D70C1); writer.Write((credentials ? 0x1 : 0) | (info ? 0x2 : 0)); return "Payments_ClearSavedInfo"; }); ///See public static Task Payments_GetBankCardData(this Client client, string number) => client.CallAsync(writer => { writer.Write(0x2E79D779); writer.WriteTLString(number); return "Payments_GetBankCardData"; }); ///See public static Task Stickers_CreateStickerSet(this Client client, InputUserBase user_id, string title, string short_name, InputStickerSetItem[] stickers, bool masks = false, bool animated = false, InputDocumentBase thumb = null, string software = null) => client.CallAsync(writer => { writer.Write(0x9021AB67); writer.Write((masks ? 0x1 : 0) | (animated ? 0x2 : 0) | (thumb != null ? 0x4 : 0) | (software != null ? 0x8 : 0)); writer.WriteTLObject(user_id); writer.WriteTLString(title); writer.WriteTLString(short_name); if (thumb != null) writer.WriteTLObject(thumb); writer.WriteTLVector(stickers); if (software != null) writer.WriteTLString(software); return "Stickers_CreateStickerSet"; }); ///See public static Task Stickers_RemoveStickerFromSet(this Client client, InputDocumentBase sticker) => client.CallAsync(writer => { writer.Write(0xF7760F51); writer.WriteTLObject(sticker); return "Stickers_RemoveStickerFromSet"; }); ///See public static Task Stickers_ChangeStickerPosition(this Client client, InputDocumentBase sticker, int position) => client.CallAsync(writer => { writer.Write(0xFFB6D4CA); writer.WriteTLObject(sticker); writer.Write(position); return "Stickers_ChangeStickerPosition"; }); ///See public static Task Stickers_AddStickerToSet(this Client client, InputStickerSet stickerset, InputStickerSetItem sticker) => client.CallAsync(writer => { writer.Write(0x8653FEBE); writer.WriteTLObject(stickerset); writer.WriteTLObject(sticker); return "Stickers_AddStickerToSet"; }); ///See public static Task Stickers_SetStickerSetThumb(this Client client, InputStickerSet stickerset, InputDocumentBase thumb) => client.CallAsync(writer => { writer.Write(0x9A364E30); writer.WriteTLObject(stickerset); writer.WriteTLObject(thumb); return "Stickers_SetStickerSetThumb"; }); ///See public static Task Stickers_CheckShortName(this Client client, string short_name) => client.CallAsync(writer => { writer.Write(0x284B3639); writer.WriteTLString(short_name); return "Stickers_CheckShortName"; }); ///See public static Task Stickers_SuggestShortName(this Client client, string title) => client.CallAsync(writer => { writer.Write(0x4DAFC503); writer.WriteTLString(title); return "Stickers_SuggestShortName"; }); ///See public static Task Phone_GetCallConfig(this Client client) => client.CallAsync(writer => { writer.Write(0x55451FA9); return "Phone_GetCallConfig"; }); ///See public static Task Phone_RequestCall(this Client client, InputUserBase user_id, int random_id, byte[] g_a_hash, PhoneCallProtocol protocol, bool video = false) => client.CallAsync(writer => { writer.Write(0x42FF96ED); writer.Write(video ? 0x1 : 0); writer.WriteTLObject(user_id); writer.Write(random_id); writer.WriteTLBytes(g_a_hash); writer.WriteTLObject(protocol); return "Phone_RequestCall"; }); ///See public static Task Phone_AcceptCall(this Client client, InputPhoneCall peer, byte[] g_b, PhoneCallProtocol protocol) => client.CallAsync(writer => { writer.Write(0x3BD2B4A0); writer.WriteTLObject(peer); writer.WriteTLBytes(g_b); writer.WriteTLObject(protocol); return "Phone_AcceptCall"; }); ///See public static Task Phone_ConfirmCall(this Client client, InputPhoneCall peer, byte[] g_a, long key_fingerprint, PhoneCallProtocol protocol) => client.CallAsync(writer => { writer.Write(0x2EFE1722); writer.WriteTLObject(peer); writer.WriteTLBytes(g_a); writer.Write(key_fingerprint); writer.WriteTLObject(protocol); return "Phone_ConfirmCall"; }); ///See public static Task Phone_ReceivedCall(this Client client, InputPhoneCall peer) => client.CallAsync(writer => { writer.Write(0x17D54F61); writer.WriteTLObject(peer); return "Phone_ReceivedCall"; }); ///See public static Task Phone_DiscardCall(this Client client, InputPhoneCall peer, int duration, PhoneCallDiscardReason reason, long connection_id, bool video = false) => client.CallAsync(writer => { writer.Write(0xB2CBC1C0); writer.Write(video ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(duration); writer.Write((uint)reason); writer.Write(connection_id); return "Phone_DiscardCall"; }); ///See public static Task Phone_SetCallRating(this Client client, InputPhoneCall peer, int rating, string comment, bool user_initiative = false) => client.CallAsync(writer => { writer.Write(0x59EAD627); writer.Write(user_initiative ? 0x1 : 0); writer.WriteTLObject(peer); writer.Write(rating); writer.WriteTLString(comment); return "Phone_SetCallRating"; }); ///See public static Task Phone_SaveCallDebug(this Client client, InputPhoneCall peer, DataJSON debug) => client.CallAsync(writer => { writer.Write(0x277ADD7E); writer.WriteTLObject(peer); writer.WriteTLObject(debug); return "Phone_SaveCallDebug"; }); ///See public static Task Phone_SendSignalingData(this Client client, InputPhoneCall peer, byte[] data) => client.CallAsync(writer => { writer.Write(0xFF7A9383); writer.WriteTLObject(peer); writer.WriteTLBytes(data); return "Phone_SendSignalingData"; }); ///See public static Task Phone_CreateGroupCall(this Client client, InputPeer peer, int random_id, string title = null, DateTime? schedule_date = null) => client.CallAsync(writer => { writer.Write(0x48CDC6D8); writer.Write((title != null ? 0x1 : 0) | (schedule_date != null ? 0x2 : 0)); writer.WriteTLObject(peer); writer.Write(random_id); if (title != null) writer.WriteTLString(title); if (schedule_date != null) writer.WriteTLStamp(schedule_date.Value); return "Phone_CreateGroupCall"; }); ///See public static Task Phone_JoinGroupCall(this Client client, InputGroupCall call, InputPeer join_as, DataJSON params_, bool muted = false, bool video_stopped = false, string invite_hash = null) => client.CallAsync(writer => { writer.Write(0xB132FF7B); writer.Write((muted ? 0x1 : 0) | (video_stopped ? 0x4 : 0) | (invite_hash != null ? 0x2 : 0)); writer.WriteTLObject(call); writer.WriteTLObject(join_as); if (invite_hash != null) writer.WriteTLString(invite_hash); writer.WriteTLObject(params_); return "Phone_JoinGroupCall"; }); ///See public static Task Phone_LeaveGroupCall(this Client client, InputGroupCall call, int source) => client.CallAsync(writer => { writer.Write(0x500377F9); writer.WriteTLObject(call); writer.Write(source); return "Phone_LeaveGroupCall"; }); ///See public static Task Phone_InviteToGroupCall(this Client client, InputGroupCall call, InputUserBase[] users) => client.CallAsync(writer => { writer.Write(0x7B393160); writer.WriteTLObject(call); writer.WriteTLVector(users); return "Phone_InviteToGroupCall"; }); ///See public static Task Phone_DiscardGroupCall(this Client client, InputGroupCall call) => client.CallAsync(writer => { writer.Write(0x7A777135); writer.WriteTLObject(call); return "Phone_DiscardGroupCall"; }); ///See public static Task Phone_ToggleGroupCallSettings(this Client client, InputGroupCall call, bool reset_invite_hash = false, bool? join_muted = null) => client.CallAsync(writer => { writer.Write(0x74BBB43D); writer.Write((reset_invite_hash ? 0x2 : 0) | (join_muted != null ? 0x1 : 0)); writer.WriteTLObject(call); if (join_muted != null) writer.Write(join_muted.Value ? 0x997275B5 : 0xBC799737); return "Phone_ToggleGroupCallSettings"; }); ///See public static Task Phone_GetGroupCall(this Client client, InputGroupCall call, int limit) => client.CallAsync(writer => { writer.Write(0x041845DB); writer.WriteTLObject(call); writer.Write(limit); return "Phone_GetGroupCall"; }); ///See public static Task Phone_GetGroupParticipants(this Client client, InputGroupCall call, InputPeer[] ids, int[] sources, string offset, int limit) => client.CallAsync(writer => { writer.Write(0xC558D8AB); writer.WriteTLObject(call); writer.WriteTLVector(ids); writer.WriteTLVector(sources); writer.WriteTLString(offset); writer.Write(limit); return "Phone_GetGroupParticipants"; }); ///See public static Task Phone_CheckGroupCall(this Client client, InputGroupCall call, int[] sources) => client.CallAsync(writer => { writer.Write(0xB59CF977); writer.WriteTLObject(call); writer.WriteTLVector(sources); return "Phone_CheckGroupCall"; }); ///See public static Task Phone_ToggleGroupCallRecord(this Client client, InputGroupCall call, bool start = false, bool video = false, string title = null, bool? video_portrait = null) => client.CallAsync(writer => { writer.Write(0xF128C708); writer.Write((start ? 0x1 : 0) | (video ? 0x4 : 0) | (title != null ? 0x2 : 0) | (video_portrait != null ? 0x4 : 0)); writer.WriteTLObject(call); if (title != null) writer.WriteTLString(title); if (video_portrait != null) writer.Write(video_portrait.Value ? 0x997275B5 : 0xBC799737); return "Phone_ToggleGroupCallRecord"; }); ///See public static Task Phone_EditGroupCallParticipant(this Client client, InputGroupCall call, InputPeer participant, bool? muted = null, int? volume = null, bool? raise_hand = null, bool? video_stopped = null, bool? video_paused = null, bool? presentation_paused = null) => client.CallAsync(writer => { writer.Write(0xA5273ABF); writer.Write((muted != null ? 0x1 : 0) | (volume != null ? 0x2 : 0) | (raise_hand != null ? 0x4 : 0) | (video_stopped != null ? 0x8 : 0) | (video_paused != null ? 0x10 : 0) | (presentation_paused != null ? 0x20 : 0)); writer.WriteTLObject(call); writer.WriteTLObject(participant); if (muted != null) writer.Write(muted.Value ? 0x997275B5 : 0xBC799737); if (volume != null) writer.Write(volume.Value); if (raise_hand != null) writer.Write(raise_hand.Value ? 0x997275B5 : 0xBC799737); if (video_stopped != null) writer.Write(video_stopped.Value ? 0x997275B5 : 0xBC799737); if (video_paused != null) writer.Write(video_paused.Value ? 0x997275B5 : 0xBC799737); if (presentation_paused != null) writer.Write(presentation_paused.Value ? 0x997275B5 : 0xBC799737); return "Phone_EditGroupCallParticipant"; }); ///See public static Task Phone_EditGroupCallTitle(this Client client, InputGroupCall call, string title) => client.CallAsync(writer => { writer.Write(0x1CA6AC0A); writer.WriteTLObject(call); writer.WriteTLString(title); return "Phone_EditGroupCallTitle"; }); ///See public static Task Phone_GetGroupCallJoinAs(this Client client, InputPeer peer) => client.CallAsync(writer => { writer.Write(0xEF7C213A); writer.WriteTLObject(peer); return "Phone_GetGroupCallJoinAs"; }); ///See public static Task Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false) => client.CallAsync(writer => { writer.Write(0xE6AA647F); writer.Write(can_self_unmute ? 0x1 : 0); writer.WriteTLObject(call); return "Phone_ExportGroupCallInvite"; }); ///See public static Task Phone_ToggleGroupCallStartSubscription(this Client client, InputGroupCall call, bool subscribed) => client.CallAsync(writer => { writer.Write(0x219C34E6); writer.WriteTLObject(call); writer.Write(subscribed ? 0x997275B5 : 0xBC799737); return "Phone_ToggleGroupCallStartSubscription"; }); ///See public static Task Phone_StartScheduledGroupCall(this Client client, InputGroupCall call) => client.CallAsync(writer => { writer.Write(0x5680E342); writer.WriteTLObject(call); return "Phone_StartScheduledGroupCall"; }); ///See public static Task Phone_SaveDefaultGroupCallJoinAs(this Client client, InputPeer peer, InputPeer join_as) => client.CallAsync(writer => { writer.Write(0x575E1F8C); writer.WriteTLObject(peer); writer.WriteTLObject(join_as); return "Phone_SaveDefaultGroupCallJoinAs"; }); ///See public static Task Phone_JoinGroupCallPresentation(this Client client, InputGroupCall call, DataJSON params_) => client.CallAsync(writer => { writer.Write(0xCBEA6BC4); writer.WriteTLObject(call); writer.WriteTLObject(params_); return "Phone_JoinGroupCallPresentation"; }); ///See public static Task Phone_LeaveGroupCallPresentation(this Client client, InputGroupCall call) => client.CallAsync(writer => { writer.Write(0x1C50D144); writer.WriteTLObject(call); return "Phone_LeaveGroupCallPresentation"; }); ///See public static Task Langpack_GetLangPack(this Client client, string lang_pack, string lang_code) => client.CallAsync(writer => { writer.Write(0xF2F2330A); writer.WriteTLString(lang_pack); writer.WriteTLString(lang_code); return "Langpack_GetLangPack"; }); ///See public static Task Langpack_GetStrings(this Client client, string lang_pack, string lang_code, string[] keys) => client.CallAsync(writer => { writer.Write(0xEFEA3803); writer.WriteTLString(lang_pack); writer.WriteTLString(lang_code); writer.WriteTLVector(keys); return "Langpack_GetStrings"; }); ///See public static Task Langpack_GetDifference(this Client client, string lang_pack, string lang_code, int from_version) => client.CallAsync(writer => { writer.Write(0xCD984AA5); writer.WriteTLString(lang_pack); writer.WriteTLString(lang_code); writer.Write(from_version); return "Langpack_GetDifference"; }); ///See public static Task Langpack_GetLanguages(this Client client, string lang_pack) => client.CallAsync(writer => { writer.Write(0x42C6978F); writer.WriteTLString(lang_pack); return "Langpack_GetLanguages"; }); ///See public static Task Langpack_GetLanguage(this Client client, string lang_pack, string lang_code) => client.CallAsync(writer => { writer.Write(0x6A596502); writer.WriteTLString(lang_pack); writer.WriteTLString(lang_code); return "Langpack_GetLanguage"; }); ///See public static Task Folders_EditPeerFolders(this Client client, InputFolderPeer[] folder_peers) => client.CallAsync(writer => { writer.Write(0x6847D0AB); writer.WriteTLVector(folder_peers); return "Folders_EditPeerFolders"; }); ///See public static Task Folders_DeleteFolder(this Client client, int folder_id) => client.CallAsync(writer => { writer.Write(0x1C295881); writer.Write(folder_id); return "Folders_DeleteFolder"; }); ///See public static Task Stats_GetBroadcastStats(this Client client, InputChannelBase channel, bool dark = false) => client.CallAsync(writer => { writer.Write(0xAB42441A); writer.Write(dark ? 0x1 : 0); writer.WriteTLObject(channel); return "Stats_GetBroadcastStats"; }); ///See public static Task Stats_LoadAsyncGraph(this Client client, string token, long? x = null) => client.CallAsync(writer => { writer.Write(0x621D5FA0); writer.Write(x != null ? 0x1 : 0); writer.WriteTLString(token); if (x != null) writer.Write(x.Value); return "Stats_LoadAsyncGraph"; }); ///See public static Task Stats_GetMegagroupStats(this Client client, InputChannelBase channel, bool dark = false) => client.CallAsync(writer => { writer.Write(0xDCDF8607); writer.Write(dark ? 0x1 : 0); writer.WriteTLObject(channel); return "Stats_GetMegagroupStats"; }); ///See public static Task Stats_GetMessagePublicForwards(this Client client, InputChannelBase channel, int msg_id, int offset_rate, InputPeer offset_peer, int offset_id, int limit) => client.CallAsync(writer => { writer.Write(0x5630281B); writer.WriteTLObject(channel); writer.Write(msg_id); writer.Write(offset_rate); writer.WriteTLObject(offset_peer); writer.Write(offset_id); writer.Write(limit); return "Stats_GetMessagePublicForwards"; }); ///See public static Task Stats_GetMessageStats(this Client client, InputChannelBase channel, int msg_id, bool dark = false) => client.CallAsync(writer => { writer.Write(0xB6E0A3F5); writer.Write(dark ? 0x1 : 0); writer.WriteTLObject(channel); writer.Write(msg_id); return "Stats_GetMessageStats"; }); } }