Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static partial class TLFactory
- {
- public static T Read<T>(ProtoReader from)
- {
- if (typeof(T) == typeof(UInt32))
- return (T)(Object)from.ReadUInt32();
- else if (typeof(T) == typeof(UInt64))
- return (T)(Object)from.ReadUInt64();
- else if (typeof(T) == typeof(Double))
- return (T)(Object)from.ReadDouble();
- else if (typeof(T) == typeof(String))
- return (T)(Object)from.ReadString();
- else if (typeof(T) == typeof(Byte[]))
- return (T)(Object)from.ReadByteArray();
- else if (typeof(T) == typeof(TLInt128))
- return (T)(Object)new TLInt128(from);
- else if (typeof(T) == typeof(TLInt256))
- return (T)(Object)new TLInt256(from);
- return Read<T>(from, (TLTypes)from.ReadUInt32());
- }
- }
- public static partial class TLFactory
- {
- public static T Read<T>(ProtoReader from, TLTypes type)
- {
- switch (type)
- {
- case TLTypes.ReqPQ: return (T)(Object)new TLReqPQ(from);
- case TLTypes.ReqDHParams: return (T)(Object)new TLReqDHParams(from);
- case TLTypes.SetClientDHParams: return (T)(Object)new TLSetClientDHParams(from);
- case TLTypes.RpcDropAnswer: return (T)(Object)new TLRpcDropAnswer(from);
- case TLTypes.GetFutureSalts: return (T)(Object)new TLGetFutureSalts(from);
- case TLTypes.Ping: return (T)(Object)new TLPing(from);
- case TLTypes.PingDelayDisconnect: return (T)(Object)new TLPingDelayDisconnect(from);
- case TLTypes.DestroySession: return (T)(Object)new TLDestroySession(from);
- case TLTypes.RegisterSaveDeveloperInfo: return (T)(Object)new TLRegisterSaveDeveloperInfo(from);
- //case TLTypes.InvokeAfterMsg: return (T)(Object)new TLInvokeAfterMsg(from);
- //case TLTypes.InvokeAfterMsgs: return (T)(Object)new TLInvokeAfterMsgs(from);
- //case TLTypes.InitConnection: return (T)(Object)new TLInitConnection(from);
- //case TLTypes.InvokeWithLayer: return (T)(Object)new TLInvokeWithLayer(from);
- //case TLTypes.InvokeWithoutUpdates: return (T)(Object)new TLInvokeWithoutUpdates(from);
- case TLTypes.AuthCheckPhone: return (T)(Object)new TLAuthCheckPhone(from);
- case TLTypes.AuthSendCode: return (T)(Object)new TLAuthSendCode(from);
- case TLTypes.AuthSignUp: return (T)(Object)new TLAuthSignUp(from);
- case TLTypes.AuthSignIn: return (T)(Object)new TLAuthSignIn(from);
- case TLTypes.AuthLogOut: return (T)(Object)new TLAuthLogOut(from);
- case TLTypes.AuthResetAuthorizations: return (T)(Object)new TLAuthResetAuthorizations(from);
- case TLTypes.AuthSendInvites: return (T)(Object)new TLAuthSendInvites(from);
- case TLTypes.AuthExportAuthorization: return (T)(Object)new TLAuthExportAuthorization(from);
- case TLTypes.AuthImportAuthorization: return (T)(Object)new TLAuthImportAuthorization(from);
- case TLTypes.AuthBindTempAuthKey: return (T)(Object)new TLAuthBindTempAuthKey(from);
- case TLTypes.AuthImportBotAuthorization: return (T)(Object)new TLAuthImportBotAuthorization(from);
- case TLTypes.AuthCheckPassword: return (T)(Object)new TLAuthCheckPassword(from);
- case TLTypes.AuthRequestPasswordRecovery: return (T)(Object)new TLAuthRequestPasswordRecovery(from);
- case TLTypes.AuthRecoverPassword: return (T)(Object)new TLAuthRecoverPassword(from);
- case TLTypes.AuthResendCode: return (T)(Object)new TLAuthResendCode(from);
- case TLTypes.AuthCancelCode: return (T)(Object)new TLAuthCancelCode(from);
- case TLTypes.AccountRegisterDevice: return (T)(Object)new TLAccountRegisterDevice(from);
- case TLTypes.AccountUnregisterDevice: return (T)(Object)new TLAccountUnregisterDevice(from);
- case TLTypes.AccountUpdateNotifySettings: return (T)(Object)new TLAccountUpdateNotifySettings(from);
- case TLTypes.AccountGetNotifySettings: return (T)(Object)new TLAccountGetNotifySettings(from);
- case TLTypes.AccountResetNotifySettings: return (T)(Object)new TLAccountResetNotifySettings(from);
- case TLTypes.AccountUpdateProfile: return (T)(Object)new TLAccountUpdateProfile(from);
- case TLTypes.AccountUpdateStatus: return (T)(Object)new TLAccountUpdateStatus(from);
- case TLTypes.AccountGetWallPapers: return (T)(Object)new TLAccountGetWallPapers(from);
- case TLTypes.AccountReportPeer: return (T)(Object)new TLAccountReportPeer(from);
- case TLTypes.AccountCheckUsername: return (T)(Object)new TLAccountCheckUsername(from);
- case TLTypes.AccountUpdateUsername: return (T)(Object)new TLAccountUpdateUsername(from);
- case TLTypes.AccountGetPrivacy: return (T)(Object)new TLAccountGetPrivacy(from);
- case TLTypes.AccountSetPrivacy: return (T)(Object)new TLAccountSetPrivacy(from);
- case TLTypes.AccountDeleteAccount: return (T)(Object)new TLAccountDeleteAccount(from);
- case TLTypes.AccountGetAccountTTL: return (T)(Object)new TLAccountGetAccountTTL(from);
- case TLTypes.AccountSetAccountTTL: return (T)(Object)new TLAccountSetAccountTTL(from);
- case TLTypes.AccountSendChangePhoneCode: return (T)(Object)new TLAccountSendChangePhoneCode(from);
- case TLTypes.AccountChangePhone: return (T)(Object)new TLAccountChangePhone(from);
- case TLTypes.AccountUpdateDeviceLocked: return (T)(Object)new TLAccountUpdateDeviceLocked(from);
- case TLTypes.AccountGetAuthorizations: return (T)(Object)new TLAccountGetAuthorizations(from);
- case TLTypes.AccountResetAuthorization: return (T)(Object)new TLAccountResetAuthorization(from);
- case TLTypes.AccountGetPassword: return (T)(Object)new TLAccountGetPassword(from);
- case TLTypes.AccountGetPasswordSettings: return (T)(Object)new TLAccountGetPasswordSettings(from);
- case TLTypes.AccountUpdatePasswordSettings: return (T)(Object)new TLAccountUpdatePasswordSettings(from);
- case TLTypes.UsersGetUsers: return (T)(Object)new TLUsersGetUsers(from);
- case TLTypes.UsersGetFullUser: return (T)(Object)new TLUsersGetFullUser(from);
- case TLTypes.ContactsGetStatuses: return (T)(Object)new TLContactsGetStatuses(from);
- case TLTypes.ContactsGetContacts: return (T)(Object)new TLContactsGetContacts(from);
- case TLTypes.ContactsImportContacts: return (T)(Object)new TLContactsImportContacts(from);
- case TLTypes.ContactsDeleteContact: return (T)(Object)new TLContactsDeleteContact(from);
- case TLTypes.ContactsDeleteContacts: return (T)(Object)new TLContactsDeleteContacts(from);
- case TLTypes.ContactsBlock: return (T)(Object)new TLContactsBlock(from);
- case TLTypes.ContactsUnblock: return (T)(Object)new TLContactsUnblock(from);
- case TLTypes.ContactsGetBlocked: return (T)(Object)new TLContactsGetBlocked(from);
- case TLTypes.ContactsExportCard: return (T)(Object)new TLContactsExportCard(from);
- case TLTypes.ContactsImportCard: return (T)(Object)new TLContactsImportCard(from);
- case TLTypes.ContactsSearch: return (T)(Object)new TLContactsSearch(from);
- case TLTypes.ContactsResolveUsername: return (T)(Object)new TLContactsResolveUsername(from);
- case TLTypes.MessagesGetMessages: return (T)(Object)new TLMessagesGetMessages(from);
- case TLTypes.MessagesGetDialogs: return (T)(Object)new TLMessagesGetDialogs(from);
- case TLTypes.MessagesGetHistory: return (T)(Object)new TLMessagesGetHistory(from);
- case TLTypes.MessagesSearch: return (T)(Object)new TLMessagesSearch(from);
- case TLTypes.MessagesReadHistory: return (T)(Object)new TLMessagesReadHistory(from);
- case TLTypes.MessagesDeleteHistory: return (T)(Object)new TLMessagesDeleteHistory(from);
- case TLTypes.MessagesDeleteMessages: return (T)(Object)new TLMessagesDeleteMessages(from);
- case TLTypes.MessagesReceivedMessages: return (T)(Object)new TLMessagesReceivedMessages(from);
- case TLTypes.MessagesSetTyping: return (T)(Object)new TLMessagesSetTyping(from);
- case TLTypes.MessagesSendMessage: return (T)(Object)new TLMessagesSendMessage(from);
- case TLTypes.MessagesSendMedia: return (T)(Object)new TLMessagesSendMedia(from);
- case TLTypes.MessagesForwardMessages: return (T)(Object)new TLMessagesForwardMessages(from);
- case TLTypes.MessagesReportSpam: return (T)(Object)new TLMessagesReportSpam(from);
- case TLTypes.MessagesHideReportSpam: return (T)(Object)new TLMessagesHideReportSpam(from);
- case TLTypes.MessagesGetPeerSettings: return (T)(Object)new TLMessagesGetPeerSettings(from);
- case TLTypes.MessagesGetChats: return (T)(Object)new TLMessagesGetChats(from);
- case TLTypes.MessagesGetFullChat: return (T)(Object)new TLMessagesGetFullChat(from);
- case TLTypes.MessagesEditChatTitle: return (T)(Object)new TLMessagesEditChatTitle(from);
- case TLTypes.MessagesEditChatPhoto: return (T)(Object)new TLMessagesEditChatPhoto(from);
- case TLTypes.MessagesAddChatUser: return (T)(Object)new TLMessagesAddChatUser(from);
- case TLTypes.MessagesDeleteChatUser: return (T)(Object)new TLMessagesDeleteChatUser(from);
- case TLTypes.MessagesCreateChat: return (T)(Object)new TLMessagesCreateChat(from);
- case TLTypes.MessagesForwardMessage: return (T)(Object)new TLMessagesForwardMessage(from);
- case TLTypes.MessagesSendBroadcast: return (T)(Object)new TLMessagesSendBroadcast(from);
- case TLTypes.MessagesGetDhConfig: return (T)(Object)new TLMessagesGetDhConfig(from);
- case TLTypes.MessagesRequestEncryption: return (T)(Object)new TLMessagesRequestEncryption(from);
- case TLTypes.MessagesAcceptEncryption: return (T)(Object)new TLMessagesAcceptEncryption(from);
- case TLTypes.MessagesDiscardEncryption: return (T)(Object)new TLMessagesDiscardEncryption(from);
- case TLTypes.MessagesSetEncryptedTyping: return (T)(Object)new TLMessagesSetEncryptedTyping(from);
- case TLTypes.MessagesReadEncryptedHistory: return (T)(Object)new TLMessagesReadEncryptedHistory(from);
- case TLTypes.MessagesSendEncrypted: return (T)(Object)new TLMessagesSendEncrypted(from);
- case TLTypes.MessagesSendEncryptedFile: return (T)(Object)new TLMessagesSendEncryptedFile(from);
- case TLTypes.MessagesSendEncryptedService: return (T)(Object)new TLMessagesSendEncryptedService(from);
- case TLTypes.MessagesReceivedQueue: return (T)(Object)new TLMessagesReceivedQueue(from);
- case TLTypes.MessagesReadMessageContents: return (T)(Object)new TLMessagesReadMessageContents(from);
- case TLTypes.MessagesGetStickers: return (T)(Object)new TLMessagesGetStickers(from);
- case TLTypes.MessagesGetAllStickers: return (T)(Object)new TLMessagesGetAllStickers(from);
- case TLTypes.MessagesGetWebPagePreview: return (T)(Object)new TLMessagesGetWebPagePreview(from);
- case TLTypes.MessagesExportChatInvite: return (T)(Object)new TLMessagesExportChatInvite(from);
- case TLTypes.MessagesCheckChatInvite: return (T)(Object)new TLMessagesCheckChatInvite(from);
- case TLTypes.MessagesImportChatInvite: return (T)(Object)new TLMessagesImportChatInvite(from);
- case TLTypes.MessagesGetStickerSet: return (T)(Object)new TLMessagesGetStickerSet(from);
- case TLTypes.MessagesInstallStickerSet: return (T)(Object)new TLMessagesInstallStickerSet(from);
- case TLTypes.MessagesUninstallStickerSet: return (T)(Object)new TLMessagesUninstallStickerSet(from);
- case TLTypes.MessagesStartBot: return (T)(Object)new TLMessagesStartBot(from);
- case TLTypes.MessagesGetMessagesViews: return (T)(Object)new TLMessagesGetMessagesViews(from);
- case TLTypes.MessagesToggleChatAdmins: return (T)(Object)new TLMessagesToggleChatAdmins(from);
- case TLTypes.MessagesEditChatAdmin: return (T)(Object)new TLMessagesEditChatAdmin(from);
- case TLTypes.MessagesMigrateChat: return (T)(Object)new TLMessagesMigrateChat(from);
- case TLTypes.MessagesSearchGlobal: return (T)(Object)new TLMessagesSearchGlobal(from);
- case TLTypes.MessagesReorderStickerSets: return (T)(Object)new TLMessagesReorderStickerSets(from);
- case TLTypes.MessagesGetDocumentByHash: return (T)(Object)new TLMessagesGetDocumentByHash(from);
- case TLTypes.MessagesSearchGifs: return (T)(Object)new TLMessagesSearchGifs(from);
- case TLTypes.MessagesGetSavedGifs: return (T)(Object)new TLMessagesGetSavedGifs(from);
- case TLTypes.MessagesSaveGif: return (T)(Object)new TLMessagesSaveGif(from);
- case TLTypes.MessagesGetInlineBotResults: return (T)(Object)new TLMessagesGetInlineBotResults(from);
- case TLTypes.MessagesSetInlineBotResults: return (T)(Object)new TLMessagesSetInlineBotResults(from);
- case TLTypes.MessagesSendInlineBotResult: return (T)(Object)new TLMessagesSendInlineBotResult(from);
- case TLTypes.UpdatesGetState: return (T)(Object)new TLUpdatesGetState(from);
- case TLTypes.UpdatesGetDifference: return (T)(Object)new TLUpdatesGetDifference(from);
- case TLTypes.UpdatesGetChannelDifference: return (T)(Object)new TLUpdatesGetChannelDifference(from);
- case TLTypes.PhotosUpdateProfilePhoto: return (T)(Object)new TLPhotosUpdateProfilePhoto(from);
- case TLTypes.PhotosUploadProfilePhoto: return (T)(Object)new TLPhotosUploadProfilePhoto(from);
- case TLTypes.PhotosDeletePhotos: return (T)(Object)new TLPhotosDeletePhotos(from);
- case TLTypes.PhotosGetUserPhotos: return (T)(Object)new TLPhotosGetUserPhotos(from);
- case TLTypes.UploadSaveFilePart: return (T)(Object)new TLUploadSaveFilePart(from);
- case TLTypes.UploadGetFile: return (T)(Object)new TLUploadGetFile(from);
- case TLTypes.UploadSaveBigFilePart: return (T)(Object)new TLUploadSaveBigFilePart(from);
- case TLTypes.HelpGetConfig: return (T)(Object)new TLHelpGetConfig(from);
- case TLTypes.HelpGetNearestDc: return (T)(Object)new TLHelpGetNearestDc(from);
- case TLTypes.HelpGetAppUpdate: return (T)(Object)new TLHelpGetAppUpdate(from);
- case TLTypes.HelpSaveAppLog: return (T)(Object)new TLHelpSaveAppLog(from);
- case TLTypes.HelpGetInviteText: return (T)(Object)new TLHelpGetInviteText(from);
- case TLTypes.HelpGetSupport: return (T)(Object)new TLHelpGetSupport(from);
- case TLTypes.HelpGetAppChangelog: return (T)(Object)new TLHelpGetAppChangelog(from);
- case TLTypes.HelpGetTermsOfService: return (T)(Object)new TLHelpGetTermsOfService(from);
- case TLTypes.ChannelsGetDialogs: return (T)(Object)new TLChannelsGetDialogs(from);
- case TLTypes.ChannelsGetImportantHistory: return (T)(Object)new TLChannelsGetImportantHistory(from);
- case TLTypes.ChannelsReadHistory: return (T)(Object)new TLChannelsReadHistory(from);
- case TLTypes.ChannelsDeleteMessages: return (T)(Object)new TLChannelsDeleteMessages(from);
- case TLTypes.ChannelsDeleteUserHistory: return (T)(Object)new TLChannelsDeleteUserHistory(from);
- case TLTypes.ChannelsReportSpam: return (T)(Object)new TLChannelsReportSpam(from);
- case TLTypes.ChannelsGetMessages: return (T)(Object)new TLChannelsGetMessages(from);
- case TLTypes.ChannelsGetParticipants: return (T)(Object)new TLChannelsGetParticipants(from);
- case TLTypes.ChannelsGetParticipant: return (T)(Object)new TLChannelsGetParticipant(from);
- case TLTypes.ChannelsGetChannels: return (T)(Object)new TLChannelsGetChannels(from);
- case TLTypes.ChannelsGetFullChannel: return (T)(Object)new TLChannelsGetFullChannel(from);
- case TLTypes.ChannelsCreateChannel: return (T)(Object)new TLChannelsCreateChannel(from);
- case TLTypes.ChannelsEditAbout: return (T)(Object)new TLChannelsEditAbout(from);
- case TLTypes.ChannelsEditAdmin: return (T)(Object)new TLChannelsEditAdmin(from);
- case TLTypes.ChannelsEditTitle: return (T)(Object)new TLChannelsEditTitle(from);
- case TLTypes.ChannelsEditPhoto: return (T)(Object)new TLChannelsEditPhoto(from);
- case TLTypes.ChannelsToggleComments: return (T)(Object)new TLChannelsToggleComments(from);
- case TLTypes.ChannelsCheckUsername: return (T)(Object)new TLChannelsCheckUsername(from);
- case TLTypes.ChannelsUpdateUsername: return (T)(Object)new TLChannelsUpdateUsername(from);
- case TLTypes.ChannelsJoinChannel: return (T)(Object)new TLChannelsJoinChannel(from);
- case TLTypes.ChannelsLeaveChannel: return (T)(Object)new TLChannelsLeaveChannel(from);
- case TLTypes.ChannelsInviteToChannel: return (T)(Object)new TLChannelsInviteToChannel(from);
- case TLTypes.ChannelsKickFromChannel: return (T)(Object)new TLChannelsKickFromChannel(from);
- case TLTypes.ChannelsExportInvite: return (T)(Object)new TLChannelsExportInvite(from);
- case TLTypes.ChannelsDeleteChannel: return (T)(Object)new TLChannelsDeleteChannel(from);
- case TLTypes.ChannelsToggleInvites: return (T)(Object)new TLChannelsToggleInvites(from);
- case TLTypes.ChannelsExportMessageLink: return (T)(Object)new TLChannelsExportMessageLink(from);
- case TLTypes.ChannelsToggleSignatures: return (T)(Object)new TLChannelsToggleSignatures(from);
- case TLTypes.ChannelsGetMessageEditData: return (T)(Object)new TLChannelsGetMessageEditData(from);
- case TLTypes.ChannelsEditMessage: return (T)(Object)new TLChannelsEditMessage(from);
- case TLTypes.ChannelsUpdatePinnedMessage: return (T)(Object)new TLChannelsUpdatePinnedMessage(from);
- case TLTypes.ResPQ: return (T)(Object)new TLResPQ(from);
- case TLTypes.PQInnerData: return (T)(Object)new TLPQInnerData(from);
- case TLTypes.ServerDHParamsFail: return (T)(Object)new TLServerDHParamsFail(from);
- case TLTypes.ServerDHParamsOk: return (T)(Object)new TLServerDHParamsOk(from);
- case TLTypes.ServerDHInnerData: return (T)(Object)new TLServerDHInnerData(from);
- case TLTypes.ClientDHInnerData: return (T)(Object)new TLClientDHInnerData(from);
- case TLTypes.DHGenOk: return (T)(Object)new TLDHGenOk(from);
- case TLTypes.DHGenRetry: return (T)(Object)new TLDHGenRetry(from);
- case TLTypes.DHGenFail: return (T)(Object)new TLDHGenFail(from);
- case TLTypes.MsgsAck: return (T)(Object)new TLMsgsAck(from);
- case TLTypes.BadMsgNotification: return (T)(Object)new TLBadMsgNotificationSuper(from);
- case TLTypes.BadServerSalt: return (T)(Object)new TLBadServerSalt(from);
- case TLTypes.MsgsStateReq: return (T)(Object)new TLMsgsStateReq(from);
- case TLTypes.MsgsStateInfo: return (T)(Object)new TLMsgsStateInfo(from);
- case TLTypes.MsgsAllInfo: return (T)(Object)new TLMsgsAllInfo(from);
- case TLTypes.MsgDetailedInfo: return (T)(Object)new TLMsgDetailedInfoSuper(from);
- case TLTypes.MsgNewDetailedInfo: return (T)(Object)new TLMsgNewDetailedInfo(from);
- case TLTypes.MsgResendReq: return (T)(Object)new TLMsgResendReq(from);
- case TLTypes.RpcError: return (T)(Object)new TLRpcError(from);
- case TLTypes.RpcAnswerUnknown: return (T)(Object)new TLRpcAnswerUnknown(from);
- case TLTypes.RpcAnswerDroppedRunning: return (T)(Object)new TLRpcAnswerDroppedRunning(from);
- case TLTypes.RpcAnswerDropped: return (T)(Object)new TLRpcAnswerDropped(from);
- case TLTypes.FutureSalt: return (T)(Object)new TLFutureSalt(from);
- case TLTypes.FutureSalts: return (T)(Object)new TLFutureSalts(from);
- case TLTypes.Pong: return (T)(Object)new TLPong(from);
- case TLTypes.DestroySessionOk: return (T)(Object)new TLDestroySessionOk(from);
- case TLTypes.DestroySessionNone: return (T)(Object)new TLDestroySessionNone(from);
- case TLTypes.NewSessionCreated: return (T)(Object)new TLNewSessionCreated(from);
- case TLTypes.HttpWait: return (T)(Object)new TLHttpWait(from);
- case TLTypes.BoolFalse: return (T)(Object)new TLBoolFalse(from);
- case TLTypes.BoolTrue: return (T)(Object)new TLBoolTrue(from);
- case TLTypes.True: return (T)(Object)new TLTrue(from);
- case TLTypes.Error: return (T)(Object)new TLError(from);
- case TLTypes.Null: return (T)(Object)new TLNull(from);
- case TLTypes.InputPeerEmpty: return (T)(Object)new TLInputPeerEmpty(from);
- case TLTypes.InputPeerSelf: return (T)(Object)new TLInputPeerSelf(from);
- case TLTypes.InputPeerChat: return (T)(Object)new TLInputPeerChat(from);
- case TLTypes.InputPeerUser: return (T)(Object)new TLInputPeerUser(from);
- case TLTypes.InputPeerChannel: return (T)(Object)new TLInputPeerChannel(from);
- case TLTypes.InputUserEmpty: return (T)(Object)new TLInputUserEmpty(from);
- case TLTypes.InputUserSelf: return (T)(Object)new TLInputUserSelf(from);
- case TLTypes.InputUser: return (T)(Object)new TLInputUserSuper(from);
- case TLTypes.InputPhoneContact: return (T)(Object)new TLInputPhoneContact(from);
- case TLTypes.InputFile: return (T)(Object)new TLInputFileSuper(from);
- case TLTypes.InputFileBig: return (T)(Object)new TLInputFileBig(from);
- case TLTypes.InputMediaEmpty: return (T)(Object)new TLInputMediaEmpty(from);
- case TLTypes.InputMediaUploadedPhoto: return (T)(Object)new TLInputMediaUploadedPhoto(from);
- case TLTypes.InputMediaPhoto: return (T)(Object)new TLInputMediaPhoto(from);
- case TLTypes.InputMediaGeoPoint: return (T)(Object)new TLInputMediaGeoPoint(from);
- case TLTypes.InputMediaContact: return (T)(Object)new TLInputMediaContact(from);
- case TLTypes.InputMediaUploadedDocument: return (T)(Object)new TLInputMediaUploadedDocument(from);
- case TLTypes.InputMediaUploadedThumbDocument: return (T)(Object)new TLInputMediaUploadedThumbDocument(from);
- case TLTypes.InputMediaDocument: return (T)(Object)new TLInputMediaDocument(from);
- case TLTypes.InputMediaVenue: return (T)(Object)new TLInputMediaVenue(from);
- case TLTypes.InputMediaGifExternal: return (T)(Object)new TLInputMediaGifExternal(from);
- case TLTypes.InputChatPhotoEmpty: return (T)(Object)new TLInputChatPhotoEmpty(from);
- case TLTypes.InputChatUploadedPhoto: return (T)(Object)new TLInputChatUploadedPhoto(from);
- case TLTypes.InputChatPhoto: return (T)(Object)new TLInputChatPhotoSuper(from);
- case TLTypes.InputGeoPointEmpty: return (T)(Object)new TLInputGeoPointEmpty(from);
- case TLTypes.InputGeoPoint: return (T)(Object)new TLInputGeoPointSuper(from);
- case TLTypes.InputPhotoEmpty: return (T)(Object)new TLInputPhotoEmpty(from);
- case TLTypes.InputPhoto: return (T)(Object)new TLInputPhotoSuper(from);
- case TLTypes.InputFileLocation: return (T)(Object)new TLInputFileLocationSuper(from);
- case TLTypes.InputEncryptedFileLocation: return (T)(Object)new TLInputEncryptedFileLocation(from);
- case TLTypes.InputDocumentFileLocation: return (T)(Object)new TLInputDocumentFileLocation(from);
- case TLTypes.InputPhotoCropAuto: return (T)(Object)new TLInputPhotoCropAuto(from);
- case TLTypes.InputPhotoCrop: return (T)(Object)new TLInputPhotoCropSuper(from);
- case TLTypes.InputAppEvent: return (T)(Object)new TLInputAppEvent(from);
- case TLTypes.PeerUser: return (T)(Object)new TLPeerUser(from);
- case TLTypes.PeerChat: return (T)(Object)new TLPeerChat(from);
- case TLTypes.PeerChannel: return (T)(Object)new TLPeerChannel(from);
- case TLTypes.StorageFileUnknown: return (T)(Object)new TLStorageFileUnknown(from);
- case TLTypes.StorageFileJpeg: return (T)(Object)new TLStorageFileJpeg(from);
- case TLTypes.StorageFileGif: return (T)(Object)new TLStorageFileGif(from);
- case TLTypes.StorageFilePng: return (T)(Object)new TLStorageFilePng(from);
- case TLTypes.StorageFilePdf: return (T)(Object)new TLStorageFilePdf(from);
- case TLTypes.StorageFileMp3: return (T)(Object)new TLStorageFileMp3(from);
- case TLTypes.StorageFileMov: return (T)(Object)new TLStorageFileMov(from);
- case TLTypes.StorageFilePartial: return (T)(Object)new TLStorageFilePartial(from);
- case TLTypes.StorageFileMp4: return (T)(Object)new TLStorageFileMp4(from);
- case TLTypes.StorageFileWebp: return (T)(Object)new TLStorageFileWebp(from);
- case TLTypes.FileLocationUnavailable: return (T)(Object)new TLFileLocationUnavailable(from);
- case TLTypes.FileLocation: return (T)(Object)new TLFileLocationSuper(from);
- case TLTypes.UserEmpty: return (T)(Object)new TLUserEmpty(from);
- case TLTypes.User: return (T)(Object)new TLUserSuper(from);
- case TLTypes.UserProfilePhotoEmpty: return (T)(Object)new TLUserProfilePhotoEmpty(from);
- case TLTypes.UserProfilePhoto: return (T)(Object)new TLUserProfilePhotoSuper(from);
- case TLTypes.UserStatusEmpty: return (T)(Object)new TLUserStatusEmpty(from);
- case TLTypes.UserStatusOnline: return (T)(Object)new TLUserStatusOnline(from);
- case TLTypes.UserStatusOffline: return (T)(Object)new TLUserStatusOffline(from);
- case TLTypes.UserStatusRecently: return (T)(Object)new TLUserStatusRecently(from);
- case TLTypes.UserStatusLastWeek: return (T)(Object)new TLUserStatusLastWeek(from);
- case TLTypes.UserStatusLastMonth: return (T)(Object)new TLUserStatusLastMonth(from);
- case TLTypes.ChatEmpty: return (T)(Object)new TLChatEmpty(from);
- case TLTypes.Chat: return (T)(Object)new TLChatSuper(from);
- case TLTypes.ChatForbidden: return (T)(Object)new TLChatForbidden(from);
- case TLTypes.Channel: return (T)(Object)new TLChannel(from);
- case TLTypes.ChannelForbidden: return (T)(Object)new TLChannelForbidden(from);
- case TLTypes.ChatFull: return (T)(Object)new TLChatFullSuper(from);
- case TLTypes.ChannelFull: return (T)(Object)new TLChannelFull(from);
- case TLTypes.ChatParticipant: return (T)(Object)new TLChatParticipantSuper(from);
- case TLTypes.ChatParticipantCreator: return (T)(Object)new TLChatParticipantCreator(from);
- case TLTypes.ChatParticipantAdmin: return (T)(Object)new TLChatParticipantAdmin(from);
- case TLTypes.ChatParticipantsForbidden: return (T)(Object)new TLChatParticipantsForbidden(from);
- case TLTypes.ChatParticipants: return (T)(Object)new TLChatParticipantsSuper(from);
- case TLTypes.ChatPhotoEmpty: return (T)(Object)new TLChatPhotoEmpty(from);
- case TLTypes.ChatPhoto: return (T)(Object)new TLChatPhotoSuper(from);
- case TLTypes.MessageEmpty: return (T)(Object)new TLMessageEmpty(from);
- case TLTypes.Message: return (T)(Object)new TLMessageSuper(from);
- case TLTypes.MessageService: return (T)(Object)new TLMessageService(from);
- case TLTypes.MessageMediaEmpty: return (T)(Object)new TLMessageMediaEmpty(from);
- case TLTypes.MessageMediaPhoto: return (T)(Object)new TLMessageMediaPhoto(from);
- case TLTypes.MessageMediaGeo: return (T)(Object)new TLMessageMediaGeo(from);
- case TLTypes.MessageMediaContact: return (T)(Object)new TLMessageMediaContact(from);
- case TLTypes.MessageMediaUnsupported: return (T)(Object)new TLMessageMediaUnsupported(from);
- case TLTypes.MessageMediaDocument: return (T)(Object)new TLMessageMediaDocument(from);
- case TLTypes.MessageMediaWebPage: return (T)(Object)new TLMessageMediaWebPage(from);
- case TLTypes.MessageMediaVenue: return (T)(Object)new TLMessageMediaVenue(from);
- case TLTypes.MessageActionEmpty: return (T)(Object)new TLMessageActionEmpty(from);
- case TLTypes.MessageActionChatCreate: return (T)(Object)new TLMessageActionChatCreate(from);
- case TLTypes.MessageActionChatEditTitle: return (T)(Object)new TLMessageActionChatEditTitle(from);
- case TLTypes.MessageActionChatEditPhoto: return (T)(Object)new TLMessageActionChatEditPhoto(from);
- case TLTypes.MessageActionChatDeletePhoto: return (T)(Object)new TLMessageActionChatDeletePhoto(from);
- case TLTypes.MessageActionChatAddUser: return (T)(Object)new TLMessageActionChatAddUser(from);
- case TLTypes.MessageActionChatDeleteUser: return (T)(Object)new TLMessageActionChatDeleteUser(from);
- case TLTypes.MessageActionChatJoinedByLink: return (T)(Object)new TLMessageActionChatJoinedByLink(from);
- case TLTypes.MessageActionChannelCreate: return (T)(Object)new TLMessageActionChannelCreate(from);
- case TLTypes.MessageActionChatMigrateTo: return (T)(Object)new TLMessageActionChatMigrateTo(from);
- case TLTypes.MessageActionChannelMigrateFrom: return (T)(Object)new TLMessageActionChannelMigrateFrom(from);
- case TLTypes.MessageActionPinMessage: return (T)(Object)new TLMessageActionPinMessage(from);
- case TLTypes.Dialog: return (T)(Object)new TLDialogSuper(from);
- case TLTypes.DialogChannel: return (T)(Object)new TLDialogChannel(from);
- case TLTypes.PhotoEmpty: return (T)(Object)new TLPhotoEmpty(from);
- case TLTypes.Photo: return (T)(Object)new TLPhotoSuper(from);
- case TLTypes.PhotoSizeEmpty: return (T)(Object)new TLPhotoSizeEmpty(from);
- case TLTypes.PhotoSize: return (T)(Object)new TLPhotoSizeSuper(from);
- case TLTypes.PhotoCachedSize: return (T)(Object)new TLPhotoCachedSize(from);
- case TLTypes.GeoPointEmpty: return (T)(Object)new TLGeoPointEmpty(from);
- case TLTypes.GeoPoint: return (T)(Object)new TLGeoPointSuper(from);
- case TLTypes.AuthCheckedPhone: return (T)(Object)new TLAuthCheckedPhone(from);
- case TLTypes.AuthSentCode: return (T)(Object)new TLAuthSentCode(from);
- case TLTypes.AuthAuthorization: return (T)(Object)new TLAuthAuthorization(from);
- case TLTypes.AuthExportedAuthorization: return (T)(Object)new TLAuthExportedAuthorization(from);
- case TLTypes.InputNotifyPeer: return (T)(Object)new TLInputNotifyPeerSuper(from);
- case TLTypes.InputNotifyUsers: return (T)(Object)new TLInputNotifyUsers(from);
- case TLTypes.InputNotifyChats: return (T)(Object)new TLInputNotifyChats(from);
- case TLTypes.InputNotifyAll: return (T)(Object)new TLInputNotifyAll(from);
- case TLTypes.InputPeerNotifyEventsEmpty: return (T)(Object)new TLInputPeerNotifyEventsEmpty(from);
- case TLTypes.InputPeerNotifyEventsAll: return (T)(Object)new TLInputPeerNotifyEventsAll(from);
- case TLTypes.InputPeerNotifySettings: return (T)(Object)new TLInputPeerNotifySettings(from);
- case TLTypes.PeerNotifyEventsEmpty: return (T)(Object)new TLPeerNotifyEventsEmpty(from);
- case TLTypes.PeerNotifyEventsAll: return (T)(Object)new TLPeerNotifyEventsAll(from);
- case TLTypes.PeerNotifySettingsEmpty: return (T)(Object)new TLPeerNotifySettingsEmpty(from);
- case TLTypes.PeerNotifySettings: return (T)(Object)new TLPeerNotifySettingsSuper(from);
- case TLTypes.PeerSettings: return (T)(Object)new TLPeerSettings(from);
- case TLTypes.WallPaper: return (T)(Object)new TLWallPaperSuper(from);
- case TLTypes.WallPaperSolid: return (T)(Object)new TLWallPaperSolid(from);
- case TLTypes.InputReportReasonSpam: return (T)(Object)new TLInputReportReasonSpam(from);
- case TLTypes.InputReportReasonViolence: return (T)(Object)new TLInputReportReasonViolence(from);
- case TLTypes.InputReportReasonPornography: return (T)(Object)new TLInputReportReasonPornography(from);
- case TLTypes.InputReportReasonOther: return (T)(Object)new TLInputReportReasonOther(from);
- case TLTypes.UserFull: return (T)(Object)new TLUserFull(from);
- case TLTypes.Contact: return (T)(Object)new TLContact(from);
- case TLTypes.ImportedContact: return (T)(Object)new TLImportedContact(from);
- case TLTypes.ContactBlocked: return (T)(Object)new TLContactBlocked(from);
- case TLTypes.ContactStatus: return (T)(Object)new TLContactStatus(from);
- case TLTypes.ContactsLink: return (T)(Object)new TLContactsLink(from);
- case TLTypes.ContactsContactsNotModified: return (T)(Object)new TLContactsContactsNotModified(from);
- case TLTypes.ContactsContacts: return (T)(Object)new TLContactsContactsSuper(from);
- case TLTypes.ContactsImportedContacts: return (T)(Object)new TLContactsImportedContacts(from);
- case TLTypes.ContactsBlocked: return (T)(Object)new TLContactsBlockedSuper(from);
- case TLTypes.ContactsBlockedSlice: return (T)(Object)new TLContactsBlockedSlice(from);
- case TLTypes.MessagesDialogs: return (T)(Object)new TLMessagesDialogsSuper(from);
- case TLTypes.MessagesDialogsSlice: return (T)(Object)new TLMessagesDialogsSlice(from);
- case TLTypes.MessagesMessages: return (T)(Object)new TLMessagesMessagesSuper(from);
- case TLTypes.MessagesMessagesSlice: return (T)(Object)new TLMessagesMessagesSlice(from);
- case TLTypes.MessagesChannelMessages: return (T)(Object)new TLMessagesChannelMessages(from);
- case TLTypes.MessagesChats: return (T)(Object)new TLMessagesChats(from);
- case TLTypes.MessagesChatFull: return (T)(Object)new TLMessagesChatFull(from);
- case TLTypes.MessagesAffectedHistory: return (T)(Object)new TLMessagesAffectedHistory(from);
- case TLTypes.InputMessagesFilterEmpty: return (T)(Object)new TLInputMessagesFilterEmpty(from);
- case TLTypes.InputMessagesFilterPhotos: return (T)(Object)new TLInputMessagesFilterPhotos(from);
- case TLTypes.InputMessagesFilterVideo: return (T)(Object)new TLInputMessagesFilterVideo(from);
- case TLTypes.InputMessagesFilterPhotoVideo: return (T)(Object)new TLInputMessagesFilterPhotoVideo(from);
- case TLTypes.InputMessagesFilterPhotoVideoDocuments: return (T)(Object)new TLInputMessagesFilterPhotoVideoDocuments(from);
- case TLTypes.InputMessagesFilterDocument: return (T)(Object)new TLInputMessagesFilterDocument(from);
- case TLTypes.InputMessagesFilterUrl: return (T)(Object)new TLInputMessagesFilterUrl(from);
- case TLTypes.InputMessagesFilterGif: return (T)(Object)new TLInputMessagesFilterGif(from);
- case TLTypes.InputMessagesFilterVoice: return (T)(Object)new TLInputMessagesFilterVoice(from);
- case TLTypes.InputMessagesFilterMusic: return (T)(Object)new TLInputMessagesFilterMusic(from);
- case TLTypes.UpdateNewMessage: return (T)(Object)new TLUpdateNewMessage(from);
- case TLTypes.UpdateMessageID: return (T)(Object)new TLUpdateMessageID(from);
- case TLTypes.UpdateDeleteMessages: return (T)(Object)new TLUpdateDeleteMessages(from);
- case TLTypes.UpdateUserTyping: return (T)(Object)new TLUpdateUserTyping(from);
- case TLTypes.UpdateChatUserTyping: return (T)(Object)new TLUpdateChatUserTyping(from);
- case TLTypes.UpdateChatParticipants: return (T)(Object)new TLUpdateChatParticipants(from);
- case TLTypes.UpdateUserStatus: return (T)(Object)new TLUpdateUserStatus(from);
- case TLTypes.UpdateUserName: return (T)(Object)new TLUpdateUserName(from);
- case TLTypes.UpdateUserPhoto: return (T)(Object)new TLUpdateUserPhoto(from);
- case TLTypes.UpdateContactRegistered: return (T)(Object)new TLUpdateContactRegistered(from);
- case TLTypes.UpdateContactLink: return (T)(Object)new TLUpdateContactLink(from);
- case TLTypes.UpdateNewAuthorization: return (T)(Object)new TLUpdateNewAuthorization(from);
- case TLTypes.UpdateNewEncryptedMessage: return (T)(Object)new TLUpdateNewEncryptedMessage(from);
- case TLTypes.UpdateEncryptedChatTyping: return (T)(Object)new TLUpdateEncryptedChatTyping(from);
- case TLTypes.UpdateEncryption: return (T)(Object)new TLUpdateEncryption(from);
- case TLTypes.UpdateEncryptedMessagesRead: return (T)(Object)new TLUpdateEncryptedMessagesRead(from);
- case TLTypes.UpdateChatParticipantAdd: return (T)(Object)new TLUpdateChatParticipantAdd(from);
- case TLTypes.UpdateChatParticipantDelete: return (T)(Object)new TLUpdateChatParticipantDelete(from);
- case TLTypes.UpdateDcOptions: return (T)(Object)new TLUpdateDcOptions(from);
- case TLTypes.UpdateUserBlocked: return (T)(Object)new TLUpdateUserBlocked(from);
- case TLTypes.UpdateNotifySettings: return (T)(Object)new TLUpdateNotifySettings(from);
- case TLTypes.UpdateServiceNotification: return (T)(Object)new TLUpdateServiceNotification(from);
- case TLTypes.UpdatePrivacy: return (T)(Object)new TLUpdatePrivacy(from);
- case TLTypes.UpdateUserPhone: return (T)(Object)new TLUpdateUserPhone(from);
- case TLTypes.UpdateReadHistoryInbox: return (T)(Object)new TLUpdateReadHistoryInbox(from);
- case TLTypes.UpdateReadHistoryOutbox: return (T)(Object)new TLUpdateReadHistoryOutbox(from);
- case TLTypes.UpdateWebPage: return (T)(Object)new TLUpdateWebPage(from);
- case TLTypes.UpdateReadMessagesContents: return (T)(Object)new TLUpdateReadMessagesContents(from);
- case TLTypes.UpdateChannelTooLong: return (T)(Object)new TLUpdateChannelTooLong(from);
- case TLTypes.UpdateChannel: return (T)(Object)new TLUpdateChannel(from);
- case TLTypes.UpdateChannelGroup: return (T)(Object)new TLUpdateChannelGroup(from);
- case TLTypes.UpdateNewChannelMessage: return (T)(Object)new TLUpdateNewChannelMessage(from);
- case TLTypes.UpdateReadChannelInbox: return (T)(Object)new TLUpdateReadChannelInbox(from);
- case TLTypes.UpdateDeleteChannelMessages: return (T)(Object)new TLUpdateDeleteChannelMessages(from);
- case TLTypes.UpdateChannelMessageViews: return (T)(Object)new TLUpdateChannelMessageViews(from);
- case TLTypes.UpdateChatAdmins: return (T)(Object)new TLUpdateChatAdmins(from);
- case TLTypes.UpdateChatParticipantAdmin: return (T)(Object)new TLUpdateChatParticipantAdmin(from);
- case TLTypes.UpdateNewStickerSet: return (T)(Object)new TLUpdateNewStickerSet(from);
- case TLTypes.UpdateStickerSetsOrder: return (T)(Object)new TLUpdateStickerSetsOrder(from);
- case TLTypes.UpdateStickerSets: return (T)(Object)new TLUpdateStickerSets(from);
- case TLTypes.UpdateSavedGifs: return (T)(Object)new TLUpdateSavedGifs(from);
- case TLTypes.UpdateBotInlineQuery: return (T)(Object)new TLUpdateBotInlineQuery(from);
- case TLTypes.UpdateBotInlineSend: return (T)(Object)new TLUpdateBotInlineSend(from);
- case TLTypes.UpdateEditChannelMessage: return (T)(Object)new TLUpdateEditChannelMessage(from);
- case TLTypes.UpdateChannelPinnedMessage: return (T)(Object)new TLUpdateChannelPinnedMessage(from);
- case TLTypes.UpdatesState: return (T)(Object)new TLUpdatesState(from);
- case TLTypes.UpdatesDifferenceEmpty: return (T)(Object)new TLUpdatesDifferenceEmpty(from);
- case TLTypes.UpdatesDifference: return (T)(Object)new TLUpdatesDifferenceSuper(from);
- case TLTypes.UpdatesDifferenceSlice: return (T)(Object)new TLUpdatesDifferenceSlice(from);
- case TLTypes.UpdatesTooLong: return (T)(Object)new TLUpdatesTooLong(from);
- case TLTypes.UpdateShortMessage: return (T)(Object)new TLUpdateShortMessage(from);
- case TLTypes.UpdateShortChatMessage: return (T)(Object)new TLUpdateShortChatMessage(from);
- case TLTypes.UpdateShort: return (T)(Object)new TLUpdateShort(from);
- case TLTypes.UpdatesCombined: return (T)(Object)new TLUpdatesCombined(from);
- case TLTypes.Updates: return (T)(Object)new TLUpdatesSuper(from);
- case TLTypes.UpdateShortSentMessage: return (T)(Object)new TLUpdateShortSentMessage(from);
- case TLTypes.PhotosPhotos: return (T)(Object)new TLPhotosPhotosSuper(from);
- case TLTypes.PhotosPhotosSlice: return (T)(Object)new TLPhotosPhotosSlice(from);
- case TLTypes.PhotosPhoto: return (T)(Object)new TLPhotosPhoto(from);
- case TLTypes.UploadFile: return (T)(Object)new TLUploadFile(from);
- case TLTypes.DcOption: return (T)(Object)new TLDcOption(from);
- case TLTypes.Config: return (T)(Object)new TLConfig(from);
- case TLTypes.NearestDc: return (T)(Object)new TLNearestDc(from);
- case TLTypes.HelpAppUpdate: return (T)(Object)new TLHelpAppUpdateSuper(from);
- case TLTypes.HelpNoAppUpdate: return (T)(Object)new TLHelpNoAppUpdate(from);
- case TLTypes.HelpInviteText: return (T)(Object)new TLHelpInviteText(from);
- case TLTypes.EncryptedChatEmpty: return (T)(Object)new TLEncryptedChatEmpty(from);
- case TLTypes.EncryptedChatWaiting: return (T)(Object)new TLEncryptedChatWaiting(from);
- case TLTypes.EncryptedChatRequested: return (T)(Object)new TLEncryptedChatRequested(from);
- case TLTypes.EncryptedChat: return (T)(Object)new TLEncryptedChatSuper(from);
- case TLTypes.EncryptedChatDiscarded: return (T)(Object)new TLEncryptedChatDiscarded(from);
- case TLTypes.InputEncryptedChat: return (T)(Object)new TLInputEncryptedChat(from);
- case TLTypes.EncryptedFileEmpty: return (T)(Object)new TLEncryptedFileEmpty(from);
- case TLTypes.EncryptedFile: return (T)(Object)new TLEncryptedFileSuper(from);
- case TLTypes.InputEncryptedFileEmpty: return (T)(Object)new TLInputEncryptedFileEmpty(from);
- case TLTypes.InputEncryptedFileUploaded: return (T)(Object)new TLInputEncryptedFileUploaded(from);
- case TLTypes.InputEncryptedFile: return (T)(Object)new TLInputEncryptedFileSuper(from);
- case TLTypes.InputEncryptedFileBigUploaded: return (T)(Object)new TLInputEncryptedFileBigUploaded(from);
- case TLTypes.EncryptedMessage: return (T)(Object)new TLEncryptedMessageSuper(from);
- case TLTypes.EncryptedMessageService: return (T)(Object)new TLEncryptedMessageService(from);
- case TLTypes.MessagesDHConfigNotModified: return (T)(Object)new TLMessagesDHConfigNotModified(from);
- case TLTypes.MessagesDHConfig: return (T)(Object)new TLMessagesDHConfigSuper(from);
- case TLTypes.MessagesSentEncryptedMessage: return (T)(Object)new TLMessagesSentEncryptedMessageSuper(from);
- case TLTypes.MessagesSentEncryptedFile: return (T)(Object)new TLMessagesSentEncryptedFile(from);
- case TLTypes.InputDocumentEmpty: return (T)(Object)new TLInputDocumentEmpty(from);
- case TLTypes.InputDocument: return (T)(Object)new TLInputDocumentSuper(from);
- case TLTypes.DocumentEmpty: return (T)(Object)new TLDocumentEmpty(from);
- case TLTypes.Document: return (T)(Object)new TLDocumentSuper(from);
- case TLTypes.HelpSupport: return (T)(Object)new TLHelpSupport(from);
- case TLTypes.NotifyPeer: return (T)(Object)new TLNotifyPeerSuper(from);
- case TLTypes.NotifyUsers: return (T)(Object)new TLNotifyUsers(from);
- case TLTypes.NotifyChats: return (T)(Object)new TLNotifyChats(from);
- case TLTypes.NotifyAll: return (T)(Object)new TLNotifyAll(from);
- case TLTypes.SendMessageTypingAction: return (T)(Object)new TLSendMessageTypingAction(from);
- case TLTypes.SendMessageCancelAction: return (T)(Object)new TLSendMessageCancelAction(from);
- case TLTypes.SendMessageRecordVideoAction: return (T)(Object)new TLSendMessageRecordVideoAction(from);
- case TLTypes.SendMessageUploadVideoAction: return (T)(Object)new TLSendMessageUploadVideoAction(from);
- case TLTypes.SendMessageRecordAudioAction: return (T)(Object)new TLSendMessageRecordAudioAction(from);
- case TLTypes.SendMessageUploadAudioAction: return (T)(Object)new TLSendMessageUploadAudioAction(from);
- case TLTypes.SendMessageUploadPhotoAction: return (T)(Object)new TLSendMessageUploadPhotoAction(from);
- case TLTypes.SendMessageUploadDocumentAction: return (T)(Object)new TLSendMessageUploadDocumentAction(from);
- case TLTypes.SendMessageGeoLocationAction: return (T)(Object)new TLSendMessageGeoLocationAction(from);
- case TLTypes.SendMessageChooseContactAction: return (T)(Object)new TLSendMessageChooseContactAction(from);
- case TLTypes.ContactsFound: return (T)(Object)new TLContactsFound(from);
- case TLTypes.InputPrivacyKeyStatusTimestamp: return (T)(Object)new TLInputPrivacyKeyStatusTimestamp(from);
- case TLTypes.InputPrivacyKeyChatInvite: return (T)(Object)new TLInputPrivacyKeyChatInvite(from);
- case TLTypes.PrivacyKeyStatusTimestamp: return (T)(Object)new TLPrivacyKeyStatusTimestamp(from);
- case TLTypes.PrivacyKeyChatInvite: return (T)(Object)new TLPrivacyKeyChatInvite(from);
- case TLTypes.InputPrivacyValueAllowContacts: return (T)(Object)new TLInputPrivacyValueAllowContacts(from);
- case TLTypes.InputPrivacyValueAllowAll: return (T)(Object)new TLInputPrivacyValueAllowAll(from);
- case TLTypes.InputPrivacyValueAllowUsers: return (T)(Object)new TLInputPrivacyValueAllowUsers(from);
- case TLTypes.InputPrivacyValueDisallowContacts: return (T)(Object)new TLInputPrivacyValueDisallowContacts(from);
- case TLTypes.InputPrivacyValueDisallowAll: return (T)(Object)new TLInputPrivacyValueDisallowAll(from);
- case TLTypes.InputPrivacyValueDisallowUsers: return (T)(Object)new TLInputPrivacyValueDisallowUsers(from);
- case TLTypes.PrivacyValueAllowContacts: return (T)(Object)new TLPrivacyValueAllowContacts(from);
- case TLTypes.PrivacyValueAllowAll: return (T)(Object)new TLPrivacyValueAllowAll(from);
- case TLTypes.PrivacyValueAllowUsers: return (T)(Object)new TLPrivacyValueAllowUsers(from);
- case TLTypes.PrivacyValueDisallowContacts: return (T)(Object)new TLPrivacyValueDisallowContacts(from);
- case TLTypes.PrivacyValueDisallowAll: return (T)(Object)new TLPrivacyValueDisallowAll(from);
- case TLTypes.PrivacyValueDisallowUsers: return (T)(Object)new TLPrivacyValueDisallowUsers(from);
- case TLTypes.AccountPrivacyRules: return (T)(Object)new TLAccountPrivacyRules(from);
- case TLTypes.AccountDaysTTL: return (T)(Object)new TLAccountDaysTTL(from);
- case TLTypes.DocumentAttributeImageSize: return (T)(Object)new TLDocumentAttributeImageSize(from);
- case TLTypes.DocumentAttributeAnimated: return (T)(Object)new TLDocumentAttributeAnimated(from);
- case TLTypes.DocumentAttributeSticker: return (T)(Object)new TLDocumentAttributeSticker(from);
- case TLTypes.DocumentAttributeVideo: return (T)(Object)new TLDocumentAttributeVideo(from);
- case TLTypes.DocumentAttributeAudio: return (T)(Object)new TLDocumentAttributeAudio(from);
- case TLTypes.DocumentAttributeFilename: return (T)(Object)new TLDocumentAttributeFilename(from);
- case TLTypes.MessagesStickersNotModified: return (T)(Object)new TLMessagesStickersNotModified(from);
- case TLTypes.MessagesStickers: return (T)(Object)new TLMessagesStickersSuper(from);
- case TLTypes.StickerPack: return (T)(Object)new TLStickerPack(from);
- case TLTypes.MessagesAllStickersNotModified: return (T)(Object)new TLMessagesAllStickersNotModified(from);
- case TLTypes.MessagesAllStickers: return (T)(Object)new TLMessagesAllStickersSuper(from);
- case TLTypes.DisabledFeature: return (T)(Object)new TLDisabledFeature(from);
- case TLTypes.MessagesAffectedMessages: return (T)(Object)new TLMessagesAffectedMessages(from);
- case TLTypes.ContactLinkUnknown: return (T)(Object)new TLContactLinkUnknown(from);
- case TLTypes.ContactLinkNone: return (T)(Object)new TLContactLinkNone(from);
- case TLTypes.ContactLinkHasPhone: return (T)(Object)new TLContactLinkHasPhone(from);
- case TLTypes.ContactLinkContact: return (T)(Object)new TLContactLinkContact(from);
- case TLTypes.WebPageEmpty: return (T)(Object)new TLWebPageEmpty(from);
- case TLTypes.WebPagePending: return (T)(Object)new TLWebPagePending(from);
- case TLTypes.WebPage: return (T)(Object)new TLWebPageSuper(from);
- case TLTypes.Authorization: return (T)(Object)new TLAuthorization(from);
- case TLTypes.AccountAuthorizations: return (T)(Object)new TLAccountAuthorizations(from);
- case TLTypes.AccountNoPassword: return (T)(Object)new TLAccountNoPassword(from);
- case TLTypes.AccountPassword: return (T)(Object)new TLAccountPasswordSuper(from);
- case TLTypes.AccountPasswordSettings: return (T)(Object)new TLAccountPasswordSettings(from);
- case TLTypes.AccountPasswordInputSettings: return (T)(Object)new TLAccountPasswordInputSettings(from);
- case TLTypes.AuthPasswordRecovery: return (T)(Object)new TLAuthPasswordRecovery(from);
- case TLTypes.ReceivedNotifyMessage: return (T)(Object)new TLReceivedNotifyMessage(from);
- case TLTypes.ChatInviteEmpty: return (T)(Object)new TLChatInviteEmpty(from);
- case TLTypes.ChatInviteExported: return (T)(Object)new TLChatInviteExported(from);
- case TLTypes.ChatInviteAlready: return (T)(Object)new TLChatInviteAlready(from);
- case TLTypes.ChatInvite: return (T)(Object)new TLChatInviteSuper(from);
- case TLTypes.InputStickerSetEmpty: return (T)(Object)new TLInputStickerSetEmpty(from);
- case TLTypes.InputStickerSetID: return (T)(Object)new TLInputStickerSetID(from);
- case TLTypes.InputStickerSetShortName: return (T)(Object)new TLInputStickerSetShortName(from);
- case TLTypes.StickerSet: return (T)(Object)new TLStickerSet(from);
- case TLTypes.MessagesStickerSet: return (T)(Object)new TLMessagesStickerSet(from);
- case TLTypes.BotCommand: return (T)(Object)new TLBotCommand(from);
- case TLTypes.BotInfo: return (T)(Object)new TLBotInfo(from);
- case TLTypes.KeyboardButton: return (T)(Object)new TLKeyboardButton(from);
- case TLTypes.KeyboardButtonRow: return (T)(Object)new TLKeyboardButtonRow(from);
- case TLTypes.ReplyKeyboardHide: return (T)(Object)new TLReplyKeyboardHide(from);
- case TLTypes.ReplyKeyboardForceReply: return (T)(Object)new TLReplyKeyboardForceReply(from);
- case TLTypes.ReplyKeyboardMarkup: return (T)(Object)new TLReplyKeyboardMarkup(from);
- case TLTypes.HelpAppChangelogEmpty: return (T)(Object)new TLHelpAppChangelogEmpty(from);
- case TLTypes.HelpAppChangelog: return (T)(Object)new TLHelpAppChangelogSuper(from);
- case TLTypes.MessageEntityUnknown: return (T)(Object)new TLMessageEntityUnknown(from);
- case TLTypes.MessageEntityMention: return (T)(Object)new TLMessageEntityMention(from);
- case TLTypes.MessageEntityHashtag: return (T)(Object)new TLMessageEntityHashtag(from);
- case TLTypes.MessageEntityBotCommand: return (T)(Object)new TLMessageEntityBotCommand(from);
- case TLTypes.MessageEntityUrl: return (T)(Object)new TLMessageEntityUrl(from);
- case TLTypes.MessageEntityEmail: return (T)(Object)new TLMessageEntityEmail(from);
- case TLTypes.MessageEntityBold: return (T)(Object)new TLMessageEntityBold(from);
- case TLTypes.MessageEntityItalic: return (T)(Object)new TLMessageEntityItalic(from);
- case TLTypes.MessageEntityCode: return (T)(Object)new TLMessageEntityCode(from);
- case TLTypes.MessageEntityPre: return (T)(Object)new TLMessageEntityPre(from);
- case TLTypes.MessageEntityTextUrl: return (T)(Object)new TLMessageEntityTextUrl(from);
- case TLTypes.InputChannelEmpty: return (T)(Object)new TLInputChannelEmpty(from);
- case TLTypes.InputChannel: return (T)(Object)new TLInputChannelSuper(from);
- case TLTypes.ContactsResolvedPeer: return (T)(Object)new TLContactsResolvedPeer(from);
- case TLTypes.MessageRange: return (T)(Object)new TLMessageRange(from);
- case TLTypes.MessageGroup: return (T)(Object)new TLMessageGroup(from);
- case TLTypes.UpdatesChannelDifferenceEmpty: return (T)(Object)new TLUpdatesChannelDifferenceEmpty(from);
- case TLTypes.UpdatesChannelDifferenceTooLong: return (T)(Object)new TLUpdatesChannelDifferenceTooLong(from);
- case TLTypes.UpdatesChannelDifference: return (T)(Object)new TLUpdatesChannelDifferenceSuper(from);
- case TLTypes.ChannelMessagesFilterEmpty: return (T)(Object)new TLChannelMessagesFilterEmpty(from);
- case TLTypes.ChannelMessagesFilter: return (T)(Object)new TLChannelMessagesFilterSuper(from);
- case TLTypes.ChannelMessagesFilterCollapsed: return (T)(Object)new TLChannelMessagesFilterCollapsed(from);
- case TLTypes.ChannelParticipant: return (T)(Object)new TLChannelParticipantSuper(from);
- case TLTypes.ChannelParticipantSelf: return (T)(Object)new TLChannelParticipantSelf(from);
- case TLTypes.ChannelParticipantModerator: return (T)(Object)new TLChannelParticipantModerator(from);
- case TLTypes.ChannelParticipantEditor: return (T)(Object)new TLChannelParticipantEditor(from);
- case TLTypes.ChannelParticipantKicked: return (T)(Object)new TLChannelParticipantKicked(from);
- case TLTypes.ChannelParticipantCreator: return (T)(Object)new TLChannelParticipantCreator(from);
- case TLTypes.ChannelParticipantsRecent: return (T)(Object)new TLChannelParticipantsRecent(from);
- case TLTypes.ChannelParticipantsAdmins: return (T)(Object)new TLChannelParticipantsAdmins(from);
- case TLTypes.ChannelParticipantsKicked: return (T)(Object)new TLChannelParticipantsKicked(from);
- case TLTypes.ChannelParticipantsBots: return (T)(Object)new TLChannelParticipantsBots(from);
- case TLTypes.ChannelRoleEmpty: return (T)(Object)new TLChannelRoleEmpty(from);
- case TLTypes.ChannelRoleModerator: return (T)(Object)new TLChannelRoleModerator(from);
- case TLTypes.ChannelRoleEditor: return (T)(Object)new TLChannelRoleEditor(from);
- case TLTypes.ChannelsChannelParticipants: return (T)(Object)new TLChannelsChannelParticipants(from);
- case TLTypes.ChannelsChannelParticipant: return (T)(Object)new TLChannelsChannelParticipant(from);
- case TLTypes.HelpTermsOfService: return (T)(Object)new TLHelpTermsOfService(from);
- case TLTypes.FoundGif: return (T)(Object)new TLFoundGifSuper(from);
- case TLTypes.FoundGifCached: return (T)(Object)new TLFoundGifCached(from);
- case TLTypes.MessagesFoundGifs: return (T)(Object)new TLMessagesFoundGifs(from);
- case TLTypes.MessagesSavedGifsNotModified: return (T)(Object)new TLMessagesSavedGifsNotModified(from);
- case TLTypes.MessagesSavedGifs: return (T)(Object)new TLMessagesSavedGifsSuper(from);
- case TLTypes.InputBotInlineMessageMediaAuto: return (T)(Object)new TLInputBotInlineMessageMediaAuto(from);
- case TLTypes.InputBotInlineMessageText: return (T)(Object)new TLInputBotInlineMessageText(from);
- case TLTypes.InputBotInlineResult: return (T)(Object)new TLInputBotInlineResult(from);
- case TLTypes.BotInlineMessageMediaAuto: return (T)(Object)new TLBotInlineMessageMediaAuto(from);
- case TLTypes.BotInlineMessageText: return (T)(Object)new TLBotInlineMessageText(from);
- case TLTypes.BotInlineMediaResultDocument: return (T)(Object)new TLBotInlineMediaResultDocument(from);
- case TLTypes.BotInlineMediaResultPhoto: return (T)(Object)new TLBotInlineMediaResultPhoto(from);
- case TLTypes.BotInlineResult: return (T)(Object)new TLBotInlineResultSuper(from);
- case TLTypes.MessagesBotResults: return (T)(Object)new TLMessagesBotResults(from);
- case TLTypes.ExportedMessageLink: return (T)(Object)new TLExportedMessageLink(from);
- case TLTypes.MessageFwdHeader: return (T)(Object)new TLMessageFwdHeader(from);
- case TLTypes.ChannelsMessageEditData: return (T)(Object)new TLChannelsMessageEditData(from);
- case TLTypes.AuthCodeTypeSms: return (T)(Object)new TLAuthCodeTypeSms(from);
- case TLTypes.AuthCodeTypeCall: return (T)(Object)new TLAuthCodeTypeCall(from);
- case TLTypes.AuthCodeTypeFlashCall: return (T)(Object)new TLAuthCodeTypeFlashCall(from);
- case TLTypes.AuthSentCodeTypeApp: return (T)(Object)new TLAuthSentCodeTypeApp(from);
- case TLTypes.AuthSentCodeTypeSms: return (T)(Object)new TLAuthSentCodeTypeSms(from);
- case TLTypes.AuthSentCodeTypeCall: return (T)(Object)new TLAuthSentCodeTypeCall(from);
- case TLTypes.AuthSentCodeTypeFlashCall: return (T)(Object)new TLAuthSentCodeTypeFlashCall(from);
- default: throw new InvalidOperationException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement