WTelegramClient/src/TL.Schema.cs

8863 lines
380 KiB
C#
Raw Normal View History

2021-08-07 06:59:36 +02:00
// This file is (mainly) generated automatically using the Generator class
2021-08-04 00:40:09 +02:00
using System;
using System.Threading.Tasks;
2021-08-04 00:40:09 +02:00
namespace TL
{
[TLDef(0x3FEDD339)] //true#3fedd339 = True
public partial class True : ITLObject { }
2021-08-04 00:40:09 +02:00
[TLDef(0xC4B9F9BB)] //error#c4b9f9bb code:int text:string = Error
public partial class Error : ITLObject
2021-08-04 00:40:09 +02:00
{
public int code;
public string text;
}
[TLDef(0x56730BCC)] //null#56730bcc = Null
public partial class Null : ITLObject { }
2021-08-04 00:40:09 +02:00
public abstract partial class InputPeer : ITLObject { }
[TLDef(0x7F3B18EA)] //inputPeerEmpty#7f3b18ea = InputPeer
public partial class InputPeerEmpty : InputPeer { }
[TLDef(0x7DA07EC9)] //inputPeerSelf#7da07ec9 = InputPeer
public partial class InputPeerSelf : InputPeer { }
[TLDef(0x179BE863)] //inputPeerChat#179be863 chat_id:int = InputPeer
public partial class InputPeerChat : InputPeer { public int chat_id; }
[TLDef(0x7B8E7DE6)] //inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer
public partial class InputPeerUser : InputPeer
2021-08-04 00:40:09 +02:00
{
public int user_id;
public long access_hash;
}
[TLDef(0x20ADAEF8)] //inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer
public partial class InputPeerChannel : InputPeer
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public long access_hash;
}
[TLDef(0x17BAE2E6)] //inputPeerUserFromMessage#17bae2e6 peer:InputPeer msg_id:int user_id:int = InputPeer
public partial class InputPeerUserFromMessage : InputPeer
2021-08-04 00:40:09 +02:00
{
public InputPeer peer;
public int msg_id;
public int user_id;
}
[TLDef(0x9C95F7BB)] //inputPeerChannelFromMessage#9c95f7bb peer:InputPeer msg_id:int channel_id:int = InputPeer
public partial class InputPeerChannelFromMessage : InputPeer
2021-08-04 00:40:09 +02:00
{
public InputPeer peer;
public int msg_id;
public int channel_id;
}
public abstract partial class InputUserBase : ITLObject { }
[TLDef(0xB98886CF)] //inputUserEmpty#b98886cf = InputUser
public partial class InputUserEmpty : InputUserBase { }
[TLDef(0xF7C1B13F)] //inputUserSelf#f7c1b13f = InputUser
public partial class InputUserSelf : InputUserBase { }
[TLDef(0xD8292816)] //inputUser#d8292816 user_id:int access_hash:long = InputUser
public partial class InputUser : InputUserBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public long access_hash;
}
[TLDef(0x2D117597)] //inputUserFromMessage#2d117597 peer:InputPeer msg_id:int user_id:int = InputUser
public partial class InputUserFromMessage : InputUserBase
2021-08-04 00:40:09 +02:00
{
public InputPeer peer;
public int msg_id;
public int user_id;
}
public abstract partial class InputContact : ITLObject { }
[TLDef(0xF392B7F4)] //inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact
public partial class InputPhoneContact : InputContact
2021-08-04 00:40:09 +02:00
{
public long client_id;
public string phone;
public string first_name;
public string last_name;
}
public abstract partial class InputFileBase : ITLObject { }
[TLDef(0xF52FF27F)] //inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile
public partial class InputFile : InputFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public int parts;
public string name;
public byte[] md5_checksum;
2021-08-04 00:40:09 +02:00
}
[TLDef(0xFA4F0BB5)] //inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile
public partial class InputFileBig : InputFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public int parts;
public string name;
}
public abstract partial class InputMedia : ITLObject { }
[TLDef(0x9664F57F)] //inputMediaEmpty#9664f57f = InputMedia
public partial class InputMediaEmpty : InputMedia { }
[TLDef(0x1E287D04)] //inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia
public partial class InputMediaUploadedPhoto : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputFileBase file;
[IfFlag(0)] public InputDocumentBase[] stickers;
[IfFlag(1)] public int ttl_seconds;
}
[TLDef(0xB3BA0635)] //inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia
public partial class InputMediaPhoto : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_ttl_seconds = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputPhotoBase id;
[IfFlag(0)] public int ttl_seconds;
}
[TLDef(0xF9C44144)] //inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia
public partial class InputMediaGeoPoint : InputMedia { public InputGeoPointBase geo_point; }
[TLDef(0xF8AB7DFB)] //inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia
public partial class InputMediaContact : InputMedia
2021-08-04 00:40:09 +02:00
{
public string phone_number;
public string first_name;
public string last_name;
public string vcard;
}
[TLDef(0x5B38C6C1)] //inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> ttl_seconds:flags.1?int = InputMedia
public partial class InputMediaUploadedDocument : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2, has_thumb = 0x4, nosound_video = 0x8, force_file = 0x10 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x23AB23D2)] //inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia
public partial class InputMediaDocument : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_ttl_seconds = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputDocumentBase id;
[IfFlag(0)] public int ttl_seconds;
}
[TLDef(0xC13D1C11)] //inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia
public partial class InputMediaVenue : InputMedia
2021-08-04 00:40:09 +02:00
{
public InputGeoPointBase geo_point;
public string title;
public string address;
public string provider;
public string venue_id;
public string venue_type;
}
[TLDef(0xE5BBFE1A)] //inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia
public partial class InputMediaPhotoExternal : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_ttl_seconds = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string url;
[IfFlag(0)] public int ttl_seconds;
}
[TLDef(0xFB52DC99)] //inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia
public partial class InputMediaDocumentExternal : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_ttl_seconds = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string url;
[IfFlag(0)] public int ttl_seconds;
}
[TLDef(0xD33F43F3)] //inputMediaGame#d33f43f3 id:InputGame = InputMedia
public partial class InputMediaGame : InputMedia { public InputGame id; }
[TLDef(0xF4E096C3)] //inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia
public partial class InputMediaInvoice : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_photo = 0x1 }
2021-08-04 00:40:09 +02:00
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;
public string start_param;
}
[TLDef(0x971FA843)] //inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia
public partial class InputMediaGeoLive : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { stopped = 0x1, has_period = 0x2, has_heading = 0x4, has_proximity_notification_radius = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputGeoPointBase geo_point;
[IfFlag(2)] public int heading;
[IfFlag(1)] public int period;
[IfFlag(3)] public int proximity_notification_radius;
}
[TLDef(0x0F94E5F1)] //inputMediaPoll#0f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector<bytes> solution:flags.1?string solution_entities:flags.1?Vector<MessageEntity> = InputMedia
public partial class InputMediaPoll : InputMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_correct_answers = 0x1, has_solution = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public Poll poll;
[IfFlag(0)] public byte[][] correct_answers;
[IfFlag(1)] public string solution;
[IfFlag(1)] public MessageEntity[] solution_entities;
}
[TLDef(0xE66FBF7B)] //inputMediaDice#e66fbf7b emoticon:string = InputMedia
public partial class InputMediaDice : InputMedia { public string emoticon; }
2021-08-04 00:40:09 +02:00
public abstract partial class InputChatPhotoBase : ITLObject { }
[TLDef(0x1CA48F57)] //inputChatPhotoEmpty#1ca48f57 = InputChatPhoto
public partial class InputChatPhotoEmpty : InputChatPhotoBase { }
[TLDef(0xC642724E)] //inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto
public partial class InputChatUploadedPhoto : InputChatPhotoBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_file = 0x1, has_video = 0x2, has_video_start_ts = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public InputFileBase file;
[IfFlag(1)] public InputFileBase video;
[IfFlag(2)] public double video_start_ts;
}
[TLDef(0x8953AD37)] //inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto
public partial class InputChatPhoto : InputChatPhotoBase { public InputPhotoBase id; }
2021-08-04 00:40:09 +02:00
public abstract partial class InputGeoPointBase : ITLObject { }
[TLDef(0xE4C123D6)] //inputGeoPointEmpty#e4c123d6 = InputGeoPoint
public partial class InputGeoPointEmpty : InputGeoPointBase { }
[TLDef(0x48222FAF)] //inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint
public partial class InputGeoPoint : InputGeoPointBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_accuracy_radius = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public double lat;
public double long_;
[IfFlag(0)] public int accuracy_radius;
}
public abstract partial class InputPhotoBase : ITLObject { }
[TLDef(0x1CD7BF0D)] //inputPhotoEmpty#1cd7bf0d = InputPhoto
public partial class InputPhotoEmpty : InputPhotoBase { }
[TLDef(0x3BB3B94A)] //inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto
public partial class InputPhoto : InputPhotoBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public byte[] file_reference;
}
public abstract partial class InputFileLocationBase : ITLObject { }
[TLDef(0xDFDAABE1)] //inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation
public partial class InputFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long volume_id;
public int local_id;
public long secret;
public byte[] file_reference;
}
[TLDef(0xF5235D55)] //inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation
public partial class InputEncryptedFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0xBAD07584)] //inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation
public partial class InputDocumentFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public byte[] file_reference;
public string thumb_size;
}
[TLDef(0xCBC7EE28)] //inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation
public partial class InputSecureFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0x29BE5899)] //inputTakeoutFileLocation#29be5899 = InputFileLocation
public partial class InputTakeoutFileLocation : InputFileLocationBase { }
[TLDef(0x40181FFE)] //inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation
public partial class InputPhotoFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public byte[] file_reference;
public string thumb_size;
}
[TLDef(0xD83466F3)] //inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation
public partial class InputPhotoLegacyFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public byte[] file_reference;
public long volume_id;
public int local_id;
public long secret;
}
[TLDef(0x27D69997)] //inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation
public partial class InputPeerPhotoFileLocation : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { big = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputPeer peer;
public long volume_id;
public int local_id;
}
[TLDef(0x0DBAEAE9)] //inputStickerSetThumb#0dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation
public partial class InputStickerSetThumb : InputFileLocationBase
2021-08-04 00:40:09 +02:00
{
public InputStickerSet stickerset;
public long volume_id;
public int local_id;
}
public abstract partial class Peer : ITLObject { }
[TLDef(0x9DB1BC6D)] //peerUser#9db1bc6d user_id:int = Peer
public partial class PeerUser : Peer { public int user_id; }
[TLDef(0xBAD0E5BB)] //peerChat#bad0e5bb chat_id:int = Peer
public partial class PeerChat : Peer { public int chat_id; }
[TLDef(0xBDDDE532)] //peerChannel#bddde532 channel_id:int = Peer
public partial class PeerChannel : Peer { public int channel_id; }
2021-08-04 00:40:09 +02:00
public abstract partial class Storage_FileType : ITLObject { }
[TLDef(0xAA963B05)] //storage.fileUnknown#aa963b05 = storage.FileType
public partial class Storage_FileUnknown : Storage_FileType { }
[TLDef(0x40BC6F52)] //storage.filePartial#40bc6f52 = storage.FileType
public partial class Storage_FilePartial : Storage_FileType { }
[TLDef(0x007EFE0E)] //storage.fileJpeg#007efe0e = storage.FileType
public partial class Storage_FileJpeg : Storage_FileType { }
[TLDef(0xCAE1AADF)] //storage.fileGif#cae1aadf = storage.FileType
public partial class Storage_FileGif : Storage_FileType { }
[TLDef(0x0A4F63C0)] //storage.filePng#0a4f63c0 = storage.FileType
public partial class Storage_FilePng : Storage_FileType { }
[TLDef(0xAE1E508D)] //storage.filePdf#ae1e508d = storage.FileType
public partial class Storage_FilePdf : Storage_FileType { }
[TLDef(0x528A0677)] //storage.fileMp3#528a0677 = storage.FileType
public partial class Storage_FileMp3 : Storage_FileType { }
[TLDef(0x4B09EBBC)] //storage.fileMov#4b09ebbc = storage.FileType
public partial class Storage_FileMov : Storage_FileType { }
[TLDef(0xB3CEA0E4)] //storage.fileMp4#b3cea0e4 = storage.FileType
public partial class Storage_FileMp4 : Storage_FileType { }
[TLDef(0x1081464C)] //storage.fileWebp#1081464c = storage.FileType
public partial class Storage_FileWebp : Storage_FileType { }
2021-08-04 00:40:09 +02:00
public abstract partial class UserBase : ITLObject { }
[TLDef(0x200250BA)] //userEmpty#200250ba id:int = User
public partial class UserEmpty : UserBase { public int id; }
[TLDef(0x938458C1)] //user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User
public partial class User : UserBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int 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;
}
public abstract partial class UserProfilePhotoBase : ITLObject { }
[TLDef(0x4F11BAE1)] //userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto
public partial class UserProfilePhotoEmpty : UserProfilePhotoBase { }
[TLDef(0x69D3AB26)] //userProfilePhoto#69d3ab26 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto
public partial class UserProfilePhoto : UserProfilePhotoBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_video = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long photo_id;
public FileLocation photo_small;
public FileLocation photo_big;
public int dc_id;
}
public abstract partial class UserStatus : ITLObject { }
[TLDef(0x09D05049)] //userStatusEmpty#09d05049 = UserStatus
public partial class UserStatusEmpty : UserStatus { }
[TLDef(0xEDB93949)] //userStatusOnline#edb93949 expires:int = UserStatus
public partial class UserStatusOnline : UserStatus { public DateTime expires; }
[TLDef(0x008C703F)] //userStatusOffline#008c703f was_online:int = UserStatus
public partial class UserStatusOffline : UserStatus { public int was_online; }
[TLDef(0xE26F42F1)] //userStatusRecently#e26f42f1 = UserStatus
public partial class UserStatusRecently : UserStatus { }
[TLDef(0x07BF09FC)] //userStatusLastWeek#07bf09fc = UserStatus
public partial class UserStatusLastWeek : UserStatus { }
[TLDef(0x77EBC742)] //userStatusLastMonth#77ebc742 = UserStatus
public partial class UserStatusLastMonth : UserStatus { }
2021-08-04 00:40:09 +02:00
public abstract partial class ChatBase : ITLObject { }
[TLDef(0x9BA2D800)] //chatEmpty#9ba2d800 id:int = Chat
public partial class ChatEmpty : ChatBase { public int id; }
[TLDef(0x3BDA1BDE)] //chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat
public partial class Chat : ChatBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int 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;
}
[TLDef(0x07328BDB)] //chatForbidden#07328bdb id:int title:string = Chat
public partial class ChatForbidden : ChatBase
2021-08-04 00:40:09 +02:00
{
public int id;
public string title;
}
[TLDef(0xD31A961E)] //channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector<RestrictionReason> admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat
public partial class Channel : ChatBase
2021-08-04 00:40:09 +02:00
{
[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,
2021-08-04 00:40:09 +02:00
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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
[IfFlag(13)] public long access_hash;
public string title;
[IfFlag(6)] public string username;
public ChatPhotoBase photo;
public DateTime date;
public int version;
[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;
}
[TLDef(0x289DA732)] //channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat
public partial class ChannelForbidden : ChatBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { broadcast = 0x20, megagroup = 0x100, has_until_date = 0x10000 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public long access_hash;
public string title;
[IfFlag(16)] public DateTime until_date;
}
public abstract partial class ChatFullBase : ITLObject { }
[TLDef(0x1B7C9DB3)] //chatFull#1b7c9db3 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector<BotInfo> pinned_msg_id:flags.6?int folder_id:flags.11?int = ChatFull
public partial class ChatFull : ChatFullBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public string about;
public ChatParticipantsBase participants;
[IfFlag(2)] public PhotoBase chat_photo;
public PeerNotifySettings notify_settings;
public ExportedChatInvite exported_invite;
[IfFlag(3)] public BotInfo[] bot_info;
[IfFlag(6)] public int pinned_msg_id;
[IfFlag(11)] public int folder_id;
}
[TLDef(0xF0E6672A)] //channelFull#f0e6672a flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector<BotInfo> migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int = ChatFull
public partial class ChannelFull : ChatFullBase
2021-08-04 00:40:09 +02:00
{
[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, blocked = 0x400000 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int 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;
public ExportedChatInvite exported_invite;
public BotInfo[] bot_info;
[IfFlag(4)] public int 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 int 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;
}
public abstract partial class ChatParticipantBase : ITLObject { }
[TLDef(0xC8D7493E)] //chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant
public partial class ChatParticipant : ChatParticipantBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int inviter_id;
public DateTime date;
}
[TLDef(0xDA13538A)] //chatParticipantCreator#da13538a user_id:int = ChatParticipant
public partial class ChatParticipantCreator : ChatParticipantBase { public int user_id; }
[TLDef(0xE2D6E436)] //chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant
public partial class ChatParticipantAdmin : ChatParticipantBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int inviter_id;
public DateTime date;
}
public abstract partial class ChatParticipantsBase : ITLObject { }
[TLDef(0xFC900C2B)] //chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants
public partial class ChatParticipantsForbidden : ChatParticipantsBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_self_participant = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int chat_id;
[IfFlag(0)] public ChatParticipantBase self_participant;
}
[TLDef(0x3F460FED)] //chatParticipants#3f460fed chat_id:int participants:Vector<ChatParticipant> version:int = ChatParticipants
public partial class ChatParticipants : ChatParticipantsBase
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public ChatParticipantBase[] participants;
public int version;
}
public abstract partial class ChatPhotoBase : ITLObject { }
[TLDef(0x37C1011C)] //chatPhotoEmpty#37c1011c = ChatPhoto
public partial class ChatPhotoEmpty : ChatPhotoBase { }
[TLDef(0xD20B9F3C)] //chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto
public partial class ChatPhoto : ChatPhotoBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_video = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public FileLocation photo_small;
public FileLocation photo_big;
public int dc_id;
}
public abstract partial class MessageBase : ITLObject { }
[TLDef(0x83E5DE54)] //messageEmpty#83e5de54 id:int = Message
public partial class MessageEmpty : MessageBase { public int id; }
[TLDef(0x58AE39C9)] //message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> = Message
public partial class Message : MessageBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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 int 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;
}
[TLDef(0x286FA604)] //messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message
public partial class MessageService : MessageBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class MessageMedia : ITLObject { }
[TLDef(0x3DED6320)] //messageMediaEmpty#3ded6320 = MessageMedia
public partial class MessageMediaEmpty : MessageMedia { }
[TLDef(0x695150D7)] //messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia
public partial class MessageMediaPhoto : MessageMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_photo = 0x1, has_ttl_seconds = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public PhotoBase photo;
[IfFlag(2)] public int ttl_seconds;
}
[TLDef(0x56E0D474)] //messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia
public partial class MessageMediaGeo : MessageMedia { public GeoPointBase geo; }
[TLDef(0xCBF24940)] //messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia
public partial class MessageMediaContact : MessageMedia
2021-08-04 00:40:09 +02:00
{
public string phone_number;
public string first_name;
public string last_name;
public string vcard;
public int user_id;
}
[TLDef(0x9F84F49E)] //messageMediaUnsupported#9f84f49e = MessageMedia
public partial class MessageMediaUnsupported : MessageMedia { }
[TLDef(0x9CB070D7)] //messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia
public partial class MessageMediaDocument : MessageMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_document = 0x1, has_ttl_seconds = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public DocumentBase document;
[IfFlag(2)] public int ttl_seconds;
}
[TLDef(0xA32DD600)] //messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia
public partial class MessageMediaWebPage : MessageMedia { public WebPageBase webpage; }
[TLDef(0x2EC0533F)] //messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia
public partial class MessageMediaVenue : MessageMedia
2021-08-04 00:40:09 +02:00
{
public GeoPointBase geo;
public string title;
public string address;
public string provider;
public string venue_id;
public string venue_type;
}
[TLDef(0xFDB19008)] //messageMediaGame#fdb19008 game:Game = MessageMedia
public partial class MessageMediaGame : MessageMedia { public Game game; }
[TLDef(0x84551347)] //messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia
public partial class MessageMediaInvoice : MessageMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_photo = 0x1, shipping_address_requested = 0x2, has_receipt_msg_id = 0x4, test = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xB940C666)] //messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia
public partial class MessageMediaGeoLive : MessageMedia
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_heading = 0x1, has_proximity_notification_radius = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public GeoPointBase geo;
[IfFlag(0)] public int heading;
public int period;
[IfFlag(1)] public int proximity_notification_radius;
}
[TLDef(0x4BD6E798)] //messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia
public partial class MessageMediaPoll : MessageMedia
2021-08-04 00:40:09 +02:00
{
public Poll poll;
public PollResults results;
}
[TLDef(0x3F7EE58B)] //messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia
public partial class MessageMediaDice : MessageMedia
2021-08-04 00:40:09 +02:00
{
public int value;
public string emoticon;
}
public abstract partial class MessageAction : ITLObject { }
[TLDef(0xB6AEF7B0)] //messageActionEmpty#b6aef7b0 = MessageAction
public partial class MessageActionEmpty : MessageAction { }
[TLDef(0xA6638B9A)] //messageActionChatCreate#a6638b9a title:string users:Vector<int> = MessageAction
public partial class MessageActionChatCreate : MessageAction
2021-08-04 00:40:09 +02:00
{
public string title;
public int[] users;
}
[TLDef(0xB5A1CE5A)] //messageActionChatEditTitle#b5a1ce5a title:string = MessageAction
public partial class MessageActionChatEditTitle : MessageAction { public string title; }
[TLDef(0x7FCB13A8)] //messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction
public partial class MessageActionChatEditPhoto : MessageAction { public PhotoBase photo; }
[TLDef(0x95E3FBEF)] //messageActionChatDeletePhoto#95e3fbef = MessageAction
public partial class MessageActionChatDeletePhoto : MessageAction { }
[TLDef(0x488A7337)] //messageActionChatAddUser#488a7337 users:Vector<int> = MessageAction
public partial class MessageActionChatAddUser : MessageAction { public int[] users; }
[TLDef(0xB2AE9B0C)] //messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction
public partial class MessageActionChatDeleteUser : MessageAction { public int user_id; }
[TLDef(0xF89CF5E8)] //messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction
public partial class MessageActionChatJoinedByLink : MessageAction { public int inviter_id; }
[TLDef(0x95D2AC92)] //messageActionChannelCreate#95d2ac92 title:string = MessageAction
public partial class MessageActionChannelCreate : MessageAction { public string title; }
[TLDef(0x51BDB021)] //messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction
public partial class MessageActionChatMigrateTo : MessageAction { public int channel_id; }
[TLDef(0xB055EAEE)] //messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction
public partial class MessageActionChannelMigrateFrom : MessageAction
2021-08-04 00:40:09 +02:00
{
public string title;
public int chat_id;
}
[TLDef(0x94BD38ED)] //messageActionPinMessage#94bd38ed = MessageAction
public partial class MessageActionPinMessage : MessageAction { }
[TLDef(0x9FBAB604)] //messageActionHistoryClear#9fbab604 = MessageAction
public partial class MessageActionHistoryClear : MessageAction { }
[TLDef(0x92A72876)] //messageActionGameScore#92a72876 game_id:long score:int = MessageAction
public partial class MessageActionGameScore : MessageAction
2021-08-04 00:40:09 +02:00
{
public long game_id;
public int score;
}
[TLDef(0x8F31B327)] //messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction
public partial class MessageActionPaymentSentMe : MessageAction
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x40699CD0)] //messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction
public partial class MessageActionPaymentSent : MessageAction
2021-08-04 00:40:09 +02:00
{
public string currency;
public long total_amount;
}
[TLDef(0x80E11A7F)] //messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction
public partial class MessageActionPhoneCall : MessageAction
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, video = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long call_id;
[IfFlag(0)] public PhoneCallDiscardReason reason;
[IfFlag(1)] public int duration;
}
[TLDef(0x4792929B)] //messageActionScreenshotTaken#4792929b = MessageAction
public partial class MessageActionScreenshotTaken : MessageAction { }
[TLDef(0xFAE69F56)] //messageActionCustomAction#fae69f56 message:string = MessageAction
public partial class MessageActionCustomAction : MessageAction { public string message; }
[TLDef(0xABE9AFFE)] //messageActionBotAllowed#abe9affe domain:string = MessageAction
public partial class MessageActionBotAllowed : MessageAction { public string domain; }
[TLDef(0x1B287353)] //messageActionSecureValuesSentMe#1b287353 values:Vector<SecureValue> credentials:SecureCredentialsEncrypted = MessageAction
public partial class MessageActionSecureValuesSentMe : MessageAction
2021-08-04 00:40:09 +02:00
{
public SecureValue[] values;
public SecureCredentialsEncrypted credentials;
}
[TLDef(0xD95C6154)] //messageActionSecureValuesSent#d95c6154 types:Vector<SecureValueType> = MessageAction
public partial class MessageActionSecureValuesSent : MessageAction { public SecureValueType[] types; }
[TLDef(0xF3F25F76)] //messageActionContactSignUp#f3f25f76 = MessageAction
public partial class MessageActionContactSignUp : MessageAction { }
[TLDef(0x98E0D697)] //messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction
public partial class MessageActionGeoProximityReached : MessageAction
2021-08-04 00:40:09 +02:00
{
public Peer from_id;
public Peer to_id;
public int distance;
}
public abstract partial class DialogBase : ITLObject { }
[TLDef(0x2C171F72)] //dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog
public partial class Dialog : DialogBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_pts = 0x1, has_draft = 0x2, pinned = 0x4, unread_mark = 0x8, has_folder_id = 0x10 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x71BD134C)] //dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog
public partial class DialogFolder : DialogBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { pinned = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class PhotoBase : ITLObject { }
[TLDef(0x2331B22D)] //photoEmpty#2331b22d id:long = Photo
public partial class PhotoEmpty : PhotoBase { public long id; }
[TLDef(0xFB197A65)] //photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector<PhotoSize> video_sizes:flags.1?Vector<VideoSize> dc_id:int = Photo
public partial class Photo : PhotoBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_stickers = 0x1, has_video_sizes = 0x2 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class PhotoSizeBase : ITLObject { }
[TLDef(0x0E17E23C)] //photoSizeEmpty#0e17e23c type:string = PhotoSize
public partial class PhotoSizeEmpty : PhotoSizeBase { public string type; }
[TLDef(0x77BFB61B)] //photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize
public partial class PhotoSize : PhotoSizeBase
2021-08-04 00:40:09 +02:00
{
public string type;
public FileLocation location;
public int w;
public int h;
public int size;
}
[TLDef(0xE9A734FA)] //photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize
public partial class PhotoCachedSize : PhotoSizeBase
2021-08-04 00:40:09 +02:00
{
public string type;
public FileLocation location;
public int w;
public int h;
public byte[] bytes;
}
[TLDef(0xE0B0BC2E)] //photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize
public partial class PhotoStrippedSize : PhotoSizeBase
2021-08-04 00:40:09 +02:00
{
public string type;
public byte[] bytes;
}
[TLDef(0x5AA86A51)] //photoSizeProgressive#5aa86a51 type:string location:FileLocation w:int h:int sizes:Vector<int> = PhotoSize
public partial class PhotoSizeProgressive : PhotoSizeBase
2021-08-04 00:40:09 +02:00
{
public string type;
public FileLocation location;
public int w;
public int h;
public int[] sizes;
}
[TLDef(0xD8214D41)] //photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize
public partial class PhotoPathSize : PhotoSizeBase
2021-08-04 00:40:09 +02:00
{
public string type;
public byte[] bytes;
}
public abstract partial class GeoPointBase : ITLObject { }
[TLDef(0x1117DD5F)] //geoPointEmpty#1117dd5f = GeoPoint
public partial class GeoPointEmpty : GeoPointBase { }
[TLDef(0xB2A2F663)] //geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint
public partial class GeoPoint : GeoPointBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_accuracy_radius = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public double long_;
public double lat;
public long access_hash;
[IfFlag(0)] public int accuracy_radius;
}
[TLDef(0x5E002502)] //auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode
public partial class Auth_SentCode : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_next_type = 0x2, has_timeout = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public Auth_SentCodeType type;
public string phone_code_hash;
[IfFlag(1)] public Auth_CodeType next_type;
[IfFlag(2)] public int timeout;
}
public abstract partial class Auth_AuthorizationBase : ITLObject { }
[TLDef(0xCD050916)] //auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization
public partial class Auth_Authorization : Auth_AuthorizationBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_tmp_sessions = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int tmp_sessions;
public UserBase user;
}
[TLDef(0x44747E9A)] //auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization
public partial class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_terms_of_service = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public Help_TermsOfService terms_of_service;
}
[TLDef(0xDF969C2D)] //auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization
public partial class Auth_ExportedAuthorization : ITLObject
2021-08-04 00:40:09 +02:00
{
public int id;
public byte[] bytes;
}
public abstract partial class InputNotifyPeerBase : ITLObject { }
[TLDef(0xB8BC5B0C)] //inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer
public partial class InputNotifyPeer : InputNotifyPeerBase { public InputPeer peer; }
[TLDef(0x193B4417)] //inputNotifyUsers#193b4417 = InputNotifyPeer
public partial class InputNotifyUsers : InputNotifyPeerBase { }
[TLDef(0x4A95E84E)] //inputNotifyChats#4a95e84e = InputNotifyPeer
public partial class InputNotifyChats : InputNotifyPeerBase { }
[TLDef(0xB1DB7C7E)] //inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer
public partial class InputNotifyBroadcasts : InputNotifyPeerBase { }
2021-08-04 00:40:09 +02:00
[TLDef(0x9C3D198E)] //inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings
public partial class InputPeerNotifySettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xAF509D20)] //peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings
public partial class PeerNotifySettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x733F2961)] //peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings
public partial class PeerSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(6)] public int geo_distance;
}
public abstract partial class WallPaperBase : ITLObject { }
[TLDef(0xA437C3ED)] //wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper
public partial class WallPaper : WallPaperBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_settings = 0x4, pattern = 0x8, dark = 0x10 }
2021-08-04 00:40:09 +02:00
public long id;
public Flags flags;
public long access_hash;
public string slug;
public DocumentBase document;
[IfFlag(2)] public WallPaperSettings settings;
}
[TLDef(0x8AF40B25)] //wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper
public partial class WallPaperNoFile : WallPaperBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { default_ = 0x2, has_settings = 0x4, dark = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(2)] public WallPaperSettings settings;
}
public abstract partial class ReportReason : ITLObject { }
[TLDef(0x58DBCAB8)] //inputReportReasonSpam#58dbcab8 = ReportReason
public partial class InputReportReasonSpam : ReportReason { }
[TLDef(0x1E22C78D)] //inputReportReasonViolence#1e22c78d = ReportReason
public partial class InputReportReasonViolence : ReportReason { }
[TLDef(0x2E59D922)] //inputReportReasonPornography#2e59d922 = ReportReason
public partial class InputReportReasonPornography : ReportReason { }
[TLDef(0xADF44EE3)] //inputReportReasonChildAbuse#adf44ee3 = ReportReason
public partial class InputReportReasonChildAbuse : ReportReason { }
[TLDef(0xE1746D0A)] //inputReportReasonOther#e1746d0a text:string = ReportReason
public partial class InputReportReasonOther : ReportReason { public string text; }
[TLDef(0x9B89F93A)] //inputReportReasonCopyright#9b89f93a = ReportReason
public partial class InputReportReasonCopyright : ReportReason { }
[TLDef(0xDBD4FEED)] //inputReportReasonGeoIrrelevant#dbd4feed = ReportReason
public partial class InputReportReasonGeoIrrelevant : ReportReason { }
2021-08-04 00:40:09 +02:00
[TLDef(0xEDF17C12)] //userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull
public partial class UserFull : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xF911C994)] //contact#f911c994 user_id:int mutual:Bool = Contact
public partial class Contact : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public bool mutual;
}
[TLDef(0xD0028438)] //importedContact#d0028438 user_id:int client_id:long = ImportedContact
public partial class ImportedContact : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public long client_id;
}
[TLDef(0xD3680C61)] //contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus
public partial class ContactStatus : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public UserStatus status;
}
public abstract partial class Contacts_ContactsBase : ITLObject { }
[TLDef(0xB74BA9D2)] //contacts.contactsNotModified#b74ba9d2 = contacts.Contacts
public partial class Contacts_ContactsNotModified : Contacts_ContactsBase { }
[TLDef(0xEAE87E42)] //contacts.contacts#eae87e42 contacts:Vector<Contact> saved_count:int users:Vector<User> = contacts.Contacts
public partial class Contacts_Contacts : Contacts_ContactsBase
2021-08-04 00:40:09 +02:00
{
public Contact[] contacts;
public int saved_count;
public UserBase[] users;
}
[TLDef(0x77D01C3B)] //contacts.importedContacts#77d01c3b imported:Vector<ImportedContact> popular_invites:Vector<PopularContact> retry_contacts:Vector<long> users:Vector<User> = contacts.ImportedContacts
public partial class Contacts_ImportedContacts : ITLObject
2021-08-04 00:40:09 +02:00
{
public ImportedContact[] imported;
public PopularContact[] popular_invites;
public long[] retry_contacts;
public UserBase[] users;
}
public abstract partial class Contacts_BlockedBase : ITLObject { }
[TLDef(0x0ADE1591)] //contacts.blocked#0ade1591 blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked
public partial class Contacts_Blocked : Contacts_BlockedBase
2021-08-04 00:40:09 +02:00
{
public PeerBlocked[] blocked;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xE1664194)] //contacts.blockedSlice#e1664194 count:int blocked:Vector<PeerBlocked> chats:Vector<Chat> users:Vector<User> = contacts.Blocked
public partial class Contacts_BlockedSlice : Contacts_BlockedBase
2021-08-04 00:40:09 +02:00
{
public int count;
public PeerBlocked[] blocked;
public ChatBase[] chats;
public UserBase[] users;
}
public abstract partial class Messages_DialogsBase : ITLObject { }
[TLDef(0x15BA6C40)] //messages.dialogs#15ba6c40 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs
public partial class Messages_Dialogs : Messages_DialogsBase
2021-08-04 00:40:09 +02:00
{
public DialogBase[] dialogs;
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x71E094F3)] //messages.dialogsSlice#71e094f3 count:int dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Dialogs
public partial class Messages_DialogsSlice : Messages_DialogsBase
2021-08-04 00:40:09 +02:00
{
public int count;
public DialogBase[] dialogs;
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xF0E3E596)] //messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs
public partial class Messages_DialogsNotModified : Messages_DialogsBase { public int count; }
2021-08-04 00:40:09 +02:00
public abstract partial class Messages_MessagesBase : ITLObject { }
[TLDef(0x8C718E87)] //messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages
public partial class Messages_Messages : Messages_MessagesBase
2021-08-04 00:40:09 +02:00
{
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x3A54685E)] //messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages
public partial class Messages_MessagesSlice : Messages_MessagesBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_next_rate = 0x1, inexact = 0x2, has_offset_id_offset = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int count;
[IfFlag(0)] public int next_rate;
[IfFlag(2)] public int offset_id_offset;
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x64479808)] //messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages
public partial class Messages_ChannelMessages : Messages_MessagesBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { inexact = 0x2, has_offset_id_offset = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x74535F21)] //messages.messagesNotModified#74535f21 count:int = messages.Messages
public partial class Messages_MessagesNotModified : Messages_MessagesBase { public int count; }
2021-08-04 00:40:09 +02:00
public abstract partial class Messages_ChatsBase : ITLObject { }
[TLDef(0x64FF9FD5)] //messages.chats#64ff9fd5 chats:Vector<Chat> = messages.Chats
public partial class Messages_Chats : Messages_ChatsBase { public ChatBase[] chats; }
[TLDef(0x9CD81144)] //messages.chatsSlice#9cd81144 count:int chats:Vector<Chat> = messages.Chats
public partial class Messages_ChatsSlice : Messages_ChatsBase
2021-08-04 00:40:09 +02:00
{
public int count;
public ChatBase[] chats;
}
[TLDef(0xE5D7D19C)] //messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector<Chat> users:Vector<User> = messages.ChatFull
public partial class Messages_ChatFull : ITLObject
2021-08-04 00:40:09 +02:00
{
public ChatFullBase full_chat;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xB45C69D1)] //messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory
public partial class Messages_AffectedHistory : ITLObject
2021-08-04 00:40:09 +02:00
{
public int pts;
public int pts_count;
public int offset;
}
public abstract partial class MessagesFilter : ITLObject { }
[TLDef(0x57E2F66C)] //inputMessagesFilterEmpty#57e2f66c = MessagesFilter
public partial class InputMessagesFilterEmpty : MessagesFilter { }
[TLDef(0x9609A51C)] //inputMessagesFilterPhotos#9609a51c = MessagesFilter
public partial class InputMessagesFilterPhotos : MessagesFilter { }
[TLDef(0x9FC00E65)] //inputMessagesFilterVideo#9fc00e65 = MessagesFilter
public partial class InputMessagesFilterVideo : MessagesFilter { }
[TLDef(0x56E9F0E4)] //inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter
public partial class InputMessagesFilterPhotoVideo : MessagesFilter { }
[TLDef(0x9EDDF188)] //inputMessagesFilterDocument#9eddf188 = MessagesFilter
public partial class InputMessagesFilterDocument : MessagesFilter { }
[TLDef(0x7EF0DD87)] //inputMessagesFilterUrl#7ef0dd87 = MessagesFilter
public partial class InputMessagesFilterUrl : MessagesFilter { }
[TLDef(0xFFC86587)] //inputMessagesFilterGif#ffc86587 = MessagesFilter
public partial class InputMessagesFilterGif : MessagesFilter { }
[TLDef(0x50F5C392)] //inputMessagesFilterVoice#50f5c392 = MessagesFilter
public partial class InputMessagesFilterVoice : MessagesFilter { }
[TLDef(0x3751B49E)] //inputMessagesFilterMusic#3751b49e = MessagesFilter
public partial class InputMessagesFilterMusic : MessagesFilter { }
[TLDef(0x3A20ECB8)] //inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter
public partial class InputMessagesFilterChatPhotos : MessagesFilter { }
[TLDef(0x80C99768)] //inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter
public partial class InputMessagesFilterPhoneCalls : MessagesFilter
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { missed = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x7A7C17A4)] //inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter
public partial class InputMessagesFilterRoundVoice : MessagesFilter { }
[TLDef(0xB549DA53)] //inputMessagesFilterRoundVideo#b549da53 = MessagesFilter
public partial class InputMessagesFilterRoundVideo : MessagesFilter { }
[TLDef(0xC1F8E69A)] //inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter
public partial class InputMessagesFilterMyMentions : MessagesFilter { }
[TLDef(0xE7026D0D)] //inputMessagesFilterGeo#e7026d0d = MessagesFilter
public partial class InputMessagesFilterGeo : MessagesFilter { }
[TLDef(0xE062DB83)] //inputMessagesFilterContacts#e062db83 = MessagesFilter
public partial class InputMessagesFilterContacts : MessagesFilter { }
[TLDef(0x1BB00451)] //inputMessagesFilterPinned#1bb00451 = MessagesFilter
public partial class InputMessagesFilterPinned : MessagesFilter { }
2021-08-04 00:40:09 +02:00
public abstract partial class Update : ITLObject { }
[TLDef(0x1F2B0AFD)] //updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update
public partial class UpdateNewMessage : Update
2021-08-04 00:40:09 +02:00
{
public MessageBase message;
public int pts;
public int pts_count;
}
[TLDef(0x4E90BFD6)] //updateMessageID#4e90bfd6 id:int random_id:long = Update
public partial class UpdateMessageID : Update
2021-08-04 00:40:09 +02:00
{
public int id;
public long random_id;
}
[TLDef(0xA20DB0E5)] //updateDeleteMessages#a20db0e5 messages:Vector<int> pts:int pts_count:int = Update
public partial class UpdateDeleteMessages : Update
2021-08-04 00:40:09 +02:00
{
public int[] messages;
public int pts;
public int pts_count;
}
[TLDef(0x5C486927)] //updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update
public partial class UpdateUserTyping : Update
2021-08-04 00:40:09 +02:00
{
public int user_id;
public SendMessageAction action;
}
[TLDef(0x9A65EA1F)] //updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update
public partial class UpdateChatUserTyping : Update
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public int user_id;
public SendMessageAction action;
}
[TLDef(0x07761198)] //updateChatParticipants#07761198 participants:ChatParticipants = Update
public partial class UpdateChatParticipants : Update { public ChatParticipantsBase participants; }
[TLDef(0x1BFBD823)] //updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update
public partial class UpdateUserStatus : Update
2021-08-04 00:40:09 +02:00
{
public int user_id;
public UserStatus status;
}
[TLDef(0xA7332B73)] //updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update
public partial class UpdateUserName : Update
2021-08-04 00:40:09 +02:00
{
public int user_id;
public string first_name;
public string last_name;
public string username;
}
[TLDef(0x95313B0C)] //updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update
public partial class UpdateUserPhoto : Update
2021-08-04 00:40:09 +02:00
{
public int user_id;
public DateTime date;
public UserProfilePhotoBase photo;
public bool previous;
}
[TLDef(0x12BCBD9A)] //updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update
public partial class UpdateNewEncryptedMessage : Update
2021-08-04 00:40:09 +02:00
{
public EncryptedMessageBase message;
public int qts;
}
[TLDef(0x1710F156)] //updateEncryptedChatTyping#1710f156 chat_id:int = Update
public partial class UpdateEncryptedChatTyping : Update { public int chat_id; }
[TLDef(0xB4A2E88D)] //updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update
public partial class UpdateEncryption : Update
2021-08-04 00:40:09 +02:00
{
public EncryptedChatBase chat;
public DateTime date;
}
[TLDef(0x38FE25B7)] //updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update
public partial class UpdateEncryptedMessagesRead : Update
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public DateTime max_date;
public DateTime date;
}
[TLDef(0xEA4B0E5C)] //updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update
public partial class UpdateChatParticipantAdd : Update
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public int user_id;
public int inviter_id;
public DateTime date;
public int version;
}
[TLDef(0x6E5F8C22)] //updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update
public partial class UpdateChatParticipantDelete : Update
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public int user_id;
public int version;
}
[TLDef(0x8E5E9873)] //updateDcOptions#8e5e9873 dc_options:Vector<DcOption> = Update
public partial class UpdateDcOptions : Update { public DcOption[] dc_options; }
[TLDef(0xBEC268EF)] //updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update
public partial class UpdateNotifySettings : Update
2021-08-04 00:40:09 +02:00
{
public NotifyPeerBase peer;
public PeerNotifySettings notify_settings;
}
[TLDef(0xEBE46819)] //updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector<MessageEntity> = Update
public partial class UpdateServiceNotification : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { popup = 0x1, has_inbox_date = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(1)] public DateTime inbox_date;
public string type;
public string message;
public MessageMedia media;
public MessageEntity[] entities;
}
[TLDef(0xEE3B272A)] //updatePrivacy#ee3b272a key:PrivacyKey rules:Vector<PrivacyRule> = Update
public partial class UpdatePrivacy : Update
2021-08-04 00:40:09 +02:00
{
public PrivacyKey key;
public PrivacyRule[] rules;
}
[TLDef(0x12B9417B)] //updateUserPhone#12b9417b user_id:int phone:string = Update
public partial class UpdateUserPhone : Update
2021-08-04 00:40:09 +02:00
{
public int user_id;
public string phone;
}
[TLDef(0x9C974FDF)] //updateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update
public partial class UpdateReadHistoryInbox : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_folder_id = 0x1 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x2F2F21BF)] //updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update
public partial class UpdateReadHistoryOutbox : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public int max_id;
public int pts;
public int pts_count;
}
[TLDef(0x7F891213)] //updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update
public partial class UpdateWebPage : Update
2021-08-04 00:40:09 +02:00
{
public WebPageBase webpage;
public int pts;
public int pts_count;
}
[TLDef(0x68C13933)] //updateReadMessagesContents#68c13933 messages:Vector<int> pts:int pts_count:int = Update
public partial class UpdateReadMessagesContents : Update
2021-08-04 00:40:09 +02:00
{
public int[] messages;
public int pts;
public int pts_count;
}
[TLDef(0xEB0467FB)] //updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update
public partial class UpdateChannelTooLong : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_pts = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int channel_id;
[IfFlag(0)] public int pts;
}
[TLDef(0xB6D45656)] //updateChannel#b6d45656 channel_id:int = Update
public partial class UpdateChannel : Update { public int channel_id; }
[TLDef(0x62BA04D9)] //updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update
public partial class UpdateNewChannelMessage : Update
2021-08-04 00:40:09 +02:00
{
public MessageBase message;
public int pts;
public int pts_count;
}
[TLDef(0x330B5424)] //updateReadChannelInbox#330b5424 flags:# folder_id:flags.0?int channel_id:int max_id:int still_unread_count:int pts:int = Update
public partial class UpdateReadChannelInbox : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_folder_id = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int folder_id;
public int channel_id;
public int max_id;
public int still_unread_count;
public int pts;
}
[TLDef(0xC37521C9)] //updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector<int> pts:int pts_count:int = Update
public partial class UpdateDeleteChannelMessages : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int[] messages;
public int pts;
public int pts_count;
}
[TLDef(0x98A12B4B)] //updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update
public partial class UpdateChannelMessageViews : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int id;
public int views;
}
[TLDef(0xB6901959)] //updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update
public partial class UpdateChatParticipantAdmin : Update
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public int user_id;
public bool is_admin;
public int version;
}
[TLDef(0x688A30AA)] //updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update
public partial class UpdateNewStickerSet : Update { public Messages_StickerSet stickerset; }
[TLDef(0x0BB2D201)] //updateStickerSetsOrder#0bb2d201 flags:# masks:flags.0?true order:Vector<long> = Update
public partial class UpdateStickerSetsOrder : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { masks = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long[] order;
}
[TLDef(0x43AE3DEC)] //updateStickerSets#43ae3dec = Update
public partial class UpdateStickerSets : Update { }
[TLDef(0x9375341E)] //updateSavedGifs#9375341e = Update
public partial class UpdateSavedGifs : Update { }
[TLDef(0x54826690)] //updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update
public partial class UpdateBotInlineQuery : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_geo = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long query_id;
public int user_id;
public string query;
[IfFlag(0)] public GeoPointBase geo;
public string offset;
}
[TLDef(0x0E48F964)] //updateBotInlineSend#0e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update
public partial class UpdateBotInlineSend : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_geo = 0x1, has_msg_id = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int user_id;
public string query;
[IfFlag(0)] public GeoPointBase geo;
public string id;
[IfFlag(1)] public InputBotInlineMessageID msg_id;
}
[TLDef(0x1B3F4DF7)] //updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update
public partial class UpdateEditChannelMessage : Update
2021-08-04 00:40:09 +02:00
{
public MessageBase message;
public int pts;
public int pts_count;
}
[TLDef(0xE73547E1)] //updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update
public partial class UpdateBotCallbackQuery : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long query_id;
public int 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;
}
[TLDef(0xE40370A3)] //updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update
public partial class UpdateEditMessage : Update
2021-08-04 00:40:09 +02:00
{
public MessageBase message;
public int pts;
public int pts_count;
}
[TLDef(0xF9D27A5A)] //updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update
public partial class UpdateInlineBotCallbackQuery : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long query_id;
public int user_id;
public InputBotInlineMessageID msg_id;
public long chat_instance;
[IfFlag(0)] public byte[] data;
[IfFlag(1)] public string game_short_name;
}
[TLDef(0x25D6C9C7)] //updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update
public partial class UpdateReadChannelOutbox : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int max_id;
}
[TLDef(0xEE2BB969)] //updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update
public partial class UpdateDraftMessage : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public DraftMessageBase draft;
}
[TLDef(0x571D2742)] //updateReadFeaturedStickers#571d2742 = Update
public partial class UpdateReadFeaturedStickers : Update { }
[TLDef(0x9A422C20)] //updateRecentStickers#9a422c20 = Update
public partial class UpdateRecentStickers : Update { }
[TLDef(0xA229DD06)] //updateConfig#a229dd06 = Update
public partial class UpdateConfig : Update { }
[TLDef(0x3354678F)] //updatePtsChanged#3354678f = Update
public partial class UpdatePtsChanged : Update { }
[TLDef(0x40771900)] //updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update
public partial class UpdateChannelWebPage : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public WebPageBase webpage;
public int pts;
public int pts_count;
}
[TLDef(0x6E6FE51C)] //updateDialogPinned#6e6fe51c flags:# pinned:flags.0?true folder_id:flags.1?int peer:DialogPeer = Update
public partial class UpdateDialogPinned : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { pinned = 0x1, has_folder_id = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(1)] public int folder_id;
public DialogPeerBase peer;
}
[TLDef(0xFA0F3CA2)] //updatePinnedDialogs#fa0f3ca2 flags:# folder_id:flags.1?int order:flags.0?Vector<DialogPeer> = Update
public partial class UpdatePinnedDialogs : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_order = 0x1, has_folder_id = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(1)] public int folder_id;
[IfFlag(0)] public DialogPeerBase[] order;
}
[TLDef(0x8317C0C3)] //updateBotWebhookJSON#8317c0c3 data:DataJSON = Update
public partial class UpdateBotWebhookJSON : Update { public DataJSON data; }
[TLDef(0x9B9240A6)] //updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update
public partial class UpdateBotWebhookJSONQuery : Update
2021-08-04 00:40:09 +02:00
{
public long query_id;
public DataJSON data;
public int timeout;
}
[TLDef(0xE0CDC940)] //updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update
public partial class UpdateBotShippingQuery : Update
2021-08-04 00:40:09 +02:00
{
public long query_id;
public int user_id;
public byte[] payload;
public PostAddress shipping_address;
}
[TLDef(0x5D2F3AA9)] //updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update
public partial class UpdateBotPrecheckoutQuery : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long query_id;
public int user_id;
public byte[] payload;
[IfFlag(0)] public PaymentRequestedInfo info;
[IfFlag(1)] public string shipping_option_id;
public string currency;
public long total_amount;
}
[TLDef(0xAB0F6B1E)] //updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update
public partial class UpdatePhoneCall : Update { public PhoneCallBase phone_call; }
[TLDef(0x46560264)] //updateLangPackTooLong#46560264 lang_code:string = Update
public partial class UpdateLangPackTooLong : Update { public string lang_code; }
[TLDef(0x56022F4D)] //updateLangPack#56022f4d difference:LangPackDifference = Update
public partial class UpdateLangPack : Update { public LangPackDifference difference; }
[TLDef(0xE511996D)] //updateFavedStickers#e511996d = Update
public partial class UpdateFavedStickers : Update { }
[TLDef(0x89893B45)] //updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector<int> = Update
public partial class UpdateChannelReadMessagesContents : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int[] messages;
}
[TLDef(0x7084A7BE)] //updateContactsReset#7084a7be = Update
public partial class UpdateContactsReset : Update { }
[TLDef(0x70DB6837)] //updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update
public partial class UpdateChannelAvailableMessages : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int available_min_id;
}
[TLDef(0xE16459C3)] //updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update
public partial class UpdateDialogUnreadMark : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { unread = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DialogPeerBase peer;
}
[TLDef(0xACA1657B)] //updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update
public partial class UpdateMessagePoll : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_poll = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long poll_id;
[IfFlag(0)] public Poll poll;
public PollResults results;
}
[TLDef(0x54C01850)] //updateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update
public partial class UpdateChatDefaultBannedRights : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public ChatBannedRights default_banned_rights;
public int version;
}
[TLDef(0x19360DC0)] //updateFolderPeers#19360dc0 folder_peers:Vector<FolderPeer> pts:int pts_count:int = Update
public partial class UpdateFolderPeers : Update
2021-08-04 00:40:09 +02:00
{
public FolderPeer[] folder_peers;
public int pts;
public int pts_count;
}
[TLDef(0x6A7E7366)] //updatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update
public partial class UpdatePeerSettings : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public PeerSettings settings;
}
[TLDef(0xB4AFCFB0)] //updatePeerLocated#b4afcfb0 peers:Vector<PeerLocated> = Update
public partial class UpdatePeerLocated : Update { public PeerLocatedBase[] peers; }
[TLDef(0x39A51DFB)] //updateNewScheduledMessage#39a51dfb message:Message = Update
public partial class UpdateNewScheduledMessage : Update { public MessageBase message; }
[TLDef(0x90866CEE)] //updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector<int> = Update
public partial class UpdateDeleteScheduledMessages : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public int[] messages;
}
[TLDef(0x8216FBA3)] //updateTheme#8216fba3 theme:Theme = Update
public partial class UpdateTheme : Update { public Theme theme; }
[TLDef(0x871FB939)] //updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update
public partial class UpdateGeoLiveViewed : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public int msg_id;
}
[TLDef(0x564FE691)] //updateLoginToken#564fe691 = Update
public partial class UpdateLoginToken : Update { }
[TLDef(0x42F88F2C)] //updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector<bytes> = Update
public partial class UpdateMessagePollVote : Update
2021-08-04 00:40:09 +02:00
{
public long poll_id;
public int user_id;
public byte[][] options;
}
[TLDef(0x26FFDE7D)] //updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update
public partial class UpdateDialogFilter : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_filter = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
[IfFlag(0)] public DialogFilter filter;
}
[TLDef(0xA5D72105)] //updateDialogFilterOrder#a5d72105 order:Vector<int> = Update
public partial class UpdateDialogFilterOrder : Update { public int[] order; }
[TLDef(0x3504914F)] //updateDialogFilters#3504914f = Update
public partial class UpdateDialogFilters : Update { }
[TLDef(0x2661BF09)] //updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update
public partial class UpdatePhoneCallSignalingData : Update
2021-08-04 00:40:09 +02:00
{
public long phone_call_id;
public byte[] data;
}
[TLDef(0x6E8A84DF)] //updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update
public partial class UpdateChannelMessageForwards : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int id;
public int forwards;
}
[TLDef(0x1CC7DE54)] //updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update
public partial class UpdateReadChannelDiscussionInbox : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_broadcast_id = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int channel_id;
public int top_msg_id;
public int read_max_id;
[IfFlag(0)] public int broadcast_id;
[IfFlag(0)] public int broadcast_post;
}
[TLDef(0x4638A26C)] //updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update
public partial class UpdateReadChannelDiscussionOutbox : Update
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public int top_msg_id;
public int read_max_id;
}
[TLDef(0x246A4B22)] //updatePeerBlocked#246a4b22 peer_id:Peer blocked:Bool = Update
public partial class UpdatePeerBlocked : Update
2021-08-04 00:40:09 +02:00
{
public Peer peer_id;
public bool blocked;
}
[TLDef(0xFF2ABE9F)] //updateChannelUserTyping#ff2abe9f flags:# channel_id:int top_msg_id:flags.0?int user_id:int action:SendMessageAction = Update
public partial class UpdateChannelUserTyping : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_top_msg_id = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int channel_id;
[IfFlag(0)] public int top_msg_id;
public int user_id;
public SendMessageAction action;
}
[TLDef(0xED85EAB5)] //updatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector<int> pts:int pts_count:int = Update
public partial class UpdatePinnedMessages : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { pinned = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public Peer peer;
public int[] messages;
public int pts;
public int pts_count;
}
[TLDef(0x8588878B)] //updatePinnedChannelMessages#8588878b flags:# pinned:flags.0?true channel_id:int messages:Vector<int> pts:int pts_count:int = Update
public partial class UpdatePinnedChannelMessages : Update
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { pinned = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int channel_id;
public int[] messages;
public int pts;
public int pts_count;
}
[TLDef(0xA56C2A3E)] //updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State
public partial class Updates_State : ITLObject
2021-08-04 00:40:09 +02:00
{
public int pts;
public int qts;
public DateTime date;
public int seq;
public int unread_count;
}
public abstract partial class Updates_DifferenceBase : ITLObject { }
[TLDef(0x5D75A138)] //updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference
public partial class Updates_DifferenceEmpty : Updates_DifferenceBase
2021-08-04 00:40:09 +02:00
{
public DateTime date;
public int seq;
}
[TLDef(0x00F49CA0)] //updates.difference#00f49ca0 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> state:updates.State = updates.Difference
public partial class Updates_Difference : Updates_DifferenceBase
2021-08-04 00:40:09 +02:00
{
public MessageBase[] new_messages;
public EncryptedMessageBase[] new_encrypted_messages;
public Update[] other_updates;
public ChatBase[] chats;
public UserBase[] users;
public Updates_State state;
}
[TLDef(0xA8FB1981)] //updates.differenceSlice#a8fb1981 new_messages:Vector<Message> new_encrypted_messages:Vector<EncryptedMessage> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> intermediate_state:updates.State = updates.Difference
public partial class Updates_DifferenceSlice : Updates_DifferenceBase
2021-08-04 00:40:09 +02:00
{
public MessageBase[] new_messages;
public EncryptedMessageBase[] new_encrypted_messages;
public Update[] other_updates;
public ChatBase[] chats;
public UserBase[] users;
public Updates_State intermediate_state;
}
[TLDef(0x4AFE8F6D)] //updates.differenceTooLong#4afe8f6d pts:int = updates.Difference
public partial class Updates_DifferenceTooLong : Updates_DifferenceBase { public int pts; }
2021-08-04 00:40:09 +02:00
public abstract partial class UpdatesBase : ITLObject { }
[TLDef(0xE317AF7E)] //updatesTooLong#e317af7e = Updates
public partial class UpdatesTooLong : UpdatesBase { }
[TLDef(0x2296D2C8)] //updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates
public partial class UpdateShortMessage : UpdatesBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public int user_id;
public string message;
public int pts;
public int pts_count;
public DateTime date;
[IfFlag(2)] public MessageFwdHeader fwd_from;
[IfFlag(11)] public int via_bot_id;
[IfFlag(3)] public MessageReplyHeader reply_to;
[IfFlag(7)] public MessageEntity[] entities;
}
[TLDef(0x402D5DBB)] //updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates
public partial class UpdateShortChatMessage : UpdatesBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public int from_id;
public int chat_id;
public string message;
public int pts;
public int pts_count;
public DateTime date;
[IfFlag(2)] public MessageFwdHeader fwd_from;
[IfFlag(11)] public int via_bot_id;
[IfFlag(3)] public MessageReplyHeader reply_to;
[IfFlag(7)] public MessageEntity[] entities;
}
[TLDef(0x78D4DEC1)] //updateShort#78d4dec1 update:Update date:int = Updates
public partial class UpdateShort : UpdatesBase
2021-08-04 00:40:09 +02:00
{
public Update update;
public DateTime date;
}
[TLDef(0x725B04C3)] //updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates
public partial class UpdatesCombined : UpdatesBase
2021-08-04 00:40:09 +02:00
{
public Update[] updates;
public UserBase[] users;
public ChatBase[] chats;
public DateTime date;
public int seq_start;
public int seq;
}
[TLDef(0x74AE4240)] //updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates
public partial class Updates : UpdatesBase
2021-08-04 00:40:09 +02:00
{
public Update[] updates;
public UserBase[] users;
public ChatBase[] chats;
public DateTime date;
public int seq;
}
[TLDef(0x11F1331C)] //updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates
public partial class UpdateShortSentMessage : UpdatesBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { out_ = 0x2, has_entities = 0x80, has_media = 0x200 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class Photos_PhotosBase : ITLObject { }
[TLDef(0x8DCA6AA5)] //photos.photos#8dca6aa5 photos:Vector<Photo> users:Vector<User> = photos.Photos
public partial class Photos_Photos : Photos_PhotosBase
2021-08-04 00:40:09 +02:00
{
public PhotoBase[] photos;
public UserBase[] users;
}
[TLDef(0x15051F54)] //photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> = photos.Photos
public partial class Photos_PhotosSlice : Photos_PhotosBase
2021-08-04 00:40:09 +02:00
{
public int count;
public PhotoBase[] photos;
public UserBase[] users;
}
[TLDef(0x20212CA8)] //photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo
public partial class Photos_Photo : ITLObject
2021-08-04 00:40:09 +02:00
{
public PhotoBase photo;
public UserBase[] users;
}
public abstract partial class Upload_FileBase : ITLObject { }
[TLDef(0x096A18D5)] //upload.file#096a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File
public partial class Upload_File : Upload_FileBase
2021-08-04 00:40:09 +02:00
{
public Storage_FileType type;
public int mtime;
public byte[] bytes;
}
[TLDef(0xF18CDA44)] //upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = upload.File
public partial class Upload_FileCdnRedirect : Upload_FileBase
2021-08-04 00:40:09 +02:00
{
public int dc_id;
public byte[] file_token;
public byte[] encryption_key;
public byte[] encryption_iv;
public FileHash[] file_hashes;
}
[TLDef(0x18B7A10D)] //dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption
public partial class DcOption : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { ipv6 = 0x1, media_only = 0x2, tcpo_only = 0x4, cdn = 0x8, static_ = 0x10, has_secret = 0x400 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public string ip_address;
public int port;
[IfFlag(10)] public byte[] secret;
}
[TLDef(0x330B4067)] //config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int pinned_infolder_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config
public partial class Config : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x8E1A1775)] //nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc
public partial class NearestDc : ITLObject
2021-08-04 00:40:09 +02:00
{
public string country;
public int this_dc;
public int nearest_dc;
}
public abstract partial class Help_AppUpdateBase : ITLObject { }
[TLDef(0x1DA7158F)] //help.appUpdate#1da7158f flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector<MessageEntity> document:flags.1?Document url:flags.2?string = help.AppUpdate
public partial class Help_AppUpdate : Help_AppUpdateBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { can_not_skip = 0x1, has_document = 0x2, has_url = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xC45A6536)] //help.noAppUpdate#c45a6536 = help.AppUpdate
public partial class Help_NoAppUpdate : Help_AppUpdateBase { }
2021-08-04 00:40:09 +02:00
[TLDef(0x18CB9F78)] //help.inviteText#18cb9f78 message:string = help.InviteText
public partial class Help_InviteText : ITLObject { public string message; }
2021-08-04 00:40:09 +02:00
public abstract partial class EncryptedChatBase : ITLObject { }
[TLDef(0xAB7EC0A0)] //encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat
public partial class EncryptedChatEmpty : EncryptedChatBase { public int id; }
[TLDef(0x3BF703DC)] //encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat
public partial class EncryptedChatWaiting : EncryptedChatBase
2021-08-04 00:40:09 +02:00
{
public int id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
}
[TLDef(0x62718A82)] //encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat
public partial class EncryptedChatRequested : EncryptedChatBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_folder_id = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int folder_id;
public int id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public byte[] g_a;
}
[TLDef(0xFA56CE36)] //encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat
public partial class EncryptedChat : EncryptedChatBase
2021-08-04 00:40:09 +02:00
{
public int id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public byte[] g_a_or_b;
public long key_fingerprint;
}
[TLDef(0x13D6DD27)] //encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat
public partial class EncryptedChatDiscarded : EncryptedChatBase { public int id; }
2021-08-04 00:40:09 +02:00
[TLDef(0xF141B5E1)] //inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat
public partial class InputEncryptedChat : ITLObject
2021-08-04 00:40:09 +02:00
{
public int chat_id;
public long access_hash;
}
public abstract partial class EncryptedFileBase : ITLObject { }
[TLDef(0xC21F497E)] //encryptedFileEmpty#c21f497e = EncryptedFile
public partial class EncryptedFileEmpty : EncryptedFileBase { }
[TLDef(0x4A70994C)] //encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile
public partial class EncryptedFile : EncryptedFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public int size;
public int dc_id;
public int key_fingerprint;
}
public abstract partial class InputEncryptedFileBase : ITLObject { }
[TLDef(0x1837C364)] //inputEncryptedFileEmpty#1837c364 = InputEncryptedFile
public partial class InputEncryptedFileEmpty : InputEncryptedFileBase { }
[TLDef(0x64BD0306)] //inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile
public partial class InputEncryptedFileUploaded : InputEncryptedFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public int parts;
public byte[] md5_checksum;
2021-08-04 00:40:09 +02:00
public int key_fingerprint;
}
[TLDef(0x5A17B5E5)] //inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile
public partial class InputEncryptedFile : InputEncryptedFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0x2DC173C8)] //inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile
public partial class InputEncryptedFileBigUploaded : InputEncryptedFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public int parts;
public int key_fingerprint;
}
public abstract partial class EncryptedMessageBase : ITLObject { }
[TLDef(0xED18C118)] //encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage
public partial class EncryptedMessage : EncryptedMessageBase
2021-08-04 00:40:09 +02:00
{
public long random_id;
public int chat_id;
public DateTime date;
public byte[] bytes;
public EncryptedFileBase file;
}
[TLDef(0x23734B06)] //encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage
public partial class EncryptedMessageService : EncryptedMessageBase
2021-08-04 00:40:09 +02:00
{
public long random_id;
public int chat_id;
public DateTime date;
public byte[] bytes;
}
public abstract partial class Messages_DhConfigBase : ITLObject { }
[TLDef(0xC0E24635)] //messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig
public partial class Messages_DhConfigNotModified : Messages_DhConfigBase { public byte[] random; }
[TLDef(0x2C221EDD)] //messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig
public partial class Messages_DhConfig : Messages_DhConfigBase
2021-08-04 00:40:09 +02:00
{
public int g;
public byte[] p;
public int version;
public byte[] random;
}
[TLDef(0x560F8935)] //messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage
public partial class Messages_SentEncryptedMessage : ITLObject { public DateTime date; }
[TLDef(0x9493FF32)] //messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage
public partial class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { public EncryptedFileBase file; }
2021-08-04 00:40:09 +02:00
public abstract partial class InputDocumentBase : ITLObject { }
[TLDef(0x72F0EAAE)] //inputDocumentEmpty#72f0eaae = InputDocument
public partial class InputDocumentEmpty : InputDocumentBase { }
[TLDef(0x1ABFB575)] //inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument
public partial class InputDocument : InputDocumentBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public byte[] file_reference;
}
public abstract partial class DocumentBase : ITLObject { }
[TLDef(0x36F8C871)] //documentEmpty#36f8c871 id:long = Document
public partial class DocumentEmpty : DocumentBase { public long id; }
[TLDef(0x1E87342B)] //document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector<PhotoSize> video_thumbs:flags.1?Vector<VideoSize> dc_id:int attributes:Vector<DocumentAttribute> = Document
public partial class Document : DocumentBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_thumbs = 0x1, has_video_thumbs = 0x2 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x17C6B5F6)] //help.support#17c6b5f6 phone_number:string user:User = help.Support
public partial class Help_Support : ITLObject
2021-08-04 00:40:09 +02:00
{
public string phone_number;
public UserBase user;
}
public abstract partial class NotifyPeerBase : ITLObject { }
[TLDef(0x9FD40BD8)] //notifyPeer#9fd40bd8 peer:Peer = NotifyPeer
public partial class NotifyPeer : NotifyPeerBase { public Peer peer; }
[TLDef(0xB4C83B4C)] //notifyUsers#b4c83b4c = NotifyPeer
public partial class NotifyUsers : NotifyPeerBase { }
[TLDef(0xC007CEC3)] //notifyChats#c007cec3 = NotifyPeer
public partial class NotifyChats : NotifyPeerBase { }
[TLDef(0xD612E8EF)] //notifyBroadcasts#d612e8ef = NotifyPeer
public partial class NotifyBroadcasts : NotifyPeerBase { }
2021-08-04 00:40:09 +02:00
public abstract partial class SendMessageAction : ITLObject { }
[TLDef(0x16BF744E)] //sendMessageTypingAction#16bf744e = SendMessageAction
public partial class SendMessageTypingAction : SendMessageAction { }
[TLDef(0xFD5EC8F5)] //sendMessageCancelAction#fd5ec8f5 = SendMessageAction
public partial class SendMessageCancelAction : SendMessageAction { }
[TLDef(0xA187D66F)] //sendMessageRecordVideoAction#a187d66f = SendMessageAction
public partial class SendMessageRecordVideoAction : SendMessageAction { }
[TLDef(0xE9763AEC)] //sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction
public partial class SendMessageUploadVideoAction : SendMessageAction { public int progress; }
[TLDef(0xD52F73F7)] //sendMessageRecordAudioAction#d52f73f7 = SendMessageAction
public partial class SendMessageRecordAudioAction : SendMessageAction { }
[TLDef(0xF351D7AB)] //sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction
public partial class SendMessageUploadAudioAction : SendMessageAction { public int progress; }
[TLDef(0xD1D34A26)] //sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction
public partial class SendMessageUploadPhotoAction : SendMessageAction { public int progress; }
[TLDef(0xAA0CD9E4)] //sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction
public partial class SendMessageUploadDocumentAction : SendMessageAction { public int progress; }
[TLDef(0x176F8BA1)] //sendMessageGeoLocationAction#176f8ba1 = SendMessageAction
public partial class SendMessageGeoLocationAction : SendMessageAction { }
[TLDef(0x628CBC6F)] //sendMessageChooseContactAction#628cbc6f = SendMessageAction
public partial class SendMessageChooseContactAction : SendMessageAction { }
[TLDef(0xDD6A8F48)] //sendMessageGamePlayAction#dd6a8f48 = SendMessageAction
public partial class SendMessageGamePlayAction : SendMessageAction { }
[TLDef(0x88F27FBC)] //sendMessageRecordRoundAction#88f27fbc = SendMessageAction
public partial class SendMessageRecordRoundAction : SendMessageAction { }
[TLDef(0x243E1C66)] //sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction
public partial class SendMessageUploadRoundAction : SendMessageAction { public int progress; }
2021-08-04 00:40:09 +02:00
[TLDef(0xB3134D9D)] //contacts.found#b3134d9d my_results:Vector<Peer> results:Vector<Peer> chats:Vector<Chat> users:Vector<User> = contacts.Found
public partial class Contacts_Found : ITLObject
2021-08-04 00:40:09 +02:00
{
public Peer[] my_results;
public Peer[] results;
public ChatBase[] chats;
public UserBase[] users;
}
public abstract partial class InputPrivacyKey : ITLObject { }
[TLDef(0x4F96CB18)] //inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey
public partial class InputPrivacyKeyStatusTimestamp : InputPrivacyKey { }
[TLDef(0xBDFB0426)] //inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey
public partial class InputPrivacyKeyChatInvite : InputPrivacyKey { }
[TLDef(0xFABADC5F)] //inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey
public partial class InputPrivacyKeyPhoneCall : InputPrivacyKey { }
[TLDef(0xDB9E70D2)] //inputPrivacyKeyPhoneP2P#db9e70d2 = InputPrivacyKey
public partial class InputPrivacyKeyPhoneP2P : InputPrivacyKey { }
[TLDef(0xA4DD4C08)] //inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey
public partial class InputPrivacyKeyForwards : InputPrivacyKey { }
[TLDef(0x5719BACC)] //inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey
public partial class InputPrivacyKeyProfilePhoto : InputPrivacyKey { }
[TLDef(0x0352DAFA)] //inputPrivacyKeyPhoneNumber#0352dafa = InputPrivacyKey
public partial class InputPrivacyKeyPhoneNumber : InputPrivacyKey { }
[TLDef(0xD1219BDD)] //inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey
public partial class InputPrivacyKeyAddedByPhone : InputPrivacyKey { }
2021-08-04 00:40:09 +02:00
public abstract partial class PrivacyKey : ITLObject { }
[TLDef(0xBC2EAB30)] //privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey
public partial class PrivacyKeyStatusTimestamp : PrivacyKey { }
[TLDef(0x500E6DFA)] //privacyKeyChatInvite#500e6dfa = PrivacyKey
public partial class PrivacyKeyChatInvite : PrivacyKey { }
[TLDef(0x3D662B7B)] //privacyKeyPhoneCall#3d662b7b = PrivacyKey
public partial class PrivacyKeyPhoneCall : PrivacyKey { }
[TLDef(0x39491CC8)] //privacyKeyPhoneP2P#39491cc8 = PrivacyKey
public partial class PrivacyKeyPhoneP2P : PrivacyKey { }
[TLDef(0x69EC56A3)] //privacyKeyForwards#69ec56a3 = PrivacyKey
public partial class PrivacyKeyForwards : PrivacyKey { }
[TLDef(0x96151FED)] //privacyKeyProfilePhoto#96151fed = PrivacyKey
public partial class PrivacyKeyProfilePhoto : PrivacyKey { }
[TLDef(0xD19AE46D)] //privacyKeyPhoneNumber#d19ae46d = PrivacyKey
public partial class PrivacyKeyPhoneNumber : PrivacyKey { }
[TLDef(0x42FFD42B)] //privacyKeyAddedByPhone#42ffd42b = PrivacyKey
public partial class PrivacyKeyAddedByPhone : PrivacyKey { }
2021-08-04 00:40:09 +02:00
public abstract partial class InputPrivacyRule : ITLObject { }
[TLDef(0x0D09E07B)] //inputPrivacyValueAllowContacts#0d09e07b = InputPrivacyRule
public partial class InputPrivacyValueAllowContacts : InputPrivacyRule { }
[TLDef(0x184B35CE)] //inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule
public partial class InputPrivacyValueAllowAll : InputPrivacyRule { }
[TLDef(0x131CC67F)] //inputPrivacyValueAllowUsers#131cc67f users:Vector<InputUser> = InputPrivacyRule
public partial class InputPrivacyValueAllowUsers : InputPrivacyRule { public InputUserBase[] users; }
[TLDef(0x0BA52007)] //inputPrivacyValueDisallowContacts#0ba52007 = InputPrivacyRule
public partial class InputPrivacyValueDisallowContacts : InputPrivacyRule { }
[TLDef(0xD66B66C9)] //inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule
public partial class InputPrivacyValueDisallowAll : InputPrivacyRule { }
[TLDef(0x90110467)] //inputPrivacyValueDisallowUsers#90110467 users:Vector<InputUser> = InputPrivacyRule
public partial class InputPrivacyValueDisallowUsers : InputPrivacyRule { public InputUserBase[] users; }
[TLDef(0x4C81C1BA)] //inputPrivacyValueAllowChatParticipants#4c81c1ba chats:Vector<int> = InputPrivacyRule
public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public int[] chats; }
[TLDef(0xD82363AF)] //inputPrivacyValueDisallowChatParticipants#d82363af chats:Vector<int> = InputPrivacyRule
public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public int[] chats; }
2021-08-04 00:40:09 +02:00
public abstract partial class PrivacyRule : ITLObject { }
[TLDef(0xFFFE1BAC)] //privacyValueAllowContacts#fffe1bac = PrivacyRule
public partial class PrivacyValueAllowContacts : PrivacyRule { }
[TLDef(0x65427B82)] //privacyValueAllowAll#65427b82 = PrivacyRule
public partial class PrivacyValueAllowAll : PrivacyRule { }
[TLDef(0x4D5BBE0C)] //privacyValueAllowUsers#4d5bbe0c users:Vector<int> = PrivacyRule
public partial class PrivacyValueAllowUsers : PrivacyRule { public int[] users; }
[TLDef(0xF888FA1A)] //privacyValueDisallowContacts#f888fa1a = PrivacyRule
public partial class PrivacyValueDisallowContacts : PrivacyRule { }
[TLDef(0x8B73E763)] //privacyValueDisallowAll#8b73e763 = PrivacyRule
public partial class PrivacyValueDisallowAll : PrivacyRule { }
[TLDef(0x0C7F49B7)] //privacyValueDisallowUsers#0c7f49b7 users:Vector<int> = PrivacyRule
public partial class PrivacyValueDisallowUsers : PrivacyRule { public int[] users; }
[TLDef(0x18BE796B)] //privacyValueAllowChatParticipants#18be796b chats:Vector<int> = PrivacyRule
public partial class PrivacyValueAllowChatParticipants : PrivacyRule { public int[] chats; }
[TLDef(0xACAE0690)] //privacyValueDisallowChatParticipants#acae0690 chats:Vector<int> = PrivacyRule
public partial class PrivacyValueDisallowChatParticipants : PrivacyRule { public int[] chats; }
2021-08-04 00:40:09 +02:00
[TLDef(0x50A04E45)] //account.privacyRules#50a04e45 rules:Vector<PrivacyRule> chats:Vector<Chat> users:Vector<User> = account.PrivacyRules
public partial class Account_PrivacyRules : ITLObject
2021-08-04 00:40:09 +02:00
{
public PrivacyRule[] rules;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xB8D0AFDF)] //accountDaysTTL#b8d0afdf days:int = AccountDaysTTL
public partial class AccountDaysTTL : ITLObject { public int days; }
2021-08-04 00:40:09 +02:00
public abstract partial class DocumentAttribute : ITLObject { }
[TLDef(0x6C37C15C)] //documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute
public partial class DocumentAttributeImageSize : DocumentAttribute
2021-08-04 00:40:09 +02:00
{
public int w;
public int h;
}
[TLDef(0x11B58939)] //documentAttributeAnimated#11b58939 = DocumentAttribute
public partial class DocumentAttributeAnimated : DocumentAttribute { }
[TLDef(0x6319D612)] //documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute
public partial class DocumentAttributeSticker : DocumentAttribute
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_mask_coords = 0x1, mask = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string alt;
public InputStickerSet stickerset;
[IfFlag(0)] public MaskCoords mask_coords;
}
[TLDef(0x0EF02CE6)] //documentAttributeVideo#0ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute
public partial class DocumentAttributeVideo : DocumentAttribute
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { round_message = 0x1, supports_streaming = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int duration;
public int w;
public int h;
}
[TLDef(0x9852F9C6)] //documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute
public partial class DocumentAttributeAudio : DocumentAttribute
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_title = 0x1, has_performer = 0x2, has_waveform = 0x4, voice = 0x400 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int duration;
[IfFlag(0)] public string title;
[IfFlag(1)] public string performer;
[IfFlag(2)] public byte[] waveform;
}
[TLDef(0x15590068)] //documentAttributeFilename#15590068 file_name:string = DocumentAttribute
public partial class DocumentAttributeFilename : DocumentAttribute { public string file_name; }
[TLDef(0x9801D2F7)] //documentAttributeHasStickers#9801d2f7 = DocumentAttribute
public partial class DocumentAttributeHasStickers : DocumentAttribute { }
2021-08-04 00:40:09 +02:00
public abstract partial class Messages_StickersBase : ITLObject { }
[TLDef(0xF1749A22)] //messages.stickersNotModified#f1749a22 = messages.Stickers
public partial class Messages_StickersNotModified : Messages_StickersBase { }
[TLDef(0xE4599BBD)] //messages.stickers#e4599bbd hash:int stickers:Vector<Document> = messages.Stickers
public partial class Messages_Stickers : Messages_StickersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public DocumentBase[] stickers;
}
[TLDef(0x12B299D4)] //stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack
public partial class StickerPack : ITLObject
2021-08-04 00:40:09 +02:00
{
public string emoticon;
public long[] documents;
}
public abstract partial class Messages_AllStickersBase : ITLObject { }
[TLDef(0xE86602C3)] //messages.allStickersNotModified#e86602c3 = messages.AllStickers
public partial class Messages_AllStickersNotModified : Messages_AllStickersBase { }
[TLDef(0xEDFD405F)] //messages.allStickers#edfd405f hash:int sets:Vector<StickerSet> = messages.AllStickers
public partial class Messages_AllStickers : Messages_AllStickersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public StickerSet[] sets;
}
[TLDef(0x84D19185)] //messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages
public partial class Messages_AffectedMessages : ITLObject
2021-08-04 00:40:09 +02:00
{
public int pts;
public int pts_count;
}
public abstract partial class WebPageBase : ITLObject { }
[TLDef(0xEB1477E8)] //webPageEmpty#eb1477e8 id:long = WebPage
public partial class WebPageEmpty : WebPageBase { public long id; }
[TLDef(0xC586DA1C)] //webPagePending#c586da1c id:long date:int = WebPage
public partial class WebPagePending : WebPageBase
2021-08-04 00:40:09 +02:00
{
public long id;
public DateTime date;
}
[TLDef(0xE89C45B2)] //webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector<WebPageAttribute> = WebPage
public partial class WebPage : WebPageBase
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x7311CA11)] //webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage
public partial class WebPageNotModified : WebPageBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_cached_page_views = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int cached_page_views;
}
[TLDef(0xAD01D61D)] //authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization
public partial class Authorization : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { current = 0x1, official_app = 0x2, password_pending = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x1250ABDE)] //account.authorizations#1250abde authorizations:Vector<Authorization> = account.Authorizations
public partial class Account_Authorizations : ITLObject { public Authorization[] authorizations; }
2021-08-04 00:40:09 +02:00
[TLDef(0xAD2641F8)] //account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password
public partial class Account_Password : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_recovery = 0x1, has_secure_values = 0x2, has_password = 0x4, has_hint = 0x8,
has_email_unconfirmed_pattern = 0x10 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x9A5C33E5)] //account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings
public partial class Account_PasswordSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_email = 0x1, has_secure_settings = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public string email;
[IfFlag(1)] public SecureSecretSettings secure_settings;
}
[TLDef(0xC23727C9)] //account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings
public partial class Account_PasswordInputSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_new_algo = 0x1, has_email = 0x2, has_new_secure_settings = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x137948A5)] //auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery
public partial class Auth_PasswordRecovery : ITLObject { public string email_pattern; }
2021-08-04 00:40:09 +02:00
[TLDef(0xA384B779)] //receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage
public partial class ReceivedNotifyMessage : ITLObject
2021-08-04 00:40:09 +02:00
{
public int id;
public int flags;
}
public abstract partial class ExportedChatInvite : ITLObject { }
[TLDef(0x69DF3769)] //chatInviteEmpty#69df3769 = ExportedChatInvite
public partial class ChatInviteEmpty : ExportedChatInvite { }
[TLDef(0xFC2E05BC)] //chatInviteExported#fc2e05bc link:string = ExportedChatInvite
public partial class ChatInviteExported : ExportedChatInvite { public string link; }
2021-08-04 00:40:09 +02:00
public abstract partial class ChatInviteBase : ITLObject { }
[TLDef(0x5A686D7C)] //chatInviteAlready#5a686d7c chat:Chat = ChatInvite
public partial class ChatInviteAlready : ChatInviteBase { public ChatBase chat; }
[TLDef(0xDFC2F58E)] //chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:Photo participants_count:int participants:flags.4?Vector<User> = ChatInvite
public partial class ChatInvite : ChatInviteBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { channel = 0x1, broadcast = 0x2, public_ = 0x4, megagroup = 0x8, has_participants = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string title;
public PhotoBase photo;
public int participants_count;
[IfFlag(4)] public UserBase[] participants;
}
[TLDef(0x61695CB0)] //chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite
public partial class ChatInvitePeek : ChatInviteBase
2021-08-04 00:40:09 +02:00
{
public ChatBase chat;
public DateTime expires;
}
public abstract partial class InputStickerSet : ITLObject { }
[TLDef(0xFFB62B95)] //inputStickerSetEmpty#ffb62b95 = InputStickerSet
public partial class InputStickerSetEmpty : InputStickerSet { }
[TLDef(0x9DE7A269)] //inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet
public partial class InputStickerSetID : InputStickerSet
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0x861CC8A0)] //inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet
public partial class InputStickerSetShortName : InputStickerSet { public string short_name; }
[TLDef(0x028703C8)] //inputStickerSetAnimatedEmoji#028703c8 = InputStickerSet
public partial class InputStickerSetAnimatedEmoji : InputStickerSet { }
[TLDef(0xE67F520E)] //inputStickerSetDice#e67f520e emoticon:string = InputStickerSet
public partial class InputStickerSetDice : InputStickerSet { public string emoticon; }
2021-08-04 00:40:09 +02:00
[TLDef(0xEEB46F27)] //stickerSet#eeb46f27 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumb:flags.4?PhotoSize thumb_dc_id:flags.4?int count:int hash:int = StickerSet
public partial class StickerSet : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_installed_date = 0x1, archived = 0x2, official = 0x4, masks = 0x8, has_thumb = 0x10,
animated = 0x20 }
2021-08-04 00:40:09 +02:00
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 thumb;
[IfFlag(4)] public int thumb_dc_id;
public int count;
public int hash;
}
[TLDef(0xB60A24A6)] //messages.stickerSet#b60a24a6 set:StickerSet packs:Vector<StickerPack> documents:Vector<Document> = messages.StickerSet
public partial class Messages_StickerSet : ITLObject
2021-08-04 00:40:09 +02:00
{
public StickerSet set;
public StickerPack[] packs;
public DocumentBase[] documents;
}
[TLDef(0xC27AC8C7)] //botCommand#c27ac8c7 command:string description:string = BotCommand
public partial class BotCommand : ITLObject
2021-08-04 00:40:09 +02:00
{
public string command;
public string description;
}
[TLDef(0x98E81D3A)] //botInfo#98e81d3a user_id:int description:string commands:Vector<BotCommand> = BotInfo
public partial class BotInfo : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public string description;
public BotCommand[] commands;
}
public abstract partial class KeyboardButtonBase : ITLObject { }
[TLDef(0xA2FA4880)] //keyboardButton#a2fa4880 text:string = KeyboardButton
public partial class KeyboardButton : KeyboardButtonBase { public string text; }
[TLDef(0x258AFF05)] //keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton
public partial class KeyboardButtonUrl : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
public string text;
public string url;
}
[TLDef(0x35BBDB6B)] //keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton
public partial class KeyboardButtonCallback : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { requires_password = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string text;
public byte[] data;
}
[TLDef(0xB16A6C29)] //keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton
public partial class KeyboardButtonRequestPhone : KeyboardButtonBase { public string text; }
[TLDef(0xFC796B3F)] //keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton
public partial class KeyboardButtonRequestGeoLocation : KeyboardButtonBase { public string text; }
[TLDef(0x0568A748)] //keyboardButtonSwitchInline#0568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton
public partial class KeyboardButtonSwitchInline : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { same_peer = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string text;
public string query;
}
[TLDef(0x50F41CCF)] //keyboardButtonGame#50f41ccf text:string = KeyboardButton
public partial class KeyboardButtonGame : KeyboardButtonBase { public string text; }
[TLDef(0xAFD93FBB)] //keyboardButtonBuy#afd93fbb text:string = KeyboardButton
public partial class KeyboardButtonBuy : KeyboardButtonBase { public string text; }
[TLDef(0x10B78D29)] //keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton
public partial class KeyboardButtonUrlAuth : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_fwd_text = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string text;
[IfFlag(0)] public string fwd_text;
public string url;
public int button_id;
}
[TLDef(0xD02E7FD4)] //inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton
public partial class InputKeyboardButtonUrlAuth : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { request_write_access = 0x1, has_fwd_text = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string text;
[IfFlag(1)] public string fwd_text;
public string url;
public InputUserBase bot;
}
[TLDef(0xBBC7515D)] //keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton
public partial class KeyboardButtonRequestPoll : KeyboardButtonBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_quiz = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public bool quiz;
public string text;
}
[TLDef(0x77608B83)] //keyboardButtonRow#77608b83 buttons:Vector<KeyboardButton> = KeyboardButtonRow
public partial class KeyboardButtonRow : ITLObject { public KeyboardButtonBase[] buttons; }
2021-08-04 00:40:09 +02:00
public abstract partial class ReplyMarkup : ITLObject { }
[TLDef(0xA03E5B85)] //replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup
public partial class ReplyKeyboardHide : ReplyMarkup
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { selective = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0xF4108AA0)] //replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup
public partial class ReplyKeyboardForceReply : ReplyMarkup
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { single_use = 0x2, selective = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x3502758C)] //replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> = ReplyMarkup
public partial class ReplyKeyboardMarkup : ReplyMarkup
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { resize = 0x1, single_use = 0x2, selective = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public KeyboardButtonRow[] rows;
}
[TLDef(0x48A30254)] //replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup
public partial class ReplyInlineMarkup : ReplyMarkup { public KeyboardButtonRow[] rows; }
2021-08-04 00:40:09 +02:00
public abstract partial class MessageEntity : ITLObject
2021-08-04 00:40:09 +02:00
{
public int offset;
public int length;
}
[TLDef(0xBB92BA95)] //messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity
public partial class MessageEntityUnknown : MessageEntity { }
[TLDef(0xFA04579D)] //messageEntityMention#fa04579d offset:int length:int = MessageEntity
public partial class MessageEntityMention : MessageEntity { }
[TLDef(0x6F635B0D)] //messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity
public partial class MessageEntityHashtag : MessageEntity { }
[TLDef(0x6CEF8AC7)] //messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity
public partial class MessageEntityBotCommand : MessageEntity { }
[TLDef(0x6ED02538)] //messageEntityUrl#6ed02538 offset:int length:int = MessageEntity
public partial class MessageEntityUrl : MessageEntity { }
[TLDef(0x64E475C2)] //messageEntityEmail#64e475c2 offset:int length:int = MessageEntity
public partial class MessageEntityEmail : MessageEntity { }
[TLDef(0xBD610BC9)] //messageEntityBold#bd610bc9 offset:int length:int = MessageEntity
public partial class MessageEntityBold : MessageEntity { }
[TLDef(0x826F8B60)] //messageEntityItalic#826f8b60 offset:int length:int = MessageEntity
public partial class MessageEntityItalic : MessageEntity { }
[TLDef(0x28A20571)] //messageEntityCode#28a20571 offset:int length:int = MessageEntity
public partial class MessageEntityCode : MessageEntity { }
[TLDef(0x73924BE0)] //messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity
public partial class MessageEntityPre : MessageEntity { public string language; }
[TLDef(0x76A6D327)] //messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity
public partial class MessageEntityTextUrl : MessageEntity { public string url; }
[TLDef(0x352DCA58)] //messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity
public partial class MessageEntityMentionName : MessageEntity { public int user_id; }
[TLDef(0x208E68C9)] //inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity
public partial class InputMessageEntityMentionName : MessageEntity { public InputUserBase user_id; }
[TLDef(0x9B69E34B)] //messageEntityPhone#9b69e34b offset:int length:int = MessageEntity
public partial class MessageEntityPhone : MessageEntity { }
[TLDef(0x4C4E743F)] //messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity
public partial class MessageEntityCashtag : MessageEntity { }
[TLDef(0x9C4E7E8B)] //messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity
public partial class MessageEntityUnderline : MessageEntity { }
[TLDef(0xBF0693D4)] //messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity
public partial class MessageEntityStrike : MessageEntity { }
[TLDef(0x020DF5D0)] //messageEntityBlockquote#020df5d0 offset:int length:int = MessageEntity
public partial class MessageEntityBlockquote : MessageEntity { }
[TLDef(0x761E6AF4)] //messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity
public partial class MessageEntityBankCard : MessageEntity { }
2021-08-04 00:40:09 +02:00
public abstract partial class InputChannelBase : ITLObject { }
[TLDef(0xEE8C1E86)] //inputChannelEmpty#ee8c1e86 = InputChannel
public partial class InputChannelEmpty : InputChannelBase { }
[TLDef(0xAFEB712E)] //inputChannel#afeb712e channel_id:int access_hash:long = InputChannel
public partial class InputChannel : InputChannelBase
2021-08-04 00:40:09 +02:00
{
public int channel_id;
public long access_hash;
}
[TLDef(0x2A286531)] //inputChannelFromMessage#2a286531 peer:InputPeer msg_id:int channel_id:int = InputChannel
public partial class InputChannelFromMessage : InputChannelBase
2021-08-04 00:40:09 +02:00
{
public InputPeer peer;
public int msg_id;
public int channel_id;
}
[TLDef(0x7F077AD9)] //contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector<Chat> users:Vector<User> = contacts.ResolvedPeer
public partial class Contacts_ResolvedPeer : ITLObject
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x0AE30253)] //messageRange#0ae30253 min_id:int max_id:int = MessageRange
public partial class MessageRange : ITLObject
2021-08-04 00:40:09 +02:00
{
public int min_id;
public int max_id;
}
public abstract partial class Updates_ChannelDifferenceBase : ITLObject { }
[TLDef(0x3E11AFFB)] //updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference
public partial class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { final = 0x1, has_timeout = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int pts;
[IfFlag(1)] public int timeout;
}
[TLDef(0xA4BCC6FE)] //updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference
public partial class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { final = 0x1, has_timeout = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(1)] public int timeout;
public DialogBase dialog;
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x2064674E)] //updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference
public partial class Updates_ChannelDifference : Updates_ChannelDifferenceBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { final = 0x1, has_timeout = 0x2 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class ChannelMessagesFilterBase : ITLObject { }
[TLDef(0x94D42EE7)] //channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter
public partial class ChannelMessagesFilterEmpty : ChannelMessagesFilterBase { }
[TLDef(0xCD77D957)] //channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector<MessageRange> = ChannelMessagesFilter
public partial class ChannelMessagesFilter : ChannelMessagesFilterBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { exclude_new_messages = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public MessageRange[] ranges;
}
public abstract partial class ChannelParticipantBase : ITLObject { }
[TLDef(0x15EBAC1D)] //channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant
public partial class ChannelParticipant : ChannelParticipantBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public DateTime date;
}
[TLDef(0xA3289A6D)] //channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant
public partial class ChannelParticipantSelf : ChannelParticipantBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int inviter_id;
public DateTime date;
}
[TLDef(0x447DCA4B)] //channelParticipantCreator#447dca4b flags:# user_id:int admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant
public partial class ChannelParticipantCreator : ChannelParticipantBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_rank = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int user_id;
public ChatAdminRights admin_rights;
[IfFlag(0)] public string rank;
}
[TLDef(0xCCBEBBAF)] //channelParticipantAdmin#ccbebbaf flags:# can_edit:flags.0?true self:flags.1?true user_id:int inviter_id:flags.1?int promoted_by:int date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant
public partial class ChannelParticipantAdmin : ChannelParticipantBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { can_edit = 0x1, self = 0x2, has_rank = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int user_id;
[IfFlag(1)] public int inviter_id;
public int promoted_by;
public DateTime date;
public ChatAdminRights admin_rights;
[IfFlag(2)] public string rank;
}
[TLDef(0x1C0FACAF)] //channelParticipantBanned#1c0facaf flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChatBannedRights = ChannelParticipant
public partial class ChannelParticipantBanned : ChannelParticipantBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { left = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int user_id;
public int kicked_by;
public DateTime date;
public ChatBannedRights banned_rights;
}
[TLDef(0xC3C6796B)] //channelParticipantLeft#c3c6796b user_id:int = ChannelParticipant
public partial class ChannelParticipantLeft : ChannelParticipantBase { public int user_id; }
2021-08-04 00:40:09 +02:00
public abstract partial class ChannelParticipantsFilter : ITLObject { }
[TLDef(0xDE3F3C79)] //channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter
public partial class ChannelParticipantsRecent : ChannelParticipantsFilter { }
[TLDef(0xB4608969)] //channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter
public partial class ChannelParticipantsAdmins : ChannelParticipantsFilter { }
[TLDef(0xA3B54985)] //channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter
public partial class ChannelParticipantsKicked : ChannelParticipantsFilter { public string q; }
[TLDef(0xB0D1865B)] //channelParticipantsBots#b0d1865b = ChannelParticipantsFilter
public partial class ChannelParticipantsBots : ChannelParticipantsFilter { }
[TLDef(0x1427A5E1)] //channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter
public partial class ChannelParticipantsBanned : ChannelParticipantsFilter { public string q; }
[TLDef(0x0656AC4B)] //channelParticipantsSearch#0656ac4b q:string = ChannelParticipantsFilter
public partial class ChannelParticipantsSearch : ChannelParticipantsFilter { public string q; }
[TLDef(0xBB6AE88D)] //channelParticipantsContacts#bb6ae88d q:string = ChannelParticipantsFilter
public partial class ChannelParticipantsContacts : ChannelParticipantsFilter { public string q; }
[TLDef(0xE04B5CEB)] //channelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter
public partial class ChannelParticipantsMentions : ChannelParticipantsFilter
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_q = 0x1, has_top_msg_id = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public string q;
[IfFlag(1)] public int top_msg_id;
}
public abstract partial class Channels_ChannelParticipantsBase : ITLObject { }
[TLDef(0xF56EE2A8)] //channels.channelParticipants#f56ee2a8 count:int participants:Vector<ChannelParticipant> users:Vector<User> = channels.ChannelParticipants
public partial class Channels_ChannelParticipants : Channels_ChannelParticipantsBase
2021-08-04 00:40:09 +02:00
{
public int count;
public ChannelParticipantBase[] participants;
public UserBase[] users;
}
[TLDef(0xF0173FE9)] //channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants
public partial class Channels_ChannelParticipantsNotModified : Channels_ChannelParticipantsBase { }
2021-08-04 00:40:09 +02:00
[TLDef(0xD0D9B163)] //channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector<User> = channels.ChannelParticipant
public partial class Channels_ChannelParticipant : ITLObject
2021-08-04 00:40:09 +02:00
{
public ChannelParticipantBase participant;
public UserBase[] users;
}
[TLDef(0x780A0310)] //help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector<MessageEntity> min_age_confirm:flags.1?int = help.TermsOfService
public partial class Help_TermsOfService : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { popup = 0x1, has_min_age_confirm = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DataJSON id;
public string text;
public MessageEntity[] entities;
[IfFlag(1)] public int min_age_confirm;
}
public abstract partial class Messages_SavedGifsBase : ITLObject { }
[TLDef(0xE8025CA2)] //messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs
public partial class Messages_SavedGifsNotModified : Messages_SavedGifsBase { }
[TLDef(0x2E0709A5)] //messages.savedGifs#2e0709a5 hash:int gifs:Vector<Document> = messages.SavedGifs
public partial class Messages_SavedGifs : Messages_SavedGifsBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public DocumentBase[] gifs;
}
public abstract partial class InputBotInlineMessage : ITLObject { public int flags; }
[TLDef(0x3380C786)] //inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageMediaAuto : InputBotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string message;
[IfFlag(1)] public MessageEntity[] entities;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
[TLDef(0x3DCD7A87)] //inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageText : InputBotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string message;
[IfFlag(1)] public MessageEntity[] entities;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
[TLDef(0x96929A85)] //inputBotInlineMessageMediaGeo#96929a85 flags:# geo_point:InputGeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageMediaGeo : InputBotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4,
has_proximity_notification_radius = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x417BBF11)] //inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageMediaVenue : InputBotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xA6EDBFFD)] //inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageMediaContact : InputBotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string phone_number;
public string first_name;
public string last_name;
public string vcard;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
[TLDef(0x4B425864)] //inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage
public partial class InputBotInlineMessageGame : InputBotInlineMessage
{
[Flags] public enum Flags { has_reply_markup = 0x4 }
[IfFlag(2)] public ReplyMarkup reply_markup;
}
2021-08-04 00:40:09 +02:00
public abstract partial class InputBotInlineResultBase : ITLObject { }
[TLDef(0x88BF9319)] //inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult
public partial class InputBotInlineResult : InputBotInlineResultBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xA8D864A7)] //inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult
public partial class InputBotInlineResultPhoto : InputBotInlineResultBase
2021-08-04 00:40:09 +02:00
{
public string id;
public string type;
public InputPhotoBase photo;
public InputBotInlineMessage send_message;
}
[TLDef(0xFFF8FDC4)] //inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult
public partial class InputBotInlineResultDocument : InputBotInlineResultBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_title = 0x2, has_description = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x4FA417F2)] //inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult
public partial class InputBotInlineResultGame : InputBotInlineResultBase
2021-08-04 00:40:09 +02:00
{
public string id;
public string short_name;
public InputBotInlineMessage send_message;
}
public abstract partial class BotInlineMessage : ITLObject { public int flags; }
[TLDef(0x764CF810)] //botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage
public partial class BotInlineMessageMediaAuto : BotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string message;
[IfFlag(1)] public MessageEntity[] entities;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
[TLDef(0x8C7F65E2)] //botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector<MessageEntity> reply_markup:flags.2?ReplyMarkup = BotInlineMessage
public partial class BotInlineMessageText : BotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string message;
[IfFlag(1)] public MessageEntity[] entities;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
[TLDef(0x051846FD)] //botInlineMessageMediaGeo#051846fd flags:# geo:GeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = BotInlineMessage
public partial class BotInlineMessageMediaGeo : BotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4,
has_proximity_notification_radius = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x8A86659C)] //botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage
public partial class BotInlineMessageMediaVenue : BotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x18D1CDC2)] //botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage
public partial class BotInlineMessageMediaContact : BotInlineMessage
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_markup = 0x4 }
2021-08-04 00:40:09 +02:00
public string phone_number;
public string first_name;
public string last_name;
public string vcard;
[IfFlag(2)] public ReplyMarkup reply_markup;
}
public abstract partial class BotInlineResultBase : ITLObject { }
[TLDef(0x11965F3A)] //botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult
public partial class BotInlineResult : BotInlineResultBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x17DB940B)] //botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult
public partial class BotInlineMediaResult : BotInlineResultBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_photo = 0x1, has_document = 0x2, has_title = 0x4, has_description = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x947CA848)] //messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResults
public partial class Messages_BotResults : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { gallery = 0x1, has_next_offset = 0x2, has_switch_pm = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x5DAB1AF4)] //exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink
public partial class ExportedMessageLink : ITLObject
2021-08-04 00:40:09 +02:00
{
public string link;
public string html;
}
[TLDef(0x5F777DCE)] //messageFwdHeader#5f777dce flags:# imported:flags.7?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int psa_type:flags.6?string = MessageFwdHeader
public partial class MessageFwdHeader : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class Auth_CodeType : ITLObject { }
[TLDef(0x72A3158C)] //auth.codeTypeSms#72a3158c = auth.CodeType
public partial class Auth_CodeTypeSms : Auth_CodeType { }
[TLDef(0x741CD3E3)] //auth.codeTypeCall#741cd3e3 = auth.CodeType
public partial class Auth_CodeTypeCall : Auth_CodeType { }
[TLDef(0x226CCEFB)] //auth.codeTypeFlashCall#226ccefb = auth.CodeType
public partial class Auth_CodeTypeFlashCall : Auth_CodeType { }
2021-08-04 00:40:09 +02:00
public abstract partial class Auth_SentCodeType : ITLObject { }
[TLDef(0x3DBB5986)] //auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType
public partial class Auth_SentCodeTypeApp : Auth_SentCodeType { public int length; }
[TLDef(0xC000BBA2)] //auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType
public partial class Auth_SentCodeTypeSms : Auth_SentCodeType { public int length; }
[TLDef(0x5353E5A7)] //auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType
public partial class Auth_SentCodeTypeCall : Auth_SentCodeType { public int length; }
[TLDef(0xAB03C6D9)] //auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType
public partial class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { public string pattern; }
2021-08-04 00:40:09 +02:00
[TLDef(0x36585EA4)] //messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer
public partial class Messages_BotCallbackAnswer : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_message = 0x1, alert = 0x2, has_url_field = 0x4, has_url = 0x8, native_ui = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public string message;
[IfFlag(2)] public string url;
public DateTime cache_time;
}
[TLDef(0x26B5DDE6)] //messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData
public partial class Messages_MessageEditData : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { caption = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x890C3D89)] //inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID
public partial class InputBotInlineMessageID : ITLObject
2021-08-04 00:40:09 +02:00
{
public int dc_id;
public long id;
public long access_hash;
}
[TLDef(0x3C20629F)] //inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM
public partial class InlineBotSwitchPM : ITLObject
2021-08-04 00:40:09 +02:00
{
public string text;
public string start_param;
}
[TLDef(0x3371C354)] //messages.peerDialogs#3371c354 dialogs:Vector<Dialog> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> state:updates.State = messages.PeerDialogs
public partial class Messages_PeerDialogs : ITLObject
2021-08-04 00:40:09 +02:00
{
public DialogBase[] dialogs;
public MessageBase[] messages;
public ChatBase[] chats;
public UserBase[] users;
public Updates_State state;
}
[TLDef(0xEDCDC05B)] //topPeer#edcdc05b peer:Peer rating:double = TopPeer
public partial class TopPeer : ITLObject
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public double rating;
}
public abstract partial class TopPeerCategory : ITLObject { }
[TLDef(0xAB661B5B)] //topPeerCategoryBotsPM#ab661b5b = TopPeerCategory
public partial class TopPeerCategoryBotsPM : TopPeerCategory { }
[TLDef(0x148677E2)] //topPeerCategoryBotsInline#148677e2 = TopPeerCategory
public partial class TopPeerCategoryBotsInline : TopPeerCategory { }
[TLDef(0x0637B7ED)] //topPeerCategoryCorrespondents#0637b7ed = TopPeerCategory
public partial class TopPeerCategoryCorrespondents : TopPeerCategory { }
[TLDef(0xBD17A14A)] //topPeerCategoryGroups#bd17a14a = TopPeerCategory
public partial class TopPeerCategoryGroups : TopPeerCategory { }
[TLDef(0x161D9628)] //topPeerCategoryChannels#161d9628 = TopPeerCategory
public partial class TopPeerCategoryChannels : TopPeerCategory { }
[TLDef(0x1E76A78C)] //topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory
public partial class TopPeerCategoryPhoneCalls : TopPeerCategory { }
[TLDef(0xA8406CA9)] //topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory
public partial class TopPeerCategoryForwardUsers : TopPeerCategory { }
[TLDef(0xFBEEC0F0)] //topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory
public partial class TopPeerCategoryForwardChats : TopPeerCategory { }
2021-08-04 00:40:09 +02:00
[TLDef(0xFB834291)] //topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector<TopPeer> = TopPeerCategoryPeers
public partial class TopPeerCategoryPeers : ITLObject
2021-08-04 00:40:09 +02:00
{
public TopPeerCategory category;
public int count;
public TopPeer[] peers;
}
public abstract partial class Contacts_TopPeersBase : ITLObject { }
[TLDef(0xDE266EF5)] //contacts.topPeersNotModified#de266ef5 = contacts.TopPeers
public partial class Contacts_TopPeersNotModified : Contacts_TopPeersBase { }
[TLDef(0x70B772A8)] //contacts.topPeers#70b772a8 categories:Vector<TopPeerCategoryPeers> chats:Vector<Chat> users:Vector<User> = contacts.TopPeers
public partial class Contacts_TopPeers : Contacts_TopPeersBase
2021-08-04 00:40:09 +02:00
{
public TopPeerCategoryPeers[] categories;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xB52C939D)] //contacts.topPeersDisabled#b52c939d = contacts.TopPeers
public partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { }
2021-08-04 00:40:09 +02:00
public abstract partial class DraftMessageBase : ITLObject { }
[TLDef(0x1B0C841A)] //draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage
public partial class DraftMessageEmpty : DraftMessageBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_date = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public DateTime date;
}
[TLDef(0xFD8E711F)] //draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector<MessageEntity> date:int = DraftMessage
public partial class DraftMessage : DraftMessageBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_to_msg_id = 0x1, no_webpage = 0x2, has_entities = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int reply_to_msg_id;
public string message;
[IfFlag(3)] public MessageEntity[] entities;
public DateTime date;
}
public abstract partial class Messages_FeaturedStickersBase : ITLObject { }
[TLDef(0xC6DC0C66)] //messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers
public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { public int count; }
[TLDef(0xB6ABC341)] //messages.featuredStickers#b6abc341 hash:int count:int sets:Vector<StickerSetCovered> unread:Vector<long> = messages.FeaturedStickers
public partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public int count;
public StickerSetCoveredBase[] sets;
public long[] unread;
}
public abstract partial class Messages_RecentStickersBase : ITLObject { }
[TLDef(0x0B17F890)] //messages.recentStickersNotModified#0b17f890 = messages.RecentStickers
public partial class Messages_RecentStickersNotModified : Messages_RecentStickersBase { }
[TLDef(0x22F3AFB3)] //messages.recentStickers#22f3afb3 hash:int packs:Vector<StickerPack> stickers:Vector<Document> dates:Vector<int> = messages.RecentStickers
public partial class Messages_RecentStickers : Messages_RecentStickersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public StickerPack[] packs;
public DocumentBase[] stickers;
public int[] dates;
}
[TLDef(0x4FCBA9C8)] //messages.archivedStickers#4fcba9c8 count:int sets:Vector<StickerSetCovered> = messages.ArchivedStickers
public partial class Messages_ArchivedStickers : ITLObject
2021-08-04 00:40:09 +02:00
{
public int count;
public StickerSetCoveredBase[] sets;
}
public abstract partial class Messages_StickerSetInstallResult : ITLObject { }
[TLDef(0x38641628)] //messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult
public partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { }
[TLDef(0x35E410A8)] //messages.stickerSetInstallResultArchive#35e410a8 sets:Vector<StickerSetCovered> = messages.StickerSetInstallResult
public partial class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { public StickerSetCoveredBase[] sets; }
2021-08-04 00:40:09 +02:00
public abstract partial class StickerSetCoveredBase : ITLObject { }
[TLDef(0x6410A5D2)] //stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered
public partial class StickerSetCovered : StickerSetCoveredBase
2021-08-04 00:40:09 +02:00
{
public StickerSet set;
public DocumentBase cover;
}
[TLDef(0x3407E51B)] //stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector<Document> = StickerSetCovered
public partial class StickerSetMultiCovered : StickerSetCoveredBase
2021-08-04 00:40:09 +02:00
{
public StickerSet set;
public DocumentBase[] covers;
}
[TLDef(0xAED6DBB2)] //maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords
public partial class MaskCoords : ITLObject
2021-08-04 00:40:09 +02:00
{
public int n;
public double x;
public double y;
public double zoom;
}
public abstract partial class InputStickeredMedia : ITLObject { }
[TLDef(0x4A992157)] //inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia
public partial class InputStickeredMediaPhoto : InputStickeredMedia { public InputPhotoBase id; }
[TLDef(0x0438865B)] //inputStickeredMediaDocument#0438865b id:InputDocument = InputStickeredMedia
public partial class InputStickeredMediaDocument : InputStickeredMedia { public InputDocumentBase id; }
2021-08-04 00:40:09 +02:00
[TLDef(0xBDF9653B)] //game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game
public partial class Game : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_document = 0x1 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class InputGame : ITLObject { }
[TLDef(0x032C3E77)] //inputGameID#032c3e77 id:long access_hash:long = InputGame
public partial class InputGameID : InputGame
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0xC331E80A)] //inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame
public partial class InputGameShortName : InputGame
2021-08-04 00:40:09 +02:00
{
public InputUserBase bot_id;
public string short_name;
}
[TLDef(0x58FFFCD0)] //highScore#58fffcd0 pos:int user_id:int score:int = HighScore
public partial class HighScore : ITLObject
2021-08-04 00:40:09 +02:00
{
public int pos;
public int user_id;
public int score;
}
[TLDef(0x9A3BFD99)] //messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores
public partial class Messages_HighScores : ITLObject
2021-08-04 00:40:09 +02:00
{
public HighScore[] scores;
public UserBase[] users;
}
public abstract partial class RichText : ITLObject { }
[TLDef(0xDC3D824F)] //textEmpty#dc3d824f = RichText
public partial class TextEmpty : RichText { }
[TLDef(0x744694E0)] //textPlain#744694e0 text:string = RichText
public partial class TextPlain : RichText { public string text; }
[TLDef(0x6724ABC4)] //textBold#6724abc4 text:RichText = RichText
public partial class TextBold : RichText { public RichText text; }
[TLDef(0xD912A59C)] //textItalic#d912a59c text:RichText = RichText
public partial class TextItalic : RichText { public RichText text; }
[TLDef(0xC12622C4)] //textUnderline#c12622c4 text:RichText = RichText
public partial class TextUnderline : RichText { public RichText text; }
[TLDef(0x9BF8BB95)] //textStrike#9bf8bb95 text:RichText = RichText
public partial class TextStrike : RichText { public RichText text; }
[TLDef(0x6C3F19B9)] //textFixed#6c3f19b9 text:RichText = RichText
public partial class TextFixed : RichText { public RichText text; }
[TLDef(0x3C2884C1)] //textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText
public partial class TextUrl : RichText
2021-08-04 00:40:09 +02:00
{
public RichText text;
public string url;
public long webpage_id;
}
[TLDef(0xDE5A0DD6)] //textEmail#de5a0dd6 text:RichText email:string = RichText
public partial class TextEmail : RichText
2021-08-04 00:40:09 +02:00
{
public RichText text;
public string email;
}
[TLDef(0x7E6260D7)] //textConcat#7e6260d7 texts:Vector<RichText> = RichText
public partial class TextConcat : RichText { public RichText[] texts; }
[TLDef(0xED6A8504)] //textSubscript#ed6a8504 text:RichText = RichText
public partial class TextSubscript : RichText { public RichText text; }
[TLDef(0xC7FB5E01)] //textSuperscript#c7fb5e01 text:RichText = RichText
public partial class TextSuperscript : RichText { public RichText text; }
[TLDef(0x034B8621)] //textMarked#034b8621 text:RichText = RichText
public partial class TextMarked : RichText { public RichText text; }
[TLDef(0x1CCB966A)] //textPhone#1ccb966a text:RichText phone:string = RichText
public partial class TextPhone : RichText
2021-08-04 00:40:09 +02:00
{
public RichText text;
public string phone;
}
[TLDef(0x081CCF4F)] //textImage#081ccf4f document_id:long w:int h:int = RichText
public partial class TextImage : RichText
2021-08-04 00:40:09 +02:00
{
public long document_id;
public int w;
public int h;
}
[TLDef(0x35553762)] //textAnchor#35553762 text:RichText name:string = RichText
public partial class TextAnchor : RichText
2021-08-04 00:40:09 +02:00
{
public RichText text;
public string name;
}
public abstract partial class PageBlock : ITLObject { }
[TLDef(0x13567E8A)] //pageBlockUnsupported#13567e8a = PageBlock
public partial class PageBlockUnsupported : PageBlock { }
[TLDef(0x70ABC3FD)] //pageBlockTitle#70abc3fd text:RichText = PageBlock
public partial class PageBlockTitle : PageBlock { public RichText text; }
[TLDef(0x8FFA9A1F)] //pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock
public partial class PageBlockSubtitle : PageBlock { public RichText text; }
[TLDef(0xBAAFE5E0)] //pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock
public partial class PageBlockAuthorDate : PageBlock
2021-08-04 00:40:09 +02:00
{
public RichText author;
public DateTime published_date;
}
[TLDef(0xBFD064EC)] //pageBlockHeader#bfd064ec text:RichText = PageBlock
public partial class PageBlockHeader : PageBlock { public RichText text; }
[TLDef(0xF12BB6E1)] //pageBlockSubheader#f12bb6e1 text:RichText = PageBlock
public partial class PageBlockSubheader : PageBlock { public RichText text; }
[TLDef(0x467A0766)] //pageBlockParagraph#467a0766 text:RichText = PageBlock
public partial class PageBlockParagraph : PageBlock { public RichText text; }
[TLDef(0xC070D93E)] //pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock
public partial class PageBlockPreformatted : PageBlock
2021-08-04 00:40:09 +02:00
{
public RichText text;
public string language;
}
[TLDef(0x48870999)] //pageBlockFooter#48870999 text:RichText = PageBlock
public partial class PageBlockFooter : PageBlock { public RichText text; }
[TLDef(0xDB20B188)] //pageBlockDivider#db20b188 = PageBlock
public partial class PageBlockDivider : PageBlock { }
[TLDef(0xCE0D37B0)] //pageBlockAnchor#ce0d37b0 name:string = PageBlock
public partial class PageBlockAnchor : PageBlock { public string name; }
[TLDef(0xE4E88011)] //pageBlockList#e4e88011 items:Vector<PageListItem> = PageBlock
public partial class PageBlockList : PageBlock { public PageListItem[] items; }
[TLDef(0x263D7C26)] //pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock
public partial class PageBlockBlockquote : PageBlock
2021-08-04 00:40:09 +02:00
{
public RichText text;
public RichText caption;
}
[TLDef(0x4F4456D3)] //pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock
public partial class PageBlockPullquote : PageBlock
2021-08-04 00:40:09 +02:00
{
public RichText text;
public RichText caption;
}
[TLDef(0x1759C560)] //pageBlockPhoto#1759c560 flags:# photo_id:long caption:PageCaption url:flags.0?string webpage_id:flags.0?long = PageBlock
public partial class PageBlockPhoto : PageBlock
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_url = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long photo_id;
public PageCaption caption;
[IfFlag(0)] public string url;
[IfFlag(0)] public long webpage_id;
}
[TLDef(0x7C8FE7B6)] //pageBlockVideo#7c8fe7b6 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:PageCaption = PageBlock
public partial class PageBlockVideo : PageBlock
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { autoplay = 0x1, loop = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long video_id;
public PageCaption caption;
}
[TLDef(0x39F23300)] //pageBlockCover#39f23300 cover:PageBlock = PageBlock
public partial class PageBlockCover : PageBlock { public PageBlock cover; }
[TLDef(0xA8718DC5)] //pageBlockEmbed#a8718dc5 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:flags.5?int h:flags.5?int caption:PageCaption = PageBlock
public partial class PageBlockEmbed : PageBlock
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { full_width = 0x1, has_url = 0x2, has_html = 0x4, allow_scrolling = 0x8, has_poster_photo_id = 0x10,
has_w = 0x20 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xF259A80B)] //pageBlockEmbedPost#f259a80b url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector<PageBlock> caption:PageCaption = PageBlock
public partial class PageBlockEmbedPost : PageBlock
2021-08-04 00:40:09 +02:00
{
public string url;
public long webpage_id;
public long author_photo_id;
public string author;
public DateTime date;
public PageBlock[] blocks;
public PageCaption caption;
}
[TLDef(0x65A0FA4D)] //pageBlockCollage#65a0fa4d items:Vector<PageBlock> caption:PageCaption = PageBlock
public partial class PageBlockCollage : PageBlock
2021-08-04 00:40:09 +02:00
{
public PageBlock[] items;
public PageCaption caption;
}
[TLDef(0x031F9590)] //pageBlockSlideshow#031f9590 items:Vector<PageBlock> caption:PageCaption = PageBlock
public partial class PageBlockSlideshow : PageBlock
2021-08-04 00:40:09 +02:00
{
public PageBlock[] items;
public PageCaption caption;
}
[TLDef(0xEF1751B5)] //pageBlockChannel#ef1751b5 channel:Chat = PageBlock
public partial class PageBlockChannel : PageBlock { public ChatBase channel; }
[TLDef(0x804361EA)] //pageBlockAudio#804361ea audio_id:long caption:PageCaption = PageBlock
public partial class PageBlockAudio : PageBlock
2021-08-04 00:40:09 +02:00
{
public long audio_id;
public PageCaption caption;
}
[TLDef(0x1E148390)] //pageBlockKicker#1e148390 text:RichText = PageBlock
public partial class PageBlockKicker : PageBlock { public RichText text; }
[TLDef(0xBF4DEA82)] //pageBlockTable#bf4dea82 flags:# bordered:flags.0?true striped:flags.1?true title:RichText rows:Vector<PageTableRow> = PageBlock
public partial class PageBlockTable : PageBlock
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { bordered = 0x1, striped = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public RichText title;
public PageTableRow[] rows;
}
[TLDef(0x9A8AE1E1)] //pageBlockOrderedList#9a8ae1e1 items:Vector<PageListOrderedItem> = PageBlock
public partial class PageBlockOrderedList : PageBlock { public PageListOrderedItem[] items; }
[TLDef(0x76768BED)] //pageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector<PageBlock> title:RichText = PageBlock
public partial class PageBlockDetails : PageBlock
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { open = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public PageBlock[] blocks;
public RichText title;
}
[TLDef(0x16115A96)] //pageBlockRelatedArticles#16115a96 title:RichText articles:Vector<PageRelatedArticle> = PageBlock
public partial class PageBlockRelatedArticles : PageBlock
2021-08-04 00:40:09 +02:00
{
public RichText title;
public PageRelatedArticle[] articles;
}
[TLDef(0xA44F3EF6)] //pageBlockMap#a44f3ef6 geo:GeoPoint zoom:int w:int h:int caption:PageCaption = PageBlock
public partial class PageBlockMap : PageBlock
2021-08-04 00:40:09 +02:00
{
public GeoPointBase geo;
public int zoom;
public int w;
public int h;
public PageCaption caption;
}
public abstract partial class PhoneCallDiscardReason : ITLObject { }
[TLDef(0x85E42301)] //phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason
public partial class PhoneCallDiscardReasonMissed : PhoneCallDiscardReason { }
[TLDef(0xE095C1A0)] //phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason
public partial class PhoneCallDiscardReasonDisconnect : PhoneCallDiscardReason { }
[TLDef(0x57ADC690)] //phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason
public partial class PhoneCallDiscardReasonHangup : PhoneCallDiscardReason { }
[TLDef(0xFAF7E8C9)] //phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason
public partial class PhoneCallDiscardReasonBusy : PhoneCallDiscardReason { }
2021-08-04 00:40:09 +02:00
[TLDef(0x7D748D04)] //dataJSON#7d748d04 data:string = DataJSON
public partial class DataJSON : ITLObject { public string data; }
2021-08-04 00:40:09 +02:00
[TLDef(0xCB296BF8)] //labeledPrice#cb296bf8 label:string amount:long = LabeledPrice
public partial class LabeledPrice : ITLObject
2021-08-04 00:40:09 +02:00
{
public string label;
public long amount;
}
[TLDef(0xC30AA358)] //invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector<LabeledPrice> = Invoice
public partial class Invoice : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string currency;
public LabeledPrice[] prices;
}
[TLDef(0xEA02C27E)] //paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge
public partial class PaymentCharge : ITLObject
2021-08-04 00:40:09 +02:00
{
public string id;
public string provider_charge_id;
}
[TLDef(0x1E8CAAEB)] //postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress
public partial class PostAddress : ITLObject
2021-08-04 00:40:09 +02:00
{
public string street_line1;
public string street_line2;
public string city;
public string state;
public string country_iso2;
public string post_code;
}
[TLDef(0x909C3F94)] //paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo
public partial class PaymentRequestedInfo : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_name = 0x1, has_phone = 0x2, has_email = 0x4, has_shipping_address = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public string name;
[IfFlag(1)] public string phone;
[IfFlag(2)] public string email;
[IfFlag(3)] public PostAddress shipping_address;
}
public abstract partial class PaymentSavedCredentials : ITLObject { }
[TLDef(0xCDC27A1F)] //paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials
public partial class PaymentSavedCredentialsCard : PaymentSavedCredentials
2021-08-04 00:40:09 +02:00
{
public string id;
public string title;
}
public abstract partial class WebDocumentBase : ITLObject { }
[TLDef(0x1C570ED1)] //webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument
public partial class WebDocument : WebDocumentBase
2021-08-04 00:40:09 +02:00
{
public string url;
public long access_hash;
public int size;
public string mime_type;
public DocumentAttribute[] attributes;
}
[TLDef(0xF9C8BCC6)] //webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = WebDocument
public partial class WebDocumentNoProxy : WebDocumentBase
2021-08-04 00:40:09 +02:00
{
public string url;
public int size;
public string mime_type;
public DocumentAttribute[] attributes;
}
[TLDef(0x9BED434D)] //inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector<DocumentAttribute> = InputWebDocument
public partial class InputWebDocument : ITLObject
2021-08-04 00:40:09 +02:00
{
public string url;
public int size;
public string mime_type;
public DocumentAttribute[] attributes;
}
public abstract partial class InputWebFileLocationBase : ITLObject { }
[TLDef(0xC239D686)] //inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation
public partial class InputWebFileLocation : InputWebFileLocationBase
2021-08-04 00:40:09 +02:00
{
public string url;
public long access_hash;
}
[TLDef(0x9F2221C9)] //inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation
public partial class InputWebFileGeoPointLocation : InputWebFileLocationBase
2021-08-04 00:40:09 +02:00
{
public InputGeoPointBase geo_point;
public long access_hash;
public int w;
public int h;
public int zoom;
public int scale;
}
[TLDef(0x21E753BC)] //upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile
public partial class Upload_WebFile : ITLObject
2021-08-04 00:40:09 +02:00
{
public int size;
public string mime_type;
public Storage_FileType file_type;
public int mtime;
public byte[] bytes;
}
[TLDef(0x3F56AEA3)] //payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm
public partial class Payments_PaymentForm : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2, can_save_credentials = 0x4,
password_missing = 0x8, has_native_provider = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int bot_id;
public Invoice invoice;
public int 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;
}
[TLDef(0xD1451883)] //payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = payments.ValidatedRequestedInfo
public partial class Payments_ValidatedRequestedInfo : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_id = 0x1, has_shipping_options = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public string id;
[IfFlag(1)] public ShippingOption[] shipping_options;
}
public abstract partial class Payments_PaymentResultBase : ITLObject { }
[TLDef(0x4E5F810D)] //payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult
public partial class Payments_PaymentResult : Payments_PaymentResultBase { public UpdatesBase updates; }
[TLDef(0xD8411139)] //payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult
public partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { public string url; }
2021-08-04 00:40:09 +02:00
[TLDef(0x500911E1)] //payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector<User> = payments.PaymentReceipt
public partial class Payments_PaymentReceipt : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_info = 0x1, has_shipping = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DateTime date;
public int bot_id;
public Invoice invoice;
public int provider_id;
[IfFlag(0)] public PaymentRequestedInfo info;
[IfFlag(1)] public ShippingOption shipping;
public string currency;
public long total_amount;
public string credentials_title;
public UserBase[] users;
}
[TLDef(0xFB8FE43C)] //payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo
public partial class Payments_SavedInfo : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public PaymentRequestedInfo saved_info;
}
public abstract partial class InputPaymentCredentialsBase : ITLObject { }
[TLDef(0xC10EB2CF)] //inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials
public partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase
2021-08-04 00:40:09 +02:00
{
public string id;
public byte[] tmp_password;
}
[TLDef(0x3417D728)] //inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials
public partial class InputPaymentCredentials : InputPaymentCredentialsBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { save = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DataJSON data;
}
[TLDef(0x0AA1C39F)] //inputPaymentCredentialsApplePay#0aa1c39f payment_data:DataJSON = InputPaymentCredentials
public partial class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { public DataJSON payment_data; }
[TLDef(0xCA05D50E)] //inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials
public partial class InputPaymentCredentialsAndroidPay : InputPaymentCredentialsBase
2021-08-04 00:40:09 +02:00
{
public DataJSON payment_token;
public string google_transaction_id;
}
[TLDef(0xDB64FD34)] //account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword
public partial class Account_TmpPassword : ITLObject
2021-08-04 00:40:09 +02:00
{
public byte[] tmp_password;
public DateTime valid_until;
}
[TLDef(0xB6213CDF)] //shippingOption#b6213cdf id:string title:string prices:Vector<LabeledPrice> = ShippingOption
public partial class ShippingOption : ITLObject
2021-08-04 00:40:09 +02:00
{
public string id;
public string title;
public LabeledPrice[] prices;
}
[TLDef(0xFFA0A496)] //inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem
public partial class InputStickerSetItem : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_mask_coords = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputDocumentBase document;
public string emoji;
[IfFlag(0)] public MaskCoords mask_coords;
}
[TLDef(0x1E36FDED)] //inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall
public partial class InputPhoneCall : ITLObject
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
public abstract partial class PhoneCallBase : ITLObject { }
[TLDef(0x5366C915)] //phoneCallEmpty#5366c915 id:long = PhoneCall
public partial class PhoneCallEmpty : PhoneCallBase { public long id; }
[TLDef(0x1B8F4AD1)] //phoneCallWaiting#1b8f4ad1 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall
public partial class PhoneCallWaiting : PhoneCallBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_receive_date = 0x1, video = 0x40 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public PhoneCallProtocol protocol;
[IfFlag(0)] public DateTime receive_date;
}
[TLDef(0x87EABB53)] //phoneCallRequested#87eabb53 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall
public partial class PhoneCallRequested : PhoneCallBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { video = 0x40 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public byte[] g_a_hash;
public PhoneCallProtocol protocol;
}
[TLDef(0x997C454A)] //phoneCallAccepted#997c454a flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall
public partial class PhoneCallAccepted : PhoneCallBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { video = 0x40 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public byte[] g_b;
public PhoneCallProtocol protocol;
}
[TLDef(0x8742AE7F)] //phoneCall#8742ae7f flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector<PhoneConnection> start_date:int = PhoneCall
public partial class PhoneCall : PhoneCallBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { p2p_allowed = 0x20, video = 0x40 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
public long access_hash;
public DateTime date;
public int admin_id;
public int participant_id;
public byte[] g_a_or_b;
public long key_fingerprint;
public PhoneCallProtocol protocol;
public PhoneConnectionBase[] connections;
public DateTime start_date;
}
[TLDef(0x50CA4DE1)] //phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall
public partial class PhoneCallDiscarded : PhoneCallBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, need_rating = 0x4, need_debug = 0x8, video = 0x40 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
[IfFlag(0)] public PhoneCallDiscardReason reason;
[IfFlag(1)] public int duration;
}
public abstract partial class PhoneConnectionBase : ITLObject { }
[TLDef(0x9D4C17C0)] //phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection
public partial class PhoneConnection : PhoneConnectionBase
2021-08-04 00:40:09 +02:00
{
public long id;
public string ip;
public string ipv6;
public int port;
public byte[] peer_tag;
}
[TLDef(0x635FE375)] //phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection
public partial class PhoneConnectionWebrtc : PhoneConnectionBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { turn = 0x1, stun = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public long id;
public string ip;
public string ipv6;
public int port;
public string username;
public string password;
}
[TLDef(0xFC878FC8)] //phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector<string> = PhoneCallProtocol
public partial class PhoneCallProtocol : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { udp_p2p = 0x1, udp_reflector = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int min_layer;
public int max_layer;
public string[] library_versions;
}
[TLDef(0xEC82E140)] //phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector<User> = phone.PhoneCall
public partial class Phone_PhoneCall : ITLObject
2021-08-04 00:40:09 +02:00
{
public PhoneCallBase phone_call;
public UserBase[] users;
}
public abstract partial class Upload_CdnFileBase : ITLObject { }
[TLDef(0xEEA8E46E)] //upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile
public partial class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { public byte[] request_token; }
[TLDef(0xA99FCA4F)] //upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile
public partial class Upload_CdnFile : Upload_CdnFileBase { public byte[] bytes; }
2021-08-04 00:40:09 +02:00
[TLDef(0xC982EABA)] //cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey
public partial class CdnPublicKey : ITLObject
2021-08-04 00:40:09 +02:00
{
public int dc_id;
public string public_key;
}
[TLDef(0x5725E40A)] //cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig
public partial class CdnConfig : ITLObject { public CdnPublicKey[] public_keys; }
2021-08-04 00:40:09 +02:00
public abstract partial class LangPackStringBase : ITLObject { }
[TLDef(0xCAD181F6)] //langPackString#cad181f6 key:string value:string = LangPackString
public partial class LangPackString : LangPackStringBase
2021-08-04 00:40:09 +02:00
{
public string key;
public string value;
}
[TLDef(0x6C47AC9F)] //langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString
public partial class LangPackStringPluralized : LangPackStringBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_zero_value = 0x1, has_one_value = 0x2, has_two_value = 0x4, has_few_value = 0x8,
has_many_value = 0x10 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x2979EEB2)] //langPackStringDeleted#2979eeb2 key:string = LangPackString
public partial class LangPackStringDeleted : LangPackStringBase { public string key; }
2021-08-04 00:40:09 +02:00
[TLDef(0xF385C1F6)] //langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector<LangPackString> = LangPackDifference
public partial class LangPackDifference : ITLObject
2021-08-04 00:40:09 +02:00
{
public string lang_code;
public int from_version;
public int version;
public LangPackStringBase[] strings;
}
[TLDef(0xEECA5CE3)] //langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage
public partial class LangPackLanguage : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { official = 0x1, has_base_lang_code = 0x2, rtl = 0x4, beta = 0x8 }
2021-08-04 00:40:09 +02:00
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;
}
public abstract partial class ChannelAdminLogEventAction : ITLObject { }
[TLDef(0xE6DFB825)] //channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public string prev_value;
public string new_value;
}
[TLDef(0x55188A2E)] //channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public string prev_value;
public string new_value;
}
[TLDef(0x6A4AFC38)] //channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public string prev_value;
public string new_value;
}
[TLDef(0x434BD2AF)] //channelAdminLogEventActionChangePhoto#434bd2af prev_photo:Photo new_photo:Photo = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public PhotoBase prev_photo;
public PhotoBase new_photo;
}
[TLDef(0x1B7907AE)] //channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { public bool new_value; }
[TLDef(0x26AE0971)] //channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { public bool new_value; }
[TLDef(0xE9E82C18)] //channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { public MessageBase message; }
[TLDef(0x709B2405)] //channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public MessageBase prev_message;
public MessageBase new_message;
}
[TLDef(0x42E047BB)] //channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction { public MessageBase message; }
[TLDef(0x183040D3)] //channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { }
[TLDef(0xF89777F2)] //channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { }
[TLDef(0xE31C34D8)] //channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { public ChannelParticipantBase participant; }
[TLDef(0xE6D83D7E)] //channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public ChannelParticipantBase prev_participant;
public ChannelParticipantBase new_participant;
}
[TLDef(0xD5676710)] //channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public ChannelParticipantBase prev_participant;
public ChannelParticipantBase new_participant;
}
[TLDef(0xB1C3CAA7)] //channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public InputStickerSet prev_stickerset;
public InputStickerSet new_stickerset;
}
[TLDef(0x5F5C95F1)] //channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { public bool new_value; }
[TLDef(0x2DF5FC0A)] //channelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public ChatBannedRights prev_banned_rights;
public ChatBannedRights new_banned_rights;
}
[TLDef(0x8F079643)] //channelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { public MessageBase message; }
[TLDef(0xA26F881B)] //channelAdminLogEventActionChangeLinkedChat#a26f881b prev_value:int new_value:int = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public int prev_value;
public int new_value;
}
[TLDef(0x0E6B76AE)] //channelAdminLogEventActionChangeLocation#0e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public ChannelLocationBase prev_value;
public ChannelLocationBase new_value;
}
[TLDef(0x53909779)] //channelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction
public partial class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction
2021-08-04 00:40:09 +02:00
{
public int prev_value;
public int new_value;
}
[TLDef(0x3B5A3E40)] //channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent
public partial class ChannelAdminLogEvent : ITLObject
2021-08-04 00:40:09 +02:00
{
public long id;
public DateTime date;
public int user_id;
public ChannelAdminLogEventAction action;
}
[TLDef(0xED8AF74D)] //channels.adminLogResults#ed8af74d events:Vector<ChannelAdminLogEvent> chats:Vector<Chat> users:Vector<User> = channels.AdminLogResults
public partial class Channels_AdminLogResults : ITLObject
2021-08-04 00:40:09 +02:00
{
public ChannelAdminLogEvent[] events;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xEA107AE4)] //channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true = ChannelAdminLogEventsFilter
public partial class ChannelAdminLogEventsFilter : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x5CE14175)] //popularContact#5ce14175 client_id:long importers:int = PopularContact
public partial class PopularContact : ITLObject
2021-08-04 00:40:09 +02:00
{
public long client_id;
public int importers;
}
public abstract partial class Messages_FavedStickersBase : ITLObject { }
[TLDef(0x9E8FA6D3)] //messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers
public partial class Messages_FavedStickersNotModified : Messages_FavedStickersBase { }
[TLDef(0xF37F2F16)] //messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers
public partial class Messages_FavedStickers : Messages_FavedStickersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public StickerPack[] packs;
public DocumentBase[] stickers;
}
public abstract partial class RecentMeUrl : ITLObject { public string url; }
[TLDef(0x46E1D13D)] //recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl
public partial class RecentMeUrlUnknown : RecentMeUrl { }
[TLDef(0x8DBC3336)] //recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl
public partial class RecentMeUrlUser : RecentMeUrl { public int user_id; }
[TLDef(0xA01B22F9)] //recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl
public partial class RecentMeUrlChat : RecentMeUrl { public int chat_id; }
[TLDef(0xEB49081D)] //recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl
public partial class RecentMeUrlChatInvite : RecentMeUrl { public ChatInviteBase chat_invite; }
[TLDef(0xBC0A57DC)] //recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl
public partial class RecentMeUrlStickerSet : RecentMeUrl { public StickerSetCoveredBase set; }
2021-08-04 00:40:09 +02:00
[TLDef(0x0E0310D7)] //help.recentMeUrls#0e0310d7 urls:Vector<RecentMeUrl> chats:Vector<Chat> users:Vector<User> = help.RecentMeUrls
public partial class Help_RecentMeUrls : ITLObject
2021-08-04 00:40:09 +02:00
{
public RecentMeUrl[] urls;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0x1CC6E91F)] //inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector<MessageEntity> = InputSingleMedia
public partial class InputSingleMedia : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_entities = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public InputMedia media;
public long random_id;
public string message;
[IfFlag(0)] public MessageEntity[] entities;
}
[TLDef(0xCAC943F2)] //webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization
public partial class WebAuthorization : ITLObject
2021-08-04 00:40:09 +02:00
{
public long hash;
public int 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;
}
[TLDef(0xED56C9FC)] //account.webAuthorizations#ed56c9fc authorizations:Vector<WebAuthorization> users:Vector<User> = account.WebAuthorizations
public partial class Account_WebAuthorizations : ITLObject
2021-08-04 00:40:09 +02:00
{
public WebAuthorization[] authorizations;
public UserBase[] users;
}
public abstract partial class InputMessage : ITLObject { }
[TLDef(0xA676A322)] //inputMessageID#a676a322 id:int = InputMessage
public partial class InputMessageID : InputMessage { public int id; }
[TLDef(0xBAD88395)] //inputMessageReplyTo#bad88395 id:int = InputMessage
public partial class InputMessageReplyTo : InputMessage { public int id; }
[TLDef(0x86872538)] //inputMessagePinned#86872538 = InputMessage
public partial class InputMessagePinned : InputMessage { }
[TLDef(0xACFA1A7E)] //inputMessageCallbackQuery#acfa1a7e id:int query_id:long = InputMessage
public partial class InputMessageCallbackQuery : InputMessage
2021-08-04 00:40:09 +02:00
{
public int id;
public long query_id;
}
public abstract partial class InputDialogPeerBase : ITLObject { }
[TLDef(0xFCAAFEB7)] //inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer
public partial class InputDialogPeer : InputDialogPeerBase { public InputPeer peer; }
[TLDef(0x64600527)] //inputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer
public partial class InputDialogPeerFolder : InputDialogPeerBase { public int folder_id; }
2021-08-04 00:40:09 +02:00
public abstract partial class DialogPeerBase : ITLObject { }
[TLDef(0xE56DBF05)] //dialogPeer#e56dbf05 peer:Peer = DialogPeer
public partial class DialogPeer : DialogPeerBase { public Peer peer; }
[TLDef(0x514519E2)] //dialogPeerFolder#514519e2 folder_id:int = DialogPeer
public partial class DialogPeerFolder : DialogPeerBase { public int folder_id; }
2021-08-04 00:40:09 +02:00
public abstract partial class Messages_FoundStickerSetsBase : ITLObject { }
[TLDef(0x0D54B65D)] //messages.foundStickerSetsNotModified#0d54b65d = messages.FoundStickerSets
public partial class Messages_FoundStickerSetsNotModified : Messages_FoundStickerSetsBase { }
[TLDef(0x5108D648)] //messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets
public partial class Messages_FoundStickerSets : Messages_FoundStickerSetsBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public StickerSetCoveredBase[] sets;
}
[TLDef(0x6242C773)] //fileHash#6242c773 offset:int limit:int hash:bytes = FileHash
public partial class FileHash : ITLObject
2021-08-04 00:40:09 +02:00
{
public int offset;
public int limit;
public byte[] hash;
}
[TLDef(0x75588B3F)] //inputClientProxy#75588b3f address:string port:int = InputClientProxy
public partial class InputClientProxy : ITLObject
2021-08-04 00:40:09 +02:00
{
public string address;
public int port;
}
public abstract partial class Help_TermsOfServiceUpdateBase : ITLObject { }
[TLDef(0xE3309F7F)] //help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate
public partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase { public DateTime expires; }
[TLDef(0x28ECF961)] //help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate
public partial class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase
2021-08-04 00:40:09 +02:00
{
public DateTime expires;
public Help_TermsOfService terms_of_service;
}
public abstract partial class InputSecureFileBase : ITLObject { }
[TLDef(0x3334B0F0)] //inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile
public partial class InputSecureFileUploaded : InputSecureFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public int parts;
public byte[] md5_checksum;
2021-08-04 00:40:09 +02:00
public byte[] file_hash;
public byte[] secret;
}
[TLDef(0x5367E5BE)] //inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile
public partial class InputSecureFile : InputSecureFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
public abstract partial class SecureFileBase : ITLObject { }
[TLDef(0x64199744)] //secureFileEmpty#64199744 = SecureFile
public partial class SecureFileEmpty : SecureFileBase { }
[TLDef(0xE0277A62)] //secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile
public partial class SecureFile : SecureFileBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
public int size;
public int dc_id;
public DateTime date;
public byte[] file_hash;
public byte[] secret;
}
[TLDef(0x8AEABEC3)] //secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData
public partial class SecureData : ITLObject
2021-08-04 00:40:09 +02:00
{
public byte[] data;
public byte[] data_hash;
public byte[] secret;
}
public abstract partial class SecurePlainData : ITLObject { }
[TLDef(0x7D6099DD)] //securePlainPhone#7d6099dd phone:string = SecurePlainData
public partial class SecurePlainPhone : SecurePlainData { public string phone; }
[TLDef(0x21EC5A5F)] //securePlainEmail#21ec5a5f email:string = SecurePlainData
public partial class SecurePlainEmail : SecurePlainData { public string email; }
2021-08-04 00:40:09 +02:00
public abstract partial class SecureValueType : ITLObject { }
[TLDef(0x9D2A81E3)] //secureValueTypePersonalDetails#9d2a81e3 = SecureValueType
public partial class SecureValueTypePersonalDetails : SecureValueType { }
[TLDef(0x3DAC6A00)] //secureValueTypePassport#3dac6a00 = SecureValueType
public partial class SecureValueTypePassport : SecureValueType { }
[TLDef(0x06E425C4)] //secureValueTypeDriverLicense#06e425c4 = SecureValueType
public partial class SecureValueTypeDriverLicense : SecureValueType { }
[TLDef(0xA0D0744B)] //secureValueTypeIdentityCard#a0d0744b = SecureValueType
public partial class SecureValueTypeIdentityCard : SecureValueType { }
[TLDef(0x99A48F23)] //secureValueTypeInternalPassport#99a48f23 = SecureValueType
public partial class SecureValueTypeInternalPassport : SecureValueType { }
[TLDef(0xCBE31E26)] //secureValueTypeAddress#cbe31e26 = SecureValueType
public partial class SecureValueTypeAddress : SecureValueType { }
[TLDef(0xFC36954E)] //secureValueTypeUtilityBill#fc36954e = SecureValueType
public partial class SecureValueTypeUtilityBill : SecureValueType { }
[TLDef(0x89137C0D)] //secureValueTypeBankStatement#89137c0d = SecureValueType
public partial class SecureValueTypeBankStatement : SecureValueType { }
[TLDef(0x8B883488)] //secureValueTypeRentalAgreement#8b883488 = SecureValueType
public partial class SecureValueTypeRentalAgreement : SecureValueType { }
[TLDef(0x99E3806A)] //secureValueTypePassportRegistration#99e3806a = SecureValueType
public partial class SecureValueTypePassportRegistration : SecureValueType { }
[TLDef(0xEA02EC33)] //secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType
public partial class SecureValueTypeTemporaryRegistration : SecureValueType { }
[TLDef(0xB320AADB)] //secureValueTypePhone#b320aadb = SecureValueType
public partial class SecureValueTypePhone : SecureValueType { }
[TLDef(0x8E3CA7EE)] //secureValueTypeEmail#8e3ca7ee = SecureValueType
public partial class SecureValueTypeEmail : SecureValueType { }
2021-08-04 00:40:09 +02:00
[TLDef(0x187FA0CA)] //secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue
public partial class SecureValue : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xDB21D0A7)] //inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector<InputSecureFile> files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue
public partial class InputSecureValue : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xED1ECDB0)] //secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash
public partial class SecureValueHash : ITLObject
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] hash;
}
public abstract partial class SecureValueErrorBase : ITLObject { }
[TLDef(0xE8A40BD9)] //secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError
public partial class SecureValueErrorData : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] data_hash;
public string field;
public string text;
}
[TLDef(0x00BE3DFA)] //secureValueErrorFrontSide#00be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError
public partial class SecureValueErrorFrontSide : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] file_hash;
public string text;
}
[TLDef(0x868A2AA5)] //secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError
public partial class SecureValueErrorReverseSide : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] file_hash;
public string text;
}
[TLDef(0xE537CED6)] //secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError
public partial class SecureValueErrorSelfie : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] file_hash;
public string text;
}
[TLDef(0x7A700873)] //secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError
public partial class SecureValueErrorFile : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] file_hash;
public string text;
}
[TLDef(0x666220E9)] //secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError
public partial class SecureValueErrorFiles : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[][] file_hash;
public string text;
}
[TLDef(0x869D758F)] //secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError
public partial class SecureValueError : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] hash;
public string text;
}
[TLDef(0xA1144770)] //secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError
public partial class SecureValueErrorTranslationFile : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[] file_hash;
public string text;
}
[TLDef(0x34636DD8)] //secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector<bytes> text:string = SecureValueError
public partial class SecureValueErrorTranslationFiles : SecureValueErrorBase
2021-08-04 00:40:09 +02:00
{
public SecureValueType type;
public byte[][] file_hash;
public string text;
}
[TLDef(0x33F0EA47)] //secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted
public partial class SecureCredentialsEncrypted : ITLObject
2021-08-04 00:40:09 +02:00
{
public byte[] data;
public byte[] hash;
public byte[] secret;
}
[TLDef(0xAD2E1CD8)] //account.authorizationForm#ad2e1cd8 flags:# required_types:Vector<SecureRequiredType> values:Vector<SecureValue> errors:Vector<SecureValueError> users:Vector<User> privacy_policy_url:flags.0?string = account.AuthorizationForm
public partial class Account_AuthorizationForm : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_privacy_policy_url = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public SecureRequiredTypeBase[] required_types;
public SecureValue[] values;
public SecureValueErrorBase[] errors;
public UserBase[] users;
[IfFlag(0)] public string privacy_policy_url;
}
[TLDef(0x811F854F)] //account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode
public partial class Account_SentEmailCode : ITLObject
2021-08-04 00:40:09 +02:00
{
public string email_pattern;
public int length;
}
public abstract partial class Help_DeepLinkInfoBase : ITLObject { }
[TLDef(0x66AFA166)] //help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo
public partial class Help_DeepLinkInfoEmpty : Help_DeepLinkInfoBase { }
[TLDef(0x6A4EE832)] //help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector<MessageEntity> = help.DeepLinkInfo
public partial class Help_DeepLinkInfo : Help_DeepLinkInfoBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { update_app = 0x1, has_entities = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string message;
[IfFlag(1)] public MessageEntity[] entities;
}
public abstract partial class SavedContact : ITLObject { }
[TLDef(0x1142BD56)] //savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact
public partial class SavedPhoneContact : SavedContact
2021-08-04 00:40:09 +02:00
{
public string phone;
public string first_name;
public string last_name;
public DateTime date;
}
[TLDef(0x4DBA4501)] //account.takeout#4dba4501 id:long = account.Takeout
public partial class Account_Takeout : ITLObject { public long id; }
2021-08-04 00:40:09 +02:00
public abstract partial class PasswordKdfAlgo : ITLObject { }
[TLDef(0xD45AB096)] //passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo
public partial class PasswordKdfAlgoUnknown : PasswordKdfAlgo { }
[TLDef(0x3A912D4A)] //passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo
public partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo
2021-08-04 00:40:09 +02:00
{
public byte[] salt1;
public byte[] salt2;
public int g;
public byte[] p;
}
public abstract partial class SecurePasswordKdfAlgo : ITLObject { }
[TLDef(0x004A8537)] //securePasswordKdfAlgoUnknown#004a8537 = SecurePasswordKdfAlgo
public partial class SecurePasswordKdfAlgoUnknown : SecurePasswordKdfAlgo { }
[TLDef(0xBBF2DDA0)] //securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo
public partial class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { public byte[] salt; }
[TLDef(0x86471D92)] //securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo
public partial class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { public byte[] salt; }
2021-08-04 00:40:09 +02:00
[TLDef(0x1527BCAC)] //secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings
public partial class SecureSecretSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
public SecurePasswordKdfAlgo secure_algo;
public byte[] secure_secret;
public long secure_secret_id;
}
public abstract partial class InputCheckPasswordSRPBase : ITLObject { }
[TLDef(0x9880F658)] //inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP
public partial class InputCheckPasswordEmpty : InputCheckPasswordSRPBase { }
[TLDef(0xD27FF082)] //inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP
public partial class InputCheckPasswordSRP : InputCheckPasswordSRPBase
2021-08-04 00:40:09 +02:00
{
public long srp_id;
public byte[] A;
public byte[] M1;
}
public abstract partial class SecureRequiredTypeBase : ITLObject { }
[TLDef(0x829D99DA)] //secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType
public partial class SecureRequiredType : SecureRequiredTypeBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { native_names = 0x1, selfie_required = 0x2, translation_required = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public SecureValueType type;
}
[TLDef(0x027477B4)] //secureRequiredTypeOneOf#027477b4 types:Vector<SecureRequiredType> = SecureRequiredType
public partial class SecureRequiredTypeOneOf : SecureRequiredTypeBase { public SecureRequiredTypeBase[] types; }
2021-08-04 00:40:09 +02:00
public abstract partial class Help_PassportConfigBase : ITLObject { }
[TLDef(0xBFB9F457)] //help.passportConfigNotModified#bfb9f457 = help.PassportConfig
public partial class Help_PassportConfigNotModified : Help_PassportConfigBase { }
[TLDef(0xA098D6AF)] //help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig
public partial class Help_PassportConfig : Help_PassportConfigBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public DataJSON countries_langs;
}
[TLDef(0x1D1B1245)] //inputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent
public partial class InputAppEvent : ITLObject
2021-08-04 00:40:09 +02:00
{
public double time;
public string type;
public long peer;
public JSONValue data;
}
public abstract partial class JSONObjectValue : ITLObject { }
[TLDef(0xC0DE1BD9)] //jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue
public partial class JsonObjectValue : JSONObjectValue
2021-08-04 00:40:09 +02:00
{
public string key;
public JSONValue value;
}
public abstract partial class JSONValue : ITLObject { }
[TLDef(0x3F6D7B68)] //jsonNull#3f6d7b68 = JSONValue
public partial class JsonNull : JSONValue { }
[TLDef(0xC7345E6A)] //jsonBool#c7345e6a value:Bool = JSONValue
public partial class JsonBool : JSONValue { public bool value; }
[TLDef(0x2BE0DFA4)] //jsonNumber#2be0dfa4 value:double = JSONValue
public partial class JsonNumber : JSONValue { public double value; }
[TLDef(0xB71E767A)] //jsonString#b71e767a value:string = JSONValue
public partial class JsonString : JSONValue { public string value; }
[TLDef(0xF7444763)] //jsonArray#f7444763 value:Vector<JSONValue> = JSONValue
public partial class JsonArray : JSONValue { public JSONValue[] value; }
[TLDef(0x99C1D49D)] //jsonObject#99c1d49d value:Vector<JSONObjectValue> = JSONValue
public partial class JsonObject : JSONValue { public JSONObjectValue[] value; }
2021-08-04 00:40:09 +02:00
[TLDef(0x34566B6A)] //pageTableCell#34566b6a flags:# header:flags.0?true align_center:flags.3?true align_right:flags.4?true valign_middle:flags.5?true valign_bottom:flags.6?true text:flags.7?RichText colspan:flags.1?int rowspan:flags.2?int = PageTableCell
public partial class PageTableCell : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(7)] public RichText text;
[IfFlag(1)] public int colspan;
[IfFlag(2)] public int rowspan;
}
[TLDef(0xE0C0C5E5)] //pageTableRow#e0c0c5e5 cells:Vector<PageTableCell> = PageTableRow
public partial class PageTableRow : ITLObject { public PageTableCell[] cells; }
2021-08-04 00:40:09 +02:00
[TLDef(0x6F747657)] //pageCaption#6f747657 text:RichText credit:RichText = PageCaption
public partial class PageCaption : ITLObject
2021-08-04 00:40:09 +02:00
{
public RichText text;
public RichText credit;
}
public abstract partial class PageListItem : ITLObject { }
[TLDef(0xB92FB6CD)] //pageListItemText#b92fb6cd text:RichText = PageListItem
public partial class PageListItemText : PageListItem { public RichText text; }
[TLDef(0x25E073FC)] //pageListItemBlocks#25e073fc blocks:Vector<PageBlock> = PageListItem
public partial class PageListItemBlocks : PageListItem { public PageBlock[] blocks; }
2021-08-04 00:40:09 +02:00
public abstract partial class PageListOrderedItem : ITLObject { public string num; }
[TLDef(0x5E068047)] //pageListOrderedItemText#5e068047 num:string text:RichText = PageListOrderedItem
public partial class PageListOrderedItemText : PageListOrderedItem { public RichText text; }
[TLDef(0x98DD8936)] //pageListOrderedItemBlocks#98dd8936 num:string blocks:Vector<PageBlock> = PageListOrderedItem
public partial class PageListOrderedItemBlocks : PageListOrderedItem { public PageBlock[] blocks; }
2021-08-04 00:40:09 +02:00
[TLDef(0xB390DC08)] //pageRelatedArticle#b390dc08 flags:# url:string webpage_id:long title:flags.0?string description:flags.1?string photo_id:flags.2?long author:flags.3?string published_date:flags.4?int = PageRelatedArticle
public partial class PageRelatedArticle : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_title = 0x1, has_description = 0x2, has_photo_id = 0x4, has_author = 0x8,
has_published_date = 0x10 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x98657F0D)] //page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector<PageBlock> photos:Vector<Photo> documents:Vector<Document> views:flags.3?int = Page
public partial class Page : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { part = 0x1, rtl = 0x2, v2 = 0x4, has_views = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string url;
public PageBlock[] blocks;
public PhotoBase[] photos;
public DocumentBase[] documents;
[IfFlag(3)] public int views;
}
[TLDef(0x8C05F1C9)] //help.supportName#8c05f1c9 name:string = help.SupportName
public partial class Help_SupportName : ITLObject { public string name; }
2021-08-04 00:40:09 +02:00
public abstract partial class Help_UserInfoBase : ITLObject { }
[TLDef(0xF3AE2EED)] //help.userInfoEmpty#f3ae2eed = help.UserInfo
public partial class Help_UserInfoEmpty : Help_UserInfoBase { }
[TLDef(0x01EB3758)] //help.userInfo#01eb3758 message:string entities:Vector<MessageEntity> author:string date:int = help.UserInfo
public partial class Help_UserInfo : Help_UserInfoBase
2021-08-04 00:40:09 +02:00
{
public string message;
public MessageEntity[] entities;
public string author;
public DateTime date;
}
[TLDef(0x6CA9C2E9)] //pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer
public partial class PollAnswer : ITLObject
2021-08-04 00:40:09 +02:00
{
public string text;
public byte[] option;
}
[TLDef(0x86E18161)] //poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector<PollAnswer> close_period:flags.4?int close_date:flags.5?int = Poll
public partial class Poll : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { closed = 0x1, public_voters = 0x2, multiple_choice = 0x4, quiz = 0x8, has_close_period = 0x10,
has_close_date = 0x20 }
2021-08-04 00:40:09 +02:00
public long id;
public Flags flags;
public string question;
public PollAnswer[] answers;
[IfFlag(4)] public int close_period;
[IfFlag(5)] public DateTime close_date;
}
[TLDef(0x3B6DDAD2)] //pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters
public partial class PollAnswerVoters : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { chosen = 0x1, correct = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public byte[] option;
public int voters;
}
[TLDef(0xBADCC1A3)] //pollResults#badcc1a3 flags:# min:flags.0?true results:flags.1?Vector<PollAnswerVoters> total_voters:flags.2?int recent_voters:flags.3?Vector<int> solution:flags.4?string solution_entities:flags.4?Vector<MessageEntity> = PollResults
public partial class PollResults : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { min = 0x1, has_results = 0x2, has_total_voters = 0x4, has_recent_voters = 0x8, has_solution = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(1)] public PollAnswerVoters[] results;
[IfFlag(2)] public int total_voters;
[IfFlag(3)] public int[] recent_voters;
[IfFlag(4)] public string solution;
[IfFlag(4)] public MessageEntity[] solution_entities;
}
[TLDef(0xF041E250)] //chatOnlines#f041e250 onlines:int = ChatOnlines
public partial class ChatOnlines : ITLObject { public int onlines; }
2021-08-04 00:40:09 +02:00
[TLDef(0x47A971E0)] //statsURL#47a971e0 url:string = StatsURL
public partial class StatsURL : ITLObject { public string url; }
2021-08-04 00:40:09 +02:00
[TLDef(0x5FB224D5)] //chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights
public partial class ChatAdminRights : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x9F120418)] //chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights
public partial class ChatBannedRights : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DateTime until_date;
}
public abstract partial class InputWallPaperBase : ITLObject { }
[TLDef(0xE630B979)] //inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper
public partial class InputWallPaper : InputWallPaperBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0x72091C80)] //inputWallPaperSlug#72091c80 slug:string = InputWallPaper
public partial class InputWallPaperSlug : InputWallPaperBase { public string slug; }
[TLDef(0x8427BBAC)] //inputWallPaperNoFile#8427bbac = InputWallPaper
public partial class InputWallPaperNoFile : InputWallPaperBase { }
2021-08-04 00:40:09 +02:00
public abstract partial class Account_WallPapersBase : ITLObject { }
[TLDef(0x1C199183)] //account.wallPapersNotModified#1c199183 = account.WallPapers
public partial class Account_WallPapersNotModified : Account_WallPapersBase { }
[TLDef(0x702B65A9)] //account.wallPapers#702b65a9 hash:int wallpapers:Vector<WallPaper> = account.WallPapers
public partial class Account_WallPapers : Account_WallPapersBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public WallPaperBase[] wallpapers;
}
[TLDef(0xDEBEBE83)] //codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings
public partial class CodeSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { allow_flashcall = 0x1, current_number = 0x2, allow_app_hash = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0x05086CF8)] //wallPaperSettings#05086cf8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings
public partial class WallPaperSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_background_color = 0x1, blur = 0x2, motion = 0x4, has_intensity = 0x8,
has_second_background_color = 0x10 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int background_color;
[IfFlag(4)] public int second_background_color;
[IfFlag(3)] public int intensity;
[IfFlag(4)] public int rotation;
}
[TLDef(0xE04232F3)] //autoDownloadSettings#e04232f3 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int video_upload_maxbitrate:int = AutoDownloadSettings
public partial class AutoDownloadSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { disabled = 0x1, video_preload_large = 0x2, audio_preload_next = 0x4, phonecalls_less_data = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int photo_size_max;
public int video_size_max;
public int file_size_max;
public int video_upload_maxbitrate;
}
[TLDef(0x63CACF26)] //account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings
public partial class Account_AutoDownloadSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
public AutoDownloadSettings low;
public AutoDownloadSettings medium;
public AutoDownloadSettings high;
}
[TLDef(0xD5B3B9F9)] //emojiKeyword#d5b3b9f9 keyword:string emoticons:Vector<string> = EmojiKeyword
public partial class EmojiKeyword : ITLObject
2021-08-04 00:40:09 +02:00
{
public string keyword;
public string[] emoticons;
}
[TLDef(0x236DF622)] //emojiKeywordDeleted#236df622 keyword:string emoticons:Vector<string> = EmojiKeyword
public partial class EmojiKeywordDeleted : EmojiKeyword { }
2021-08-04 00:40:09 +02:00
[TLDef(0x5CC761BD)] //emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector<EmojiKeyword> = EmojiKeywordsDifference
public partial class EmojiKeywordsDifference : ITLObject
2021-08-04 00:40:09 +02:00
{
public string lang_code;
public int from_version;
public int version;
public EmojiKeyword[] keywords;
}
[TLDef(0xA575739D)] //emojiURL#a575739d url:string = EmojiURL
public partial class EmojiURL : ITLObject { public string url; }
2021-08-04 00:40:09 +02:00
[TLDef(0xB3FB5361)] //emojiLanguage#b3fb5361 lang_code:string = EmojiLanguage
public partial class EmojiLanguage : ITLObject { public string lang_code; }
2021-08-04 00:40:09 +02:00
public abstract partial class FileLocation : ITLObject { }
[TLDef(0xBC7FC6CD)] //fileLocationToBeDeprecated#bc7fc6cd volume_id:long local_id:int = FileLocation
public partial class FileLocationToBeDeprecated : FileLocation
2021-08-04 00:40:09 +02:00
{
public long volume_id;
public int local_id;
}
[TLDef(0xFF544E65)] //folder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder
public partial class Folder : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { autofill_new_broadcasts = 0x1, autofill_public_groups = 0x2, autofill_new_correspondents = 0x4,
has_photo = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int id;
public string title;
[IfFlag(3)] public ChatPhotoBase photo;
}
[TLDef(0xFBD2C296)] //inputFolderPeer#fbd2c296 peer:InputPeer folder_id:int = InputFolderPeer
public partial class InputFolderPeer : ITLObject
2021-08-04 00:40:09 +02:00
{
public InputPeer peer;
public int folder_id;
}
[TLDef(0xE9BAA668)] //folderPeer#e9baa668 peer:Peer folder_id:int = FolderPeer
public partial class FolderPeer : ITLObject
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public int folder_id;
}
[TLDef(0xE844EBFF)] //messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter
public partial class Messages_SearchCounter : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { inexact = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public MessagesFilter filter;
public int count;
}
public abstract partial class UrlAuthResult : ITLObject { }
[TLDef(0x92D33A0E)] //urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult
public partial class UrlAuthResultRequest : UrlAuthResult
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { request_write_access = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public UserBase bot;
public string domain;
}
[TLDef(0x8F8C0E4E)] //urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult
public partial class UrlAuthResultAccepted : UrlAuthResult { public string url; }
[TLDef(0xA9D6DB1F)] //urlAuthResultDefault#a9d6db1f = UrlAuthResult
public partial class UrlAuthResultDefault : UrlAuthResult { }
2021-08-04 00:40:09 +02:00
public abstract partial class ChannelLocationBase : ITLObject { }
[TLDef(0xBFB5AD8B)] //channelLocationEmpty#bfb5ad8b = ChannelLocation
public partial class ChannelLocationEmpty : ChannelLocationBase { }
[TLDef(0x209B82DB)] //channelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation
public partial class ChannelLocation : ChannelLocationBase
2021-08-04 00:40:09 +02:00
{
public GeoPointBase geo_point;
public string address;
}
public abstract partial class PeerLocatedBase : ITLObject { }
[TLDef(0xCA461B5D)] //peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated
public partial class PeerLocated : PeerLocatedBase
2021-08-04 00:40:09 +02:00
{
public Peer peer;
public DateTime expires;
public int distance;
}
[TLDef(0xF8EC284B)] //peerSelfLocated#f8ec284b expires:int = PeerLocated
public partial class PeerSelfLocated : PeerLocatedBase { public DateTime expires; }
2021-08-04 00:40:09 +02:00
[TLDef(0xD072ACB4)] //restrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReason
public partial class RestrictionReason : ITLObject
2021-08-04 00:40:09 +02:00
{
public string platform;
public string reason;
public string text;
}
public abstract partial class InputThemeBase : ITLObject { }
[TLDef(0x3C5693E9)] //inputTheme#3c5693e9 id:long access_hash:long = InputTheme
public partial class InputTheme : InputThemeBase
2021-08-04 00:40:09 +02:00
{
public long id;
public long access_hash;
}
[TLDef(0xF5890DF1)] //inputThemeSlug#f5890df1 slug:string = InputTheme
public partial class InputThemeSlug : InputThemeBase { public string slug; }
2021-08-04 00:40:09 +02:00
[TLDef(0x028F1114)] //theme#028f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme
public partial class Theme : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_document = 0x4, has_settings = 0x8 }
2021-08-04 00:40:09 +02:00
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;
public int installs_count;
}
public abstract partial class Account_ThemesBase : ITLObject { }
[TLDef(0xF41EB622)] //account.themesNotModified#f41eb622 = account.Themes
public partial class Account_ThemesNotModified : Account_ThemesBase { }
[TLDef(0x7F676421)] //account.themes#7f676421 hash:int themes:Vector<Theme> = account.Themes
public partial class Account_Themes : Account_ThemesBase
2021-08-04 00:40:09 +02:00
{
public int hash;
public Theme[] themes;
}
public abstract partial class Auth_LoginTokenBase : ITLObject { }
[TLDef(0x629F1980)] //auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken
public partial class Auth_LoginToken : Auth_LoginTokenBase
2021-08-04 00:40:09 +02:00
{
public DateTime expires;
public byte[] token;
}
[TLDef(0x068E9916)] //auth.loginTokenMigrateTo#068e9916 dc_id:int token:bytes = auth.LoginToken
public partial class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase
2021-08-04 00:40:09 +02:00
{
public int dc_id;
public byte[] token;
}
[TLDef(0x390D5C5E)] //auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken
public partial class Auth_LoginTokenSuccess : Auth_LoginTokenBase { public Auth_AuthorizationBase authorization; }
2021-08-04 00:40:09 +02:00
[TLDef(0x57E28221)] //account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings
public partial class Account_ContentSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { sensitive_enabled = 0x1, sensitive_can_change = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
}
[TLDef(0xA927FEC5)] //messages.inactiveChats#a927fec5 dates:Vector<int> chats:Vector<Chat> users:Vector<User> = messages.InactiveChats
public partial class Messages_InactiveChats : ITLObject
2021-08-04 00:40:09 +02:00
{
public int[] dates;
public ChatBase[] chats;
public UserBase[] users;
}
public abstract partial class BaseTheme : ITLObject { }
[TLDef(0xC3A12462)] //baseThemeClassic#c3a12462 = BaseTheme
public partial class BaseThemeClassic : BaseTheme { }
[TLDef(0xFBD81688)] //baseThemeDay#fbd81688 = BaseTheme
public partial class BaseThemeDay : BaseTheme { }
[TLDef(0xB7B31EA8)] //baseThemeNight#b7b31ea8 = BaseTheme
public partial class BaseThemeNight : BaseTheme { }
[TLDef(0x6D5F77EE)] //baseThemeTinted#6d5f77ee = BaseTheme
public partial class BaseThemeTinted : BaseTheme { }
[TLDef(0x5B11125A)] //baseThemeArctic#5b11125a = BaseTheme
public partial class BaseThemeArctic : BaseTheme { }
2021-08-04 00:40:09 +02:00
[TLDef(0xBD507CD1)] //inputThemeSettings#bd507cd1 flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings
public partial class InputThemeSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public BaseTheme base_theme;
public int accent_color;
[IfFlag(0)] public int message_top_color;
[IfFlag(0)] public int message_bottom_color;
[IfFlag(1)] public InputWallPaperBase wallpaper;
[IfFlag(1)] public WallPaperSettings wallpaper_settings;
}
[TLDef(0x9C14984A)] //themeSettings#9c14984a flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?WallPaper = ThemeSettings
public partial class ThemeSettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public BaseTheme base_theme;
public int accent_color;
[IfFlag(0)] public int message_top_color;
[IfFlag(0)] public int message_bottom_color;
[IfFlag(1)] public WallPaperBase wallpaper;
}
public abstract partial class WebPageAttribute : ITLObject { }
[TLDef(0x54B56617)] //webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector<Document> settings:flags.1?ThemeSettings = WebPageAttribute
public partial class WebPageAttributeTheme : WebPageAttribute
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_documents = 0x1, has_settings = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public DocumentBase[] documents;
[IfFlag(1)] public ThemeSettings settings;
}
public abstract partial class MessageUserVoteBase : ITLObject { }
[TLDef(0xA28E5559)] //messageUserVote#a28e5559 user_id:int option:bytes date:int = MessageUserVote
public partial class MessageUserVote : MessageUserVoteBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public byte[] option;
public DateTime date;
}
[TLDef(0x36377430)] //messageUserVoteInputOption#36377430 user_id:int date:int = MessageUserVote
public partial class MessageUserVoteInputOption : MessageUserVoteBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public DateTime date;
}
[TLDef(0x0E8FE0DE)] //messageUserVoteMultiple#0e8fe0de user_id:int options:Vector<bytes> date:int = MessageUserVote
public partial class MessageUserVoteMultiple : MessageUserVoteBase
2021-08-04 00:40:09 +02:00
{
public int user_id;
public byte[][] options;
public DateTime date;
}
[TLDef(0x0823F649)] //messages.votesList#0823f649 flags:# count:int votes:Vector<MessageUserVote> users:Vector<User> next_offset:flags.0?string = messages.VotesList
public partial class Messages_VotesList : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_next_offset = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int count;
public MessageUserVoteBase[] votes;
public UserBase[] users;
[IfFlag(0)] public string next_offset;
}
[TLDef(0xF568028A)] //bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl
public partial class BankCardOpenUrl : ITLObject
2021-08-04 00:40:09 +02:00
{
public string url;
public string name;
}
[TLDef(0x3E24E573)] //payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> = payments.BankCardData
public partial class Payments_BankCardData : ITLObject
2021-08-04 00:40:09 +02:00
{
public string title;
public BankCardOpenUrl[] open_urls;
}
[TLDef(0x7438F7E8)] //dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter
public partial class DialogFilter : ITLObject
2021-08-04 00:40:09 +02:00
{
[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 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x77744D4A)] //dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested
public partial class DialogFilterSuggested : ITLObject
2021-08-04 00:40:09 +02:00
{
public DialogFilter filter;
public string description;
}
[TLDef(0xB637EDAF)] //statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays
public partial class StatsDateRangeDays : ITLObject
2021-08-04 00:40:09 +02:00
{
public DateTime min_date;
public DateTime max_date;
}
[TLDef(0xCB43ACDE)] //statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev
public partial class StatsAbsValueAndPrev : ITLObject
2021-08-04 00:40:09 +02:00
{
public double current;
public double previous;
}
[TLDef(0xCBCE2FE0)] //statsPercentValue#cbce2fe0 part:double total:double = StatsPercentValue
public partial class StatsPercentValue : ITLObject
2021-08-04 00:40:09 +02:00
{
public double part;
public double total;
}
public abstract partial class StatsGraphBase : ITLObject { }
[TLDef(0x4A27EB2D)] //statsGraphAsync#4a27eb2d token:string = StatsGraph
public partial class StatsGraphAsync : StatsGraphBase { public string token; }
[TLDef(0xBEDC9822)] //statsGraphError#bedc9822 error:string = StatsGraph
public partial class StatsGraphError : StatsGraphBase { public string error; }
[TLDef(0x8EA464B6)] //statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph
public partial class StatsGraph : StatsGraphBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_zoom_token = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public DataJSON json;
[IfFlag(0)] public string zoom_token;
}
[TLDef(0xAD4FC9BD)] //messageInteractionCounters#ad4fc9bd msg_id:int views:int forwards:int = MessageInteractionCounters
public partial class MessageInteractionCounters : ITLObject
2021-08-04 00:40:09 +02:00
{
public int msg_id;
public int views;
public int forwards;
}
[TLDef(0xBDF78394)] //stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph recent_message_interactions:Vector<MessageInteractionCounters> = stats.BroadcastStats
public partial class Stats_BroadcastStats : ITLObject
2021-08-04 00:40:09 +02:00
{
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;
}
public abstract partial class Help_PromoDataBase : ITLObject { }
[TLDef(0x98F6AC75)] //help.promoDataEmpty#98f6ac75 expires:int = help.PromoData
public partial class Help_PromoDataEmpty : Help_PromoDataBase { public DateTime expires; }
[TLDef(0x8C39793F)] //help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector<Chat> users:Vector<User> psa_type:flags.1?string psa_message:flags.2?string = help.PromoData
public partial class Help_PromoData : Help_PromoDataBase
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { proxy = 0x1, has_psa_type = 0x2, has_psa_message = 0x4 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0xE831C556)] //videoSize#e831c556 flags:# type:string location:FileLocation w:int h:int size:int video_start_ts:flags.0?double = VideoSize
public partial class VideoSize : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_video_start_ts = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string type;
public FileLocation location;
public int w;
public int h;
public int size;
[IfFlag(0)] public double video_start_ts;
}
[TLDef(0x18F3D0F7)] //statsGroupTopPoster#18f3d0f7 user_id:int messages:int avg_chars:int = StatsGroupTopPoster
public partial class StatsGroupTopPoster : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int messages;
public int avg_chars;
}
[TLDef(0x6014F412)] //statsGroupTopAdmin#6014f412 user_id:int deleted:int kicked:int banned:int = StatsGroupTopAdmin
public partial class StatsGroupTopAdmin : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int deleted;
public int kicked;
public int banned;
}
[TLDef(0x31962A4C)] //statsGroupTopInviter#31962a4c user_id:int invitations:int = StatsGroupTopInviter
public partial class StatsGroupTopInviter : ITLObject
2021-08-04 00:40:09 +02:00
{
public int user_id;
public int invitations;
}
[TLDef(0xEF7FF916)] //stats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector<StatsGroupTopPoster> top_admins:Vector<StatsGroupTopAdmin> top_inviters:Vector<StatsGroupTopInviter> users:Vector<User> = stats.MegagroupStats
public partial class Stats_MegagroupStats : ITLObject
2021-08-04 00:40:09 +02:00
{
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;
}
[TLDef(0xBEA2F424)] //globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings
public partial class GlobalPrivacySettings : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_archive_and_mute_new_noncontact_peers = 0x1 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public bool archive_and_mute_new_noncontact_peers;
}
[TLDef(0x4203C5EF)] //help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector<string> patterns:flags.1?Vector<string> = help.CountryCode
public partial class Help_CountryCode : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_prefixes = 0x1, has_patterns = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string country_code;
[IfFlag(0)] public string[] prefixes;
[IfFlag(1)] public string[] patterns;
}
[TLDef(0xC3878E23)] //help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector<help.CountryCode> = help.Country
public partial class Help_Country : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { hidden = 0x1, has_name = 0x2 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public string iso2;
public string default_name;
[IfFlag(1)] public string name;
public Help_CountryCode[] country_codes;
}
public abstract partial class Help_CountriesListBase : ITLObject { }
[TLDef(0x93CC1F32)] //help.countriesListNotModified#93cc1f32 = help.CountriesList
public partial class Help_CountriesListNotModified : Help_CountriesListBase { }
[TLDef(0x87D0759E)] //help.countriesList#87d0759e countries:Vector<help.Country> hash:int = help.CountriesList
public partial class Help_CountriesList : Help_CountriesListBase
2021-08-04 00:40:09 +02:00
{
public Help_Country[] countries;
public int hash;
}
[TLDef(0x455B853D)] //messageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews
public partial class MessageViews : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_views = 0x1, has_forwards = 0x2, has_replies = 0x4 }
2021-08-04 00:40:09 +02:00
public Flags flags;
[IfFlag(0)] public int views;
[IfFlag(1)] public int forwards;
[IfFlag(2)] public MessageReplies replies;
}
[TLDef(0xB6C4F543)] //messages.messageViews#b6c4f543 views:Vector<MessageViews> chats:Vector<Chat> users:Vector<User> = messages.MessageViews
public partial class Messages_MessageViews : ITLObject
2021-08-04 00:40:09 +02:00
{
public MessageViews[] views;
public ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xF5DD8F9D)] //messages.discussionMessage#f5dd8f9d flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage
public partial class Messages_DiscussionMessage : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_max_id = 0x1, has_read_inbox_max_id = 0x2, has_read_outbox_max_id = 0x4 }
2021-08-04 00:40:09 +02:00
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 ChatBase[] chats;
public UserBase[] users;
}
[TLDef(0xA6D57763)] //messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader
public partial class MessageReplyHeader : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { has_reply_to_peer_id = 0x1, has_reply_to_top_id = 0x2 }
2021-08-04 00:40:09 +02:00
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;
}
[TLDef(0x4128FAAC)] //messageReplies#4128faac flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector<Peer> channel_id:flags.0?int max_id:flags.2?int read_max_id:flags.3?int = MessageReplies
public partial class MessageReplies : ITLObject
2021-08-04 00:40:09 +02:00
{
[Flags] public enum Flags { comments = 0x1, has_recent_repliers = 0x2, has_max_id = 0x4, has_read_max_id = 0x8 }
2021-08-04 00:40:09 +02:00
public Flags flags;
public int replies;
public int replies_pts;
[IfFlag(1)] public Peer[] recent_repliers;
[IfFlag(0)] public int channel_id;
[IfFlag(2)] public int max_id;
[IfFlag(3)] public int read_max_id;
}
[TLDef(0xE8FD8014)] //peerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked
public partial class PeerBlocked : ITLObject
2021-08-04 00:40:09 +02:00
{
public Peer peer_id;
public DateTime date;
}
[TLDef(0x8999F295)] //stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats
public partial class Stats_MessageStats : ITLObject { public StatsGraphBase views_graph; }
}
2021-08-04 00:40:09 +02:00
namespace WTelegram // ---functions---
{
using System.IO;
using TL;
public partial class Client
{
//invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X
public Task<X> InvokeAfterMsg<X>(long msg_id, ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0xCB9F372D);
writer.Write(msg_id);
query(writer);
return "InvokeAfterMsg<X>";
});
//invokeAfterMsgs#3dc4b4f0 {X:Type} msg_ids:Vector<long> query:!X = X
public Task<X> InvokeAfterMsgs<X>(long[] msg_ids, ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0x3DC4B4F0);
writer.WriteTLVector(msg_ids);
query(writer);
return "InvokeAfterMsgs<X>";
});
//auth.sendCode#a677244f phone_number:string api_id:int api_hash:string settings:CodeSettings = auth.SentCode
public Task<Auth_SentCode> Auth_SendCode(string phone_number, int api_id, string api_hash, CodeSettings settings)
=> CallAsync<Auth_SentCode>(writer =>
{
writer.Write(0xA677244F);
writer.WriteTLString(phone_number);
writer.Write(api_id);
writer.WriteTLString(api_hash);
writer.WriteTLObject(settings);
return "Auth_SendCode";
});
//auth.signUp#80eee427 phone_number:string phone_code_hash:string first_name:string last_name:string = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_SignUp(string phone_number, string phone_code_hash, string first_name, string last_name)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0x80EEE427);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
writer.WriteTLString(first_name);
writer.WriteTLString(last_name);
return "Auth_SignUp";
});
//auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_SignIn(string phone_number, string phone_code_hash, string phone_code)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0xBCD51581);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
writer.WriteTLString(phone_code);
return "Auth_SignIn";
});
//auth.logOut#5717da40 = Bool
public Task<bool> Auth_LogOut()
=> CallAsync<bool>(writer =>
{
writer.Write(0x5717DA40);
return "Auth_LogOut";
});
//auth.resetAuthorizations#9fab0d1a = Bool
public Task<bool> Auth_ResetAuthorizations()
=> CallAsync<bool>(writer =>
{
writer.Write(0x9FAB0D1A);
return "Auth_ResetAuthorizations";
});
//auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization
public Task<Auth_ExportedAuthorization> Auth_ExportAuthorization(int dc_id)
=> CallAsync<Auth_ExportedAuthorization>(writer =>
{
writer.Write(0xE5BFFFCD);
writer.Write(dc_id);
return "Auth_ExportAuthorization";
});
//auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_ImportAuthorization(int id, byte[] bytes)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0xE3EF9613);
writer.Write(id);
writer.WriteTLBytes(bytes);
return "Auth_ImportAuthorization";
});
//auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool
public Task<bool> Auth_BindTempAuthKey(long perm_auth_key_id, long nonce, DateTime expires_at, byte[] encrypted_message)
=> CallAsync<bool>(writer =>
{
writer.Write(0xCDD42A05);
writer.Write(perm_auth_key_id);
writer.Write(nonce);
writer.WriteTLStamp(expires_at);
writer.WriteTLBytes(encrypted_message);
return "Auth_BindTempAuthKey";
});
//account.registerDevice#68976c6f flags:# no_muted:flags.0?true token_type:int token:string app_sandbox:Bool secret:bytes other_uids:Vector<int> = Bool
public Task<bool> Account_RegisterDevice(int token_type, string token, bool app_sandbox, byte[] secret, int[] other_uids, bool no_muted = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x68976C6F);
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";
});
//account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool
public Task<bool> Account_UnregisterDevice(int token_type, string token, int[] other_uids)
=> CallAsync<bool>(writer =>
{
writer.Write(0x3076C4BF);
writer.Write(token_type);
writer.WriteTLString(token);
writer.WriteTLVector(other_uids);
return "Account_UnregisterDevice";
});
//account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool
public Task<bool> Account_UpdateNotifySettings(InputNotifyPeerBase peer, InputPeerNotifySettings settings)
=> CallAsync<bool>(writer =>
{
writer.Write(0x84BE5B93);
writer.WriteTLObject(peer);
writer.WriteTLObject(settings);
return "Account_UpdateNotifySettings";
});
//account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings
public Task<PeerNotifySettings> Account_GetNotifySettings(InputNotifyPeerBase peer)
=> CallAsync<PeerNotifySettings>(writer =>
{
writer.Write(0x12B3AD31);
writer.WriteTLObject(peer);
return "Account_GetNotifySettings";
});
//account.resetNotifySettings#db7e1747 = Bool
public Task<bool> Account_ResetNotifySettings()
=> CallAsync<bool>(writer =>
{
writer.Write(0xDB7E1747);
return "Account_ResetNotifySettings";
});
//account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User
public Task<UserBase> Account_UpdateProfile(string first_name = null, string last_name = null, string about = null)
=> CallAsync<UserBase>(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";
});
//account.updateStatus#6628562c offline:Bool = Bool
public Task<bool> Account_UpdateStatus(bool offline)
=> CallAsync<bool>(writer =>
{
writer.Write(0x6628562C);
writer.Write(offline ? 0x997275B5 : 0xBC799737);
return "Account_UpdateStatus";
});
//account.getWallPapers#aabb1763 hash:int = account.WallPapers
public Task<Account_WallPapersBase> Account_GetWallPapers(int hash)
=> CallAsync<Account_WallPapersBase>(writer =>
{
writer.Write(0xAABB1763);
writer.Write(hash);
return "Account_GetWallPapers";
});
//account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool
public Task<bool> Account_ReportPeer(InputPeer peer, ReportReason reason)
=> CallAsync<bool>(writer =>
{
writer.Write(0xAE189D5F);
writer.WriteTLObject(peer);
writer.WriteTLObject(reason);
return "Account_ReportPeer";
});
//users.getUsers#0d91a548 id:Vector<InputUser> = Vector<User>
public Task<UserBase[]> Users_GetUsers(InputUserBase[] id)
=> CallAsync<UserBase[]>(writer =>
{
writer.Write(0x0D91A548);
writer.WriteTLVector(id);
return "Users_GetUsers";
});
//users.getFullUser#ca30a5b1 id:InputUser = UserFull
public Task<UserFull> Users_GetFullUser(InputUserBase id)
=> CallAsync<UserFull>(writer =>
{
writer.Write(0xCA30A5B1);
writer.WriteTLObject(id);
return "Users_GetFullUser";
});
//contacts.getContactIDs#2caa4a42 hash:int = Vector<int>
public Task<int[]> Contacts_GetContactIDs(int hash)
=> CallAsync<int[]>(writer =>
{
writer.Write(0x2CAA4A42);
writer.Write(hash);
return "Contacts_GetContactIDs";
});
//contacts.getStatuses#c4a353ee = Vector<ContactStatus>
public Task<ContactStatus[]> Contacts_GetStatuses()
=> CallAsync<ContactStatus[]>(writer =>
{
writer.Write(0xC4A353EE);
return "Contacts_GetStatuses";
});
//contacts.getContacts#c023849f hash:int = contacts.Contacts
public Task<Contacts_ContactsBase> Contacts_GetContacts(int hash)
=> CallAsync<Contacts_ContactsBase>(writer =>
{
writer.Write(0xC023849F);
writer.Write(hash);
return "Contacts_GetContacts";
});
//contacts.importContacts#2c800be5 contacts:Vector<InputContact> = contacts.ImportedContacts
public Task<Contacts_ImportedContacts> Contacts_ImportContacts(InputContact[] contacts)
=> CallAsync<Contacts_ImportedContacts>(writer =>
{
writer.Write(0x2C800BE5);
writer.WriteTLVector(contacts);
return "Contacts_ImportContacts";
});
//contacts.deleteContacts#096a0e00 id:Vector<InputUser> = Updates
public Task<UpdatesBase> Contacts_DeleteContacts(InputUserBase[] id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x096A0E00);
writer.WriteTLVector(id);
return "Contacts_DeleteContacts";
});
//contacts.deleteByPhones#1013fd9e phones:Vector<string> = Bool
public Task<bool> Contacts_DeleteByPhones(string[] phones)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1013FD9E);
writer.WriteTLVector(phones);
return "Contacts_DeleteByPhones";
});
//contacts.block#68cc1411 id:InputPeer = Bool
public Task<bool> Contacts_Block(InputPeer id)
=> CallAsync<bool>(writer =>
{
writer.Write(0x68CC1411);
writer.WriteTLObject(id);
return "Contacts_Block";
});
//contacts.unblock#bea65d50 id:InputPeer = Bool
public Task<bool> Contacts_Unblock(InputPeer id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xBEA65D50);
writer.WriteTLObject(id);
return "Contacts_Unblock";
});
//contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked
public Task<Contacts_BlockedBase> Contacts_GetBlocked(int offset, int limit)
=> CallAsync<Contacts_BlockedBase>(writer =>
{
writer.Write(0xF57C350F);
writer.Write(offset);
writer.Write(limit);
return "Contacts_GetBlocked";
});
//messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages
public Task<Messages_MessagesBase> Messages_GetMessages(InputMessage[] id)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0x63C66506);
writer.WriteTLVector(id);
return "Messages_GetMessages";
});
//messages.getDialogs#a0ee3b73 flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:int = messages.Dialogs
public Task<Messages_DialogsBase> Messages_GetDialogs(DateTime offset_date, int offset_id, InputPeer offset_peer, int limit, int hash, bool exclude_pinned = false, int? folder_id = null)
=> CallAsync<Messages_DialogsBase>(writer =>
{
writer.Write(0xA0EE3B73);
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";
});
//messages.getHistory#dcbb8260 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages
public Task<Messages_MessagesBase> Messages_GetHistory(InputPeer peer, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, int hash)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0xDCBB8260);
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";
});
//messages.search#0c352eec flags:# peer:InputPeer q:string from_id:flags.0?InputPeer top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages
public Task<Messages_MessagesBase> Messages_Search(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, int hash, InputPeer from_id = null, int? top_msg_id = null)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0x0C352EEC);
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";
});
//messages.readHistory#0e306d3a peer:InputPeer max_id:int = messages.AffectedMessages
public Task<Messages_AffectedMessages> Messages_ReadHistory(InputPeer peer, int max_id)
=> CallAsync<Messages_AffectedMessages>(writer =>
{
writer.Write(0x0E306D3A);
writer.WriteTLObject(peer);
writer.Write(max_id);
return "Messages_ReadHistory";
});
//messages.deleteHistory#1c015b09 flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int = messages.AffectedHistory
public Task<Messages_AffectedHistory> Messages_DeleteHistory(InputPeer peer, int max_id, bool just_clear = false, bool revoke = false)
=> CallAsync<Messages_AffectedHistory>(writer =>
{
writer.Write(0x1C015B09);
writer.Write((just_clear ? 0x1 : 0) | (revoke ? 0x2 : 0));
writer.WriteTLObject(peer);
writer.Write(max_id);
return "Messages_DeleteHistory";
});
//messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages
public Task<Messages_AffectedMessages> Messages_DeleteMessages(int[] id, bool revoke = false)
=> CallAsync<Messages_AffectedMessages>(writer =>
{
writer.Write(0xE58E95D2);
writer.Write(revoke ? 0x1 : 0);
writer.WriteTLVector(id);
return "Messages_DeleteMessages";
});
//messages.receivedMessages#05a954c0 max_id:int = Vector<ReceivedNotifyMessage>
public Task<ReceivedNotifyMessage[]> Messages_ReceivedMessages(int max_id)
=> CallAsync<ReceivedNotifyMessage[]>(writer =>
{
writer.Write(0x05A954C0);
writer.Write(max_id);
return "Messages_ReceivedMessages";
});
//messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool
public Task<bool> Messages_SetTyping(InputPeer peer, SendMessageAction action, int? top_msg_id = null)
=> CallAsync<bool>(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";
});
//messages.sendMessage#520c3870 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates
public Task<UpdatesBase> Messages_SendMessage(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)
=> CallAsync<UpdatesBase>(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";
});
//messages.sendMedia#3491eba9 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates
public Task<UpdatesBase> Messages_SendMedia(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)
=> CallAsync<UpdatesBase>(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";
});
//messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates
public Task<UpdatesBase> Messages_ForwardMessages(InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, bool silent = false, bool background = false, bool with_my_score = false, DateTime? schedule_date = null)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xD9FEE60E);
writer.Write((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 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";
});
//messages.reportSpam#cf1592db peer:InputPeer = Bool
public Task<bool> Messages_ReportSpam(InputPeer peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0xCF1592DB);
writer.WriteTLObject(peer);
return "Messages_ReportSpam";
});
//messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings
public Task<PeerSettings> Messages_GetPeerSettings(InputPeer peer)
=> CallAsync<PeerSettings>(writer =>
{
writer.Write(0x3672E09C);
writer.WriteTLObject(peer);
return "Messages_GetPeerSettings";
});
//messages.report#bd82b658 peer:InputPeer id:Vector<int> reason:ReportReason = Bool
public Task<bool> Messages_Report(InputPeer peer, int[] id, ReportReason reason)
=> CallAsync<bool>(writer =>
{
writer.Write(0xBD82B658);
writer.WriteTLObject(peer);
writer.WriteTLVector(id);
writer.WriteTLObject(reason);
return "Messages_Report";
});
//messages.getChats#3c6aa187 id:Vector<int> = messages.Chats
public Task<Messages_ChatsBase> Messages_GetChats(int[] id)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0x3C6AA187);
writer.WriteTLVector(id);
return "Messages_GetChats";
});
//messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull
public Task<Messages_ChatFull> Messages_GetFullChat(int chat_id)
=> CallAsync<Messages_ChatFull>(writer =>
{
writer.Write(0x3B831C66);
writer.Write(chat_id);
return "Messages_GetFullChat";
});
//messages.editChatTitle#dc452855 chat_id:int title:string = Updates
public Task<UpdatesBase> Messages_EditChatTitle(int chat_id, string title)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xDC452855);
writer.Write(chat_id);
writer.WriteTLString(title);
return "Messages_EditChatTitle";
});
//messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates
public Task<UpdatesBase> Messages_EditChatPhoto(int chat_id, InputChatPhotoBase photo)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xCA4C79D8);
writer.Write(chat_id);
writer.WriteTLObject(photo);
return "Messages_EditChatPhoto";
});
//messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates
public Task<UpdatesBase> Messages_AddChatUser(int chat_id, InputUserBase user_id, int fwd_limit)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xF9A0AA09);
writer.Write(chat_id);
writer.WriteTLObject(user_id);
writer.Write(fwd_limit);
return "Messages_AddChatUser";
});
//messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates
public Task<UpdatesBase> Messages_DeleteChatUser(int chat_id, InputUserBase user_id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xE0611F16);
writer.Write(chat_id);
writer.WriteTLObject(user_id);
return "Messages_DeleteChatUser";
});
//messages.createChat#09cb126e users:Vector<InputUser> title:string = Updates
public Task<UpdatesBase> Messages_CreateChat(InputUserBase[] users, string title)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x09CB126E);
writer.WriteTLVector(users);
writer.WriteTLString(title);
return "Messages_CreateChat";
});
//updates.getState#edd4882a = updates.State
public Task<Updates_State> Updates_GetState()
=> CallAsync<Updates_State>(writer =>
{
writer.Write(0xEDD4882A);
return "Updates_GetState";
});
//updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference
public Task<Updates_DifferenceBase> Updates_GetDifference(int pts, DateTime date, int qts, int? pts_total_limit = null)
=> CallAsync<Updates_DifferenceBase>(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";
});
//photos.updateProfilePhoto#72d4742c id:InputPhoto = photos.Photo
public Task<Photos_Photo> Photos_UpdateProfilePhoto(InputPhotoBase id)
=> CallAsync<Photos_Photo>(writer =>
{
writer.Write(0x72D4742C);
writer.WriteTLObject(id);
return "Photos_UpdateProfilePhoto";
});
//photos.uploadProfilePhoto#89f30f69 flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = photos.Photo
public Task<Photos_Photo> Photos_UploadProfilePhoto(InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null)
=> CallAsync<Photos_Photo>(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";
});
//photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>
public Task<long[]> Photos_DeletePhotos(InputPhotoBase[] id)
=> CallAsync<long[]>(writer =>
{
writer.Write(0x87CF7F2F);
writer.WriteTLVector(id);
return "Photos_DeletePhotos";
});
//upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool
public Task<bool> Upload_SaveFilePart(long file_id, int file_part, byte[] bytes)
=> CallAsync<bool>(writer =>
{
writer.Write(0xB304A621);
writer.Write(file_id);
writer.Write(file_part);
writer.WriteTLBytes(bytes);
return "Upload_SaveFilePart";
});
//upload.getFile#b15a9afc flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:int limit:int = upload.File
public Task<Upload_FileBase> Upload_GetFile(InputFileLocationBase location, int offset, int limit, bool precise = false, bool cdn_supported = false)
=> CallAsync<Upload_FileBase>(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";
});
//help.getConfig#c4f9186b = Config
public Task<Config> Help_GetConfig() => CallAsync<Config>(Help_GetConfig);
public static string Help_GetConfig(BinaryWriter writer)
{
writer.Write(0xC4F9186B);
return "Help_GetConfig";
}
//help.getNearestDc#1fb33026 = NearestDc
public Task<NearestDc> Help_GetNearestDc()
=> CallAsync<NearestDc>(writer =>
{
writer.Write(0x1FB33026);
return "Help_GetNearestDc";
});
//help.getAppUpdate#522d5a7d source:string = help.AppUpdate
public Task<Help_AppUpdateBase> Help_GetAppUpdate(string source)
=> CallAsync<Help_AppUpdateBase>(writer =>
{
writer.Write(0x522D5A7D);
writer.WriteTLString(source);
return "Help_GetAppUpdate";
});
//help.getInviteText#4d392343 = help.InviteText
public Task<Help_InviteText> Help_GetInviteText()
=> CallAsync<Help_InviteText>(writer =>
{
writer.Write(0x4D392343);
return "Help_GetInviteText";
});
//photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos
public Task<Photos_PhotosBase> Photos_GetUserPhotos(InputUserBase user_id, int offset, long max_id, int limit)
=> CallAsync<Photos_PhotosBase>(writer =>
{
writer.Write(0x91CD32A8);
writer.WriteTLObject(user_id);
writer.Write(offset);
writer.Write(max_id);
writer.Write(limit);
return "Photos_GetUserPhotos";
});
//messages.getDhConfig#26cf8950 version:int random_length:int = messages.DhConfig
public Task<Messages_DhConfigBase> Messages_GetDhConfig(int version, int random_length)
=> CallAsync<Messages_DhConfigBase>(writer =>
{
writer.Write(0x26CF8950);
writer.Write(version);
writer.Write(random_length);
return "Messages_GetDhConfig";
});
//messages.requestEncryption#f64daf43 user_id:InputUser random_id:int g_a:bytes = EncryptedChat
public Task<EncryptedChatBase> Messages_RequestEncryption(InputUserBase user_id, int random_id, byte[] g_a)
=> CallAsync<EncryptedChatBase>(writer =>
{
writer.Write(0xF64DAF43);
writer.WriteTLObject(user_id);
writer.Write(random_id);
writer.WriteTLBytes(g_a);
return "Messages_RequestEncryption";
});
//messages.acceptEncryption#3dbc0415 peer:InputEncryptedChat g_b:bytes key_fingerprint:long = EncryptedChat
public Task<EncryptedChatBase> Messages_AcceptEncryption(InputEncryptedChat peer, byte[] g_b, long key_fingerprint)
=> CallAsync<EncryptedChatBase>(writer =>
{
writer.Write(0x3DBC0415);
writer.WriteTLObject(peer);
writer.WriteTLBytes(g_b);
writer.Write(key_fingerprint);
return "Messages_AcceptEncryption";
});
//messages.discardEncryption#edd923c5 chat_id:int = Bool
public Task<bool> Messages_DiscardEncryption(int chat_id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xEDD923C5);
writer.Write(chat_id);
return "Messages_DiscardEncryption";
});
//messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool
public Task<bool> Messages_SetEncryptedTyping(InputEncryptedChat peer, bool typing)
=> CallAsync<bool>(writer =>
{
writer.Write(0x791451ED);
writer.WriteTLObject(peer);
writer.Write(typing ? 0x997275B5 : 0xBC799737);
return "Messages_SetEncryptedTyping";
});
//messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:int = Bool
public Task<bool> Messages_ReadEncryptedHistory(InputEncryptedChat peer, DateTime max_date)
=> CallAsync<bool>(writer =>
{
writer.Write(0x7F4B690A);
writer.WriteTLObject(peer);
writer.WriteTLStamp(max_date);
return "Messages_ReadEncryptedHistory";
});
//messages.sendEncrypted#44fa7a15 flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage
public Task<Messages_SentEncryptedMessage> Messages_SendEncrypted(InputEncryptedChat peer, long random_id, byte[] data, bool silent = false)
=> CallAsync<Messages_SentEncryptedMessage>(writer =>
{
writer.Write(0x44FA7A15);
writer.Write(silent ? 0x1 : 0);
writer.WriteTLObject(peer);
writer.Write(random_id);
writer.WriteTLBytes(data);
return "Messages_SendEncrypted";
});
//messages.sendEncryptedFile#5559481d flags:# silent:flags.0?true peer:InputEncryptedChat random_id:long data:bytes file:InputEncryptedFile = messages.SentEncryptedMessage
public Task<Messages_SentEncryptedMessage> Messages_SendEncryptedFile(InputEncryptedChat peer, long random_id, byte[] data, InputEncryptedFileBase file, bool silent = false)
=> CallAsync<Messages_SentEncryptedMessage>(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";
});
//messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage
public Task<Messages_SentEncryptedMessage> Messages_SendEncryptedService(InputEncryptedChat peer, long random_id, byte[] data)
=> CallAsync<Messages_SentEncryptedMessage>(writer =>
{
writer.Write(0x32D439A4);
writer.WriteTLObject(peer);
writer.Write(random_id);
writer.WriteTLBytes(data);
return "Messages_SendEncryptedService";
});
//messages.receivedQueue#55a5bb66 max_qts:int = Vector<long>
public Task<long[]> Messages_ReceivedQueue(int max_qts)
=> CallAsync<long[]>(writer =>
{
writer.Write(0x55A5BB66);
writer.Write(max_qts);
return "Messages_ReceivedQueue";
});
//messages.reportEncryptedSpam#4b0c8c0f peer:InputEncryptedChat = Bool
public Task<bool> Messages_ReportEncryptedSpam(InputEncryptedChat peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0x4B0C8C0F);
writer.WriteTLObject(peer);
return "Messages_ReportEncryptedSpam";
});
//upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool
public Task<bool> Upload_SaveBigFilePart(long file_id, int file_part, int file_total_parts, byte[] bytes)
=> CallAsync<bool>(writer =>
{
writer.Write(0xDE7B673D);
writer.Write(file_id);
writer.Write(file_part);
writer.Write(file_total_parts);
writer.WriteTLBytes(bytes);
return "Upload_SaveBigFilePart";
});
//initConnection#c1cd5ea9 {X:Type} flags:# api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string proxy:flags.0?InputClientProxy params:flags.1?JSONValue query:!X = X
public static ITLFunction<X> InitConnection<X>(int api_id, string device_model, string system_version, string app_version, string system_lang_code, string lang_pack, string lang_code, ITLFunction<X> 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<X>";
};
//help.getSupport#9cdf08cd = help.Support
public Task<Help_Support> Help_GetSupport()
=> CallAsync<Help_Support>(writer =>
{
writer.Write(0x9CDF08CD);
return "Help_GetSupport";
});
//messages.readMessageContents#36a73f77 id:Vector<int> = messages.AffectedMessages
public Task<Messages_AffectedMessages> Messages_ReadMessageContents(int[] id)
=> CallAsync<Messages_AffectedMessages>(writer =>
{
writer.Write(0x36A73F77);
writer.WriteTLVector(id);
return "Messages_ReadMessageContents";
});
//account.checkUsername#2714d86c username:string = Bool
public Task<bool> Account_CheckUsername(string username)
=> CallAsync<bool>(writer =>
{
writer.Write(0x2714D86C);
writer.WriteTLString(username);
return "Account_CheckUsername";
});
//account.updateUsername#3e0bdd7c username:string = User
public Task<UserBase> Account_UpdateUsername(string username)
=> CallAsync<UserBase>(writer =>
{
writer.Write(0x3E0BDD7C);
writer.WriteTLString(username);
return "Account_UpdateUsername";
});
//contacts.search#11f812d8 q:string limit:int = contacts.Found
public Task<Contacts_Found> Contacts_Search(string q, int limit)
=> CallAsync<Contacts_Found>(writer =>
{
writer.Write(0x11F812D8);
writer.WriteTLString(q);
writer.Write(limit);
return "Contacts_Search";
});
//account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules
public Task<Account_PrivacyRules> Account_GetPrivacy(InputPrivacyKey key)
=> CallAsync<Account_PrivacyRules>(writer =>
{
writer.Write(0xDADBC950);
writer.WriteTLObject(key);
return "Account_GetPrivacy";
});
//account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules
public Task<Account_PrivacyRules> Account_SetPrivacy(InputPrivacyKey key, InputPrivacyRule[] rules)
=> CallAsync<Account_PrivacyRules>(writer =>
{
writer.Write(0xC9F81CE8);
writer.WriteTLObject(key);
writer.WriteTLVector(rules);
return "Account_SetPrivacy";
});
//account.deleteAccount#418d4e0b reason:string = Bool
public Task<bool> Account_DeleteAccount(string reason)
=> CallAsync<bool>(writer =>
{
writer.Write(0x418D4E0B);
writer.WriteTLString(reason);
return "Account_DeleteAccount";
});
//account.getAccountTTL#08fc711d = AccountDaysTTL
public Task<AccountDaysTTL> Account_GetAccountTTL()
=> CallAsync<AccountDaysTTL>(writer =>
{
writer.Write(0x08FC711D);
return "Account_GetAccountTTL";
});
//account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool
public Task<bool> Account_SetAccountTTL(AccountDaysTTL ttl)
=> CallAsync<bool>(writer =>
{
writer.Write(0x2442485E);
writer.WriteTLObject(ttl);
return "Account_SetAccountTTL";
});
//invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X
public Task<X> InvokeWithLayer<X>(int layer, ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0xDA9B0D0D);
writer.Write(layer);
query(writer);
return "InvokeWithLayer<X>";
});
//contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer
public Task<Contacts_ResolvedPeer> Contacts_ResolveUsername(string username)
=> CallAsync<Contacts_ResolvedPeer>(writer =>
{
writer.Write(0xF93CCBA3);
writer.WriteTLString(username);
return "Contacts_ResolveUsername";
});
//account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode
public Task<Auth_SentCode> Account_SendChangePhoneCode(string phone_number, CodeSettings settings)
=> CallAsync<Auth_SentCode>(writer =>
{
writer.Write(0x82574AE5);
writer.WriteTLString(phone_number);
writer.WriteTLObject(settings);
return "Account_SendChangePhoneCode";
});
//account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User
public Task<UserBase> Account_ChangePhone(string phone_number, string phone_code_hash, string phone_code)
=> CallAsync<UserBase>(writer =>
{
writer.Write(0x70C32EDB);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
writer.WriteTLString(phone_code);
return "Account_ChangePhone";
});
//messages.getStickers#043d4f2c emoticon:string hash:int = messages.Stickers
public Task<Messages_StickersBase> Messages_GetStickers(string emoticon, int hash)
=> CallAsync<Messages_StickersBase>(writer =>
{
writer.Write(0x043D4F2C);
writer.WriteTLString(emoticon);
writer.Write(hash);
return "Messages_GetStickers";
});
//messages.getAllStickers#1c9618b1 hash:int = messages.AllStickers
public Task<Messages_AllStickersBase> Messages_GetAllStickers(int hash)
=> CallAsync<Messages_AllStickersBase>(writer =>
{
writer.Write(0x1C9618B1);
writer.Write(hash);
return "Messages_GetAllStickers";
});
//account.updateDeviceLocked#38df3532 period:int = Bool
public Task<bool> Account_UpdateDeviceLocked(int period)
=> CallAsync<bool>(writer =>
{
writer.Write(0x38DF3532);
writer.Write(period);
return "Account_UpdateDeviceLocked";
});
//auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_ImportBotAuthorization(int flags, int api_id, string api_hash, string bot_auth_token)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0x67A3FF2C);
writer.Write(flags);
writer.Write(api_id);
writer.WriteTLString(api_hash);
writer.WriteTLString(bot_auth_token);
return "Auth_ImportBotAuthorization";
});
//messages.getWebPagePreview#8b68b0cc flags:# message:string entities:flags.3?Vector<MessageEntity> = MessageMedia
public Task<MessageMedia> Messages_GetWebPagePreview(string message, MessageEntity[] entities = null)
=> CallAsync<MessageMedia>(writer =>
{
writer.Write(0x8B68B0CC);
writer.Write(entities != null ? 0x8 : 0);
writer.WriteTLString(message);
if (entities != null)
writer.WriteTLVector(entities);
return "Messages_GetWebPagePreview";
});
//account.getAuthorizations#e320c158 = account.Authorizations
public Task<Account_Authorizations> Account_GetAuthorizations()
=> CallAsync<Account_Authorizations>(writer =>
{
writer.Write(0xE320C158);
return "Account_GetAuthorizations";
});
//account.resetAuthorization#df77f3bc hash:long = Bool
public Task<bool> Account_ResetAuthorization(long hash)
=> CallAsync<bool>(writer =>
{
writer.Write(0xDF77F3BC);
writer.Write(hash);
return "Account_ResetAuthorization";
});
//account.getPassword#548a30f5 = account.Password
public Task<Account_Password> Account_GetPassword()
=> CallAsync<Account_Password>(writer =>
{
writer.Write(0x548A30F5);
return "Account_GetPassword";
});
//account.getPasswordSettings#9cd4eaf9 password:InputCheckPasswordSRP = account.PasswordSettings
public Task<Account_PasswordSettings> Account_GetPasswordSettings(InputCheckPasswordSRPBase password)
=> CallAsync<Account_PasswordSettings>(writer =>
{
writer.Write(0x9CD4EAF9);
writer.WriteTLObject(password);
return "Account_GetPasswordSettings";
});
//account.updatePasswordSettings#a59b102f password:InputCheckPasswordSRP new_settings:account.PasswordInputSettings = Bool
public Task<bool> Account_UpdatePasswordSettings(InputCheckPasswordSRPBase password, Account_PasswordInputSettings new_settings)
=> CallAsync<bool>(writer =>
{
writer.Write(0xA59B102F);
writer.WriteTLObject(password);
writer.WriteTLObject(new_settings);
return "Account_UpdatePasswordSettings";
});
//auth.checkPassword#d18b4d16 password:InputCheckPasswordSRP = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_CheckPassword(InputCheckPasswordSRPBase password)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0xD18B4D16);
writer.WriteTLObject(password);
return "Auth_CheckPassword";
});
//auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery
public Task<Auth_PasswordRecovery> Auth_RequestPasswordRecovery()
=> CallAsync<Auth_PasswordRecovery>(writer =>
{
writer.Write(0xD897BC66);
return "Auth_RequestPasswordRecovery";
});
//auth.recoverPassword#4ea56e92 code:string = auth.Authorization
public Task<Auth_AuthorizationBase> Auth_RecoverPassword(string code)
=> CallAsync<Auth_AuthorizationBase>(writer =>
{
writer.Write(0x4EA56E92);
writer.WriteTLString(code);
return "Auth_RecoverPassword";
});
//invokeWithoutUpdates#bf9459b7 {X:Type} query:!X = X
public Task<X> InvokeWithoutUpdates<X>(ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0xBF9459B7);
query(writer);
return "InvokeWithoutUpdates<X>";
});
//messages.exportChatInvite#0df7534c peer:InputPeer = ExportedChatInvite
public Task<ExportedChatInvite> Messages_ExportChatInvite(InputPeer peer)
=> CallAsync<ExportedChatInvite>(writer =>
{
writer.Write(0x0DF7534C);
writer.WriteTLObject(peer);
return "Messages_ExportChatInvite";
});
//messages.checkChatInvite#3eadb1bb hash:string = ChatInvite
public Task<ChatInviteBase> Messages_CheckChatInvite(string hash)
=> CallAsync<ChatInviteBase>(writer =>
{
writer.Write(0x3EADB1BB);
writer.WriteTLString(hash);
return "Messages_CheckChatInvite";
});
//messages.importChatInvite#6c50051c hash:string = Updates
public Task<UpdatesBase> Messages_ImportChatInvite(string hash)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x6C50051C);
writer.WriteTLString(hash);
return "Messages_ImportChatInvite";
});
//messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet
public Task<Messages_StickerSet> Messages_GetStickerSet(InputStickerSet stickerset)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0x2619A90E);
writer.WriteTLObject(stickerset);
return "Messages_GetStickerSet";
});
//messages.installStickerSet#c78fe460 stickerset:InputStickerSet archived:Bool = messages.StickerSetInstallResult
public Task<Messages_StickerSetInstallResult> Messages_InstallStickerSet(InputStickerSet stickerset, bool archived)
=> CallAsync<Messages_StickerSetInstallResult>(writer =>
{
writer.Write(0xC78FE460);
writer.WriteTLObject(stickerset);
writer.Write(archived ? 0x997275B5 : 0xBC799737);
return "Messages_InstallStickerSet";
});
//messages.uninstallStickerSet#f96e55de stickerset:InputStickerSet = Bool
public Task<bool> Messages_UninstallStickerSet(InputStickerSet stickerset)
=> CallAsync<bool>(writer =>
{
writer.Write(0xF96E55DE);
writer.WriteTLObject(stickerset);
return "Messages_UninstallStickerSet";
});
//messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates
public Task<UpdatesBase> Messages_StartBot(InputUserBase bot, InputPeer peer, long random_id, string start_param)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xE6DF7378);
writer.WriteTLObject(bot);
writer.WriteTLObject(peer);
writer.Write(random_id);
writer.WriteTLString(start_param);
return "Messages_StartBot";
});
//help.getAppChangelog#9010ef6f prev_app_version:string = Updates
public Task<UpdatesBase> Help_GetAppChangelog(string prev_app_version)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x9010EF6F);
writer.WriteTLString(prev_app_version);
return "Help_GetAppChangelog";
});
//messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector<int> increment:Bool = messages.MessageViews
public Task<Messages_MessageViews> Messages_GetMessagesViews(InputPeer peer, int[] id, bool increment)
=> CallAsync<Messages_MessageViews>(writer =>
{
writer.Write(0x5784D3E1);
writer.WriteTLObject(peer);
writer.WriteTLVector(id);
writer.Write(increment ? 0x997275B5 : 0xBC799737);
return "Messages_GetMessagesViews";
});
//channels.readHistory#cc104937 channel:InputChannel max_id:int = Bool
public Task<bool> Channels_ReadHistory(InputChannelBase channel, int max_id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xCC104937);
writer.WriteTLObject(channel);
writer.Write(max_id);
return "Channels_ReadHistory";
});
//channels.deleteMessages#84c1fd4e channel:InputChannel id:Vector<int> = messages.AffectedMessages
public Task<Messages_AffectedMessages> Channels_DeleteMessages(InputChannelBase channel, int[] id)
=> CallAsync<Messages_AffectedMessages>(writer =>
{
writer.Write(0x84C1FD4E);
writer.WriteTLObject(channel);
writer.WriteTLVector(id);
return "Channels_DeleteMessages";
});
//channels.deleteUserHistory#d10dd71b channel:InputChannel user_id:InputUser = messages.AffectedHistory
public Task<Messages_AffectedHistory> Channels_DeleteUserHistory(InputChannelBase channel, InputUserBase user_id)
=> CallAsync<Messages_AffectedHistory>(writer =>
{
writer.Write(0xD10DD71B);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
return "Channels_DeleteUserHistory";
});
//channels.reportSpam#fe087810 channel:InputChannel user_id:InputUser id:Vector<int> = Bool
public Task<bool> Channels_ReportSpam(InputChannelBase channel, InputUserBase user_id, int[] id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xFE087810);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
writer.WriteTLVector(id);
return "Channels_ReportSpam";
});
//channels.getMessages#ad8c9a23 channel:InputChannel id:Vector<InputMessage> = messages.Messages
public Task<Messages_MessagesBase> Channels_GetMessages(InputChannelBase channel, InputMessage[] id)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0xAD8C9A23);
writer.WriteTLObject(channel);
writer.WriteTLVector(id);
return "Channels_GetMessages";
});
//channels.getParticipants#123e05e9 channel:InputChannel filter:ChannelParticipantsFilter offset:int limit:int hash:int = channels.ChannelParticipants
public Task<Channels_ChannelParticipantsBase> Channels_GetParticipants(InputChannelBase channel, ChannelParticipantsFilter filter, int offset, int limit, int hash)
=> CallAsync<Channels_ChannelParticipantsBase>(writer =>
{
writer.Write(0x123E05E9);
writer.WriteTLObject(channel);
writer.WriteTLObject(filter);
writer.Write(offset);
writer.Write(limit);
writer.Write(hash);
return "Channels_GetParticipants";
});
//channels.getParticipant#546dd7a6 channel:InputChannel user_id:InputUser = channels.ChannelParticipant
public Task<Channels_ChannelParticipant> Channels_GetParticipant(InputChannelBase channel, InputUserBase user_id)
=> CallAsync<Channels_ChannelParticipant>(writer =>
{
writer.Write(0x546DD7A6);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
return "Channels_GetParticipant";
});
//channels.getChannels#0a7f6bbb id:Vector<InputChannel> = messages.Chats
public Task<Messages_ChatsBase> Channels_GetChannels(InputChannelBase[] id)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0x0A7F6BBB);
writer.WriteTLVector(id);
return "Channels_GetChannels";
});
//channels.getFullChannel#08736a09 channel:InputChannel = messages.ChatFull
public Task<Messages_ChatFull> Channels_GetFullChannel(InputChannelBase channel)
=> CallAsync<Messages_ChatFull>(writer =>
{
writer.Write(0x08736A09);
writer.WriteTLObject(channel);
return "Channels_GetFullChannel";
});
//channels.createChannel#3d5fb10f flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string = Updates
public Task<UpdatesBase> Channels_CreateChannel(string title, string about, bool broadcast = false, bool megagroup = false, bool for_import = false, InputGeoPointBase geo_point = null, string address = null)
=> CallAsync<UpdatesBase>(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";
});
//channels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates
public Task<UpdatesBase> Channels_EditAdmin(InputChannelBase channel, InputUserBase user_id, ChatAdminRights admin_rights, string rank)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xD33C8902);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
writer.WriteTLObject(admin_rights);
writer.WriteTLString(rank);
return "Channels_EditAdmin";
});
//channels.editTitle#566decd0 channel:InputChannel title:string = Updates
public Task<UpdatesBase> Channels_EditTitle(InputChannelBase channel, string title)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x566DECD0);
writer.WriteTLObject(channel);
writer.WriteTLString(title);
return "Channels_EditTitle";
});
//channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates
public Task<UpdatesBase> Channels_EditPhoto(InputChannelBase channel, InputChatPhotoBase photo)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xF12E57C9);
writer.WriteTLObject(channel);
writer.WriteTLObject(photo);
return "Channels_EditPhoto";
});
//channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool
public Task<bool> Channels_CheckUsername(InputChannelBase channel, string username)
=> CallAsync<bool>(writer =>
{
writer.Write(0x10E6BD2C);
writer.WriteTLObject(channel);
writer.WriteTLString(username);
return "Channels_CheckUsername";
});
//channels.updateUsername#3514b3de channel:InputChannel username:string = Bool
public Task<bool> Channels_UpdateUsername(InputChannelBase channel, string username)
=> CallAsync<bool>(writer =>
{
writer.Write(0x3514B3DE);
writer.WriteTLObject(channel);
writer.WriteTLString(username);
return "Channels_UpdateUsername";
});
//channels.joinChannel#24b524c5 channel:InputChannel = Updates
public Task<UpdatesBase> Channels_JoinChannel(InputChannelBase channel)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x24B524C5);
writer.WriteTLObject(channel);
return "Channels_JoinChannel";
});
//channels.leaveChannel#f836aa95 channel:InputChannel = Updates
public Task<UpdatesBase> Channels_LeaveChannel(InputChannelBase channel)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xF836AA95);
writer.WriteTLObject(channel);
return "Channels_LeaveChannel";
});
//channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector<InputUser> = Updates
public Task<UpdatesBase> Channels_InviteToChannel(InputChannelBase channel, InputUserBase[] users)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x199F3A6C);
writer.WriteTLObject(channel);
writer.WriteTLVector(users);
return "Channels_InviteToChannel";
});
//channels.deleteChannel#c0111fe3 channel:InputChannel = Updates
public Task<UpdatesBase> Channels_DeleteChannel(InputChannelBase channel)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xC0111FE3);
writer.WriteTLObject(channel);
return "Channels_DeleteChannel";
});
//updates.getChannelDifference#03173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference
public Task<Updates_ChannelDifferenceBase> Updates_GetChannelDifference(InputChannelBase channel, ChannelMessagesFilterBase filter, int pts, int limit, bool force = false)
=> CallAsync<Updates_ChannelDifferenceBase>(writer =>
{
writer.Write(0x03173D78);
writer.Write(force ? 0x1 : 0);
writer.WriteTLObject(channel);
writer.WriteTLObject(filter);
writer.Write(pts);
writer.Write(limit);
return "Updates_GetChannelDifference";
});
//messages.editChatAdmin#a9e69f2e chat_id:int user_id:InputUser is_admin:Bool = Bool
public Task<bool> Messages_EditChatAdmin(int chat_id, InputUserBase user_id, bool is_admin)
=> CallAsync<bool>(writer =>
{
writer.Write(0xA9E69F2E);
writer.Write(chat_id);
writer.WriteTLObject(user_id);
writer.Write(is_admin ? 0x997275B5 : 0xBC799737);
return "Messages_EditChatAdmin";
});
//messages.migrateChat#15a3b8e3 chat_id:int = Updates
public Task<UpdatesBase> Messages_MigrateChat(int chat_id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x15A3B8E3);
writer.Write(chat_id);
return "Messages_MigrateChat";
});
//messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages
public Task<Messages_MessagesBase> Messages_SearchGlobal(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)
=> CallAsync<Messages_MessagesBase>(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";
});
//messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector<long> = Bool
public Task<bool> Messages_ReorderStickerSets(long[] order, bool masks = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x78337739);
writer.Write(masks ? 0x1 : 0);
writer.WriteTLVector(order);
return "Messages_ReorderStickerSets";
});
//messages.getDocumentByHash#338e2464 sha256:bytes size:int mime_type:string = Document
public Task<DocumentBase> Messages_GetDocumentByHash(byte[] sha256, int size, string mime_type)
=> CallAsync<DocumentBase>(writer =>
{
writer.Write(0x338E2464);
writer.WriteTLBytes(sha256);
writer.Write(size);
writer.WriteTLString(mime_type);
return "Messages_GetDocumentByHash";
});
//messages.getSavedGifs#83bf3d52 hash:int = messages.SavedGifs
public Task<Messages_SavedGifsBase> Messages_GetSavedGifs(int hash)
=> CallAsync<Messages_SavedGifsBase>(writer =>
{
writer.Write(0x83BF3D52);
writer.Write(hash);
return "Messages_GetSavedGifs";
});
//messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool
public Task<bool> Messages_SaveGif(InputDocumentBase id, bool unsave)
=> CallAsync<bool>(writer =>
{
writer.Write(0x327A30CB);
writer.WriteTLObject(id);
writer.Write(unsave ? 0x997275B5 : 0xBC799737);
return "Messages_SaveGif";
});
//messages.getInlineBotResults#514e999d flags:# bot:InputUser peer:InputPeer geo_point:flags.0?InputGeoPoint query:string offset:string = messages.BotResults
public Task<Messages_BotResults> Messages_GetInlineBotResults(InputUserBase bot, InputPeer peer, string query, string offset, InputGeoPointBase geo_point = null)
=> CallAsync<Messages_BotResults>(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";
});
//messages.setInlineBotResults#eb5ea206 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM = Bool
public Task<bool> Messages_SetInlineBotResults(long query_id, InputBotInlineResultBase[] results, DateTime cache_time, bool gallery = false, bool private_ = false, string next_offset = null, InlineBotSwitchPM switch_pm = null)
=> CallAsync<bool>(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";
});
//messages.sendInlineBotResult#220815b0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string schedule_date:flags.10?int = Updates
public Task<UpdatesBase> Messages_SendInlineBotResult(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)
=> CallAsync<UpdatesBase>(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";
});
//channels.exportMessageLink#e63fadeb flags:# grouped:flags.0?true thread:flags.1?true channel:InputChannel id:int = ExportedMessageLink
public Task<ExportedMessageLink> Channels_ExportMessageLink(InputChannelBase channel, int id, bool grouped = false, bool thread = false)
=> CallAsync<ExportedMessageLink>(writer =>
{
writer.Write(0xE63FADEB);
writer.Write((grouped ? 0x1 : 0) | (thread ? 0x2 : 0));
writer.WriteTLObject(channel);
writer.Write(id);
return "Channels_ExportMessageLink";
});
//channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates
public Task<UpdatesBase> Channels_ToggleSignatures(InputChannelBase channel, bool enabled)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x1F69B606);
writer.WriteTLObject(channel);
writer.Write(enabled ? 0x997275B5 : 0xBC799737);
return "Channels_ToggleSignatures";
});
//auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode
public Task<Auth_SentCode> Auth_ResendCode(string phone_number, string phone_code_hash)
=> CallAsync<Auth_SentCode>(writer =>
{
writer.Write(0x3EF1A9BF);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
return "Auth_ResendCode";
});
//auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool
public Task<bool> Auth_CancelCode(string phone_number, string phone_code_hash)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1F040578);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
return "Auth_CancelCode";
});
//messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData
public Task<Messages_MessageEditData> Messages_GetMessageEditData(InputPeer peer, int id)
=> CallAsync<Messages_MessageEditData>(writer =>
{
writer.Write(0xFDA68D36);
writer.WriteTLObject(peer);
writer.Write(id);
return "Messages_GetMessageEditData";
});
//messages.editMessage#48f71778 flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int = Updates
public Task<UpdatesBase> Messages_EditMessage(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)
=> CallAsync<UpdatesBase>(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";
});
//messages.editInlineBotMessage#83557dba flags:# no_webpage:flags.1?true id:InputBotInlineMessageID message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> = Bool
public Task<bool> Messages_EditInlineBotMessage(InputBotInlineMessageID id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null)
=> CallAsync<bool>(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";
});
//messages.getBotCallbackAnswer#9342ca07 flags:# game:flags.1?true peer:InputPeer msg_id:int data:flags.0?bytes password:flags.2?InputCheckPasswordSRP = messages.BotCallbackAnswer
public Task<Messages_BotCallbackAnswer> Messages_GetBotCallbackAnswer(InputPeer peer, int msg_id, bool game = false, byte[] data = null, InputCheckPasswordSRPBase password = null)
=> CallAsync<Messages_BotCallbackAnswer>(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";
});
//messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool
public Task<bool> Messages_SetBotCallbackAnswer(long query_id, DateTime cache_time, bool alert = false, string message = null, string url = null)
=> CallAsync<bool>(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";
});
//contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers
public Task<Contacts_TopPeersBase> Contacts_GetTopPeers(int offset, int limit, int 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)
=> CallAsync<Contacts_TopPeersBase>(writer =>
{
writer.Write(0xD4982DB5);
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";
});
//contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool
public Task<bool> Contacts_ResetTopPeerRating(TopPeerCategory category, InputPeer peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1AE373AC);
writer.WriteTLObject(category);
writer.WriteTLObject(peer);
return "Contacts_ResetTopPeerRating";
});
//messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs
public Task<Messages_PeerDialogs> Messages_GetPeerDialogs(InputDialogPeerBase[] peers)
=> CallAsync<Messages_PeerDialogs>(writer =>
{
writer.Write(0xE470BCFD);
writer.WriteTLVector(peers);
return "Messages_GetPeerDialogs";
});
//messages.saveDraft#bc39e14b flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int peer:InputPeer message:string entities:flags.3?Vector<MessageEntity> = Bool
public Task<bool> Messages_SaveDraft(InputPeer peer, string message, bool no_webpage = false, int? reply_to_msg_id = null, MessageEntity[] entities = null)
=> CallAsync<bool>(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";
});
//messages.getAllDrafts#6a3f8d65 = Updates
public Task<UpdatesBase> Messages_GetAllDrafts()
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x6A3F8D65);
return "Messages_GetAllDrafts";
});
//messages.getFeaturedStickers#2dacca4f hash:int = messages.FeaturedStickers
public Task<Messages_FeaturedStickersBase> Messages_GetFeaturedStickers(int hash)
=> CallAsync<Messages_FeaturedStickersBase>(writer =>
{
writer.Write(0x2DACCA4F);
writer.Write(hash);
return "Messages_GetFeaturedStickers";
});
//messages.readFeaturedStickers#5b118126 id:Vector<long> = Bool
public Task<bool> Messages_ReadFeaturedStickers(long[] id)
=> CallAsync<bool>(writer =>
{
writer.Write(0x5B118126);
writer.WriteTLVector(id);
return "Messages_ReadFeaturedStickers";
});
//messages.getRecentStickers#5ea192c9 flags:# attached:flags.0?true hash:int = messages.RecentStickers
public Task<Messages_RecentStickersBase> Messages_GetRecentStickers(int hash, bool attached = false)
=> CallAsync<Messages_RecentStickersBase>(writer =>
{
writer.Write(0x5EA192C9);
writer.Write(attached ? 0x1 : 0);
writer.Write(hash);
return "Messages_GetRecentStickers";
});
//messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool
public Task<bool> Messages_SaveRecentSticker(InputDocumentBase id, bool unsave, bool attached = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x392718F8);
writer.Write(attached ? 0x1 : 0);
writer.WriteTLObject(id);
writer.Write(unsave ? 0x997275B5 : 0xBC799737);
return "Messages_SaveRecentSticker";
});
//messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool
public Task<bool> Messages_ClearRecentStickers(bool attached = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x8999602D);
writer.Write(attached ? 0x1 : 0);
return "Messages_ClearRecentStickers";
});
//messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers
public Task<Messages_ArchivedStickers> Messages_GetArchivedStickers(long offset_id, int limit, bool masks = false)
=> CallAsync<Messages_ArchivedStickers>(writer =>
{
writer.Write(0x57F17692);
writer.Write(masks ? 0x1 : 0);
writer.Write(offset_id);
writer.Write(limit);
return "Messages_GetArchivedStickers";
});
//account.sendConfirmPhoneCode#1b3faa88 hash:string settings:CodeSettings = auth.SentCode
public Task<Auth_SentCode> Account_SendConfirmPhoneCode(string hash, CodeSettings settings)
=> CallAsync<Auth_SentCode>(writer =>
{
writer.Write(0x1B3FAA88);
writer.WriteTLString(hash);
writer.WriteTLObject(settings);
return "Account_SendConfirmPhoneCode";
});
//account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool
public Task<bool> Account_ConfirmPhone(string phone_code_hash, string phone_code)
=> CallAsync<bool>(writer =>
{
writer.Write(0x5F2178C3);
writer.WriteTLString(phone_code_hash);
writer.WriteTLString(phone_code);
return "Account_ConfirmPhone";
});
//channels.getAdminedPublicChannels#f8b036af flags:# by_location:flags.0?true check_limit:flags.1?true = messages.Chats
public Task<Messages_ChatsBase> Channels_GetAdminedPublicChannels(bool by_location = false, bool check_limit = false)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0xF8B036AF);
writer.Write((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0));
return "Channels_GetAdminedPublicChannels";
});
//messages.getMaskStickers#65b8c79f hash:int = messages.AllStickers
public Task<Messages_AllStickersBase> Messages_GetMaskStickers(int hash)
=> CallAsync<Messages_AllStickersBase>(writer =>
{
writer.Write(0x65B8C79F);
writer.Write(hash);
return "Messages_GetMaskStickers";
});
//messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector<StickerSetCovered>
public Task<StickerSetCoveredBase[]> Messages_GetAttachedStickers(InputStickeredMedia media)
=> CallAsync<StickerSetCoveredBase[]>(writer =>
{
writer.Write(0xCC5B67CC);
writer.WriteTLObject(media);
return "Messages_GetAttachedStickers";
});
//auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool
public Task<bool> Auth_DropTempAuthKeys(long[] except_auth_keys)
=> CallAsync<bool>(writer =>
{
writer.Write(0x8E48A188);
writer.WriteTLVector(except_auth_keys);
return "Auth_DropTempAuthKeys";
});
//messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates
public Task<UpdatesBase> Messages_SetGameScore(InputPeer peer, int id, InputUserBase user_id, int score, bool edit_message = false, bool force = false)
=> CallAsync<UpdatesBase>(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";
});
//messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:flags.1?true id:InputBotInlineMessageID user_id:InputUser score:int = Bool
public Task<bool> Messages_SetInlineGameScore(InputBotInlineMessageID id, InputUserBase user_id, int score, bool edit_message = false, bool force = false)
=> CallAsync<bool>(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";
});
//messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores
public Task<Messages_HighScores> Messages_GetGameHighScores(InputPeer peer, int id, InputUserBase user_id)
=> CallAsync<Messages_HighScores>(writer =>
{
writer.Write(0xE822649D);
writer.WriteTLObject(peer);
writer.Write(id);
writer.WriteTLObject(user_id);
return "Messages_GetGameHighScores";
});
//messages.getInlineGameHighScores#0f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores
public Task<Messages_HighScores> Messages_GetInlineGameHighScores(InputBotInlineMessageID id, InputUserBase user_id)
=> CallAsync<Messages_HighScores>(writer =>
{
writer.Write(0x0F635E1B);
writer.WriteTLObject(id);
writer.WriteTLObject(user_id);
return "Messages_GetInlineGameHighScores";
});
//messages.getCommonChats#0d0a48c4 user_id:InputUser max_id:int limit:int = messages.Chats
public Task<Messages_ChatsBase> Messages_GetCommonChats(InputUserBase user_id, int max_id, int limit)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0x0D0A48C4);
writer.WriteTLObject(user_id);
writer.Write(max_id);
writer.Write(limit);
return "Messages_GetCommonChats";
});
//messages.getAllChats#eba80ff0 except_ids:Vector<int> = messages.Chats
public Task<Messages_ChatsBase> Messages_GetAllChats(int[] except_ids)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0xEBA80FF0);
writer.WriteTLVector(except_ids);
return "Messages_GetAllChats";
});
//help.setBotUpdatesStatus#ec22cfcd pending_updates_count:int message:string = Bool
public Task<bool> Help_SetBotUpdatesStatus(int pending_updates_count, string message)
=> CallAsync<bool>(writer =>
{
writer.Write(0xEC22CFCD);
writer.Write(pending_updates_count);
writer.WriteTLString(message);
return "Help_SetBotUpdatesStatus";
});
//messages.getWebPage#32ca8f91 url:string hash:int = WebPage
public Task<WebPageBase> Messages_GetWebPage(string url, int hash)
=> CallAsync<WebPageBase>(writer =>
{
writer.Write(0x32CA8F91);
writer.WriteTLString(url);
writer.Write(hash);
return "Messages_GetWebPage";
});
//messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool
public Task<bool> Messages_ToggleDialogPin(InputDialogPeerBase peer, bool pinned = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0xA731E257);
writer.Write(pinned ? 0x1 : 0);
writer.WriteTLObject(peer);
return "Messages_ToggleDialogPin";
});
//messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool
public Task<bool> Messages_ReorderPinnedDialogs(int folder_id, InputDialogPeerBase[] order, bool force = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x3B1ADF37);
writer.Write(force ? 0x1 : 0);
writer.Write(folder_id);
writer.WriteTLVector(order);
return "Messages_ReorderPinnedDialogs";
});
//messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs
public Task<Messages_PeerDialogs> Messages_GetPinnedDialogs(int folder_id)
=> CallAsync<Messages_PeerDialogs>(writer =>
{
writer.Write(0xD6B94DF2);
writer.Write(folder_id);
return "Messages_GetPinnedDialogs";
});
//bots.sendCustomRequest#aa2769ed custom_method:string params:DataJSON = DataJSON
public Task<DataJSON> Bots_SendCustomRequest(string custom_method, DataJSON params_)
=> CallAsync<DataJSON>(writer =>
{
writer.Write(0xAA2769ED);
writer.WriteTLString(custom_method);
writer.WriteTLObject(params_);
return "Bots_SendCustomRequest";
});
//bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool
public Task<bool> Bots_AnswerWebhookJSONQuery(long query_id, DataJSON data)
=> CallAsync<bool>(writer =>
{
writer.Write(0xE6213F4D);
writer.Write(query_id);
writer.WriteTLObject(data);
return "Bots_AnswerWebhookJSONQuery";
});
//upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile
public Task<Upload_WebFile> Upload_GetWebFile(InputWebFileLocationBase location, int offset, int limit)
=> CallAsync<Upload_WebFile>(writer =>
{
writer.Write(0x24E6818D);
writer.WriteTLObject(location);
writer.Write(offset);
writer.Write(limit);
return "Upload_GetWebFile";
});
//payments.getPaymentForm#99f09745 msg_id:int = payments.PaymentForm
public Task<Payments_PaymentForm> Payments_GetPaymentForm(int msg_id)
=> CallAsync<Payments_PaymentForm>(writer =>
{
writer.Write(0x99F09745);
writer.Write(msg_id);
return "Payments_GetPaymentForm";
});
//payments.getPaymentReceipt#a092a980 msg_id:int = payments.PaymentReceipt
public Task<Payments_PaymentReceipt> Payments_GetPaymentReceipt(int msg_id)
=> CallAsync<Payments_PaymentReceipt>(writer =>
{
writer.Write(0xA092A980);
writer.Write(msg_id);
return "Payments_GetPaymentReceipt";
});
//payments.validateRequestedInfo#770a8e74 flags:# save:flags.0?true msg_id:int info:PaymentRequestedInfo = payments.ValidatedRequestedInfo
public Task<Payments_ValidatedRequestedInfo> Payments_ValidateRequestedInfo(int msg_id, PaymentRequestedInfo info, bool save = false)
=> CallAsync<Payments_ValidatedRequestedInfo>(writer =>
{
writer.Write(0x770A8E74);
writer.Write(save ? 0x1 : 0);
writer.Write(msg_id);
writer.WriteTLObject(info);
return "Payments_ValidateRequestedInfo";
});
//payments.sendPaymentForm#2b8879b3 flags:# msg_id:int requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials = payments.PaymentResult
public Task<Payments_PaymentResultBase> Payments_SendPaymentForm(int msg_id, InputPaymentCredentialsBase credentials, string requested_info_id = null, string shipping_option_id = null)
=> CallAsync<Payments_PaymentResultBase>(writer =>
{
writer.Write(0x2B8879B3);
writer.Write((requested_info_id != null ? 0x1 : 0) | (shipping_option_id != null ? 0x2 : 0));
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);
return "Payments_SendPaymentForm";
});
//account.getTmpPassword#449e0b51 password:InputCheckPasswordSRP period:int = account.TmpPassword
public Task<Account_TmpPassword> Account_GetTmpPassword(InputCheckPasswordSRPBase password, int period)
=> CallAsync<Account_TmpPassword>(writer =>
{
writer.Write(0x449E0B51);
writer.WriteTLObject(password);
writer.Write(period);
return "Account_GetTmpPassword";
});
//payments.getSavedInfo#227d824b = payments.SavedInfo
public Task<Payments_SavedInfo> Payments_GetSavedInfo()
=> CallAsync<Payments_SavedInfo>(writer =>
{
writer.Write(0x227D824B);
return "Payments_GetSavedInfo";
});
//payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool
public Task<bool> Payments_ClearSavedInfo(bool credentials = false, bool info = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0xD83D70C1);
writer.Write((credentials ? 0x1 : 0) | (info ? 0x2 : 0));
return "Payments_ClearSavedInfo";
});
//messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool
public Task<bool> Messages_SetBotShippingResults(long query_id, string error = null, ShippingOption[] shipping_options = null)
=> CallAsync<bool>(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";
});
//messages.setBotPrecheckoutResults#09c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool
public Task<bool> Messages_SetBotPrecheckoutResults(long query_id, bool success = false, string error = null)
=> CallAsync<bool>(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";
});
//stickers.createStickerSet#f1036780 flags:# masks:flags.0?true animated:flags.1?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> = messages.StickerSet
public Task<Messages_StickerSet> Stickers_CreateStickerSet(InputUserBase user_id, string title, string short_name, InputStickerSetItem[] stickers, bool masks = false, bool animated = false, InputDocumentBase thumb = null)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0xF1036780);
writer.Write((masks ? 0x1 : 0) | (animated ? 0x2 : 0) | (thumb != null ? 0x4 : 0));
writer.WriteTLObject(user_id);
writer.WriteTLString(title);
writer.WriteTLString(short_name);
if (thumb != null)
writer.WriteTLObject(thumb);
writer.WriteTLVector(stickers);
return "Stickers_CreateStickerSet";
});
//stickers.removeStickerFromSet#f7760f51 sticker:InputDocument = messages.StickerSet
public Task<Messages_StickerSet> Stickers_RemoveStickerFromSet(InputDocumentBase sticker)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0xF7760F51);
writer.WriteTLObject(sticker);
return "Stickers_RemoveStickerFromSet";
});
//stickers.changeStickerPosition#ffb6d4ca sticker:InputDocument position:int = messages.StickerSet
public Task<Messages_StickerSet> Stickers_ChangeStickerPosition(InputDocumentBase sticker, int position)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0xFFB6D4CA);
writer.WriteTLObject(sticker);
writer.Write(position);
return "Stickers_ChangeStickerPosition";
});
//stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet
public Task<Messages_StickerSet> Stickers_AddStickerToSet(InputStickerSet stickerset, InputStickerSetItem sticker)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0x8653FEBE);
writer.WriteTLObject(stickerset);
writer.WriteTLObject(sticker);
return "Stickers_AddStickerToSet";
});
//messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia
public Task<MessageMedia> Messages_UploadMedia(InputPeer peer, InputMedia media)
=> CallAsync<MessageMedia>(writer =>
{
writer.Write(0x519BC2B1);
writer.WriteTLObject(peer);
writer.WriteTLObject(media);
return "Messages_UploadMedia";
});
//phone.getCallConfig#55451fa9 = DataJSON
public Task<DataJSON> Phone_GetCallConfig()
=> CallAsync<DataJSON>(writer =>
{
writer.Write(0x55451FA9);
return "Phone_GetCallConfig";
});
//phone.requestCall#42ff96ed flags:# video:flags.0?true user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall
public Task<Phone_PhoneCall> Phone_RequestCall(InputUserBase user_id, int random_id, byte[] g_a_hash, PhoneCallProtocol protocol, bool video = false)
=> CallAsync<Phone_PhoneCall>(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";
});
//phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall
public Task<Phone_PhoneCall> Phone_AcceptCall(InputPhoneCall peer, byte[] g_b, PhoneCallProtocol protocol)
=> CallAsync<Phone_PhoneCall>(writer =>
{
writer.Write(0x3BD2B4A0);
writer.WriteTLObject(peer);
writer.WriteTLBytes(g_b);
writer.WriteTLObject(protocol);
return "Phone_AcceptCall";
});
//phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall
public Task<Phone_PhoneCall> Phone_ConfirmCall(InputPhoneCall peer, byte[] g_a, long key_fingerprint, PhoneCallProtocol protocol)
=> CallAsync<Phone_PhoneCall>(writer =>
{
writer.Write(0x2EFE1722);
writer.WriteTLObject(peer);
writer.WriteTLBytes(g_a);
writer.Write(key_fingerprint);
writer.WriteTLObject(protocol);
return "Phone_ConfirmCall";
});
//phone.receivedCall#17d54f61 peer:InputPhoneCall = Bool
public Task<bool> Phone_ReceivedCall(InputPhoneCall peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0x17D54F61);
writer.WriteTLObject(peer);
return "Phone_ReceivedCall";
});
//phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates
public Task<UpdatesBase> Phone_DiscardCall(InputPhoneCall peer, int duration, PhoneCallDiscardReason reason, long connection_id, bool video = false)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xB2CBC1C0);
writer.Write(video ? 0x1 : 0);
writer.WriteTLObject(peer);
writer.Write(duration);
writer.WriteTLObject(reason);
writer.Write(connection_id);
return "Phone_DiscardCall";
});
//phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates
public Task<UpdatesBase> Phone_SetCallRating(InputPhoneCall peer, int rating, string comment, bool user_initiative = false)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x59EAD627);
writer.Write(user_initiative ? 0x1 : 0);
writer.WriteTLObject(peer);
writer.Write(rating);
writer.WriteTLString(comment);
return "Phone_SetCallRating";
});
//phone.saveCallDebug#277add7e peer:InputPhoneCall debug:DataJSON = Bool
public Task<bool> Phone_SaveCallDebug(InputPhoneCall peer, DataJSON debug)
=> CallAsync<bool>(writer =>
{
writer.Write(0x277ADD7E);
writer.WriteTLObject(peer);
writer.WriteTLObject(debug);
return "Phone_SaveCallDebug";
});
//upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile
public Task<Upload_CdnFileBase> Upload_GetCdnFile(byte[] file_token, int offset, int limit)
=> CallAsync<Upload_CdnFileBase>(writer =>
{
writer.Write(0x2000BCC3);
writer.WriteTLBytes(file_token);
writer.Write(offset);
writer.Write(limit);
return "Upload_GetCdnFile";
});
//upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>
public Task<FileHash[]> Upload_ReuploadCdnFile(byte[] file_token, byte[] request_token)
=> CallAsync<FileHash[]>(writer =>
{
writer.Write(0x9B2754A8);
writer.WriteTLBytes(file_token);
writer.WriteTLBytes(request_token);
return "Upload_ReuploadCdnFile";
});
//help.getCdnConfig#52029342 = CdnConfig
public Task<CdnConfig> Help_GetCdnConfig()
=> CallAsync<CdnConfig>(writer =>
{
writer.Write(0x52029342);
return "Help_GetCdnConfig";
});
//langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference
public Task<LangPackDifference> Langpack_GetLangPack(string lang_pack, string lang_code)
=> CallAsync<LangPackDifference>(writer =>
{
writer.Write(0xF2F2330A);
writer.WriteTLString(lang_pack);
writer.WriteTLString(lang_code);
return "Langpack_GetLangPack";
});
//langpack.getStrings#efea3803 lang_pack:string lang_code:string keys:Vector<string> = Vector<LangPackString>
public Task<LangPackStringBase[]> Langpack_GetStrings(string lang_pack, string lang_code, string[] keys)
=> CallAsync<LangPackStringBase[]>(writer =>
{
writer.Write(0xEFEA3803);
writer.WriteTLString(lang_pack);
writer.WriteTLString(lang_code);
writer.WriteTLVector(keys);
return "Langpack_GetStrings";
});
//langpack.getDifference#cd984aa5 lang_pack:string lang_code:string from_version:int = LangPackDifference
public Task<LangPackDifference> Langpack_GetDifference(string lang_pack, string lang_code, int from_version)
=> CallAsync<LangPackDifference>(writer =>
{
writer.Write(0xCD984AA5);
writer.WriteTLString(lang_pack);
writer.WriteTLString(lang_code);
writer.Write(from_version);
return "Langpack_GetDifference";
});
//langpack.getLanguages#42c6978f lang_pack:string = Vector<LangPackLanguage>
public Task<LangPackLanguage[]> Langpack_GetLanguages(string lang_pack)
=> CallAsync<LangPackLanguage[]>(writer =>
{
writer.Write(0x42C6978F);
writer.WriteTLString(lang_pack);
return "Langpack_GetLanguages";
});
//channels.editBanned#72796912 channel:InputChannel user_id:InputUser banned_rights:ChatBannedRights = Updates
public Task<UpdatesBase> Channels_EditBanned(InputChannelBase channel, InputUserBase user_id, ChatBannedRights banned_rights)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x72796912);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
writer.WriteTLObject(banned_rights);
return "Channels_EditBanned";
});
//channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector<InputUser> max_id:long min_id:long limit:int = channels.AdminLogResults
public Task<Channels_AdminLogResults> Channels_GetAdminLog(InputChannelBase channel, string q, long max_id, long min_id, int limit, ChannelAdminLogEventsFilter events_filter = null, InputUserBase[] admins = null)
=> CallAsync<Channels_AdminLogResults>(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";
});
//upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>
public Task<FileHash[]> Upload_GetCdnFileHashes(byte[] file_token, int offset)
=> CallAsync<FileHash[]>(writer =>
{
writer.Write(0x4DA54231);
writer.WriteTLBytes(file_token);
writer.Write(offset);
return "Upload_GetCdnFileHashes";
});
//messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates
public Task<UpdatesBase> Messages_SendScreenshotNotification(InputPeer peer, int reply_to_msg_id, long random_id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xC97DF020);
writer.WriteTLObject(peer);
writer.Write(reply_to_msg_id);
writer.Write(random_id);
return "Messages_SendScreenshotNotification";
});
//channels.setStickers#ea8ca4f9 channel:InputChannel stickerset:InputStickerSet = Bool
public Task<bool> Channels_SetStickers(InputChannelBase channel, InputStickerSet stickerset)
=> CallAsync<bool>(writer =>
{
writer.Write(0xEA8CA4F9);
writer.WriteTLObject(channel);
writer.WriteTLObject(stickerset);
return "Channels_SetStickers";
});
//messages.getFavedStickers#21ce0b0e hash:int = messages.FavedStickers
public Task<Messages_FavedStickersBase> Messages_GetFavedStickers(int hash)
=> CallAsync<Messages_FavedStickersBase>(writer =>
{
writer.Write(0x21CE0B0E);
writer.Write(hash);
return "Messages_GetFavedStickers";
});
//messages.faveSticker#b9ffc55b id:InputDocument unfave:Bool = Bool
public Task<bool> Messages_FaveSticker(InputDocumentBase id, bool unfave)
=> CallAsync<bool>(writer =>
{
writer.Write(0xB9FFC55B);
writer.WriteTLObject(id);
writer.Write(unfave ? 0x997275B5 : 0xBC799737);
return "Messages_FaveSticker";
});
//channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector<int> = Bool
public Task<bool> Channels_ReadMessageContents(InputChannelBase channel, int[] id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xEAB5DC38);
writer.WriteTLObject(channel);
writer.WriteTLVector(id);
return "Channels_ReadMessageContents";
});
//contacts.resetSaved#879537f1 = Bool
public Task<bool> Contacts_ResetSaved()
=> CallAsync<bool>(writer =>
{
writer.Write(0x879537F1);
return "Contacts_ResetSaved";
});
//messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages
public Task<Messages_MessagesBase> Messages_GetUnreadMentions(InputPeer peer, int offset_id, int add_offset, int limit, int max_id, int min_id)
=> CallAsync<Messages_MessagesBase>(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";
});
//channels.deleteHistory#af369d42 channel:InputChannel max_id:int = Bool
public Task<bool> Channels_DeleteHistory(InputChannelBase channel, int max_id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xAF369D42);
writer.WriteTLObject(channel);
writer.Write(max_id);
return "Channels_DeleteHistory";
});
//help.getRecentMeUrls#3dc0f114 referer:string = help.RecentMeUrls
public Task<Help_RecentMeUrls> Help_GetRecentMeUrls(string referer)
=> CallAsync<Help_RecentMeUrls>(writer =>
{
writer.Write(0x3DC0F114);
writer.WriteTLString(referer);
return "Help_GetRecentMeUrls";
});
//channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates
public Task<UpdatesBase> Channels_TogglePreHistoryHidden(InputChannelBase channel, bool enabled)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xEABBB94C);
writer.WriteTLObject(channel);
writer.Write(enabled ? 0x997275B5 : 0xBC799737);
return "Channels_TogglePreHistoryHidden";
});
//messages.readMentions#0f0189d3 peer:InputPeer = messages.AffectedHistory
public Task<Messages_AffectedHistory> Messages_ReadMentions(InputPeer peer)
=> CallAsync<Messages_AffectedHistory>(writer =>
{
writer.Write(0x0F0189D3);
writer.WriteTLObject(peer);
return "Messages_ReadMentions";
});
//messages.getRecentLocations#bbc45b09 peer:InputPeer limit:int hash:int = messages.Messages
public Task<Messages_MessagesBase> Messages_GetRecentLocations(InputPeer peer, int limit, int hash)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0xBBC45B09);
writer.WriteTLObject(peer);
writer.Write(limit);
writer.Write(hash);
return "Messages_GetRecentLocations";
});
//messages.sendMultiMedia#cc0110cb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int = Updates
public Task<UpdatesBase> Messages_SendMultiMedia(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)
=> CallAsync<UpdatesBase>(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";
});
//messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile
public Task<EncryptedFileBase> Messages_UploadEncryptedFile(InputEncryptedChat peer, InputEncryptedFileBase file)
=> CallAsync<EncryptedFileBase>(writer =>
{
writer.Write(0x5057C497);
writer.WriteTLObject(peer);
writer.WriteTLObject(file);
return "Messages_UploadEncryptedFile";
});
//account.getWebAuthorizations#182e6d6f = account.WebAuthorizations
public Task<Account_WebAuthorizations> Account_GetWebAuthorizations()
=> CallAsync<Account_WebAuthorizations>(writer =>
{
writer.Write(0x182E6D6F);
return "Account_GetWebAuthorizations";
});
//account.resetWebAuthorization#2d01b9ef hash:long = Bool
public Task<bool> Account_ResetWebAuthorization(long hash)
=> CallAsync<bool>(writer =>
{
writer.Write(0x2D01B9EF);
writer.Write(hash);
return "Account_ResetWebAuthorization";
});
//account.resetWebAuthorizations#682d2594 = Bool
public Task<bool> Account_ResetWebAuthorizations()
=> CallAsync<bool>(writer =>
{
writer.Write(0x682D2594);
return "Account_ResetWebAuthorizations";
});
//messages.searchStickerSets#c2b7d08b flags:# exclude_featured:flags.0?true q:string hash:int = messages.FoundStickerSets
public Task<Messages_FoundStickerSetsBase> Messages_SearchStickerSets(string q, int hash, bool exclude_featured = false)
=> CallAsync<Messages_FoundStickerSetsBase>(writer =>
{
writer.Write(0xC2B7D08B);
writer.Write(exclude_featured ? 0x1 : 0);
writer.WriteTLString(q);
writer.Write(hash);
return "Messages_SearchStickerSets";
});
//upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<FileHash>
public Task<FileHash[]> Upload_GetFileHashes(InputFileLocationBase location, int offset)
=> CallAsync<FileHash[]>(writer =>
{
writer.Write(0xC7025931);
writer.WriteTLObject(location);
writer.Write(offset);
return "Upload_GetFileHashes";
});
//help.getTermsOfServiceUpdate#2ca51fd1 = help.TermsOfServiceUpdate
public Task<Help_TermsOfServiceUpdateBase> Help_GetTermsOfServiceUpdate()
=> CallAsync<Help_TermsOfServiceUpdateBase>(writer =>
{
writer.Write(0x2CA51FD1);
return "Help_GetTermsOfServiceUpdate";
});
//help.acceptTermsOfService#ee72f79a id:DataJSON = Bool
public Task<bool> Help_AcceptTermsOfService(DataJSON id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xEE72F79A);
writer.WriteTLObject(id);
return "Help_AcceptTermsOfService";
});
//account.getAllSecureValues#b288bc7d = Vector<SecureValue>
public Task<SecureValue[]> Account_GetAllSecureValues()
=> CallAsync<SecureValue[]>(writer =>
{
writer.Write(0xB288BC7D);
return "Account_GetAllSecureValues";
});
//account.getSecureValue#73665bc2 types:Vector<SecureValueType> = Vector<SecureValue>
public Task<SecureValue[]> Account_GetSecureValue(SecureValueType[] types)
=> CallAsync<SecureValue[]>(writer =>
{
writer.Write(0x73665BC2);
writer.WriteTLVector(types);
return "Account_GetSecureValue";
});
//account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue
public Task<SecureValue> Account_SaveSecureValue(InputSecureValue value, long secure_secret_id)
=> CallAsync<SecureValue>(writer =>
{
writer.Write(0x899FE31D);
writer.WriteTLObject(value);
writer.Write(secure_secret_id);
return "Account_SaveSecureValue";
});
//account.deleteSecureValue#b880bc4b types:Vector<SecureValueType> = Bool
public Task<bool> Account_DeleteSecureValue(SecureValueType[] types)
=> CallAsync<bool>(writer =>
{
writer.Write(0xB880BC4B);
writer.WriteTLVector(types);
return "Account_DeleteSecureValue";
});
//users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool
public Task<bool> Users_SetSecureValueErrors(InputUserBase id, SecureValueErrorBase[] errors)
=> CallAsync<bool>(writer =>
{
writer.Write(0x90C894B5);
writer.WriteTLObject(id);
writer.WriteTLVector(errors);
return "Users_SetSecureValueErrors";
});
//account.getAuthorizationForm#b86ba8e1 bot_id:int scope:string public_key:string = account.AuthorizationForm
public Task<Account_AuthorizationForm> Account_GetAuthorizationForm(int bot_id, string scope, string public_key)
=> CallAsync<Account_AuthorizationForm>(writer =>
{
writer.Write(0xB86BA8E1);
writer.Write(bot_id);
writer.WriteTLString(scope);
writer.WriteTLString(public_key);
return "Account_GetAuthorizationForm";
});
//account.acceptAuthorization#e7027c94 bot_id:int scope:string public_key:string value_hashes:Vector<SecureValueHash> credentials:SecureCredentialsEncrypted = Bool
public Task<bool> Account_AcceptAuthorization(int bot_id, string scope, string public_key, SecureValueHash[] value_hashes, SecureCredentialsEncrypted credentials)
=> CallAsync<bool>(writer =>
{
writer.Write(0xE7027C94);
writer.Write(bot_id);
writer.WriteTLString(scope);
writer.WriteTLString(public_key);
writer.WriteTLVector(value_hashes);
writer.WriteTLObject(credentials);
return "Account_AcceptAuthorization";
});
//account.sendVerifyPhoneCode#a5a356f9 phone_number:string settings:CodeSettings = auth.SentCode
public Task<Auth_SentCode> Account_SendVerifyPhoneCode(string phone_number, CodeSettings settings)
=> CallAsync<Auth_SentCode>(writer =>
{
writer.Write(0xA5A356F9);
writer.WriteTLString(phone_number);
writer.WriteTLObject(settings);
return "Account_SendVerifyPhoneCode";
});
//account.verifyPhone#4dd3a7f6 phone_number:string phone_code_hash:string phone_code:string = Bool
public Task<bool> Account_VerifyPhone(string phone_number, string phone_code_hash, string phone_code)
=> CallAsync<bool>(writer =>
{
writer.Write(0x4DD3A7F6);
writer.WriteTLString(phone_number);
writer.WriteTLString(phone_code_hash);
writer.WriteTLString(phone_code);
return "Account_VerifyPhone";
});
//account.sendVerifyEmailCode#7011509f email:string = account.SentEmailCode
public Task<Account_SentEmailCode> Account_SendVerifyEmailCode(string email)
=> CallAsync<Account_SentEmailCode>(writer =>
{
writer.Write(0x7011509F);
writer.WriteTLString(email);
return "Account_SendVerifyEmailCode";
});
//account.verifyEmail#ecba39db email:string code:string = Bool
public Task<bool> Account_VerifyEmail(string email, string code)
=> CallAsync<bool>(writer =>
{
writer.Write(0xECBA39DB);
writer.WriteTLString(email);
writer.WriteTLString(code);
return "Account_VerifyEmail";
});
//help.getDeepLinkInfo#3fedc75f path:string = help.DeepLinkInfo
public Task<Help_DeepLinkInfoBase> Help_GetDeepLinkInfo(string path)
=> CallAsync<Help_DeepLinkInfoBase>(writer =>
{
writer.Write(0x3FEDC75F);
writer.WriteTLString(path);
return "Help_GetDeepLinkInfo";
});
//contacts.getSaved#82f1e39f = Vector<SavedContact>
public Task<SavedContact[]> Contacts_GetSaved()
=> CallAsync<SavedContact[]>(writer =>
{
writer.Write(0x82F1E39F);
return "Contacts_GetSaved";
});
//channels.getLeftChannels#8341ecc0 offset:int = messages.Chats
public Task<Messages_ChatsBase> Channels_GetLeftChannels(int offset)
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0x8341ECC0);
writer.Write(offset);
return "Channels_GetLeftChannels";
});
//account.initTakeoutSession#f05b4804 flags:# contacts:flags.0?true message_users:flags.1?true message_chats:flags.2?true message_megagroups:flags.3?true message_channels:flags.4?true files:flags.5?true file_max_size:flags.5?int = account.Takeout
public Task<Account_Takeout> Account_InitTakeoutSession(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)
=> CallAsync<Account_Takeout>(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";
});
//account.finishTakeoutSession#1d2652ee flags:# success:flags.0?true = Bool
public Task<bool> Account_FinishTakeoutSession(bool success = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1D2652EE);
writer.Write(success ? 0x1 : 0);
return "Account_FinishTakeoutSession";
});
//messages.getSplitRanges#1cff7e08 = Vector<MessageRange>
public Task<MessageRange[]> Messages_GetSplitRanges()
=> CallAsync<MessageRange[]>(writer =>
{
writer.Write(0x1CFF7E08);
return "Messages_GetSplitRanges";
});
//invokeWithMessagesRange#365275f2 {X:Type} range:MessageRange query:!X = X
public Task<X> InvokeWithMessagesRange<X>(MessageRange range, ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0x365275F2);
writer.WriteTLObject(range);
query(writer);
return "InvokeWithMessagesRange<X>";
});
//invokeWithTakeout#aca9fd2e {X:Type} takeout_id:long query:!X = X
public Task<X> InvokeWithTakeout<X>(long takeout_id, ITLFunction<X> query)
=> CallAsync<X>(writer =>
{
writer.Write(0xACA9FD2E);
writer.Write(takeout_id);
query(writer);
return "InvokeWithTakeout<X>";
});
//messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool
public Task<bool> Messages_MarkDialogUnread(InputDialogPeerBase peer, bool unread = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0xC286D98F);
writer.Write(unread ? 0x1 : 0);
writer.WriteTLObject(peer);
return "Messages_MarkDialogUnread";
});
//messages.getDialogUnreadMarks#22e24e22 = Vector<DialogPeer>
public Task<DialogPeerBase[]> Messages_GetDialogUnreadMarks()
=> CallAsync<DialogPeerBase[]>(writer =>
{
writer.Write(0x22E24E22);
return "Messages_GetDialogUnreadMarks";
});
//contacts.toggleTopPeers#8514bdda enabled:Bool = Bool
public Task<bool> Contacts_ToggleTopPeers(bool enabled)
=> CallAsync<bool>(writer =>
{
writer.Write(0x8514BDDA);
writer.Write(enabled ? 0x997275B5 : 0xBC799737);
return "Contacts_ToggleTopPeers";
});
//messages.clearAllDrafts#7e58ee9c = Bool
public Task<bool> Messages_ClearAllDrafts()
=> CallAsync<bool>(writer =>
{
writer.Write(0x7E58EE9C);
return "Messages_ClearAllDrafts";
});
//help.getAppConfig#98914110 = JSONValue
public Task<JSONValue> Help_GetAppConfig()
=> CallAsync<JSONValue>(writer =>
{
writer.Write(0x98914110);
return "Help_GetAppConfig";
});
//help.saveAppLog#6f02f748 events:Vector<InputAppEvent> = Bool
public Task<bool> Help_SaveAppLog(InputAppEvent[] events)
=> CallAsync<bool>(writer =>
{
writer.Write(0x6F02F748);
writer.WriteTLVector(events);
return "Help_SaveAppLog";
});
//help.getPassportConfig#c661ad08 hash:int = help.PassportConfig
public Task<Help_PassportConfigBase> Help_GetPassportConfig(int hash)
=> CallAsync<Help_PassportConfigBase>(writer =>
{
writer.Write(0xC661AD08);
writer.Write(hash);
return "Help_GetPassportConfig";
});
//langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage
public Task<LangPackLanguage> Langpack_GetLanguage(string lang_pack, string lang_code)
=> CallAsync<LangPackLanguage>(writer =>
{
writer.Write(0x6A596502);
writer.WriteTLString(lang_pack);
writer.WriteTLString(lang_code);
return "Langpack_GetLanguage";
});
//messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates
public Task<UpdatesBase> Messages_UpdatePinnedMessage(InputPeer peer, int id, bool silent = false, bool unpin = false, bool pm_oneside = false)
=> CallAsync<UpdatesBase>(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";
});
//account.confirmPasswordEmail#8fdf1920 code:string = Bool
public Task<bool> Account_ConfirmPasswordEmail(string code)
=> CallAsync<bool>(writer =>
{
writer.Write(0x8FDF1920);
writer.WriteTLString(code);
return "Account_ConfirmPasswordEmail";
});
//account.resendPasswordEmail#7a7f2a15 = Bool
public Task<bool> Account_ResendPasswordEmail()
=> CallAsync<bool>(writer =>
{
writer.Write(0x7A7F2A15);
return "Account_ResendPasswordEmail";
});
//account.cancelPasswordEmail#c1cbd5b6 = Bool
public Task<bool> Account_CancelPasswordEmail()
=> CallAsync<bool>(writer =>
{
writer.Write(0xC1CBD5B6);
return "Account_CancelPasswordEmail";
});
//help.getSupportName#d360e72c = help.SupportName
public Task<Help_SupportName> Help_GetSupportName()
=> CallAsync<Help_SupportName>(writer =>
{
writer.Write(0xD360E72C);
return "Help_GetSupportName";
});
//help.getUserInfo#038a08d3 user_id:InputUser = help.UserInfo
public Task<Help_UserInfoBase> Help_GetUserInfo(InputUserBase user_id)
=> CallAsync<Help_UserInfoBase>(writer =>
{
writer.Write(0x038A08D3);
writer.WriteTLObject(user_id);
return "Help_GetUserInfo";
});
//help.editUserInfo#66b91b70 user_id:InputUser message:string entities:Vector<MessageEntity> = help.UserInfo
public Task<Help_UserInfoBase> Help_EditUserInfo(InputUserBase user_id, string message, MessageEntity[] entities)
=> CallAsync<Help_UserInfoBase>(writer =>
{
writer.Write(0x66B91B70);
writer.WriteTLObject(user_id);
writer.WriteTLString(message);
writer.WriteTLVector(entities);
return "Help_EditUserInfo";
});
//account.getContactSignUpNotification#9f07c728 = Bool
public Task<bool> Account_GetContactSignUpNotification()
=> CallAsync<bool>(writer =>
{
writer.Write(0x9F07C728);
return "Account_GetContactSignUpNotification";
});
//account.setContactSignUpNotification#cff43f61 silent:Bool = Bool
public Task<bool> Account_SetContactSignUpNotification(bool silent)
=> CallAsync<bool>(writer =>
{
writer.Write(0xCFF43F61);
writer.Write(silent ? 0x997275B5 : 0xBC799737);
return "Account_SetContactSignUpNotification";
});
//account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates
public Task<UpdatesBase> Account_GetNotifyExceptions(bool compare_sound = false, InputNotifyPeerBase peer = null)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x53577479);
writer.Write((compare_sound ? 0x2 : 0) | (peer != null ? 0x1 : 0));
if (peer != null)
writer.WriteTLObject(peer);
return "Account_GetNotifyExceptions";
});
//messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates
public Task<UpdatesBase> Messages_SendVote(InputPeer peer, int msg_id, byte[][] options)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x10EA6184);
writer.WriteTLObject(peer);
writer.Write(msg_id);
writer.WriteTLVector(options);
return "Messages_SendVote";
});
//messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates
public Task<UpdatesBase> Messages_GetPollResults(InputPeer peer, int msg_id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x73BB643B);
writer.WriteTLObject(peer);
writer.Write(msg_id);
return "Messages_GetPollResults";
});
//messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines
public Task<ChatOnlines> Messages_GetOnlines(InputPeer peer)
=> CallAsync<ChatOnlines>(writer =>
{
writer.Write(0x6E2BE050);
writer.WriteTLObject(peer);
return "Messages_GetOnlines";
});
//messages.getStatsURL#812c2ae6 flags:# dark:flags.0?true peer:InputPeer params:string = StatsURL
public Task<StatsURL> Messages_GetStatsURL(InputPeer peer, string params_, bool dark = false)
=> CallAsync<StatsURL>(writer =>
{
writer.Write(0x812C2AE6);
writer.Write(dark ? 0x1 : 0);
writer.WriteTLObject(peer);
writer.WriteTLString(params_);
return "Messages_GetStatsURL";
});
//messages.editChatAbout#def60797 peer:InputPeer about:string = Bool
public Task<bool> Messages_EditChatAbout(InputPeer peer, string about)
=> CallAsync<bool>(writer =>
{
writer.Write(0xDEF60797);
writer.WriteTLObject(peer);
writer.WriteTLString(about);
return "Messages_EditChatAbout";
});
//messages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates
public Task<UpdatesBase> Messages_EditChatDefaultBannedRights(InputPeer peer, ChatBannedRights banned_rights)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xA5866B41);
writer.WriteTLObject(peer);
writer.WriteTLObject(banned_rights);
return "Messages_EditChatDefaultBannedRights";
});
//account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper
public Task<WallPaperBase> Account_GetWallPaper(InputWallPaperBase wallpaper)
=> CallAsync<WallPaperBase>(writer =>
{
writer.Write(0xFC8DDBEA);
writer.WriteTLObject(wallpaper);
return "Account_GetWallPaper";
});
//account.uploadWallPaper#dd853661 file:InputFile mime_type:string settings:WallPaperSettings = WallPaper
public Task<WallPaperBase> Account_UploadWallPaper(InputFileBase file, string mime_type, WallPaperSettings settings)
=> CallAsync<WallPaperBase>(writer =>
{
writer.Write(0xDD853661);
writer.WriteTLObject(file);
writer.WriteTLString(mime_type);
writer.WriteTLObject(settings);
return "Account_UploadWallPaper";
});
//account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool
public Task<bool> Account_SaveWallPaper(InputWallPaperBase wallpaper, bool unsave, WallPaperSettings settings)
=> CallAsync<bool>(writer =>
{
writer.Write(0x6C5A5B37);
writer.WriteTLObject(wallpaper);
writer.Write(unsave ? 0x997275B5 : 0xBC799737);
writer.WriteTLObject(settings);
return "Account_SaveWallPaper";
});
//account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool
public Task<bool> Account_InstallWallPaper(InputWallPaperBase wallpaper, WallPaperSettings settings)
=> CallAsync<bool>(writer =>
{
writer.Write(0xFEED5769);
writer.WriteTLObject(wallpaper);
writer.WriteTLObject(settings);
return "Account_InstallWallPaper";
});
//account.resetWallPapers#bb3b9804 = Bool
public Task<bool> Account_ResetWallPapers()
=> CallAsync<bool>(writer =>
{
writer.Write(0xBB3B9804);
return "Account_ResetWallPapers";
});
//account.getAutoDownloadSettings#56da0b3f = account.AutoDownloadSettings
public Task<Account_AutoDownloadSettings> Account_GetAutoDownloadSettings()
=> CallAsync<Account_AutoDownloadSettings>(writer =>
{
writer.Write(0x56DA0B3F);
return "Account_GetAutoDownloadSettings";
});
//account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool
public Task<bool> Account_SaveAutoDownloadSettings(AutoDownloadSettings settings, bool low = false, bool high = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0x76F36233);
writer.Write((low ? 0x1 : 0) | (high ? 0x2 : 0));
writer.WriteTLObject(settings);
return "Account_SaveAutoDownloadSettings";
});
//messages.getEmojiKeywords#35a0e062 lang_code:string = EmojiKeywordsDifference
public Task<EmojiKeywordsDifference> Messages_GetEmojiKeywords(string lang_code)
=> CallAsync<EmojiKeywordsDifference>(writer =>
{
writer.Write(0x35A0E062);
writer.WriteTLString(lang_code);
return "Messages_GetEmojiKeywords";
});
//messages.getEmojiKeywordsDifference#1508b6af lang_code:string from_version:int = EmojiKeywordsDifference
public Task<EmojiKeywordsDifference> Messages_GetEmojiKeywordsDifference(string lang_code, int from_version)
=> CallAsync<EmojiKeywordsDifference>(writer =>
{
writer.Write(0x1508B6AF);
writer.WriteTLString(lang_code);
writer.Write(from_version);
return "Messages_GetEmojiKeywordsDifference";
});
//messages.getEmojiKeywordsLanguages#4e9963b2 lang_codes:Vector<string> = Vector<EmojiLanguage>
public Task<EmojiLanguage[]> Messages_GetEmojiKeywordsLanguages(string[] lang_codes)
=> CallAsync<EmojiLanguage[]>(writer =>
{
writer.Write(0x4E9963B2);
writer.WriteTLVector(lang_codes);
return "Messages_GetEmojiKeywordsLanguages";
});
//messages.getEmojiURL#d5b10c26 lang_code:string = EmojiURL
public Task<EmojiURL> Messages_GetEmojiURL(string lang_code)
=> CallAsync<EmojiURL>(writer =>
{
writer.Write(0xD5B10C26);
writer.WriteTLString(lang_code);
return "Messages_GetEmojiURL";
});
//folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates
public Task<UpdatesBase> Folders_EditPeerFolders(InputFolderPeer[] folder_peers)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x6847D0AB);
writer.WriteTLVector(folder_peers);
return "Folders_EditPeerFolders";
});
//folders.deleteFolder#1c295881 folder_id:int = Updates
public Task<UpdatesBase> Folders_DeleteFolder(int folder_id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x1C295881);
writer.Write(folder_id);
return "Folders_DeleteFolder";
});
//messages.getSearchCounters#732eef00 peer:InputPeer filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>
public Task<Messages_SearchCounter[]> Messages_GetSearchCounters(InputPeer peer, MessagesFilter[] filters)
=> CallAsync<Messages_SearchCounter[]>(writer =>
{
writer.Write(0x732EEF00);
writer.WriteTLObject(peer);
writer.WriteTLVector(filters);
return "Messages_GetSearchCounters";
});
//channels.getGroupsForDiscussion#f5dad378 = messages.Chats
public Task<Messages_ChatsBase> Channels_GetGroupsForDiscussion()
=> CallAsync<Messages_ChatsBase>(writer =>
{
writer.Write(0xF5DAD378);
return "Channels_GetGroupsForDiscussion";
});
//channels.setDiscussionGroup#40582bb2 broadcast:InputChannel group:InputChannel = Bool
public Task<bool> Channels_SetDiscussionGroup(InputChannelBase broadcast, InputChannelBase group)
=> CallAsync<bool>(writer =>
{
writer.Write(0x40582BB2);
writer.WriteTLObject(broadcast);
writer.WriteTLObject(group);
return "Channels_SetDiscussionGroup";
});
//messages.requestUrlAuth#e33f5613 peer:InputPeer msg_id:int button_id:int = UrlAuthResult
public Task<UrlAuthResult> Messages_RequestUrlAuth(InputPeer peer, int msg_id, int button_id)
=> CallAsync<UrlAuthResult>(writer =>
{
writer.Write(0xE33F5613);
writer.WriteTLObject(peer);
writer.Write(msg_id);
writer.Write(button_id);
return "Messages_RequestUrlAuth";
});
//messages.acceptUrlAuth#f729ea98 flags:# write_allowed:flags.0?true peer:InputPeer msg_id:int button_id:int = UrlAuthResult
public Task<UrlAuthResult> Messages_AcceptUrlAuth(InputPeer peer, int msg_id, int button_id, bool write_allowed = false)
=> CallAsync<UrlAuthResult>(writer =>
{
writer.Write(0xF729EA98);
writer.Write(write_allowed ? 0x1 : 0);
writer.WriteTLObject(peer);
writer.Write(msg_id);
writer.Write(button_id);
return "Messages_AcceptUrlAuth";
});
//messages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool
public Task<bool> Messages_HidePeerSettingsBar(InputPeer peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0x4FACB138);
writer.WriteTLObject(peer);
return "Messages_HidePeerSettingsBar";
});
//contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates
public Task<UpdatesBase> Contacts_AddContact(InputUserBase id, string first_name, string last_name, string phone, bool add_phone_privacy_exception = false)
=> CallAsync<UpdatesBase>(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";
});
//contacts.acceptContact#f831a20f id:InputUser = Updates
public Task<UpdatesBase> Contacts_AcceptContact(InputUserBase id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xF831A20F);
writer.WriteTLObject(id);
return "Contacts_AcceptContact";
});
//channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates
public Task<UpdatesBase> Channels_EditCreator(InputChannelBase channel, InputUserBase user_id, InputCheckPasswordSRPBase password)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x8F38CD1F);
writer.WriteTLObject(channel);
writer.WriteTLObject(user_id);
writer.WriteTLObject(password);
return "Channels_EditCreator";
});
//contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates
public Task<UpdatesBase> Contacts_GetLocated(InputGeoPointBase geo_point, bool background = false, int? self_expires = null)
=> CallAsync<UpdatesBase>(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";
});
//channels.editLocation#58e63f6d channel:InputChannel geo_point:InputGeoPoint address:string = Bool
public Task<bool> Channels_EditLocation(InputChannelBase channel, InputGeoPointBase geo_point, string address)
=> CallAsync<bool>(writer =>
{
writer.Write(0x58E63F6D);
writer.WriteTLObject(channel);
writer.WriteTLObject(geo_point);
writer.WriteTLString(address);
return "Channels_EditLocation";
});
//channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates
public Task<UpdatesBase> Channels_ToggleSlowMode(InputChannelBase channel, int seconds)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xEDD49EF0);
writer.WriteTLObject(channel);
writer.Write(seconds);
return "Channels_ToggleSlowMode";
});
//messages.getScheduledHistory#e2c2685b peer:InputPeer hash:int = messages.Messages
public Task<Messages_MessagesBase> Messages_GetScheduledHistory(InputPeer peer, int hash)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0xE2C2685B);
writer.WriteTLObject(peer);
writer.Write(hash);
return "Messages_GetScheduledHistory";
});
//messages.getScheduledMessages#bdbb0464 peer:InputPeer id:Vector<int> = messages.Messages
public Task<Messages_MessagesBase> Messages_GetScheduledMessages(InputPeer peer, int[] id)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0xBDBB0464);
writer.WriteTLObject(peer);
writer.WriteTLVector(id);
return "Messages_GetScheduledMessages";
});
//messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector<int> = Updates
public Task<UpdatesBase> Messages_SendScheduledMessages(InputPeer peer, int[] id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0xBD38850A);
writer.WriteTLObject(peer);
writer.WriteTLVector(id);
return "Messages_SendScheduledMessages";
});
//messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector<int> = Updates
public Task<UpdatesBase> Messages_DeleteScheduledMessages(InputPeer peer, int[] id)
=> CallAsync<UpdatesBase>(writer =>
{
writer.Write(0x59AE2B16);
writer.WriteTLObject(peer);
writer.WriteTLVector(id);
return "Messages_DeleteScheduledMessages";
});
//account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document
public Task<DocumentBase> Account_UploadTheme(InputFileBase file, string file_name, string mime_type, InputFileBase thumb = null)
=> CallAsync<DocumentBase>(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";
});
//account.createTheme#8432c21f flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme
public Task<Theme> Account_CreateTheme(string slug, string title, InputDocumentBase document = null, InputThemeSettings settings = null)
=> CallAsync<Theme>(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";
});
//account.updateTheme#5cb367d5 flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?InputThemeSettings = Theme
public Task<Theme> Account_UpdateTheme(string format, InputThemeBase theme, string slug = null, string title = null, InputDocumentBase document = null, InputThemeSettings settings = null)
=> CallAsync<Theme>(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";
});
//account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool
public Task<bool> Account_SaveTheme(InputThemeBase theme, bool unsave)
=> CallAsync<bool>(writer =>
{
writer.Write(0xF257106C);
writer.WriteTLObject(theme);
writer.Write(unsave ? 0x997275B5 : 0xBC799737);
return "Account_SaveTheme";
});
//account.installTheme#7ae43737 flags:# dark:flags.0?true format:flags.1?string theme:flags.1?InputTheme = Bool
public Task<bool> Account_InstallTheme(bool dark = false, string format = null, InputThemeBase theme = null)
=> CallAsync<bool>(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";
});
//account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme
public Task<Theme> Account_GetTheme(string format, InputThemeBase theme, long document_id)
=> CallAsync<Theme>(writer =>
{
writer.Write(0x8D9D742B);
writer.WriteTLString(format);
writer.WriteTLObject(theme);
writer.Write(document_id);
return "Account_GetTheme";
});
//account.getThemes#285946f8 format:string hash:int = account.Themes
public Task<Account_ThemesBase> Account_GetThemes(string format, int hash)
=> CallAsync<Account_ThemesBase>(writer =>
{
writer.Write(0x285946F8);
writer.WriteTLString(format);
writer.Write(hash);
return "Account_GetThemes";
});
//auth.exportLoginToken#b1b41517 api_id:int api_hash:string except_ids:Vector<int> = auth.LoginToken
public Task<Auth_LoginTokenBase> Auth_ExportLoginToken(int api_id, string api_hash, int[] except_ids)
=> CallAsync<Auth_LoginTokenBase>(writer =>
{
writer.Write(0xB1B41517);
writer.Write(api_id);
writer.WriteTLString(api_hash);
writer.WriteTLVector(except_ids);
return "Auth_ExportLoginToken";
});
//auth.importLoginToken#95ac5ce4 token:bytes = auth.LoginToken
public Task<Auth_LoginTokenBase> Auth_ImportLoginToken(byte[] token)
=> CallAsync<Auth_LoginTokenBase>(writer =>
{
writer.Write(0x95AC5CE4);
writer.WriteTLBytes(token);
return "Auth_ImportLoginToken";
});
//auth.acceptLoginToken#e894ad4d token:bytes = Authorization
public Task<Authorization> Auth_AcceptLoginToken(byte[] token)
=> CallAsync<Authorization>(writer =>
{
writer.Write(0xE894AD4D);
writer.WriteTLBytes(token);
return "Auth_AcceptLoginToken";
});
//account.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool
public Task<bool> Account_SetContentSettings(bool sensitive_enabled = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0xB574B16B);
writer.Write(sensitive_enabled ? 0x1 : 0);
return "Account_SetContentSettings";
});
//account.getContentSettings#8b9b4dae = account.ContentSettings
public Task<Account_ContentSettings> Account_GetContentSettings()
=> CallAsync<Account_ContentSettings>(writer =>
{
writer.Write(0x8B9B4DAE);
return "Account_GetContentSettings";
});
//channels.getInactiveChannels#11e831ee = messages.InactiveChats
public Task<Messages_InactiveChats> Channels_GetInactiveChannels()
=> CallAsync<Messages_InactiveChats>(writer =>
{
writer.Write(0x11E831EE);
return "Channels_GetInactiveChannels";
});
//account.getMultiWallPapers#65ad71dc wallpapers:Vector<InputWallPaper> = Vector<WallPaper>
public Task<WallPaperBase[]> Account_GetMultiWallPapers(InputWallPaperBase[] wallpapers)
=> CallAsync<WallPaperBase[]>(writer =>
{
writer.Write(0x65AD71DC);
writer.WriteTLVector(wallpapers);
return "Account_GetMultiWallPapers";
});
//messages.getPollVotes#b86e380e flags:# peer:InputPeer id:int option:flags.0?bytes offset:flags.1?string limit:int = messages.VotesList
public Task<Messages_VotesList> Messages_GetPollVotes(InputPeer peer, int id, int limit, byte[] option = null, string offset = null)
=> CallAsync<Messages_VotesList>(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";
});
//messages.toggleStickerSets#b5052fea flags:# uninstall:flags.0?true archive:flags.1?true unarchive:flags.2?true stickersets:Vector<InputStickerSet> = Bool
public Task<bool> Messages_ToggleStickerSets(InputStickerSet[] stickersets, bool uninstall = false, bool archive = false, bool unarchive = false)
=> CallAsync<bool>(writer =>
{
writer.Write(0xB5052FEA);
writer.Write((uninstall ? 0x1 : 0) | (archive ? 0x2 : 0) | (unarchive ? 0x4 : 0));
writer.WriteTLVector(stickersets);
return "Messages_ToggleStickerSets";
});
//payments.getBankCardData#2e79d779 number:string = payments.BankCardData
public Task<Payments_BankCardData> Payments_GetBankCardData(string number)
=> CallAsync<Payments_BankCardData>(writer =>
{
writer.Write(0x2E79D779);
writer.WriteTLString(number);
return "Payments_GetBankCardData";
});
//messages.getDialogFilters#f19ed96d = Vector<DialogFilter>
public Task<DialogFilter[]> Messages_GetDialogFilters()
=> CallAsync<DialogFilter[]>(writer =>
{
writer.Write(0xF19ED96D);
return "Messages_GetDialogFilters";
});
//messages.getSuggestedDialogFilters#a29cd42c = Vector<DialogFilterSuggested>
public Task<DialogFilterSuggested[]> Messages_GetSuggestedDialogFilters()
=> CallAsync<DialogFilterSuggested[]>(writer =>
{
writer.Write(0xA29CD42C);
return "Messages_GetSuggestedDialogFilters";
});
//messages.updateDialogFilter#1ad4a04a flags:# id:int filter:flags.0?DialogFilter = Bool
public Task<bool> Messages_UpdateDialogFilter(int id, DialogFilter filter = null)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1AD4A04A);
writer.Write(filter != null ? 0x1 : 0);
writer.Write(id);
if (filter != null)
writer.WriteTLObject(filter);
return "Messages_UpdateDialogFilter";
});
//messages.updateDialogFiltersOrder#c563c1e4 order:Vector<int> = Bool
public Task<bool> Messages_UpdateDialogFiltersOrder(int[] order)
=> CallAsync<bool>(writer =>
{
writer.Write(0xC563C1E4);
writer.WriteTLVector(order);
return "Messages_UpdateDialogFiltersOrder";
});
//stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats
public Task<Stats_BroadcastStats> Stats_GetBroadcastStats(InputChannelBase channel, bool dark = false)
=> CallAsync<Stats_BroadcastStats>(writer =>
{
writer.Write(0xAB42441A);
writer.Write(dark ? 0x1 : 0);
writer.WriteTLObject(channel);
return "Stats_GetBroadcastStats";
});
//stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph
public Task<StatsGraphBase> Stats_LoadAsyncGraph(string token, long? x = null)
=> CallAsync<StatsGraphBase>(writer =>
{
writer.Write(0x621D5FA0);
writer.Write(x != null ? 0x1 : 0);
writer.WriteTLString(token);
if (x != null)
writer.Write(x.Value);
return "Stats_LoadAsyncGraph";
});
//stickers.setStickerSetThumb#9a364e30 stickerset:InputStickerSet thumb:InputDocument = messages.StickerSet
public Task<Messages_StickerSet> Stickers_SetStickerSetThumb(InputStickerSet stickerset, InputDocumentBase thumb)
=> CallAsync<Messages_StickerSet>(writer =>
{
writer.Write(0x9A364E30);
writer.WriteTLObject(stickerset);
writer.WriteTLObject(thumb);
return "Stickers_SetStickerSetThumb";
});
//bots.setBotCommands#805d46f6 commands:Vector<BotCommand> = Bool
public Task<bool> Bots_SetBotCommands(BotCommand[] commands)
=> CallAsync<bool>(writer =>
{
writer.Write(0x805D46F6);
writer.WriteTLVector(commands);
return "Bots_SetBotCommands";
});
//messages.getOldFeaturedStickers#5fe7025b offset:int limit:int hash:int = messages.FeaturedStickers
public Task<Messages_FeaturedStickersBase> Messages_GetOldFeaturedStickers(int offset, int limit, int hash)
=> CallAsync<Messages_FeaturedStickersBase>(writer =>
{
writer.Write(0x5FE7025B);
writer.Write(offset);
writer.Write(limit);
writer.Write(hash);
return "Messages_GetOldFeaturedStickers";
});
//help.getPromoData#c0977421 = help.PromoData
public Task<Help_PromoDataBase> Help_GetPromoData()
=> CallAsync<Help_PromoDataBase>(writer =>
{
writer.Write(0xC0977421);
return "Help_GetPromoData";
});
//help.hidePromoData#1e251c95 peer:InputPeer = Bool
public Task<bool> Help_HidePromoData(InputPeer peer)
=> CallAsync<bool>(writer =>
{
writer.Write(0x1E251C95);
writer.WriteTLObject(peer);
return "Help_HidePromoData";
});
//phone.sendSignalingData#ff7a9383 peer:InputPhoneCall data:bytes = Bool
public Task<bool> Phone_SendSignalingData(InputPhoneCall peer, byte[] data)
=> CallAsync<bool>(writer =>
{
writer.Write(0xFF7A9383);
writer.WriteTLObject(peer);
writer.WriteTLBytes(data);
return "Phone_SendSignalingData";
});
//stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats
public Task<Stats_MegagroupStats> Stats_GetMegagroupStats(InputChannelBase channel, bool dark = false)
=> CallAsync<Stats_MegagroupStats>(writer =>
{
writer.Write(0xDCDF8607);
writer.Write(dark ? 0x1 : 0);
writer.WriteTLObject(channel);
return "Stats_GetMegagroupStats";
});
//account.getGlobalPrivacySettings#eb2b4cf6 = GlobalPrivacySettings
public Task<GlobalPrivacySettings> Account_GetGlobalPrivacySettings()
=> CallAsync<GlobalPrivacySettings>(writer =>
{
writer.Write(0xEB2B4CF6);
return "Account_GetGlobalPrivacySettings";
});
//account.setGlobalPrivacySettings#1edaaac2 settings:GlobalPrivacySettings = GlobalPrivacySettings
public Task<GlobalPrivacySettings> Account_SetGlobalPrivacySettings(GlobalPrivacySettings settings)
=> CallAsync<GlobalPrivacySettings>(writer =>
{
writer.Write(0x1EDAAAC2);
writer.WriteTLObject(settings);
return "Account_SetGlobalPrivacySettings";
});
//help.dismissSuggestion#077fa99f suggestion:string = Bool
public Task<bool> Help_DismissSuggestion(string suggestion)
=> CallAsync<bool>(writer =>
{
writer.Write(0x077FA99F);
writer.WriteTLString(suggestion);
return "Help_DismissSuggestion";
});
//help.getCountriesList#735787a8 lang_code:string hash:int = help.CountriesList
public Task<Help_CountriesListBase> Help_GetCountriesList(string lang_code, int hash)
=> CallAsync<Help_CountriesListBase>(writer =>
{
writer.Write(0x735787A8);
writer.WriteTLString(lang_code);
writer.Write(hash);
return "Help_GetCountriesList";
});
//messages.getReplies#24b581ba peer:InputPeer msg_id:int offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:int = messages.Messages
public Task<Messages_MessagesBase> Messages_GetReplies(InputPeer peer, int msg_id, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, int hash)
=> CallAsync<Messages_MessagesBase>(writer =>
{
writer.Write(0x24B581BA);
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";
});
//messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage
public Task<Messages_DiscussionMessage> Messages_GetDiscussionMessage(InputPeer peer, int msg_id)
=> CallAsync<Messages_DiscussionMessage>(writer =>
{
writer.Write(0x446972FD);
writer.WriteTLObject(peer);
writer.Write(msg_id);
return "Messages_GetDiscussionMessage";
});
//messages.readDiscussion#f731a9f4 peer:InputPeer msg_id:int read_max_id:int = Bool
public Task<bool> Messages_ReadDiscussion(InputPeer peer, int msg_id, int read_max_id)
=> CallAsync<bool>(writer =>
{
writer.Write(0xF731A9F4);
writer.WriteTLObject(peer);
writer.Write(msg_id);
writer.Write(read_max_id);
return "Messages_ReadDiscussion";
});
//contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates
public Task<UpdatesBase> Contacts_BlockFromReplies(int msg_id, bool delete_message = false, bool delete_history = false, bool report_spam = false)
=> CallAsync<UpdatesBase>(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";
});
//stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages
public Task<Messages_MessagesBase> Stats_GetMessagePublicForwards(InputChannelBase channel, int msg_id, int offset_rate, InputPeer offset_peer, int offset_id, int limit)
=> CallAsync<Messages_MessagesBase>(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";
});
//stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats
public Task<Stats_MessageStats> Stats_GetMessageStats(InputChannelBase channel, int msg_id, bool dark = false)
=> CallAsync<Stats_MessageStats>(writer =>
{
writer.Write(0xB6E0A3F5);
writer.Write(dark ? 0x1 : 0);
writer.WriteTLObject(channel);
writer.Write(msg_id);
return "Stats_GetMessageStats";
});
//messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory
public Task<Messages_AffectedHistory> Messages_UnpinAllMessages(InputPeer peer)
=> CallAsync<Messages_AffectedHistory>(writer =>
{
writer.Write(0xF025BC8B);
writer.WriteTLObject(peer);
return "Messages_UnpinAllMessages";
});
2021-08-04 00:40:09 +02:00
}
}