From 6af7c66a81f30423e81f0fa68c69e3b8efb9621c Mon Sep 17 00:00:00 2001 From: Afshin Arani Date: Sat, 24 Sep 2016 17:08:26 +0330 Subject: [PATCH] Redesign Everything --- .gitignore | 1 - TLSharp.Core/Network/MtProtoSender.cs | 25 +- TLSharp.Core/Requests/AckRequest.cs | 20 +- TLSharp.Core/Session.cs | 14 +- TLSharp.Core/TLSharp.Core.csproj | 19 +- TLSharp.Core/TelegramClient.cs | 316 ++------ TLSharp.Core/packages.config | 2 - TLSharp.Tests/Properties/AssemblyInfo.cs | 36 + TLSharp.Tests/TLSharp.Tests.csproj | 98 +++ TLSharp.Tests/TLSharpTests.cs | 111 +++ TLSharp.Tests/app.config | 11 + TLSharp.Tests/data/cat.jpg | Bin 0 -> 20780 bytes TLSharp.Tests/packages.config | 3 + TLSharp.sln | 18 + TeleSharp.Generator/App.config | 6 + TeleSharp.Generator/Constructor.tmp | 39 + TeleSharp.Generator/ConstructorAbs.tmp | 13 + TeleSharp.Generator/Method.tmp | 43 + TeleSharp.Generator/Models.cs | 36 + TeleSharp.Generator/Program.cs | 433 ++++++++++ .../Properties/AssemblyInfo.cs | 36 + .../TeleSharp.Generator.csproj | 80 ++ TeleSharp.Generator/packages.config | 4 + TeleSharp.TL/ObjectDeserializer.cs | 50 ++ TeleSharp.TL/Properties/AssemblyInfo.cs | 36 + TeleSharp.TL/TL/Account/TLAbsPassword.cs | 13 + TeleSharp.TL/TL/Account/TLAuthorizations.cs | 42 + TeleSharp.TL/TL/Account/TLNoPassword.cs | 45 ++ TeleSharp.TL/TL/Account/TLPassword.cs | 54 ++ .../TL/Account/TLPasswordInputSettings.cs | 80 ++ TeleSharp.TL/TL/Account/TLPasswordSettings.cs | 42 + TeleSharp.TL/TL/Account/TLPrivacyRules.cs | 45 ++ .../TL/Account/TLRequestChangePhone.cs | 54 ++ .../TL/Account/TLRequestCheckUsername.cs | 48 ++ .../TL/Account/TLRequestDeleteAccount.cs | 48 ++ .../TL/Account/TLRequestGetAccountTTL.cs | 45 ++ .../TL/Account/TLRequestGetAuthorizations.cs | 45 ++ .../TL/Account/TLRequestGetNotifySettings.cs | 48 ++ .../TL/Account/TLRequestGetPassword.cs | 45 ++ .../Account/TLRequestGetPasswordSettings.cs | 48 ++ .../TL/Account/TLRequestGetPrivacy.cs | 48 ++ .../TL/Account/TLRequestGetWallPapers.cs | 45 ++ .../TL/Account/TLRequestRegisterDevice.cs | 51 ++ .../TL/Account/TLRequestReportPeer.cs | 51 ++ .../TL/Account/TLRequestResetAuthorization.cs | 48 ++ .../Account/TLRequestResetNotifySettings.cs | 45 ++ .../Account/TLRequestSendChangePhoneCode.cs | 66 ++ .../TL/Account/TLRequestSetAccountTTL.cs | 48 ++ .../TL/Account/TLRequestSetPrivacy.cs | 51 ++ .../TL/Account/TLRequestUnregisterDevice.cs | 51 ++ .../TL/Account/TLRequestUpdateDeviceLocked.cs | 48 ++ .../Account/TLRequestUpdateNotifySettings.cs | 51 ++ .../TLRequestUpdatePasswordSettings.cs | 51 ++ .../TL/Account/TLRequestUpdateProfile.cs | 77 ++ .../TL/Account/TLRequestUpdateStatus.cs | 48 ++ .../TL/Account/TLRequestUpdateUsername.cs | 48 ++ TeleSharp.TL/TL/Auth/TLAbsCodeType.cs | 13 + TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs | 13 + TeleSharp.TL/TL/Auth/TLAuthorization.cs | 42 + TeleSharp.TL/TL/Auth/TLCheckedPhone.cs | 42 + TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs | 39 + TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs | 39 + TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs | 39 + .../TL/Auth/TLExportedAuthorization.cs | 45 ++ TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs | 42 + .../TL/Auth/TLRequestBindTempAuthKey.cs | 57 ++ TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs | 51 ++ .../TL/Auth/TLRequestCheckPassword.cs | 48 ++ TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs | 48 ++ .../TL/Auth/TLRequestExportAuthorization.cs | 48 ++ .../TL/Auth/TLRequestImportAuthorization.cs | 51 ++ .../Auth/TLRequestImportBotAuthorization.cs | 59 ++ TeleSharp.TL/TL/Auth/TLRequestLogOut.cs | 45 ++ .../TL/Auth/TLRequestRecoverPassword.cs | 48 ++ .../Auth/TLRequestRequestPasswordRecovery.cs | 45 ++ TeleSharp.TL/TL/Auth/TLRequestResendCode.cs | 51 ++ .../TL/Auth/TLRequestResetAuthorizations.cs | 45 ++ TeleSharp.TL/TL/Auth/TLRequestSendCode.cs | 72 ++ TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs | 51 ++ TeleSharp.TL/TL/Auth/TLRequestSignIn.cs | 54 ++ TeleSharp.TL/TL/Auth/TLRequestSignUp.cs | 60 ++ TeleSharp.TL/TL/Auth/TLSentCode.cs | 72 ++ TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs | 42 + TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs | 42 + .../TL/Auth/TLSentCodeTypeFlashCall.cs | 42 + TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs | 42 + .../TL/Channels/TLChannelParticipant.cs | 45 ++ .../TL/Channels/TLChannelParticipants.cs | 48 ++ .../TL/Channels/TLRequestCheckUsername.cs | 51 ++ .../TL/Channels/TLRequestCreateChannel.cs | 64 ++ .../TL/Channels/TLRequestDeleteChannel.cs | 48 ++ .../TL/Channels/TLRequestDeleteMessages.cs | 51 ++ .../TL/Channels/TLRequestDeleteUserHistory.cs | 51 ++ .../TL/Channels/TLRequestEditAbout.cs | 51 ++ .../TL/Channels/TLRequestEditAdmin.cs | 54 ++ .../TL/Channels/TLRequestEditPhoto.cs | 51 ++ .../TL/Channels/TLRequestEditTitle.cs | 51 ++ .../TL/Channels/TLRequestExportInvite.cs | 48 ++ .../TL/Channels/TLRequestExportMessageLink.cs | 51 ++ .../TL/Channels/TLRequestGetChannels.cs | 48 ++ .../TL/Channels/TLRequestGetFullChannel.cs | 48 ++ .../TL/Channels/TLRequestGetMessages.cs | 51 ++ .../TL/Channels/TLRequestGetParticipant.cs | 51 ++ .../TL/Channels/TLRequestGetParticipants.cs | 57 ++ .../TL/Channels/TLRequestInviteToChannel.cs | 51 ++ .../TL/Channels/TLRequestJoinChannel.cs | 48 ++ .../TL/Channels/TLRequestKickFromChannel.cs | 54 ++ .../TL/Channels/TLRequestLeaveChannel.cs | 48 ++ .../TL/Channels/TLRequestReadHistory.cs | 51 ++ .../TL/Channels/TLRequestReportSpam.cs | 54 ++ .../TL/Channels/TLRequestToggleInvites.cs | 51 ++ .../TL/Channels/TLRequestToggleSignatures.cs | 51 ++ .../Channels/TLRequestUpdatePinnedMessage.cs | 60 ++ .../TL/Channels/TLRequestUpdateUsername.cs | 51 ++ TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs | 13 + TeleSharp.TL/TL/Contacts/TLAbsContacts.cs | 13 + TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs | 13 + TeleSharp.TL/TL/Contacts/TLBlocked.cs | 45 ++ TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLContacts.cs | 45 ++ .../TL/Contacts/TLContactsNotModified.cs | 39 + TeleSharp.TL/TL/Contacts/TLFound.cs | 48 ++ .../TL/Contacts/TLImportedContacts.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLLink.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLRequestBlock.cs | 48 ++ .../TL/Contacts/TLRequestDeleteContact.cs | 48 ++ .../TL/Contacts/TLRequestDeleteContacts.cs | 48 ++ .../TL/Contacts/TLRequestExportCard.cs | 45 ++ .../TL/Contacts/TLRequestGetBlocked.cs | 51 ++ .../TL/Contacts/TLRequestGetContacts.cs | 48 ++ .../TL/Contacts/TLRequestGetStatuses.cs | 45 ++ .../TL/Contacts/TLRequestGetTopPeers.cs | 79 ++ .../TL/Contacts/TLRequestImportCard.cs | 48 ++ .../TL/Contacts/TLRequestImportContacts.cs | 51 ++ .../Contacts/TLRequestResetTopPeerRating.cs | 51 ++ .../TL/Contacts/TLRequestResolveUsername.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLRequestSearch.cs | 51 ++ TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs | 48 ++ TeleSharp.TL/TL/Contacts/TLTopPeers.cs | 48 ++ .../TL/Contacts/TLTopPeersNotModified.cs | 39 + TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs | 13 + TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs | 13 + TeleSharp.TL/TL/Help/TLAppChangelog.cs | 42 + TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs | 39 + TeleSharp.TL/TL/Help/TLAppUpdate.cs | 51 ++ TeleSharp.TL/TL/Help/TLInviteText.cs | 42 + TeleSharp.TL/TL/Help/TLNoAppUpdate.cs | 39 + .../TL/Help/TLRequestGetAppChangelog.cs | 45 ++ TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs | 45 ++ TeleSharp.TL/TL/Help/TLRequestGetConfig.cs | 45 ++ .../TL/Help/TLRequestGetInviteText.cs | 45 ++ TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs | 45 ++ TeleSharp.TL/TL/Help/TLRequestGetSupport.cs | 45 ++ .../TL/Help/TLRequestGetTermsOfService.cs | 45 ++ TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs | 48 ++ TeleSharp.TL/TL/Help/TLSupport.cs | 45 ++ TeleSharp.TL/TL/Help/TLTermsOfService.cs | 42 + TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs | 13 + TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs | 13 + TeleSharp.TL/TL/Messages/TLAbsDialogs.cs | 13 + TeleSharp.TL/TL/Messages/TLAbsMessages.cs | 13 + TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs | 13 + .../TL/Messages/TLAbsSentEncryptedMessage.cs | 13 + TeleSharp.TL/TL/Messages/TLAbsStickers.cs | 13 + TeleSharp.TL/TL/Messages/TLAffectedHistory.cs | 48 ++ .../TL/Messages/TLAffectedMessages.cs | 45 ++ TeleSharp.TL/TL/Messages/TLAllStickers.cs | 45 ++ .../TL/Messages/TLAllStickersNotModified.cs | 39 + .../TL/Messages/TLBotCallbackAnswer.cs | 57 ++ TeleSharp.TL/TL/Messages/TLBotResults.cs | 72 ++ TeleSharp.TL/TL/Messages/TLChannelMessages.cs | 59 ++ TeleSharp.TL/TL/Messages/TLChatFull.cs | 48 ++ TeleSharp.TL/TL/Messages/TLChats.cs | 42 + TeleSharp.TL/TL/Messages/TLDhConfig.cs | 51 ++ .../TL/Messages/TLDhConfigNotModified.cs | 42 + TeleSharp.TL/TL/Messages/TLDialogs.cs | 51 ++ TeleSharp.TL/TL/Messages/TLDialogsSlice.cs | 54 ++ TeleSharp.TL/TL/Messages/TLFoundGifs.cs | 45 ++ TeleSharp.TL/TL/Messages/TLMessageEditData.cs | 48 ++ TeleSharp.TL/TL/Messages/TLMessages.cs | 48 ++ TeleSharp.TL/TL/Messages/TLMessagesSlice.cs | 51 ++ TeleSharp.TL/TL/Messages/TLPeerDialogs.cs | 54 ++ .../TL/Messages/TLRequestAcceptEncryption.cs | 54 ++ .../TL/Messages/TLRequestAddChatUser.cs | 54 ++ .../TL/Messages/TLRequestCheckChatInvite.cs | 48 ++ .../TL/Messages/TLRequestCreateChat.cs | 51 ++ .../TL/Messages/TLRequestDeleteChatUser.cs | 51 ++ .../TL/Messages/TLRequestDeleteHistory.cs | 60 ++ .../TL/Messages/TLRequestDeleteMessages.cs | 48 ++ .../TL/Messages/TLRequestDiscardEncryption.cs | 48 ++ .../TL/Messages/TLRequestEditChatAdmin.cs | 54 ++ .../TL/Messages/TLRequestEditChatPhoto.cs | 51 ++ .../TL/Messages/TLRequestEditChatTitle.cs | 51 ++ .../Messages/TLRequestEditInlineBotMessage.cs | 84 ++ .../TL/Messages/TLRequestEditMessage.cs | 87 ++ .../TL/Messages/TLRequestExportChatInvite.cs | 48 ++ .../TL/Messages/TLRequestForwardMessage.cs | 54 ++ .../TL/Messages/TLRequestForwardMessages.cs | 70 ++ .../TL/Messages/TLRequestGetAllDrafts.cs | 45 ++ .../TL/Messages/TLRequestGetAllStickers.cs | 48 ++ .../Messages/TLRequestGetBotCallbackAnswer.cs | 54 ++ TeleSharp.TL/TL/Messages/TLRequestGetChats.cs | 48 ++ .../TL/Messages/TLRequestGetDhConfig.cs | 51 ++ .../TL/Messages/TLRequestGetDialogs.cs | 57 ++ .../TL/Messages/TLRequestGetDocumentByHash.cs | 54 ++ .../TL/Messages/TLRequestGetFullChat.cs | 48 ++ .../TL/Messages/TLRequestGetHistory.cs | 66 ++ .../Messages/TLRequestGetInlineBotResults.cs | 71 ++ .../Messages/TLRequestGetMessageEditData.cs | 51 ++ .../TL/Messages/TLRequestGetMessages.cs | 48 ++ .../TL/Messages/TLRequestGetMessagesViews.cs | 54 ++ .../TL/Messages/TLRequestGetPeerDialogs.cs | 48 ++ .../TL/Messages/TLRequestGetPeerSettings.cs | 48 ++ .../TL/Messages/TLRequestGetSavedGifs.cs | 48 ++ .../TL/Messages/TLRequestGetStickerSet.cs | 48 ++ .../TL/Messages/TLRequestGetStickers.cs | 51 ++ .../TL/Messages/TLRequestGetWebPagePreview.cs | 48 ++ .../TL/Messages/TLRequestHideReportSpam.cs | 48 ++ .../TL/Messages/TLRequestImportChatInvite.cs | 48 ++ .../TL/Messages/TLRequestInstallStickerSet.cs | 51 ++ .../TL/Messages/TLRequestMigrateChat.cs | 48 ++ .../Messages/TLRequestReadEncryptedHistory.cs | 51 ++ .../TL/Messages/TLRequestReadHistory.cs | 51 ++ .../Messages/TLRequestReadMessageContents.cs | 48 ++ .../TL/Messages/TLRequestReceivedMessages.cs | 48 ++ .../TL/Messages/TLRequestReceivedQueue.cs | 48 ++ .../Messages/TLRequestReorderStickerSets.cs | 48 ++ .../TL/Messages/TLRequestReportSpam.cs | 48 ++ .../TL/Messages/TLRequestRequestEncryption.cs | 54 ++ .../TL/Messages/TLRequestSaveDraft.cs | 78 ++ TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs | 51 ++ TeleSharp.TL/TL/Messages/TLRequestSearch.cs | 74 ++ .../TL/Messages/TLRequestSearchGifs.cs | 51 ++ .../TL/Messages/TLRequestSearchGlobal.cs | 60 ++ .../TL/Messages/TLRequestSendBroadcast.cs | 57 ++ .../TL/Messages/TLRequestSendEncrypted.cs | 54 ++ .../TL/Messages/TLRequestSendEncryptedFile.cs | 57 ++ .../Messages/TLRequestSendEncryptedService.cs | 54 ++ .../Messages/TLRequestSendInlineBotResult.cs | 83 ++ .../TL/Messages/TLRequestSendMedia.cs | 89 +++ .../TL/Messages/TLRequestSendMessage.cs | 102 +++ .../Messages/TLRequestSetBotCallbackAnswer.cs | 66 ++ .../Messages/TLRequestSetEncryptedTyping.cs | 51 ++ .../Messages/TLRequestSetInlineBotResults.cs | 85 ++ .../TL/Messages/TLRequestSetTyping.cs | 51 ++ TeleSharp.TL/TL/Messages/TLRequestStartBot.cs | 57 ++ .../TL/Messages/TLRequestToggleChatAdmins.cs | 51 ++ .../Messages/TLRequestUninstallStickerSet.cs | 48 ++ TeleSharp.TL/TL/Messages/TLSavedGifs.cs | 45 ++ .../TL/Messages/TLSavedGifsNotModified.cs | 39 + .../TL/Messages/TLSentEncryptedFile.cs | 45 ++ .../TL/Messages/TLSentEncryptedMessage.cs | 42 + TeleSharp.TL/TL/Messages/TLStickerSet.cs | 48 ++ TeleSharp.TL/TL/Messages/TLStickers.cs | 45 ++ .../TL/Messages/TLStickersNotModified.cs | 39 + TeleSharp.TL/TL/Photos/TLAbsPhotos.cs | 13 + TeleSharp.TL/TL/Photos/TLPhoto.cs | 45 ++ TeleSharp.TL/TL/Photos/TLPhotos.cs | 45 ++ TeleSharp.TL/TL/Photos/TLPhotosSlice.cs | 48 ++ .../TL/Photos/TLRequestDeletePhotos.cs | 48 ++ .../TL/Photos/TLRequestGetUserPhotos.cs | 57 ++ .../TL/Photos/TLRequestUpdateProfilePhoto.cs | 51 ++ .../TL/Photos/TLRequestUploadProfilePhoto.cs | 57 ++ TeleSharp.TL/TL/Storage/TLAbsFileType.cs | 13 + TeleSharp.TL/TL/Storage/TLFileGif.cs | 39 + TeleSharp.TL/TL/Storage/TLFileJpeg.cs | 39 + TeleSharp.TL/TL/Storage/TLFileMov.cs | 39 + TeleSharp.TL/TL/Storage/TLFileMp3.cs | 39 + TeleSharp.TL/TL/Storage/TLFileMp4.cs | 39 + TeleSharp.TL/TL/Storage/TLFilePartial.cs | 39 + TeleSharp.TL/TL/Storage/TLFilePdf.cs | 39 + TeleSharp.TL/TL/Storage/TLFilePng.cs | 39 + TeleSharp.TL/TL/Storage/TLFileUnknown.cs | 39 + TeleSharp.TL/TL/Storage/TLFileWebp.cs | 39 + TeleSharp.TL/TL/TLAbsBotInlineMessage.cs | 13 + TeleSharp.TL/TL/TLAbsBotInlineResult.cs | 13 + TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs | 13 + TeleSharp.TL/TL/TLAbsChannelParticipant.cs | 13 + .../TL/TLAbsChannelParticipantRole.cs | 13 + .../TL/TLAbsChannelParticipantsFilter.cs | 13 + TeleSharp.TL/TL/TLAbsChat.cs | 13 + TeleSharp.TL/TL/TLAbsChatFull.cs | 13 + TeleSharp.TL/TL/TLAbsChatInvite.cs | 13 + TeleSharp.TL/TL/TLAbsChatParticipant.cs | 13 + TeleSharp.TL/TL/TLAbsChatParticipants.cs | 13 + TeleSharp.TL/TL/TLAbsChatPhoto.cs | 13 + TeleSharp.TL/TL/TLAbsContactLink.cs | 13 + TeleSharp.TL/TL/TLAbsDocument.cs | 13 + TeleSharp.TL/TL/TLAbsDocumentAttribute.cs | 13 + TeleSharp.TL/TL/TLAbsDraftMessage.cs | 13 + TeleSharp.TL/TL/TLAbsEncryptedChat.cs | 13 + TeleSharp.TL/TL/TLAbsEncryptedFile.cs | 13 + TeleSharp.TL/TL/TLAbsEncryptedMessage.cs | 13 + TeleSharp.TL/TL/TLAbsExportedChatInvite.cs | 13 + TeleSharp.TL/TL/TLAbsFileLocation.cs | 13 + TeleSharp.TL/TL/TLAbsFoundGif.cs | 13 + TeleSharp.TL/TL/TLAbsGeoPoint.cs | 13 + TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs | 13 + TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs | 13 + TeleSharp.TL/TL/TLAbsInputChannel.cs | 13 + TeleSharp.TL/TL/TLAbsInputChatPhoto.cs | 13 + TeleSharp.TL/TL/TLAbsInputDocument.cs | 13 + TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs | 13 + TeleSharp.TL/TL/TLAbsInputFile.cs | 13 + TeleSharp.TL/TL/TLAbsInputFileLocation.cs | 13 + TeleSharp.TL/TL/TLAbsInputGeoPoint.cs | 13 + TeleSharp.TL/TL/TLAbsInputMedia.cs | 13 + TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs | 13 + TeleSharp.TL/TL/TLAbsInputPeer.cs | 13 + TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs | 13 + TeleSharp.TL/TL/TLAbsInputPhoto.cs | 13 + TeleSharp.TL/TL/TLAbsInputPhotoCrop.cs | 13 + TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs | 13 + TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs | 13 + TeleSharp.TL/TL/TLAbsInputStickerSet.cs | 13 + TeleSharp.TL/TL/TLAbsInputUser.cs | 13 + TeleSharp.TL/TL/TLAbsKeyboardButton.cs | 13 + TeleSharp.TL/TL/TLAbsMessage.cs | 13 + TeleSharp.TL/TL/TLAbsMessageAction.cs | 13 + TeleSharp.TL/TL/TLAbsMessageEntity.cs | 13 + TeleSharp.TL/TL/TLAbsMessageMedia.cs | 13 + TeleSharp.TL/TL/TLAbsMessagesFilter.cs | 13 + TeleSharp.TL/TL/TLAbsNotifyPeer.cs | 13 + TeleSharp.TL/TL/TLAbsPeer.cs | 13 + TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs | 13 + TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs | 13 + TeleSharp.TL/TL/TLAbsPhoto.cs | 13 + TeleSharp.TL/TL/TLAbsPhotoSize.cs | 13 + TeleSharp.TL/TL/TLAbsPrivacyKey.cs | 13 + TeleSharp.TL/TL/TLAbsPrivacyRule.cs | 13 + TeleSharp.TL/TL/TLAbsReplyMarkup.cs | 13 + TeleSharp.TL/TL/TLAbsReportReason.cs | 13 + TeleSharp.TL/TL/TLAbsSendMessageAction.cs | 13 + TeleSharp.TL/TL/TLAbsTopPeerCategory.cs | 13 + TeleSharp.TL/TL/TLAbsUpdate.cs | 13 + TeleSharp.TL/TL/TLAbsUpdates.cs | 13 + TeleSharp.TL/TL/TLAbsUser.cs | 13 + TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs | 13 + TeleSharp.TL/TL/TLAbsUserStatus.cs | 13 + TeleSharp.TL/TL/TLAbsWallPaper.cs | 13 + TeleSharp.TL/TL/TLAbsWebPage.cs | 13 + TeleSharp.TL/TL/TLAccountDaysTTL.cs | 42 + TeleSharp.TL/TL/TLAuthorization.cs | 80 ++ TeleSharp.TL/TL/TLBotCommand.cs | 45 ++ TeleSharp.TL/TL/TLBotInfo.cs | 48 ++ TeleSharp.TL/TL/TLBotInlineMediaResult.cs | 89 +++ .../TL/TLBotInlineMessageMediaAuto.cs | 56 ++ .../TL/TLBotInlineMessageMediaContact.cs | 62 ++ TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs | 56 ++ .../TL/TLBotInlineMessageMediaVenue.cs | 68 ++ TeleSharp.TL/TL/TLBotInlineMessageText.cs | 69 ++ TeleSharp.TL/TL/TLBotInlineResult.cs | 134 ++++ TeleSharp.TL/TL/TLChannel.cs | 134 ++++ TeleSharp.TL/TL/TLChannelForbidden.cs | 61 ++ TeleSharp.TL/TL/TLChannelFull.cs | 133 ++++ TeleSharp.TL/TL/TLChannelMessagesFilter.cs | 51 ++ .../TL/TLChannelMessagesFilterEmpty.cs | 39 + TeleSharp.TL/TL/TLChannelParticipant.cs | 45 ++ .../TL/TLChannelParticipantCreator.cs | 42 + TeleSharp.TL/TL/TLChannelParticipantEditor.cs | 48 ++ TeleSharp.TL/TL/TLChannelParticipantKicked.cs | 48 ++ .../TL/TLChannelParticipantModerator.cs | 48 ++ TeleSharp.TL/TL/TLChannelParticipantSelf.cs | 48 ++ .../TL/TLChannelParticipantsAdmins.cs | 39 + TeleSharp.TL/TL/TLChannelParticipantsBots.cs | 39 + .../TL/TLChannelParticipantsKicked.cs | 39 + .../TL/TLChannelParticipantsRecent.cs | 39 + TeleSharp.TL/TL/TLChannelRoleEditor.cs | 39 + TeleSharp.TL/TL/TLChannelRoleEmpty.cs | 39 + TeleSharp.TL/TL/TLChannelRoleModerator.cs | 39 + TeleSharp.TL/TL/TLChat.cs | 95 +++ TeleSharp.TL/TL/TLChatEmpty.cs | 42 + TeleSharp.TL/TL/TLChatForbidden.cs | 45 ++ TeleSharp.TL/TL/TLChatFull.cs | 57 ++ TeleSharp.TL/TL/TLChatInvite.cs | 63 ++ TeleSharp.TL/TL/TLChatInviteAlready.cs | 42 + TeleSharp.TL/TL/TLChatInviteEmpty.cs | 39 + TeleSharp.TL/TL/TLChatInviteExported.cs | 42 + TeleSharp.TL/TL/TLChatParticipant.cs | 48 ++ TeleSharp.TL/TL/TLChatParticipantAdmin.cs | 48 ++ TeleSharp.TL/TL/TLChatParticipantCreator.cs | 42 + TeleSharp.TL/TL/TLChatParticipants.cs | 48 ++ .../TL/TLChatParticipantsForbidden.cs | 56 ++ TeleSharp.TL/TL/TLChatPhoto.cs | 45 ++ TeleSharp.TL/TL/TLChatPhotoEmpty.cs | 39 + TeleSharp.TL/TL/TLConfig.cs | 102 +++ TeleSharp.TL/TL/TLContact.cs | 45 ++ TeleSharp.TL/TL/TLContactBlocked.cs | 45 ++ TeleSharp.TL/TL/TLContactLinkContact.cs | 39 + TeleSharp.TL/TL/TLContactLinkHasPhone.cs | 39 + TeleSharp.TL/TL/TLContactLinkNone.cs | 39 + TeleSharp.TL/TL/TLContactLinkUnknown.cs | 39 + TeleSharp.TL/TL/TLContactStatus.cs | 45 ++ TeleSharp.TL/TL/TLDcOption.cs | 65 ++ TeleSharp.TL/TL/TLDialog.cs | 80 ++ TeleSharp.TL/TL/TLDisabledFeature.cs | 45 ++ TeleSharp.TL/TL/TLDocument.cs | 63 ++ .../TL/TLDocumentAttributeAnimated.cs | 39 + TeleSharp.TL/TL/TLDocumentAttributeAudio.cs | 78 ++ .../TL/TLDocumentAttributeFilename.cs | 42 + .../TL/TLDocumentAttributeImageSize.cs | 45 ++ TeleSharp.TL/TL/TLDocumentAttributeSticker.cs | 45 ++ TeleSharp.TL/TL/TLDocumentAttributeVideo.cs | 48 ++ TeleSharp.TL/TL/TLDocumentEmpty.cs | 42 + TeleSharp.TL/TL/TLDraftMessage.cs | 72 ++ TeleSharp.TL/TL/TLDraftMessageEmpty.cs | 39 + TeleSharp.TL/TL/TLEncryptedChat.cs | 60 ++ TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs | 42 + TeleSharp.TL/TL/TLEncryptedChatEmpty.cs | 42 + TeleSharp.TL/TL/TLEncryptedChatRequested.cs | 57 ++ TeleSharp.TL/TL/TLEncryptedChatWaiting.cs | 54 ++ TeleSharp.TL/TL/TLEncryptedFile.cs | 54 ++ TeleSharp.TL/TL/TLEncryptedFileEmpty.cs | 39 + TeleSharp.TL/TL/TLEncryptedMessage.cs | 54 ++ TeleSharp.TL/TL/TLEncryptedMessageService.cs | 51 ++ TeleSharp.TL/TL/TLError.cs | 45 ++ TeleSharp.TL/TL/TLExportedMessageLink.cs | 42 + TeleSharp.TL/TL/TLFileLocation.cs | 51 ++ TeleSharp.TL/TL/TLFileLocationUnavailable.cs | 48 ++ TeleSharp.TL/TL/TLFoundGif.cs | 57 ++ TeleSharp.TL/TL/TLFoundGifCached.cs | 48 ++ TeleSharp.TL/TL/TLGeoPoint.cs | 45 ++ TeleSharp.TL/TL/TLGeoPointEmpty.cs | 39 + TeleSharp.TL/TL/TLImportedContact.cs | 45 ++ TeleSharp.TL/TL/TLInlineBotSwitchPM.cs | 45 ++ TeleSharp.TL/TL/TLInputAppEvent.cs | 51 ++ TeleSharp.TL/TL/TLInputBotInlineMessageID.cs | 48 ++ .../TL/TLInputBotInlineMessageMediaAuto.cs | 56 ++ .../TL/TLInputBotInlineMessageMediaContact.cs | 62 ++ .../TL/TLInputBotInlineMessageMediaGeo.cs | 56 ++ .../TL/TLInputBotInlineMessageMediaVenue.cs | 68 ++ .../TL/TLInputBotInlineMessageText.cs | 69 ++ TeleSharp.TL/TL/TLInputBotInlineResult.cs | 134 ++++ .../TL/TLInputBotInlineResultDocument.cs | 74 ++ .../TL/TLInputBotInlineResultPhoto.cs | 51 ++ TeleSharp.TL/TL/TLInputChannel.cs | 45 ++ TeleSharp.TL/TL/TLInputChannelEmpty.cs | 39 + TeleSharp.TL/TL/TLInputChatPhoto.cs | 45 ++ TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs | 39 + TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs | 45 ++ TeleSharp.TL/TL/TLInputDocument.cs | 45 ++ TeleSharp.TL/TL/TLInputDocumentEmpty.cs | 39 + .../TL/TLInputDocumentFileLocation.cs | 45 ++ TeleSharp.TL/TL/TLInputEncryptedChat.cs | 45 ++ TeleSharp.TL/TL/TLInputEncryptedFile.cs | 45 ++ .../TL/TLInputEncryptedFileBigUploaded.cs | 48 ++ TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs | 39 + .../TL/TLInputEncryptedFileLocation.cs | 45 ++ .../TL/TLInputEncryptedFileUploaded.cs | 51 ++ TeleSharp.TL/TL/TLInputFile.cs | 51 ++ TeleSharp.TL/TL/TLInputFileBig.cs | 48 ++ TeleSharp.TL/TL/TLInputFileLocation.cs | 48 ++ TeleSharp.TL/TL/TLInputGeoPoint.cs | 45 ++ TeleSharp.TL/TL/TLInputGeoPointEmpty.cs | 39 + TeleSharp.TL/TL/TLInputMediaContact.cs | 48 ++ TeleSharp.TL/TL/TLInputMediaDocument.cs | 45 ++ TeleSharp.TL/TL/TLInputMediaEmpty.cs | 39 + TeleSharp.TL/TL/TLInputMediaGeoPoint.cs | 42 + TeleSharp.TL/TL/TLInputMediaGifExternal.cs | 45 ++ TeleSharp.TL/TL/TLInputMediaPhoto.cs | 45 ++ .../TL/TLInputMediaUploadedDocument.cs | 51 ++ TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs | 45 ++ .../TL/TLInputMediaUploadedThumbDocument.cs | 54 ++ TeleSharp.TL/TL/TLInputMediaVenue.cs | 54 ++ .../TL/TLInputMessageEntityMentionName.cs | 48 ++ .../TL/TLInputMessagesFilterChatPhotos.cs | 39 + .../TL/TLInputMessagesFilterDocument.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterGif.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs | 39 + .../TL/TLInputMessagesFilterPhotoVideo.cs | 39 + ...LInputMessagesFilterPhotoVideoDocuments.cs | 39 + .../TL/TLInputMessagesFilterPhotos.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs | 39 + TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs | 39 + TeleSharp.TL/TL/TLInputNotifyAll.cs | 39 + TeleSharp.TL/TL/TLInputNotifyChats.cs | 39 + TeleSharp.TL/TL/TLInputNotifyPeer.cs | 42 + TeleSharp.TL/TL/TLInputNotifyUsers.cs | 39 + TeleSharp.TL/TL/TLInputPeerChannel.cs | 45 ++ TeleSharp.TL/TL/TLInputPeerChat.cs | 42 + TeleSharp.TL/TL/TLInputPeerEmpty.cs | 39 + TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs | 39 + .../TL/TLInputPeerNotifyEventsEmpty.cs | 39 + TeleSharp.TL/TL/TLInputPeerNotifySettings.cs | 58 ++ TeleSharp.TL/TL/TLInputPeerSelf.cs | 39 + TeleSharp.TL/TL/TLInputPeerUser.cs | 45 ++ TeleSharp.TL/TL/TLInputPhoneContact.cs | 51 ++ TeleSharp.TL/TL/TLInputPhoto.cs | 45 ++ TeleSharp.TL/TL/TLInputPhotoCrop.cs | 48 ++ TeleSharp.TL/TL/TLInputPhotoCropAuto.cs | 39 + TeleSharp.TL/TL/TLInputPhotoEmpty.cs | 39 + .../TL/TLInputPrivacyKeyChatInvite.cs | 39 + .../TL/TLInputPrivacyKeyStatusTimestamp.cs | 39 + .../TL/TLInputPrivacyValueAllowAll.cs | 39 + .../TL/TLInputPrivacyValueAllowContacts.cs | 39 + .../TL/TLInputPrivacyValueAllowUsers.cs | 42 + .../TL/TLInputPrivacyValueDisallowAll.cs | 39 + .../TL/TLInputPrivacyValueDisallowContacts.cs | 39 + .../TL/TLInputPrivacyValueDisallowUsers.cs | 42 + TeleSharp.TL/TL/TLInputReportReasonOther.cs | 42 + .../TL/TLInputReportReasonPornography.cs | 39 + TeleSharp.TL/TL/TLInputReportReasonSpam.cs | 39 + .../TL/TLInputReportReasonViolence.cs | 39 + TeleSharp.TL/TL/TLInputStickerSetEmpty.cs | 39 + TeleSharp.TL/TL/TLInputStickerSetID.cs | 45 ++ TeleSharp.TL/TL/TLInputStickerSetShortName.cs | 42 + TeleSharp.TL/TL/TLInputUser.cs | 45 ++ TeleSharp.TL/TL/TLInputUserEmpty.cs | 39 + TeleSharp.TL/TL/TLInputUserSelf.cs | 39 + TeleSharp.TL/TL/TLKeyboardButton.cs | 42 + TeleSharp.TL/TL/TLKeyboardButtonCallback.cs | 45 ++ .../TL/TLKeyboardButtonRequestGeoLocation.cs | 42 + .../TL/TLKeyboardButtonRequestPhone.cs | 42 + TeleSharp.TL/TL/TLKeyboardButtonRow.cs | 42 + .../TL/TLKeyboardButtonSwitchInline.cs | 45 ++ TeleSharp.TL/TL/TLKeyboardButtonUrl.cs | 45 ++ TeleSharp.TL/TL/TLMessage.cs | 157 ++++ .../TL/TLMessageActionChannelCreate.cs | 42 + .../TL/TLMessageActionChannelMigrateFrom.cs | 45 ++ TeleSharp.TL/TL/TLMessageActionChatAddUser.cs | 42 + TeleSharp.TL/TL/TLMessageActionChatCreate.cs | 45 ++ .../TL/TLMessageActionChatDeletePhoto.cs | 39 + .../TL/TLMessageActionChatDeleteUser.cs | 42 + .../TL/TLMessageActionChatEditPhoto.cs | 42 + .../TL/TLMessageActionChatEditTitle.cs | 42 + .../TL/TLMessageActionChatJoinedByLink.cs | 42 + .../TL/TLMessageActionChatMigrateTo.cs | 42 + TeleSharp.TL/TL/TLMessageActionEmpty.cs | 39 + .../TL/TLMessageActionHistoryClear.cs | 39 + TeleSharp.TL/TL/TLMessageActionPinMessage.cs | 39 + TeleSharp.TL/TL/TLMessageEmpty.cs | 42 + TeleSharp.TL/TL/TLMessageEntityBold.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityBotCommand.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityCode.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityEmail.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityHashtag.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityItalic.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityMention.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityMentionName.cs | 48 ++ TeleSharp.TL/TL/TLMessageEntityPre.cs | 48 ++ TeleSharp.TL/TL/TLMessageEntityTextUrl.cs | 48 ++ TeleSharp.TL/TL/TLMessageEntityUnknown.cs | 45 ++ TeleSharp.TL/TL/TLMessageEntityUrl.cs | 45 ++ TeleSharp.TL/TL/TLMessageFwdHeader.cs | 74 ++ TeleSharp.TL/TL/TLMessageMediaContact.cs | 51 ++ TeleSharp.TL/TL/TLMessageMediaDocument.cs | 45 ++ TeleSharp.TL/TL/TLMessageMediaEmpty.cs | 39 + TeleSharp.TL/TL/TLMessageMediaGeo.cs | 42 + TeleSharp.TL/TL/TLMessageMediaPhoto.cs | 45 ++ TeleSharp.TL/TL/TLMessageMediaUnsupported.cs | 39 + TeleSharp.TL/TL/TLMessageMediaVenue.cs | 54 ++ TeleSharp.TL/TL/TLMessageMediaWebPage.cs | 42 + TeleSharp.TL/TL/TLMessageRange.cs | 45 ++ TeleSharp.TL/TL/TLMessageService.cs | 94 +++ TeleSharp.TL/TL/TLNearestDc.cs | 48 ++ TeleSharp.TL/TL/TLNotifyAll.cs | 39 + TeleSharp.TL/TL/TLNotifyChats.cs | 39 + TeleSharp.TL/TL/TLNotifyPeer.cs | 42 + TeleSharp.TL/TL/TLNotifyUsers.cs | 39 + TeleSharp.TL/TL/TLNull.cs | 39 + TeleSharp.TL/TL/TLPeerChannel.cs | 42 + TeleSharp.TL/TL/TLPeerChat.cs | 42 + TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs | 39 + TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs | 39 + TeleSharp.TL/TL/TLPeerNotifySettings.cs | 58 ++ TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs | 39 + TeleSharp.TL/TL/TLPeerSettings.cs | 48 ++ TeleSharp.TL/TL/TLPeerUser.cs | 42 + TeleSharp.TL/TL/TLPhoto.cs | 51 ++ TeleSharp.TL/TL/TLPhotoCachedSize.cs | 54 ++ TeleSharp.TL/TL/TLPhotoEmpty.cs | 42 + TeleSharp.TL/TL/TLPhotoSize.cs | 54 ++ TeleSharp.TL/TL/TLPhotoSizeEmpty.cs | 42 + TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs | 39 + .../TL/TLPrivacyKeyStatusTimestamp.cs | 39 + TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs | 39 + .../TL/TLPrivacyValueAllowContacts.cs | 39 + TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs | 42 + TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs | 39 + .../TL/TLPrivacyValueDisallowContacts.cs | 39 + .../TL/TLPrivacyValueDisallowUsers.cs | 42 + TeleSharp.TL/TL/TLReceivedNotifyMessage.cs | 47 ++ TeleSharp.TL/TL/TLReplyInlineMarkup.cs | 42 + TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs | 52 ++ TeleSharp.TL/TL/TLReplyKeyboardHide.cs | 48 ++ TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs | 59 ++ TeleSharp.TL/TL/TLRequestInitConnection.cs | 63 ++ TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs | 51 ++ TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs | 51 ++ TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs | 51 ++ .../TL/TLRequestInvokeWithoutUpdates.cs | 48 ++ TeleSharp.TL/TL/TLSendMessageCancelAction.cs | 39 + .../TL/TLSendMessageChooseContactAction.cs | 39 + .../TL/TLSendMessageGeoLocationAction.cs | 39 + .../TL/TLSendMessageRecordAudioAction.cs | 39 + .../TL/TLSendMessageRecordVideoAction.cs | 39 + TeleSharp.TL/TL/TLSendMessageTypingAction.cs | 39 + .../TL/TLSendMessageUploadAudioAction.cs | 42 + .../TL/TLSendMessageUploadDocumentAction.cs | 42 + .../TL/TLSendMessageUploadPhotoAction.cs | 42 + .../TL/TLSendMessageUploadVideoAction.cs | 42 + TeleSharp.TL/TL/TLStickerPack.cs | 45 ++ TeleSharp.TL/TL/TLStickerSet.cs | 74 ++ TeleSharp.TL/TL/TLTopPeer.cs | 45 ++ .../TL/TLTopPeerCategoryBotsInline.cs | 39 + TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs | 39 + TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs | 39 + .../TL/TLTopPeerCategoryCorrespondents.cs | 39 + TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs | 39 + TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs | 48 ++ TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs | 54 ++ TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs | 65 ++ TeleSharp.TL/TL/TLUpdateBotInlineSend.cs | 71 ++ TeleSharp.TL/TL/TLUpdateChannel.cs | 42 + .../TL/TLUpdateChannelMessageViews.cs | 48 ++ .../TL/TLUpdateChannelPinnedMessage.cs | 45 ++ TeleSharp.TL/TL/TLUpdateChannelTooLong.cs | 56 ++ TeleSharp.TL/TL/TLUpdateChatAdmins.cs | 48 ++ TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs | 54 ++ .../TL/TLUpdateChatParticipantAdmin.cs | 51 ++ .../TL/TLUpdateChatParticipantDelete.cs | 48 ++ TeleSharp.TL/TL/TLUpdateChatParticipants.cs | 42 + TeleSharp.TL/TL/TLUpdateChatUserTyping.cs | 48 ++ TeleSharp.TL/TL/TLUpdateContactLink.cs | 48 ++ TeleSharp.TL/TL/TLUpdateContactRegistered.cs | 45 ++ TeleSharp.TL/TL/TLUpdateDcOptions.cs | 42 + .../TL/TLUpdateDeleteChannelMessages.cs | 51 ++ TeleSharp.TL/TL/TLUpdateDeleteMessages.cs | 48 ++ TeleSharp.TL/TL/TLUpdateDraftMessage.cs | 45 ++ TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs | 48 ++ TeleSharp.TL/TL/TLUpdateEditMessage.cs | 48 ++ .../TL/TLUpdateEncryptedChatTyping.cs | 42 + .../TL/TLUpdateEncryptedMessagesRead.cs | 48 ++ TeleSharp.TL/TL/TLUpdateEncryption.cs | 45 ++ .../TL/TLUpdateInlineBotCallbackQuery.cs | 51 ++ TeleSharp.TL/TL/TLUpdateMessageID.cs | 45 ++ TeleSharp.TL/TL/TLUpdateNewAuthorization.cs | 51 ++ TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs | 48 ++ .../TL/TLUpdateNewEncryptedMessage.cs | 45 ++ TeleSharp.TL/TL/TLUpdateNewMessage.cs | 48 ++ TeleSharp.TL/TL/TLUpdateNewStickerSet.cs | 42 + TeleSharp.TL/TL/TLUpdateNotifySettings.cs | 45 ++ TeleSharp.TL/TL/TLUpdatePrivacy.cs | 45 ++ TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs | 45 ++ TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs | 45 ++ TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs | 51 ++ TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs | 51 ++ .../TL/TLUpdateReadMessagesContents.cs | 48 ++ TeleSharp.TL/TL/TLUpdateSavedGifs.cs | 39 + .../TL/TLUpdateServiceNotification.cs | 51 ++ TeleSharp.TL/TL/TLUpdateShort.cs | 45 ++ TeleSharp.TL/TL/TLUpdateShortChatMessage.cs | 117 +++ TeleSharp.TL/TL/TLUpdateShortMessage.cs | 114 +++ TeleSharp.TL/TL/TLUpdateShortSentMessage.cs | 78 ++ TeleSharp.TL/TL/TLUpdateStickerSets.cs | 39 + TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs | 42 + TeleSharp.TL/TL/TLUpdateUserBlocked.cs | 45 ++ TeleSharp.TL/TL/TLUpdateUserName.cs | 51 ++ TeleSharp.TL/TL/TLUpdateUserPhone.cs | 45 ++ TeleSharp.TL/TL/TLUpdateUserPhoto.cs | 51 ++ TeleSharp.TL/TL/TLUpdateUserStatus.cs | 45 ++ TeleSharp.TL/TL/TLUpdateUserTyping.cs | 45 ++ TeleSharp.TL/TL/TLUpdateWebPage.cs | 48 ++ TeleSharp.TL/TL/TLUpdates.cs | 54 ++ TeleSharp.TL/TL/TLUpdatesCombined.cs | 57 ++ TeleSharp.TL/TL/TLUpdatesTooLong.cs | 39 + TeleSharp.TL/TL/TLUser.cs | 181 +++++ TeleSharp.TL/TL/TLUserEmpty.cs | 42 + TeleSharp.TL/TL/TLUserFull.cs | 84 ++ TeleSharp.TL/TL/TLUserProfilePhoto.cs | 48 ++ TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs | 39 + TeleSharp.TL/TL/TLUserStatusEmpty.cs | 39 + TeleSharp.TL/TL/TLUserStatusLastMonth.cs | 39 + TeleSharp.TL/TL/TLUserStatusLastWeek.cs | 39 + TeleSharp.TL/TL/TLUserStatusOffline.cs | 42 + TeleSharp.TL/TL/TLUserStatusOnline.cs | 42 + TeleSharp.TL/TL/TLUserStatusRecently.cs | 39 + TeleSharp.TL/TL/TLWallPaper.cs | 51 ++ TeleSharp.TL/TL/TLWallPaperSolid.cs | 51 ++ TeleSharp.TL/TL/TLWebPage.cs | 161 ++++ TeleSharp.TL/TL/TLWebPageEmpty.cs | 42 + TeleSharp.TL/TL/TLWebPagePending.cs | 45 ++ .../TL/Updates/TLAbsChannelDifference.cs | 13 + TeleSharp.TL/TL/Updates/TLAbsDifference.cs | 13 + .../TL/Updates/TLChannelDifference.cs | 72 ++ .../TL/Updates/TLChannelDifferenceEmpty.cs | 60 ++ .../TL/Updates/TLChannelDifferenceTooLong.cs | 81 ++ TeleSharp.TL/TL/Updates/TLDifference.cs | 57 ++ TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs | 45 ++ TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs | 57 ++ .../Updates/TLRequestGetChannelDifference.cs | 57 ++ .../TL/Updates/TLRequestGetDifference.cs | 54 ++ TeleSharp.TL/TL/Updates/TLRequestGetState.cs | 45 ++ TeleSharp.TL/TL/Updates/TLState.cs | 54 ++ TeleSharp.TL/TL/Upload/TLFile.cs | 48 ++ TeleSharp.TL/TL/Upload/TLRequestGetFile.cs | 54 ++ .../TL/Upload/TLRequestSaveBigFilePart.cs | 57 ++ .../TL/Upload/TLRequestSaveFilePart.cs | 54 ++ TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs | 48 ++ TeleSharp.TL/TL/Users/TLRequestGetUsers.cs | 48 ++ TeleSharp.TL/TLContext.cs | 30 + TeleSharp.TL/TLMethod.cs | 46 ++ TeleSharp.TL/TLObject.cs | 50 ++ TeleSharp.TL/TLUtils.cs | 181 +++++ TeleSharp.TL/TLVector.cs | 58 ++ TeleSharp.TL/TeleSharp.TL.csproj | 745 ++++++++++++++++++ TeleSharp.TL/packages.config | 4 + 710 files changed, 32932 insertions(+), 302 deletions(-) create mode 100644 TLSharp.Tests/Properties/AssemblyInfo.cs create mode 100644 TLSharp.Tests/TLSharp.Tests.csproj create mode 100644 TLSharp.Tests/TLSharpTests.cs create mode 100644 TLSharp.Tests/app.config create mode 100644 TLSharp.Tests/data/cat.jpg create mode 100644 TLSharp.Tests/packages.config create mode 100644 TeleSharp.Generator/App.config create mode 100644 TeleSharp.Generator/Constructor.tmp create mode 100644 TeleSharp.Generator/ConstructorAbs.tmp create mode 100644 TeleSharp.Generator/Method.tmp create mode 100644 TeleSharp.Generator/Models.cs create mode 100644 TeleSharp.Generator/Program.cs create mode 100644 TeleSharp.Generator/Properties/AssemblyInfo.cs create mode 100644 TeleSharp.Generator/TeleSharp.Generator.csproj create mode 100644 TeleSharp.Generator/packages.config create mode 100644 TeleSharp.TL/ObjectDeserializer.cs create mode 100644 TeleSharp.TL/Properties/AssemblyInfo.cs create mode 100644 TeleSharp.TL/TL/Account/TLAbsPassword.cs create mode 100644 TeleSharp.TL/TL/Account/TLAuthorizations.cs create mode 100644 TeleSharp.TL/TL/Account/TLNoPassword.cs create mode 100644 TeleSharp.TL/TL/Account/TLPassword.cs create mode 100644 TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLPasswordSettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLPrivacyRules.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestChangePhone.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetPassword.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestReportPeer.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs create mode 100644 TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs create mode 100644 TeleSharp.TL/TL/Auth/TLAbsCodeType.cs create mode 100644 TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs create mode 100644 TeleSharp.TL/TL/Auth/TLAuthorization.cs create mode 100644 TeleSharp.TL/TL/Auth/TLCheckedPhone.cs create mode 100644 TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs create mode 100644 TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs create mode 100644 TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs create mode 100644 TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs create mode 100644 TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestLogOut.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestResendCode.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestSendCode.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestSignIn.cs create mode 100644 TeleSharp.TL/TL/Auth/TLRequestSignUp.cs create mode 100644 TeleSharp.TL/TL/Auth/TLSentCode.cs create mode 100644 TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs create mode 100644 TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs create mode 100644 TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs create mode 100644 TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs create mode 100644 TeleSharp.TL/TL/Channels/TLChannelParticipant.cs create mode 100644 TeleSharp.TL/TL/Channels/TLChannelParticipants.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs create mode 100644 TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLAbsContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLBlocked.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLFound.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLImportedContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLLink.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestBlock.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestSearch.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLTopPeers.cs create mode 100644 TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs create mode 100644 TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs create mode 100644 TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs create mode 100644 TeleSharp.TL/TL/Help/TLAppChangelog.cs create mode 100644 TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs create mode 100644 TeleSharp.TL/TL/Help/TLAppUpdate.cs create mode 100644 TeleSharp.TL/TL/Help/TLInviteText.cs create mode 100644 TeleSharp.TL/TL/Help/TLNoAppUpdate.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetConfig.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetSupport.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs create mode 100644 TeleSharp.TL/TL/Help/TLSupport.cs create mode 100644 TeleSharp.TL/TL/Help/TLTermsOfService.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAbsStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAffectedHistory.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAffectedMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAllStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs create mode 100644 TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs create mode 100644 TeleSharp.TL/TL/Messages/TLBotResults.cs create mode 100644 TeleSharp.TL/TL/Messages/TLChannelMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLChatFull.cs create mode 100644 TeleSharp.TL/TL/Messages/TLChats.cs create mode 100644 TeleSharp.TL/TL/Messages/TLDhConfig.cs create mode 100644 TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs create mode 100644 TeleSharp.TL/TL/Messages/TLDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLDialogsSlice.cs create mode 100644 TeleSharp.TL/TL/Messages/TLFoundGifs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLMessageEditData.cs create mode 100644 TeleSharp.TL/TL/Messages/TLMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLMessagesSlice.cs create mode 100644 TeleSharp.TL/TL/Messages/TLPeerDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetChats.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSearch.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendBroadcast.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestStartBot.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs create mode 100644 TeleSharp.TL/TL/Messages/TLSavedGifs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs create mode 100644 TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLStickerSet.cs create mode 100644 TeleSharp.TL/TL/Messages/TLStickers.cs create mode 100644 TeleSharp.TL/TL/Messages/TLStickersNotModified.cs create mode 100644 TeleSharp.TL/TL/Photos/TLAbsPhotos.cs create mode 100644 TeleSharp.TL/TL/Photos/TLPhoto.cs create mode 100644 TeleSharp.TL/TL/Photos/TLPhotos.cs create mode 100644 TeleSharp.TL/TL/Photos/TLPhotosSlice.cs create mode 100644 TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs create mode 100644 TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs create mode 100644 TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs create mode 100644 TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs create mode 100644 TeleSharp.TL/TL/Storage/TLAbsFileType.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileGif.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileJpeg.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileMov.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileMp3.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileMp4.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFilePartial.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFilePdf.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFilePng.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileUnknown.cs create mode 100644 TeleSharp.TL/TL/Storage/TLFileWebp.cs create mode 100644 TeleSharp.TL/TL/TLAbsBotInlineMessage.cs create mode 100644 TeleSharp.TL/TL/TLAbsBotInlineResult.cs create mode 100644 TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs create mode 100644 TeleSharp.TL/TL/TLAbsChannelParticipant.cs create mode 100644 TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs create mode 100644 TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs create mode 100644 TeleSharp.TL/TL/TLAbsChat.cs create mode 100644 TeleSharp.TL/TL/TLAbsChatFull.cs create mode 100644 TeleSharp.TL/TL/TLAbsChatInvite.cs create mode 100644 TeleSharp.TL/TL/TLAbsChatParticipant.cs create mode 100644 TeleSharp.TL/TL/TLAbsChatParticipants.cs create mode 100644 TeleSharp.TL/TL/TLAbsChatPhoto.cs create mode 100644 TeleSharp.TL/TL/TLAbsContactLink.cs create mode 100644 TeleSharp.TL/TL/TLAbsDocument.cs create mode 100644 TeleSharp.TL/TL/TLAbsDocumentAttribute.cs create mode 100644 TeleSharp.TL/TL/TLAbsDraftMessage.cs create mode 100644 TeleSharp.TL/TL/TLAbsEncryptedChat.cs create mode 100644 TeleSharp.TL/TL/TLAbsEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/TLAbsEncryptedMessage.cs create mode 100644 TeleSharp.TL/TL/TLAbsExportedChatInvite.cs create mode 100644 TeleSharp.TL/TL/TLAbsFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLAbsFoundGif.cs create mode 100644 TeleSharp.TL/TL/TLAbsGeoPoint.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputChannel.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputChatPhoto.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputDocument.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputFile.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputGeoPoint.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputMedia.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPeer.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPhoto.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPhotoCrop.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputStickerSet.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputUser.cs create mode 100644 TeleSharp.TL/TL/TLAbsKeyboardButton.cs create mode 100644 TeleSharp.TL/TL/TLAbsMessage.cs create mode 100644 TeleSharp.TL/TL/TLAbsMessageAction.cs create mode 100644 TeleSharp.TL/TL/TLAbsMessageEntity.cs create mode 100644 TeleSharp.TL/TL/TLAbsMessageMedia.cs create mode 100644 TeleSharp.TL/TL/TLAbsMessagesFilter.cs create mode 100644 TeleSharp.TL/TL/TLAbsNotifyPeer.cs create mode 100644 TeleSharp.TL/TL/TLAbsPeer.cs create mode 100644 TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs create mode 100644 TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs create mode 100644 TeleSharp.TL/TL/TLAbsPhoto.cs create mode 100644 TeleSharp.TL/TL/TLAbsPhotoSize.cs create mode 100644 TeleSharp.TL/TL/TLAbsPrivacyKey.cs create mode 100644 TeleSharp.TL/TL/TLAbsPrivacyRule.cs create mode 100644 TeleSharp.TL/TL/TLAbsReplyMarkup.cs create mode 100644 TeleSharp.TL/TL/TLAbsReportReason.cs create mode 100644 TeleSharp.TL/TL/TLAbsSendMessageAction.cs create mode 100644 TeleSharp.TL/TL/TLAbsTopPeerCategory.cs create mode 100644 TeleSharp.TL/TL/TLAbsUpdate.cs create mode 100644 TeleSharp.TL/TL/TLAbsUpdates.cs create mode 100644 TeleSharp.TL/TL/TLAbsUser.cs create mode 100644 TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs create mode 100644 TeleSharp.TL/TL/TLAbsUserStatus.cs create mode 100644 TeleSharp.TL/TL/TLAbsWallPaper.cs create mode 100644 TeleSharp.TL/TL/TLAbsWebPage.cs create mode 100644 TeleSharp.TL/TL/TLAccountDaysTTL.cs create mode 100644 TeleSharp.TL/TL/TLAuthorization.cs create mode 100644 TeleSharp.TL/TL/TLBotCommand.cs create mode 100644 TeleSharp.TL/TL/TLBotInfo.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMediaResult.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineMessageText.cs create mode 100644 TeleSharp.TL/TL/TLBotInlineResult.cs create mode 100644 TeleSharp.TL/TL/TLChannel.cs create mode 100644 TeleSharp.TL/TL/TLChannelForbidden.cs create mode 100644 TeleSharp.TL/TL/TLChannelFull.cs create mode 100644 TeleSharp.TL/TL/TLChannelMessagesFilter.cs create mode 100644 TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipant.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantCreator.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantEditor.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantKicked.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantModerator.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantSelf.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantsBots.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantsKicked.cs create mode 100644 TeleSharp.TL/TL/TLChannelParticipantsRecent.cs create mode 100644 TeleSharp.TL/TL/TLChannelRoleEditor.cs create mode 100644 TeleSharp.TL/TL/TLChannelRoleEmpty.cs create mode 100644 TeleSharp.TL/TL/TLChannelRoleModerator.cs create mode 100644 TeleSharp.TL/TL/TLChat.cs create mode 100644 TeleSharp.TL/TL/TLChatEmpty.cs create mode 100644 TeleSharp.TL/TL/TLChatForbidden.cs create mode 100644 TeleSharp.TL/TL/TLChatFull.cs create mode 100644 TeleSharp.TL/TL/TLChatInvite.cs create mode 100644 TeleSharp.TL/TL/TLChatInviteAlready.cs create mode 100644 TeleSharp.TL/TL/TLChatInviteEmpty.cs create mode 100644 TeleSharp.TL/TL/TLChatInviteExported.cs create mode 100644 TeleSharp.TL/TL/TLChatParticipant.cs create mode 100644 TeleSharp.TL/TL/TLChatParticipantAdmin.cs create mode 100644 TeleSharp.TL/TL/TLChatParticipantCreator.cs create mode 100644 TeleSharp.TL/TL/TLChatParticipants.cs create mode 100644 TeleSharp.TL/TL/TLChatParticipantsForbidden.cs create mode 100644 TeleSharp.TL/TL/TLChatPhoto.cs create mode 100644 TeleSharp.TL/TL/TLChatPhotoEmpty.cs create mode 100644 TeleSharp.TL/TL/TLConfig.cs create mode 100644 TeleSharp.TL/TL/TLContact.cs create mode 100644 TeleSharp.TL/TL/TLContactBlocked.cs create mode 100644 TeleSharp.TL/TL/TLContactLinkContact.cs create mode 100644 TeleSharp.TL/TL/TLContactLinkHasPhone.cs create mode 100644 TeleSharp.TL/TL/TLContactLinkNone.cs create mode 100644 TeleSharp.TL/TL/TLContactLinkUnknown.cs create mode 100644 TeleSharp.TL/TL/TLContactStatus.cs create mode 100644 TeleSharp.TL/TL/TLDcOption.cs create mode 100644 TeleSharp.TL/TL/TLDialog.cs create mode 100644 TeleSharp.TL/TL/TLDisabledFeature.cs create mode 100644 TeleSharp.TL/TL/TLDocument.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeAudio.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeFilename.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeSticker.cs create mode 100644 TeleSharp.TL/TL/TLDocumentAttributeVideo.cs create mode 100644 TeleSharp.TL/TL/TLDocumentEmpty.cs create mode 100644 TeleSharp.TL/TL/TLDraftMessage.cs create mode 100644 TeleSharp.TL/TL/TLDraftMessageEmpty.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedChat.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedChatEmpty.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedChatRequested.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedChatWaiting.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedFileEmpty.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedMessage.cs create mode 100644 TeleSharp.TL/TL/TLEncryptedMessageService.cs create mode 100644 TeleSharp.TL/TL/TLError.cs create mode 100644 TeleSharp.TL/TL/TLExportedMessageLink.cs create mode 100644 TeleSharp.TL/TL/TLFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLFileLocationUnavailable.cs create mode 100644 TeleSharp.TL/TL/TLFoundGif.cs create mode 100644 TeleSharp.TL/TL/TLFoundGifCached.cs create mode 100644 TeleSharp.TL/TL/TLGeoPoint.cs create mode 100644 TeleSharp.TL/TL/TLGeoPointEmpty.cs create mode 100644 TeleSharp.TL/TL/TLImportedContact.cs create mode 100644 TeleSharp.TL/TL/TLInlineBotSwitchPM.cs create mode 100644 TeleSharp.TL/TL/TLInputAppEvent.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageID.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineMessageText.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineResult.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputChannel.cs create mode 100644 TeleSharp.TL/TL/TLInputChannelEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputChatPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputDocumentEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputDocumentFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedChat.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedFile.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs create mode 100644 TeleSharp.TL/TL/TLInputFile.cs create mode 100644 TeleSharp.TL/TL/TLInputFileBig.cs create mode 100644 TeleSharp.TL/TL/TLInputFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLInputGeoPoint.cs create mode 100644 TeleSharp.TL/TL/TLInputGeoPointEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaContact.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaGeoPoint.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaGifExternal.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaVenue.cs create mode 100644 TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterGif.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs create mode 100644 TeleSharp.TL/TL/TLInputNotifyAll.cs create mode 100644 TeleSharp.TL/TL/TLInputNotifyChats.cs create mode 100644 TeleSharp.TL/TL/TLInputNotifyPeer.cs create mode 100644 TeleSharp.TL/TL/TLInputNotifyUsers.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerChannel.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerChat.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerNotifySettings.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerSelf.cs create mode 100644 TeleSharp.TL/TL/TLInputPeerUser.cs create mode 100644 TeleSharp.TL/TL/TLInputPhoneContact.cs create mode 100644 TeleSharp.TL/TL/TLInputPhoto.cs create mode 100644 TeleSharp.TL/TL/TLInputPhotoCrop.cs create mode 100644 TeleSharp.TL/TL/TLInputPhotoCropAuto.cs create mode 100644 TeleSharp.TL/TL/TLInputPhotoEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs create mode 100644 TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs create mode 100644 TeleSharp.TL/TL/TLInputReportReasonOther.cs create mode 100644 TeleSharp.TL/TL/TLInputReportReasonPornography.cs create mode 100644 TeleSharp.TL/TL/TLInputReportReasonSpam.cs create mode 100644 TeleSharp.TL/TL/TLInputReportReasonViolence.cs create mode 100644 TeleSharp.TL/TL/TLInputStickerSetEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputStickerSetID.cs create mode 100644 TeleSharp.TL/TL/TLInputStickerSetShortName.cs create mode 100644 TeleSharp.TL/TL/TLInputUser.cs create mode 100644 TeleSharp.TL/TL/TLInputUserEmpty.cs create mode 100644 TeleSharp.TL/TL/TLInputUserSelf.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButton.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonCallback.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonRow.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonUrl.cs create mode 100644 TeleSharp.TL/TL/TLMessage.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChannelCreate.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatAddUser.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatCreate.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionEmpty.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionHistoryClear.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionPinMessage.cs create mode 100644 TeleSharp.TL/TL/TLMessageEmpty.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityBold.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityBotCommand.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityCode.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityEmail.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityHashtag.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityItalic.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityMention.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityMentionName.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityPre.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityTextUrl.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityUnknown.cs create mode 100644 TeleSharp.TL/TL/TLMessageEntityUrl.cs create mode 100644 TeleSharp.TL/TL/TLMessageFwdHeader.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaContact.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaDocument.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaEmpty.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaGeo.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaPhoto.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaUnsupported.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaVenue.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaWebPage.cs create mode 100644 TeleSharp.TL/TL/TLMessageRange.cs create mode 100644 TeleSharp.TL/TL/TLMessageService.cs create mode 100644 TeleSharp.TL/TL/TLNearestDc.cs create mode 100644 TeleSharp.TL/TL/TLNotifyAll.cs create mode 100644 TeleSharp.TL/TL/TLNotifyChats.cs create mode 100644 TeleSharp.TL/TL/TLNotifyPeer.cs create mode 100644 TeleSharp.TL/TL/TLNotifyUsers.cs create mode 100644 TeleSharp.TL/TL/TLNull.cs create mode 100644 TeleSharp.TL/TL/TLPeerChannel.cs create mode 100644 TeleSharp.TL/TL/TLPeerChat.cs create mode 100644 TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs create mode 100644 TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs create mode 100644 TeleSharp.TL/TL/TLPeerNotifySettings.cs create mode 100644 TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs create mode 100644 TeleSharp.TL/TL/TLPeerSettings.cs create mode 100644 TeleSharp.TL/TL/TLPeerUser.cs create mode 100644 TeleSharp.TL/TL/TLPhoto.cs create mode 100644 TeleSharp.TL/TL/TLPhotoCachedSize.cs create mode 100644 TeleSharp.TL/TL/TLPhotoEmpty.cs create mode 100644 TeleSharp.TL/TL/TLPhotoSize.cs create mode 100644 TeleSharp.TL/TL/TLPhotoSizeEmpty.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs create mode 100644 TeleSharp.TL/TL/TLReceivedNotifyMessage.cs create mode 100644 TeleSharp.TL/TL/TLReplyInlineMarkup.cs create mode 100644 TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs create mode 100644 TeleSharp.TL/TL/TLReplyKeyboardHide.cs create mode 100644 TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs create mode 100644 TeleSharp.TL/TL/TLRequestInitConnection.cs create mode 100644 TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs create mode 100644 TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs create mode 100644 TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs create mode 100644 TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageCancelAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageTypingAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs create mode 100644 TeleSharp.TL/TL/TLStickerPack.cs create mode 100644 TeleSharp.TL/TL/TLStickerSet.cs create mode 100644 TeleSharp.TL/TL/TLTopPeer.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs create mode 100644 TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotInlineSend.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChannel.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChannelTooLong.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatAdmins.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatParticipants.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChatUserTyping.cs create mode 100644 TeleSharp.TL/TL/TLUpdateContactLink.cs create mode 100644 TeleSharp.TL/TL/TLUpdateContactRegistered.cs create mode 100644 TeleSharp.TL/TL/TLUpdateDcOptions.cs create mode 100644 TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs create mode 100644 TeleSharp.TL/TL/TLUpdateDeleteMessages.cs create mode 100644 TeleSharp.TL/TL/TLUpdateDraftMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateEditMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs create mode 100644 TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs create mode 100644 TeleSharp.TL/TL/TLUpdateEncryption.cs create mode 100644 TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateMessageID.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNewAuthorization.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNewMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNewStickerSet.cs create mode 100644 TeleSharp.TL/TL/TLUpdateNotifySettings.cs create mode 100644 TeleSharp.TL/TL/TLUpdatePrivacy.cs create mode 100644 TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs create mode 100644 TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs create mode 100644 TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs create mode 100644 TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs create mode 100644 TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs create mode 100644 TeleSharp.TL/TL/TLUpdateSavedGifs.cs create mode 100644 TeleSharp.TL/TL/TLUpdateServiceNotification.cs create mode 100644 TeleSharp.TL/TL/TLUpdateShort.cs create mode 100644 TeleSharp.TL/TL/TLUpdateShortChatMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateShortMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateShortSentMessage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateStickerSets.cs create mode 100644 TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserBlocked.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserName.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserPhone.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserPhoto.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserStatus.cs create mode 100644 TeleSharp.TL/TL/TLUpdateUserTyping.cs create mode 100644 TeleSharp.TL/TL/TLUpdateWebPage.cs create mode 100644 TeleSharp.TL/TL/TLUpdates.cs create mode 100644 TeleSharp.TL/TL/TLUpdatesCombined.cs create mode 100644 TeleSharp.TL/TL/TLUpdatesTooLong.cs create mode 100644 TeleSharp.TL/TL/TLUser.cs create mode 100644 TeleSharp.TL/TL/TLUserEmpty.cs create mode 100644 TeleSharp.TL/TL/TLUserFull.cs create mode 100644 TeleSharp.TL/TL/TLUserProfilePhoto.cs create mode 100644 TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusEmpty.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusLastMonth.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusLastWeek.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusOffline.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusOnline.cs create mode 100644 TeleSharp.TL/TL/TLUserStatusRecently.cs create mode 100644 TeleSharp.TL/TL/TLWallPaper.cs create mode 100644 TeleSharp.TL/TL/TLWallPaperSolid.cs create mode 100644 TeleSharp.TL/TL/TLWebPage.cs create mode 100644 TeleSharp.TL/TL/TLWebPageEmpty.cs create mode 100644 TeleSharp.TL/TL/TLWebPagePending.cs create mode 100644 TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLAbsDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLChannelDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs create mode 100644 TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs create mode 100644 TeleSharp.TL/TL/Updates/TLDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs create mode 100644 TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs create mode 100644 TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs create mode 100644 TeleSharp.TL/TL/Updates/TLRequestGetState.cs create mode 100644 TeleSharp.TL/TL/Updates/TLState.cs create mode 100644 TeleSharp.TL/TL/Upload/TLFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestGetFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs create mode 100644 TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs create mode 100644 TeleSharp.TL/TL/Users/TLRequestGetUsers.cs create mode 100644 TeleSharp.TL/TLContext.cs create mode 100644 TeleSharp.TL/TLMethod.cs create mode 100644 TeleSharp.TL/TLObject.cs create mode 100644 TeleSharp.TL/TLUtils.cs create mode 100644 TeleSharp.TL/TLVector.cs create mode 100644 TeleSharp.TL/TeleSharp.TL.csproj create mode 100644 TeleSharp.TL/packages.config diff --git a/.gitignore b/.gitignore index 884a698..30b7dae 100644 --- a/.gitignore +++ b/.gitignore @@ -64,7 +64,6 @@ artifacts/ *.tlb *.tli *.tlh -*.tmp *.tmp_proj *.log *.vspscc diff --git a/TLSharp.Core/Network/MtProtoSender.cs b/TLSharp.Core/Network/MtProtoSender.cs index 441b8e1..f7c4ef2 100644 --- a/TLSharp.Core/Network/MtProtoSender.cs +++ b/TLSharp.Core/Network/MtProtoSender.cs @@ -39,7 +39,7 @@ namespace TLSharp.Core.Network return confirmed ? _session.Sequence++ * 2 + 1 : _session.Sequence * 2; } - public async Task Send(MTProtoRequest request) + public async Task Send(TeleSharp.TL.TLMethod request) { // TODO: refactor if (needConfirmation.Any()) @@ -48,7 +48,7 @@ namespace TLSharp.Core.Network using (var memory = new MemoryStream()) using (var writer = new BinaryWriter(memory)) { - ackRequest.OnSend(writer); + ackRequest.SerializeBody(writer); await Send(memory.ToArray(), ackRequest); needConfirmation.Clear(); } @@ -58,14 +58,14 @@ namespace TLSharp.Core.Network using (var memory = new MemoryStream()) using (var writer = new BinaryWriter(memory)) { - request.OnSend(writer); + request.SerializeBody(writer); await Send(memory.ToArray(), request); } _session.Save(); } - public async Task Send(byte[] packet, MTProtoRequest request) + public async Task Send(byte[] packet, TeleSharp.TL.TLMethod request) { request.MessageId = _session.GetNewMessageId(); @@ -132,7 +132,7 @@ namespace TLSharp.Core.Network return new Tuple(message, remoteMessageId, remoteSequence); } - public async Task Receive(MTProtoRequest request) + public async Task Receive(TeleSharp.TL.TLMethod request) { while (!request.ConfirmReceived) { @@ -148,7 +148,7 @@ namespace TLSharp.Core.Network return null; } - private bool processMessage(ulong messageId, int sequence, BinaryReader messageReader, MTProtoRequest request) + private bool processMessage(ulong messageId, int sequence, BinaryReader messageReader, TeleSharp.TL.TLMethod request) { // TODO: check salt // TODO: check sessionid @@ -225,7 +225,7 @@ namespace TLSharp.Core.Network */ } - private bool HandleGzipPacked(ulong messageId, int sequence, BinaryReader messageReader, MTProtoRequest request) + private bool HandleGzipPacked(ulong messageId, int sequence, BinaryReader messageReader, TeleSharp.TL.TLMethod request) { uint code = messageReader.ReadUInt32(); byte[] packedData = GZipStream.UncompressBuffer(Serializers.Bytes.read(messageReader)); @@ -238,7 +238,7 @@ namespace TLSharp.Core.Network return true; } - private bool HandleRpcResult(ulong messageId, int sequence, BinaryReader messageReader, MTProtoRequest request) + private bool HandleRpcResult(ulong messageId, int sequence, BinaryReader messageReader, TeleSharp.TL.TLMethod request) { uint code = messageReader.ReadUInt32(); ulong requestId = messageReader.ReadUInt64(); @@ -305,7 +305,7 @@ namespace TLSharp.Core.Network } using (var compressedReader = new BinaryReader(ms)) { - request.OnResponse(compressedReader); + request.deserializeResponse(compressedReader); } } } @@ -317,8 +317,7 @@ namespace TLSharp.Core.Network else { messageReader.BaseStream.Position -= 4; - - request.OnResponse(messageReader); + request.deserializeResponse(messageReader); } return false; @@ -382,7 +381,7 @@ namespace TLSharp.Core.Network return true; } - private bool HandleBadServerSalt(ulong messageId, int sequence, BinaryReader messageReader, MTProtoRequest request) + private bool HandleBadServerSalt(ulong messageId, int sequence, BinaryReader messageReader, TeleSharp.TL.TLMethod request) { uint code = messageReader.ReadUInt32(); ulong badMsgId = messageReader.ReadUInt64(); @@ -453,7 +452,7 @@ namespace TLSharp.Core.Network return false; } - private bool HandleContainer(ulong messageId, int sequence, BinaryReader messageReader, MTProtoRequest request) + private bool HandleContainer(ulong messageId, int sequence, BinaryReader messageReader, TeleSharp.TL.TLMethod request) { uint code = messageReader.ReadUInt32(); int size = messageReader.ReadInt32(); diff --git a/TLSharp.Core/Requests/AckRequest.cs b/TLSharp.Core/Requests/AckRequest.cs index b7f2196..0a06b3a 100644 --- a/TLSharp.Core/Requests/AckRequest.cs +++ b/TLSharp.Core/Requests/AckRequest.cs @@ -1,18 +1,20 @@ using System; using System.Collections.Generic; using System.IO; +using TeleSharp.TL; namespace TLSharp.Core.Requests { - public class AckRequest : MTProtoRequest + public class AckRequest : TeleSharp.TL.TLMethod { private readonly List _msgs; + public AckRequest(List msgs) { _msgs = msgs; } - public override void OnSend(BinaryWriter writer) + public override void SerializeBody(BinaryWriter writer) { writer.Write(0x62d6b459); // msgs_ack writer.Write(0x1cb5c415); // Vector @@ -23,17 +25,25 @@ namespace TLSharp.Core.Requests } } - public override void OnResponse(BinaryReader reader) + public override void DeserializeBody(BinaryReader reader) { - //throw new NotImplementedException(); + throw new NotImplementedException(); } - public override void OnException(Exception exception) + public override void deserializeResponse(BinaryReader stream) { throw new NotImplementedException(); } public override bool Confirmed => false; public override bool Responded { get; } + + public override int Constructor + { + get + { + return 0x62d6b459; + } + } } } diff --git a/TLSharp.Core/Session.cs b/TLSharp.Core/Session.cs index 3742959..7a9cba5 100644 --- a/TLSharp.Core/Session.cs +++ b/TLSharp.Core/Session.cs @@ -26,7 +26,7 @@ namespace TLSharp.Core public Session Load(string sessionUserId) { var sessionFileName = $"{sessionUserId}.dat"; - if (!System.IO.File.Exists(sessionFileName)) + if (!File.Exists(sessionFileName)) return null; using (var stream = new FileStream(sessionFileName, FileMode.Open)) @@ -67,7 +67,7 @@ namespace TLSharp.Core public int TimeOffset { get; set; } public long LastMessageId { get; set; } public int SessionExpires { get; set; } - public TeleSharp.TL.User User { get; set; } + public TLUser TLUser { get; set; } private Random random; private ISessionStore _store; @@ -91,11 +91,11 @@ namespace TLSharp.Core Serializers.String.write(writer, ServerAddress); writer.Write(Port); - if (User != null) + if (TLUser != null) { writer.Write(1); writer.Write(SessionExpires); - Serializer.Serialize(User, typeof(TeleSharp.TL.User), writer); + ObjectUtils.SerializeObject(TLUser, writer); } else { @@ -123,11 +123,11 @@ namespace TLSharp.Core var isAuthExsist = reader.ReadInt32() == 1; int sessionExpires = 0; - User user = null; + TLUser TLUser = null; if (isAuthExsist) { sessionExpires = reader.ReadInt32(); - user = (User)Deserializer.Deserialize(typeof(User), reader); + TLUser = (TLUser)ObjectUtils.DeserializeObject(reader); } var authData = Serializers.Bytes.read(reader); @@ -141,7 +141,7 @@ namespace TLSharp.Core LastMessageId = lastMessageId, TimeOffset = timeOffset, SessionExpires = sessionExpires, - User = user, + TLUser = TLUser, SessionUserId = sessionUserId, ServerAddress = serverAddress, Port = port diff --git a/TLSharp.Core/TLSharp.Core.csproj b/TLSharp.Core/TLSharp.Core.csproj index f2191bd..de604d1 100644 --- a/TLSharp.Core/TLSharp.Core.csproj +++ b/TLSharp.Core/TLSharp.Core.csproj @@ -30,10 +30,6 @@ 4 - - ..\packages\BigMath.0.5.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\BigMath.dll - True - ..\packages\MarkerMetro.Unity.Ionic.Zlib.2.0.0.14\lib\net35\Ionic.ZLib.dll True @@ -46,10 +42,6 @@ - - ..\packages\TeleSharp.TL.1.0.0-CI00000\lib\net452\TeleSharp.TL.dll - True - @@ -71,11 +63,6 @@ - - - - - @@ -83,6 +70,12 @@ + + + {d6144517-91d2-4880-86df-e9ff5d7f383a} + TeleSharp.TL + + + \ No newline at end of file diff --git a/TLSharp.Tests/TLSharpTests.cs b/TLSharp.Tests/TLSharpTests.cs new file mode 100644 index 0000000..65e4d42 --- /dev/null +++ b/TLSharp.Tests/TLSharpTests.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using TLSharp.Core; +using TLSharp.Core.Auth; +using TLSharp.Core.MTProto; +using TLSharp.Core.Network; + +namespace TLSharp.Tests +{ + [TestClass] + public class TLSharpTests + { + private string NumberToSendMessage { get; set; } + + private string NumberToAuthenticate { get; set; } + + private string NotRegisteredNumberToSignUp { get; set; } + + private string UserNameToSendMessage { get; set; } + + private string NumberToGetUserFull { get; set; } + + private string NumberToAddToChat { get; set; } + + private string apiHash = ""; + + private int apiId; + + [TestInitialize] + public void Init() + { + // Setup your phone numbers in app.config + NumberToAuthenticate = ConfigurationManager.AppSettings[nameof(NumberToAuthenticate)]; + if (string.IsNullOrEmpty(NumberToAuthenticate)) + Debug.WriteLine("NumberToAuthenticate not configured in app.config! Some tests may fail."); + + NotRegisteredNumberToSignUp = ConfigurationManager.AppSettings[nameof(NotRegisteredNumberToSignUp)]; + if (string.IsNullOrEmpty(NotRegisteredNumberToSignUp)) + Debug.WriteLine("NotRegisteredNumberToSignUp not configured in app.config! Some tests may fail."); + + NumberToSendMessage = ConfigurationManager.AppSettings[nameof(NumberToSendMessage)]; + if (string.IsNullOrEmpty(NumberToSendMessage)) + Debug.WriteLine("NumberToSendMessage not configured in app.config! Some tests may fail."); + + UserNameToSendMessage = ConfigurationManager.AppSettings[nameof(UserNameToSendMessage)]; + if (string.IsNullOrEmpty(UserNameToSendMessage)) + Debug.WriteLine("UserNameToSendMessage not configured in app.config! Some tests may fail."); + + NumberToGetUserFull = ConfigurationManager.AppSettings[nameof(NumberToGetUserFull)]; + if (string.IsNullOrEmpty(NumberToGetUserFull)) + Debug.WriteLine("NumberToGetUserFull not configured in app.config! Some tests may fail."); + + NumberToAddToChat = ConfigurationManager.AppSettings[nameof(NumberToAddToChat)]; + if (string.IsNullOrEmpty(NumberToAddToChat)) + Debug.WriteLine("NumberToAddToChat not configured in app.config! Some tests may fail."); + } + + [TestMethod] + public async Task AuthUser() + { + var store = new FileSessionStore(); + var client = new TelegramClient(store, "session", apiId, apiHash); + + await client.Connect(); + + var hash = await client.SendCodeRequest(NumberToAuthenticate); + var code = "93463"; // you can change code in debugger + + var user = await client.MakeAuth(NumberToAuthenticate, hash, code); + + Assert.IsNotNull(user); + Assert.IsTrue(client.IsUserAuthorized()); + } + + [TestMethod] + public async Task SignUpNewUser() + { + var store = new FileSessionStore(); + var client = new TelegramClient(store, "session", apiId, apiHash); + await client.Connect(); + + var hash = await client.SendCodeRequest(NotRegisteredNumberToSignUp); + var code = ""; + + var registeredUser = await client.SignUp(NotRegisteredNumberToSignUp, hash, code, "TLSharp", "User"); + Assert.IsNotNull(registeredUser); + Assert.IsTrue(client.IsUserAuthorized()); + + var loggedInUser = await client.MakeAuth(NotRegisteredNumberToSignUp, hash, code); + Assert.IsNotNull(loggedInUser); + } + + [TestMethod] + public async Task CheckPhones() + { + var store = new FileSessionStore(); + var client = new TelegramClient(store, "session", apiId, apiHash); + await client.Connect(); + + var result = await client.IsPhoneRegistered(NumberToAuthenticate); + Assert.IsTrue(result); + } + + } +} diff --git a/TLSharp.Tests/app.config b/TLSharp.Tests/app.config new file mode 100644 index 0000000..62aae65 --- /dev/null +++ b/TLSharp.Tests/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/TLSharp.Tests/data/cat.jpg b/TLSharp.Tests/data/cat.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f64b383766a1ea4a6ee4cfec45810538141e9163 GIT binary patch literal 20780 zcmb4qWn5Iz*Y41WbV&?7bV$q4IdsF&N_Uqaox(5-%+M*_A>B%McZkvrN{9%em;d|T z``-KYt`FzS*?XP+TW9@NJnPy2R{w1Qh}9sf5CGbf@SyPk0RJ`s3IHq&OiWA+tfvPS z78W)RJ}%Ca5IukX44;IEl$3;sgoKO|_=1d_hJu8IiiwJbj*fwWf$Rk{h?yP)q-UW2 zj}o+}tvJ{?gt)kb^yDPu^#9-TuNOdqi-wPujDbc1Kqo=NAVK>#2mk^AXjo5&1^ka- z0?;wAu+eaEpWaFn1JKbhFwn8kuy8QYu`!+&qhkOtNw7$n1mv*En02kZa0DZeh2$*q z4SjPzDD<{*y(vNZ){U2}LOxIXY0v-||1rh?CXRt+|bW2W_Xa5ksO(78On zXKP&O{}T8kvLvZHH#9)Fj;-<}%g)13PzdKOL}B1uGAVn1B3|&vsB7@cP4K`-une6+Z3EGW41)yjN(xHhUu8Q6s+zakKLE&ikLPL2(&7Q|8(HCf&EVp z{BR~E4XzHcUt-mg&CTAQscO4_Y^ltS7ZA432q*9)tE1mS`$}K5BX8Xjm4SW~$|(j4 zyPJ`3jyKw#j5D*NtX3kV%W2(MbRs<=<92=K#Au;NOk5e^bVhMB!5ju_)XgcTxSh9HG z6aX#&k`_CyXf_RVc)+nz_#M@LaV?+3GDi;2BIv`xdo*Ye9?Tq;TJ)L}*NCc8*mtN% zF*#_y9bSS^J8q3D17&m78IyWhBr9XvN6=DNv&^I!@9DVEQiH(BG!yI~KO=%E0wi*U z8t7x3S&0mELynk+s+8u;G=_+(w)lpWoO`$vF#jpF3_72mY|XbuJJRhHtIb#!_X^?1 z>`>KO^Q5|}Azc1Dj8I~wIm+*ckYRouk?I}5Q)Y2lbSeg+{m}4 zK=3)2d25SeWE9|VZ*bT_fK&X5=|)<|rx_JSbgs^uNWgDF5vAP`dP)httAVwWrAM{k zE_SL3J&a+8ozqqB#U!kOG#@lS?aKu0o*M7HB35tD62UEg(^)gEJmlfayOgfezR{y4 zCB;ovo4Itfzi8H#JA<7!XA)n|X^)ldW_9Z53@!YJei5kx45~0IY zZP1lc`0(8%G&$*+X4O$76(gVadnU?BfsdbJ(O%kyjR3OJt{_;+9^xRqGOxl z)75DmYFQNb;+K>(8`KG;M=d&);G`kEXCaB!ZVhv1AM9yZj0Gjimf1npl@x=%i5E5J zg#Q3MsQ0lLEw-g+CnIF+m1BIvva+6n<#bMgbAIHv1lu8cCS``nZoXoc+ONOG_>9|` zOD8EU>_!it;iZR0zs0#vdL9qKX?wZkZafpg1_Rl-8p;MR6|-bggksgC5@ExuEWYbVY@h2PO^T}LADh&J z9MK=Qay~^dJQ^0E6hY@{?`kKDE(MdDv4A+JrY6aydQ^o{ zoc687Nc}&a^PkA#3l-8i=`WhXHW^rsFn(`}uMlMo<0zGXsf025%B!{z+~6*(eS4u?#6tK`~GY}@`h+ZO*O6_l&VIjQ7E9e2A) zR=2qs%GKABvD(NUY`NQ`G!gFCkZWVXIoi>)HD<_`Xw`7kA7$HDRJtp$BHSAQ&rnlic0P^7hB|B1eaTjE_ zarQBvPGxYu==5Qndhd;6d*%|=@@b6>rkP~7>#{a+(W_%0Zm`_z5{~2}!)$AQecbYt zHKh9_Q)-d>*^w<}*-5C`PU9?l{sT=Z~qj$GPk`UFLNsNg& z2Hn4+l7AIobw!oWG|wc|qbBA|&8@!b;A{m{PTU|q>^(yl&bSuDZy$YwSj-=PCoHa1 zpW=!VJECq3g4Qy7`yZ9`cu7w3%g16hov%DV!9-NLHg2iSyuFx*`Jd6#RK^s14V+)s z&ZjI@H6S@nY`Rn4S@vpEICmpBW~yM6R!`3PH;0j?+@|IX0V#f=W%N z+s%DPwhiIc#W`%`lSy%Z#D`Sl{o$T3%DCGowVM*yMDyXke;Garx+0d109RfS7Tkgl zEd6g3!|puvk^QV4V;5S0!a#nDCYxA~5;M~P=Hs1B;ge4%J=#MKKXqN}Zx+rd5Bt`$ zQPypIJv|B{#{1f9)bhIL6xVle_1ffrk<_S&H_>Cs2(yh>qT?{pdeU9O7qSKaD|s0J zwp?&DwhQs5m$SL>8=g`dx!aQ~eczR9_Kx~bh6BaCYQ=fo+(^Tkm&-nN^_yTR)R`12 zMf(Qh_^*AB`#!cH)j=a&bb3;ORi56G{>Rtcc7@w>3OmpK0sOygcSe0T?_gE72id*e z|1)(0`4J-fmSXs@sa8SGiEDg$x(eTxlK8};hTJ_y8#vY?e`xDY32clG# zGSkJi!W^JH5`xRgzE~48>a&2Yzbx4CTyxbyxc&j6@MncX>sc=tmcI~;h0 zOCgzX<=QG8;oF`bR1l6{>}VYnwFn*Qdgkj~;|f>jneHA;Xp_3`EAwVma!9uk?7ZAR z;8)oq4Qo;VDLAHwgLoB~!+0LUKl!dBKWxwH(=+Jnx#Q6sHMIpqJRc>2c?j8N*C#yzJ8BwD~ydlCU0>m)N^k z4qL8^92vcOtk|Mu3AXC_1`P!cJ|95$00QezR%8|UF!2*_xTErV3hp@y^ zmD0@)mnoKrHtQFE*TD?{>aE$4MSCe_?z|!&JdzJr8@S0dRh4^=>PB9wvWc4t{{tK! zgZ!@{vQ{I~J0)udNd`Z#GiWyA58*gcgdB+Yo+i&;E=zg=RZb#uy;I=NJtKOk|F&R; z09E;n`_hO|D^K>^E#1Iki4FZv?$w*uCV8ueU}}bk7!MNH^o93sYh$COYVU)H!m(Sw zj7Sg;|JKh9?G80G)p~WKwVq735$J#SMIG`b7zWS3fpW~8l73t&)V0TbAmCq-^POa~CDjAcyoB1;rWQm$vD`3$Mg!fJh9^F@)#PEWKNAOELRB`dFE z9f!m!eHKF&$6NE1FAoMg<9nuaF8+nQqj3B-z>>*y{^W9V7o(#MwKc!Wxi(P~2&zz| z!UDBphTtT5{P3|LLBxXzK4?15R&BLn3(f38qd9U*ZAlz6e3Dyl&qh8eYuDeFIo)Hf zH1;p_)8w@C5}IvhdKvG`b#FNef5R#|P_GXE{0|_leW*!Qy$0T2MtZnyKXPqG@dV9S zAJ%VcrJplhGq%u4rb@ zj~`e};x!}+-De-`suv@Cyrn&}CQ(f&2L6b5s;<-X03b*+mE89aEArU1wu?T)Kcd6QMe8D3Qyra48{uJCe6$c?&%3 z#YtLWG4F3=)~mXTJgV^$@qOBZBl60(9_Cw`^qWncK9(eRHf*$Gc_4cK1_;Y7Rz5uQ zbF5urB2kJI_nY|yreLd@P|EsF!nbkEEM2~F@ah`lCqxrYCl z-(ekgSSg=)wY7u$G39!Uo$1MPa=+Q^&h~8;rhC= zv(=Z|k!UbHp@IotSEu4lKKPNdsClTde|z4=EWrA3vhVHyIWapf(dx{{NW8J3D6=jo zaA`KLNY=WF6IZ7cQ^|H+#}CI%7H00z@{wYdvst%si5Upfl(CxLKrLWxrx2Wd|Bh9#uj$-LJ5gd_!pW5Wv-O@hL25&$&QfK zhyvTOZTX*IadClaJlF=0Sfx7S4CK9Ri{rjB29}mwg_b`Y*7}YR=>$A`#f}+^v$`TQ zrZrJv(%d#KPZETuYQK6pDAu9nsV%~((QS1^@9(4=xfP@bHZjEGDv8NW-j(!GS2$)C zW8!*i6GL6Q!~0&A8gI0iRZDsFwy4@N@2Dv&I)YXIRE*ST(HHvn{g3ht`N4)pYquXh z$#}1J{}PRt-HOlg)#4_z{RB0}hn8S`*mLrJIsSKKWGRF?@!i7o(z4Y+PK>tnR4(yz#b=X4i#meqJtC-Y{aioc}`efA@(PL!eD6) zvnM3A+Ksm4s>$llPo9uezrXSw>1&G{s^p*8@>myFEqBEH*&nAOe&;T+^kk-S@%je9 zQN~lv+o@Qix4WaFT2*K79= z;Q9Bb%2~b|jQR3)rOWm?vsspzZ;saBh4y@f*WPGw`EEUp%iGSFksPlB$lg6ji3?|> z#kzGms0mAWMkt*T|0kY+fvyVflB!7UTp}t4kCSic%rca-Vx97YgJY-CX2@;!m0|)~ ziO-8YF?|n;HYUCUQrn!-1Eu9Vowwm&*y+Wu6g-45v!w&K?j;%sVLxQZLay?z3u|aG2 z0Zz|=vBF~sAaTcVeA&K@G4iu)2{&rTOu{^|5)Xyarq)Ph+t-q#*8{$Oe_3S?uS)gi z)M~Szb5IFwe9|r!=r~b!{c|fL`Kw%gO|+knAq1{DQX<|U<>{$>?QBFFcj?DmyG*^T zfHD<^u}b%4VE&c;>l<(C7CL0+RQ=fN?&DI?5p5a%$@m|@xstk0b*SU$WO#)jhnLN; zQx!dVM~^}CXHf>M`L?nX{?oTs<&tdK6e?9u*ur-ITyFv z7oxufeN`o6<4!N2Ue5zmtg8UiSh{RJd)a3{JX(9KuO9S#kCq}gQt!WBLc z^|h0U0V24}Z<*rthrnlVLEH;8A)($ptc4LKe&~9vYqQ^FfKxuJXJSbDY3I1qo_kSu z)DEMy@rO`i$@R}dA)van)-sE42o+)T?bxLSrT;CXY%R5z43OAqpK?c4Esx+aesF^8 zo^Z?XA7H(|AVq6Bq1mbS9Jw7=Xpl@W2i$vw;mr^!lYCn@>0;omc~-WBw=p8pxc7|F zU*j5%?)B%C)3wBH!7eN&)54ese#d4A1)ovB`}?L=fwcLJP?^slbjqpJ+}w3ACKp?( zwK3@+OpP6fe3KRyoDDS#kWzO-y6e+Vg!B@YhpHTIS*}R#-c_Wf)@eqbz6DISw(d$B z1envSlY(WmKF4VBz9BbD*xBp%g$S8P#|y>djkHy;MEpGBh8{Ya)CrV1ww!)nh2j(h6lKaCQG zQ|BdA+_L}WPM@yi)val6Hk7@-GE2qDCGxS*RpU(+_+q7Ur`X(zjZ|8>IqGVN=AiIPV76K;*Tb9=`je_~!5MUk;efHT?KZHi!ueH4@o? z8LbWMDJ0A~#M3Nj&9k*56`dH z86s>o5BD;^c2E>GR&eW3rkFl#Y9(o0@1M#5dKquL#GMPXa~2ytXn;(Vy*_T(Iult) ze8(cwY}QhCM+;v*7;^jqb~fWMpTIm2%InyoxymkAuFI=tB^BB?M@fx1PY=%@F>`p1 z8~c6F9=ER~)y7Z$^HLY_6U+va&vM%SU6Lh_I~mTPQ?;F9>!YN&;q;@|64yrBWDnqJ zkl+4y>8Qd*Ifqk%Ekg^F9~eugjQMA`fr5H#%{9=MwxnMJ`<2ePQJqZOTZWAmeSA|h zGT{_|czqny(T~58c$M9Wu5VXHk|woIu*`S25;EKUtX!q-IR+NV{%dX5i!+(&)H|LeE*8ug61CpXSEfyj@j}&i zcuTI#t#ZyRv~g(K56as6IurEbuLzZ2jxwmv7pq2R>UD_CT#{U$VX29sHh5EnoD+}? z@>L>`TV`nx8v*^SYi~0Jx0l`8*MFtV>K=5;k$Rx< zUGrlovJm|mR7ruRm?R~TeKe$@fzpM#-{f(LSz<--@XJa6Jl-8f?j20-O}^NuD`x%h zzBC@&R1S{pr9W(enkv&u%Uu%w&MS2gR3y>~u=#m=Z(x0E4RMQ@b{@4tS8@ZyPXWBc zS>qwzPN2b*8wQNz}C?`(UZJLR>5gI2W=+_!;IFT*b{<})&EfsjUL(WP^;v|uR0^0PG zc1xwjYLqI|MAvmKuv;JSa#ry|p?_S-#OP7TNjI&*;9g3zfs3iP1X*H@IL%elZrQt4 z!6Ur+X`^6b1tRy@Vk%Kn6H?w3?ad<$f}8Ie+l^sNPS~l98<=6Aq{U}1%Zs7*tw!o4 z+BW`eTp%Vh0>nQ+8r2^sZ%y(KsO&QFe}Iv7(KOu0+Bt0&Fy09L09fSP)*`nzp^S?pNl2syBI))5jLYP>)te&hpOp54g^zMR=V?vb~rs- z)i!sR$uRxIW7w1!WZhvmaRz=umZV{gcD*vvnGniLBJ6-K-U)|?x8mGjCAIUaRq-LV_> z(9l#C_z%#+Vj&X!)z%E5q26|KNWFW>kmfs1^rr2vmhqm!6m~}Wh?{N1q6f~TwX#G* zFGGx>jc(-Uy~A{6u*;p`C)RfOH;@~W#;e`Wep;1c|KLm8-0|I|vuKxV^;6FLB&wMDQ-C{DG#>9fP z0dNtV7UKy?avt2^bfO`^>t)i9rN7(hVW8*PnvoEm;_+YJ&pkH;qFk1vB)i{Fe)f3d zbo)X)>KK|Hxor&+NPee!udfw~#H{&!ZM<~hM?Eo4Vc=PXjh+-?T72tdzINiGgJ1Ta zNg2doHI!}{abZAq{$$v+*yPHBfo%w-WLKkf|L zXD?SS%0d`JDK^KHOa?EsdPu)1m7FyzrAe;M#le$o)IrDUXLhW9H;$jCgFV8w2_T#9 zc?Wa*8CFKtikcfAoDar!I)7V!evl9dH5?(Q4&6TX? zJgT+LmVgy2p|Ye)jvj~$%rc(XdYrCq8vvxPndbVfoC}XTkkRW7bT&K!XP(H&jXwJ76*kn@S zBUv2eFkkzJW%X~aQS|oEhSXQLDvKBX(Ce1gH_=wf?%jqpqIWdzihJ4K7?o(v=PLdK{1P}Q9nMEOuv(-;mnZS|+@)8KwQApi_d#Q?Dfc`_ zfGM-kGc!eW!S*eVU&57%t4FC4c91QJ8}hL-+Z3h5W~Mld@)5O9A~!x$j~SxK5|_S% z9!X&YPY(AVV_R{lk@Ts&_f)5^;o@R~CRZ;JzN5=mTOR}IGSg8yxNk~94V; zxqKab=-O>#Kcd{WK}EGw@^!j`i;r0Y2!sBGp;Y1aIn5LrAqCiKb>dyD$t#Y~-#P}d z`hVEE3J~BXLnoJ`ad@yHE3JH`KG#oDn@+UOKPxF2ms!U<<^|NY{VI1SIMO#`>y)}> z*xwts_O=cwhEkfE=ydH$zVf`{dgV4Y{SIdCQ%RIUH`x3j7yUKB_WU99%o|KqABKOC zL^tC4`@KqB3w%8&RyA#sXaf^yWLsM@%~dIE^d-Os>ZZzI<%rS;O0?Vm0|*(`_hyHs zy~t;8rVOR-YH4q~dSv7zq~bpOc3s!)RZmw|0WW>rSDyO^xY@5#t$fUO@>cupm^`d) zz6-myBJY&Al2|*g0eGvjCRrIcCL5^6A+WXhxyY25Z_)hh=hb3zm|l@%6p9Up;q9hN zoSnjtWaQ>e#gcNy#MZ^Pf*(G7hwuou+M6%mybc}3aKFG7fSv64cnkgIA^mj6oR}F7 zw(n(N>GA$e;^ugEnQdmrnw}KdIBh@}AzLphE&W^N;sesTh$M{mj1z-L4O=j@xhxXn5g>o6i)^l z8QLBuhR5P!ZplADWC*=qW!W(T(0e4?TmIArj(6ON)n#Vc3UB>)(eS^S7YuFi`L$w| zGCWFd9*%vd_eSYdg%KWQ104}VUi-CwOhkJ%vpqB?DPuTGymMMkdN7|FFM)N#pgPH+~C7YwG38@v6MfEy17|} z@ep@q&~eq0aZ0MY3ew`2f1|D!nt*jl$&hNnCZ6@kzZ&O1J_}XyQo2BNC_^=aFh2wr z8(b^hjtsEQW2mYzd@{l*JU8DIYOJNHCv?_vhN7Ha=oNku`!=%wx;{Q{g>pt{d_X%} zIpwkJ@q=?KO?P%#8WrCm-}{&pIx709*UjFqvkqq%UXD?}xD+|aa-Ve;ec{#UjiJ!) z@OOL2&pMTIL#$EWMU~3pty$NSh2;QGP$L;m<#+9r(Y;DvTLJyg4$E(DhTK@|!)ptD zIo^_@0e8O^(%<;nCh9pfD86bHM>{vLRi}_=LTB`rJJ-#o^A~?EcVGj4PS0O__+j!N zKs<>cZNKPh9gS)NAGtxHGMHlfAT)NbKNtIUaOItQ4lv^dN)d*=V-b#VT^BqLhfc#u zQuA0Q{XANTaEF*$X*M$t^O8n(ATF_*J&>1=MDk+uUrIhN=BQkz$5gqAzMWMgqBg+* zgq3iGTvqO@Jdc&s9*evzMW=3XpFymb$59JCEuZ0uV~eC7@dlpkVe z^g9VM%3#%#&}$Y|ADtx(yniZV!qPdP{}@AN4OD_E=we+0O$o_+-N(lgyFlI=luftUeat@2{8w?QGBCzPLg5%rkr{g ze}H@z&>cyXfa;e zXj5}N#X0c|g;U!M<9pFXTqoVoas%(khWAmQLj^avBB<;D(56?(2 zuN{fodS%99pc$zoNK`t_eSsKxCq1ODNCyWagTZ1=+?4_LyZE=4-}|OXqCzc(0#TQC zM>h?>1#ZVbOJ7XU(571B0Qe6t>jJfO4Oxo#;dz65@)G@`Bh;X+$PH&Tfh?DF!Tyc@ zrYZIuCxJ+-Ss`>8EhWF*AN$9-za>W>gws7;=7t%Unkz20w{Q}#LQ9NXnbJaA9LUS# zFGvf`16UxR@UP6M`c9&K>oWTulhbXecRcW%C^dAM^r`5JbZkR~#ZB!5+IZ`xKCIQa zP$CjAaVDmFUwj;S_ley_(WeU8(JKA=iR3pe^w-Pq?0}Dlm6SLt{q}EaEq+3d%A6_) z1GySJKZ`l~1^x@@Ws0So(DFb;aP&evzfdd|m$*wnYzu#W>|SA5bSB}C{?4Yux$+?D z_2!o;LPShrORjBrudl-|83qyaP;vEK_*mB8xMS*sL}ir)zU`JyG?V>j`&BoGmA4eE z)S740ese7e1KQF^zv|V>NEPhoivA5axuMn{wh?yyDnonfM29aR{{UwaLv8n^@K*6~ zA@j9%ggnky95L6RAKu)fW83N&!SC*+jDPD+r-bCcuRKYS9TwYu3-S~gIea`FziJvM zf+@dE+8uV@5c*}*b}em6wXOSmC4+O?qIeF$<7MiP#X3+h3QD=t+faE+K5b^MG4JLI zTo`Kfffe;-4Kk*S(TN=!mH9aLMU5L^QX@M0tG!)j5yD-P-C49p*K}qE*Y?&cO=B13EEHMO5>1iA}$*JsEOMzZb<rs4G?_67@62ZbXzxSr5ef(x)!~CW2WeT{|iV6p7K>9c0~jQ zA3Ct_SyvQ9@7c9{AQ%hbcgh_h1~WOa#)!VA{sN8i-4OH5A>w*r`Cc*~EVEq&N>1$H z-w5P$0NN>2u|(a|Oe=sADdXyCs6oSj3()etR!-Gch0TpMEL5k}Qbs;I&zTk+gAAzM z`DMh>xTPKc0c!HJ^}2q*m(!~S8X@`uTFS45F7@>POqatxuI+rbZQA(aRPQFiH|+Hd ziJbDk(k7F<{oJ0(9`}ci=PwgN&WkG^w3SO?2!yBTn=ofs4I9lJ8T~>XzoS{@{qrjQ zYM5R*&W-7#fxFZld#O8a$Mn?bqM^`J52#5)tF`j3tlz3VncP~u>eoG~rm}E{YP0V! z1CZpLCML1jt_LmiCtG(C3(%vujZ#%N@AJaEe3-uq{THLO6s%8(BYUq~2N5aZ!Dr7G z);k>H2Tx-|m1u+;)Iu12?iT6F{5nxQ+iAAp7e9jy3(kQliBdr0Tx>fk)03gZv7>`2 zq!PW)ZH(}5d&Jt_h>=4t#i>pIyrk=z{?R27vGzYeX7Dt1{IvK^R&H(9X+j4rH^?#6 zYv#}p{=z9G2#^+WYy_j>ide6J3AB{qg)@*|IGc!z;Ft0Lm-FH%n*uWYUr>kxZE_bt z+|(MD6@V!&!C&ey)f=3$yVs&{4i?z<=yZ+BG8=$`Lg|(hB+Jj`ZpKTF!_6&Cq^32_ zs@RGY|Hya=9l_S}7QScCH0IQsc!Jn>J&Kc9{oQY9Z86E39S%CT5GF!z?1%xDf7A5r za!I`A!`bj&RFvB1+3JZ6@e)}665U^6wEUwhD>zjeA7==>J#*2s7d093tSV4L2X8qf zJLlnn$H!7;5k)P+cI5Yy^`!1Z%?{uhirOR!dl#c68c`;}{rGjX!?JgHhhr)6Yf(6_ z8do5lfo?nLTWNj+=!Do_`k&Mt6hBsU#@Ehz?55$xT5RHg*`c1Q174v zHx19fSAPH0d!12Qu@F`Fd)KJb>T zF&|&3QvW(7O5dGegBwWwLTM#ddg_n%j?2+-J#N#-UC{=*$$_<;0tPiFhv0xAJsNr* zfr)%&*ZZ*kPN@&Ez6PyI228T+#Z>f5Gn^H*nHv*K87r!w=*!pc=9Nul#7-1%dDKvZ za<_FR5=V_n?xoJG;i!^5pCN5FiFgg4oym|#c*Lm6H~Qa0f%8$ymH1Vyw8h3<#3qDu z%bne>gnD4fniGx}!{WJ={H}<7ORE*J`ofV|e&w0{DNgAbvda%J-V&6`h5hwv5C&{* zj3sOGYRdg&`9RNxfMHmylG}X_mL(^^dYQYT@s2)jE#M$a$T7)@Eqj>kB{eyl<)l6p znSIt6b14cEm1ea_Q(BC@9R6SNl<)xd-}FGNe}I_ttP5;tsZ^wtf_!T~T5J13j`-F* zUp}_o&F*!D8qcvNKpV5-xscZnAw5qQ*GAMk1?H=nY8&wPl%#!aEHcn$dUnXbu&kld zo5$*z1D7H}uQ_TZl?5ly+KEc%adsmri*0Obo&sL-T)~sIN;V!9@7F1fm69U zK2*1r-?D|@*siVAnQS#NL%aB}Bz>4ML&NXP#SKQlnwzlR zmP`^z8rIr|LM!9MF%XZtNr+Be(P*!FL(M+V6+&^0=z#s=^`rKplsxfN#KDe!ud`|h;4|9vYWd88#}B#p7a8o5-XPm2psf|sF(F~%Y7_)=OmlXy7dvcUx?9k2 z^QzlMdAnjVl=*0mZcXf%y9v!nf_YwDD)V?B+Dqqg*AXri9|UK%t7VH)oT%4w>6NhYloY2&+f{Mon>xTXYGATK)o(P^$TWV5D?)E#&@2S+C?1_8k22g zqs&N#B2>H#$v1=yx?05=5FYGNQ7fHta@>dSWRKr93X@78r=fJlYoS_*T!g z!oM`rOtyMXm#?gpi9dpGqNOMs6EWR@4l$*UXnXSk4=t$x{bSoOEONkDnR~EXUoD3A zb~Ri43QH*qJ$u1%ISC?dM(|RO%)G{L0<61)YrN_nbwgdE*N7n3VvYH9NqtM9qAKW} zp!nm;zi?feyGUY=z1;2q;l*4NC49NC+PFS<{F*)ypF6_hqcZt}aIzvlS1N0)d@dXh zAj;8u!h!A<xC!4}=qKqeq{i9poFwi+SVFDmjiB z6WmrrP}|3}Ui7YmWfCE7bYcbHl`{g$aCerpimf-^+8MhY1!Zq%e@&|W2Pk)__>uJu z|3rZAw@GKQtJt)*&F^_R(2R$)k{BpqlU;Gy?;}&}#SP9Iivel>l)tk9yBk!6Y+qXg z{=UgbA~!Yo9JLwDT0By6Jof~o>fq-KhFn^-?<$W4Qhzlud*0sNiLYyo=W}nUGSA-7 zH@*XC%~QC;z5E!7229GnWDO z7R!KJF^TW;?{JWcS6x-04@c#dGTzJ>zISbhIZBnqmo0 z68I%&p~;-x1cE>0H4F1eAKe$q*gU|72Rq2DHz2Zkc&yn3+7Ia$IjSi2zeeGQCXRYa95qfLOb7h2p6gpg0d^B#hyph3IYxI1uH3N(XY8fn zWHl|1_nG_J6AzYsHw1dij*=MdUOGnh)wFVM<%t~;1b9Wka_C-o5DSF&cQh6klYz;3sYi8`e9n#+ zcxnr?J}RTP!Lu?b3iczRy<3kiKx4MJ!-ZXpNn`;1K#F{#zfeYr{Otp)NikKP^a%p_ zmu}{&n(c|drG;$%5nISM+ZZ(h6VZOy1SU}z{Nq~P-`g;kzQU)GU*A@d4GASYvyXe~klC#8dH9NpG~f3BCHt&OeG`_wW-D-OQdZKCGv| zE7na`B`?IgjwE7Eu+5Ro(CI>L&t#&3PccKAh;?xG<$g%6BC!n3zeDS})I;8zDrA zTZBf6>l+ooV1zF?NoBMo*Ny0zK5>N6(pX(6xi6=&0a^P^5r#s_F*@v)ymiI(RqQ&K zUi1T3Dak{*TZx~u{i=FC4Btcc8p5Dw;T}d9<9U4 zA-UU7fZ6pP2WcGc#SWg?eLQj{+B=()6SkydezJD~ zK;*uLGo$44+Y9>HJcD37^XiTowL=22QJV7;;r<7(7f3()bX~M{PSE=}L%0M34lJWF zX3;ZNH{WTULeTdkDWMTe>siuN!G@b41%TOd?vn90Em4x@TVP7e?RT|H<5ONj8kL8U z#l6Khh%T<~NS7WGrPdIYK|i_}o6A!tcz41X>HM@xrpJWkkHy&piv%#Iugi@@MR!5P z7IH*t%15{J?2Ow2PivwL{))wQtEXk<9Dq=XCJ^sCdEE&EI2E)Pzb2yEK zY~RD@@omf5vDYaCK1c7f@wEfyEQ*a1Z< zg&em(EHRI1B@sSo%(LXGxZOsbaTl>uDmkQR)AkVnWv?QTRsX%3J`-Wl~GNe2v#AyU9OP|pN^HOCA%kIU6V(Q?S zU&_HL^=HUw#Mhs(dIAd3DrcLAL3YmZxN9Br!m|}p%=yt84INF-sdq{R=eW8H554*- zK@xVQsS>&P3ni@SbNxnW9km5`k!+jC=D|oah>3%9)h3ZPY(T+n8=B!Sh-HbbQL*c| zD_mnOU>Q!2Hf2X^=iQ(FHovqNm{eJV$ej02=u-7AcGJZ*mi=<&qY?Amq!rOpK;ibP z95jnL<+UM<_AFy%IrSOlQw~OcCPx$eELIe*$@XM+gJ2yrfzQkl@k>4OskrV4?a_m9 znkTZmNIE$w8x?SQmFU_4;RrCxLXT9iMmC^0{CJfLpfegqq8i;=nKpZNFI#Lglixel zQ6K6bog;AQ$AfCsL?=Cx9}(gPpA3F7{iSS$E5k%6+paOQa8}<|%WDc{a2W)APxQ;{ z8u!+AT`@P4JgcR5s<8NdMadmy1b<^o>J}NhuE5Fo#}Mc2*w20fpKMe4rYNgsl+F8!F2yT%u_B0IfrXpVMk~2yRzalQ z&S+Fdc-hMK;|p!MQ7K$04$D>wax0r*K^!l&8|P<<$&3IJbsMZcJPGtKJE@kX5egA0 zQS;GQ%JIC~$$_7^jHy*c0B{yF{g=`g zlq0&XG%dIkT~{=43ZM&H(~Esui@JnI zs*J0t{ahcp)1Dc6x&gjl<`rms>Uilv)yIKcjHCiu_fWBn<+=`Pp|B-VVaEv&UJ@TI zf&XVhj2A9NY|baXqy$3vZK_$Cdvo^I7OU5?E!nfc7Gqo&SDny`E!Ng~0(SD@ zyl&&QZV5`!WHtccvhgDEwY#~G%CM5#B)anOJkCRdx`OfDyvlGd2H_x7)LKp#G9O+O zn)A8G!OFng=^Vt!o$|v)x0z~11!QQ`Oy8UcNAi$Sb{bG|Z4$L;r;pT9-rkwuvSUJH z{#O9~4+8KOR+(|i)+S>h*6qZW?7rfd4?T(}v%7rs-c4+DD`mtQl8`WZRZyhj^u9Ub zvp%}#an`cHDJ}-lS_FpRZ3i`g zO0$i*%>Z#OfL^qt9FqN1ZY{v9Y}A1+^_XLgoX7?SdeS+fiVVqW{xGrgLq{+!Fi5UR zu4GGeFB@fZ+u;8ID(9)WG>(t$sHV%CT@wD~6v&|*k5xCpDQuh1 z7=^{*hYS1HB!iLgYk#9{ZJ7MDxzm`R zMgB|nWxP?OMK!r5AWvh8t~im&Bg=e6q6f@RZWONw{c-SqKb3lTqe%0zyLvD>r-zwk zWpp8jP-@&rGLGj$AeEb@N0PmgSEV?)lF|8CF z*xr4sY}+|N3V=70>DO`dw3_I6+9IZy)Jdbjbt1Ea4nZ+Wz>Lwxjk8tZyQJKpn!_yg z9Wr=KLy=9;b`vDZIuT3AWRAsf4|>ZRi8@?`?^|Y3I$q}(=71js*_LgD700zJVMWEb zQGzg6zcj4S<%S#vZKL4vS^>660LEJi#~X84*b!dobG^$oyX8ROROPaWlEMkYBFu$k zR{X^;8)IIL6fg#pe>tt7*b_EkE!aK z-N1^|e2_3Bb1pClG_Z}7n@Jk|1HjhLwp+$8Cw1*jA02xVeob_GE}N&vZyLuOYO0_P z1$3y<$tkzlX%r)G0A`wmvF#8m&{oh`EycRJkU*^BgOfAbzMC0Rz+)cO&y&ZDwq6<9 zF}vMD2#wq@_UtAXXtyHD`A?f(E3K?+-~ zJR=ZPeie)WMW$R5QZhX z1?Lo;hfsZ%o*dDp7Tc$hgC2I8I|rjlZ>E$WsU-9{HHH$+XsT9502S|!v>QWy@iVMb> zS)V0|u4zJ@oe`br6Hd`&)h?N2j}ew1KJ=;<%KV&9Q1Hf$Z>8HLaRK-W>4X$cY0b#j z*dq=?igZb`)(j30CV&b-?ZpC}AmopFU^S{5sk|(<5F-|5R*DZI zf_W4H4AG+wm9zko+ox*U04s}CIpT^7Dz2>;CxJj7s7u7L`L>g+KO<71uqSwPVYb>f{P%+MP zT#{6DMpkTXen}#nnh(EVQF@T z2a)qo`ER4q{+2L}%d^n*O#%yeMAEM5Pb|dqnskm%PFgG$OK;jt5llS5d0gg;L;O-v zxv@xph^)@*ty$B@iI!M$e0KlM_6pgSD zO={2-TGYrFIRMikSy2VTo(UB}7+SiT0FYp=4FE>Tlf?i+>T^I5yJTQdMj|KOj8GN} zC?wEn0S70FS~kWsZh6N_z#zEX7o{s14Yjm;i2|zU@Tt*6=+x+1T0!by1N&B}&^b0~ zts!M>;B6J6S#f4pCmeH3U~-;^iU62DdQcNFBNPDy&5@pz!j<=jAkYRg#Nm9l{pcSQ zBx`4n_?gjUbllC)y=@rTkC_8GBc6NKfIFchrDH&d+#Wuh(on>590OXAppL^epg}9* zfCgy}de8(jKN&Q@SI)rD2Cf^e0aMGd~`WTzG%vAKFIb zAoEQa%l`mrl5t<;3#-p>Z+|S8c2|~W2=FD@zA#T>MH8GJOBC_A zz<8S@cl4pFS_Q7j>@F{??^R{DC{F`D#dBo3+A9^kGgV^D&Q5THl5y6#k~(C~4zGTZ zXeAKiE6`Hpe~Et={{T@j-({AMaef+cpD6)cjxuT(m9wYIpVzZ>;tPW`hQbL-1YOfI zoF9Qi7V6CDjGPPm7vZ0qs=-aB}RK*zK+>gmjmlV z5gvQ1YvkOr1G#CStrJ^|}Tih$ILCpY5y?y8cDPOJ) z0)xicb6NwL3sww8BtQ(%0~HrFjM^PIMURS5E7NMvmR2fyjB!90+C&lKe$W%xj2c=f zTr0+`3II<^06NNI&dt+|aX<%KO53r?KLUYENE>hi6ahCNW`G*)ft*kT63JSHEAJcx zG*BLO<12xO2Oy4XQlLDW#0+GVlH7wp6fOqt4rl?SaX=A1J*c1um;xxE1C>U4(Lf0@ zpRHv8B)MA91fBTBC;>{`&}|!o;y)Tdf(={3`ev@7nWfkWV1pwAoB_!r0Oq^iT%Y9| zIg}#5Oo!=n$*K6BTd2GVaRHJwjs=zxH8F$hgW)xP-YyEt**^yhm+q=1Jkb zFc6`?^O}5tLuBv>Zhm;DZN9(qB31AGhFD+t-p+W;z5vqiP)WjDGe*Q?9T@OA9M&o2 zkN98kQ{%-i^RMLuT6mYlQC>O^v%9kCxo%@ym6xwhI))uOjMl8vUE^j;1U+O!)5ks$ zyB4;06Y4qz*=_QR_F7Tkp%-SJj&RceTHcT9rb*3jL4*LSMvQ9uqAeaXrs=e>4jhE_r?_~1d~Aj0Cre?Xnp?x zDu!PcaYgX?QN0@f00Yexh0Myx%a2Pr=rPb&G-1UZ88UKY8kDzJAM5hPbtF#PL@uWr zIO|+eQn^v=;hYp5mUuUc6+LFm=j2IOv z25WI@f~;3Z=~yR zPo+mGal3Cd(G{c4%GW1GE5^FSFDZmFm2TkGV-8v%=UXxcD5N`pKT}=Uuth}U$(gn? zdte4LL%@M$ITFuq!0tGx%L_$TOEfxWsH%W7kIs{WH<@Anq@6=j@ndpFPN1$an#y5g zmgz@1pwNi!)Q+`-1Ki#PQ%cxTQ7*2jCeqc0hTC7P-~idp2?2Gc+eInehB)t@C}yJJ z;$sjIJsgUlh+i<7|%BGb=K!-$XuL?U_7T?G8=+;#Va)x40+993^EWX z0ymc*k4RuHIk2l%PFTv+FqSBky?~R zSUm%Fa(0qNPI~+b^nN(x+>z&elE&&R(rLeDJ_)#cl>Y!lOLB$1R?@sIcs)uHn&)_< zTG#M&Jk!1J`5B=7m-tG;(@=r!u5Y3jBn7*;X$C#Mlwg9C6^oxFp+Ce{{s!=M&W9$Q z{{V*c=wgyjQ$rTlIRiefwO8Zgr=oH4ayf08eQUwGW`!Ny-iLRpY0Cmzx?96|{!ZpR zu~yF}xw7No(`8|smvLX{W~cF|h_t;=#8wbq`IhKfWLc0l*7!YfTyG?lDD+ksxuaL$ ze-dgszlQE^FMO7f@EodoD9PV#ERF**zXaC8C`n1tvC%B;?sTMS zBN@k0#dOEA7U-|kZDA9lg*f`v8Hf*3hA|ERq0Gn;OIP z8J}|UD@`|AJkk;dc&sS8FUzn&gFq4^6mL%ypc-XmhjQQ?ds8D2c7t;)(h%fhZ(%?( z3^KZ$M@_=7EZ< vr2)9&kkCnJ0BL&A0FyD#S^yqKG@uPL9Ce@pC1Z}XAOX22Gyo&kA&>vrZq#-A literal 0 HcmV?d00001 diff --git a/TLSharp.Tests/packages.config b/TLSharp.Tests/packages.config new file mode 100644 index 0000000..6b8deb9 --- /dev/null +++ b/TLSharp.Tests/packages.config @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/TLSharp.sln b/TLSharp.sln index 1d8702f..504f779 100644 --- a/TLSharp.sln +++ b/TLSharp.sln @@ -5,6 +5,12 @@ VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TLSharp.Core", "TLSharp.Core\TLSharp.Core.csproj", "{400D2544-1CC6-4D8A-A62C-2292D9947A16}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeleSharp.TL", "TeleSharp.TL\TeleSharp.TL.csproj", "{D6144517-91D2-4880-86DF-E9FF5D7F383A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeleSharp.Generator", "TeleSharp.Generator\TeleSharp.Generator.csproj", "{9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TLSharp.Tests", "TLSharp.Tests\TLSharp.Tests.csproj", "{DE5C0467-EE99-4734-95F2-EFF7A0B99924}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +21,18 @@ Global {400D2544-1CC6-4D8A-A62C-2292D9947A16}.Debug|Any CPU.Build.0 = Debug|Any CPU {400D2544-1CC6-4D8A-A62C-2292D9947A16}.Release|Any CPU.ActiveCfg = Release|Any CPU {400D2544-1CC6-4D8A-A62C-2292D9947A16}.Release|Any CPU.Build.0 = Release|Any CPU + {D6144517-91D2-4880-86DF-E9FF5D7F383A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D6144517-91D2-4880-86DF-E9FF5D7F383A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D6144517-91D2-4880-86DF-E9FF5D7F383A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D6144517-91D2-4880-86DF-E9FF5D7F383A}.Release|Any CPU.Build.0 = Release|Any CPU + {9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129}.Release|Any CPU.Build.0 = Release|Any CPU + {DE5C0467-EE99-4734-95F2-EFF7A0B99924}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DE5C0467-EE99-4734-95F2-EFF7A0B99924}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DE5C0467-EE99-4734-95F2-EFF7A0B99924}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DE5C0467-EE99-4734-95F2-EFF7A0B99924}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TeleSharp.Generator/App.config b/TeleSharp.Generator/App.config new file mode 100644 index 0000000..88fa402 --- /dev/null +++ b/TeleSharp.Generator/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TeleSharp.Generator/Constructor.tmp b/TeleSharp.Generator/Constructor.tmp new file mode 100644 index 0000000..73bf205 --- /dev/null +++ b/TeleSharp.Generator/Constructor.tmp @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace /* NAMESPACE */ +{ + [TLObject(/*Constructor*/)] + public class /* NAME */ : /* PARENT */ + { + public override int Constructor + { + get + { + return /*Constructor*/; + } + } + + /* PARAMS */ + + public void ComputeFlags() + { + /* COMPUTE */ + } + + public override void DeserializeBody(BinaryReader br) + { + /* DESERIALIZE */ + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + /* SERIALIZE */ + } + } +} diff --git a/TeleSharp.Generator/ConstructorAbs.tmp b/TeleSharp.Generator/ConstructorAbs.tmp new file mode 100644 index 0000000..8a6dd2c --- /dev/null +++ b/TeleSharp.Generator/ConstructorAbs.tmp @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace /* NAMESPACE */ +{ + public abstract class /* NAME */ : TLObject + { + } +} diff --git a/TeleSharp.Generator/Method.tmp b/TeleSharp.Generator/Method.tmp new file mode 100644 index 0000000..59d2f0f --- /dev/null +++ b/TeleSharp.Generator/Method.tmp @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace /* NAMESPACE */ +{ + [TLObject(/*Constructor*/)] + public class /* NAME */ : /* PARENT */ + { + public override int Constructor + { + get + { + return /*Constructor*/; + } + } + + /* PARAMS */ + + public void ComputeFlags() + { + /* COMPUTE */ + } + + public override void DeserializeBody(BinaryReader br) + { + /* DESERIALIZE */ + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + /* SERIALIZE */ + } + public override void deserializeResponse(BinaryReader br) + { + /* DESERIALIZEResp */ + } + } +} diff --git a/TeleSharp.Generator/Models.cs b/TeleSharp.Generator/Models.cs new file mode 100644 index 0000000..8e43820 --- /dev/null +++ b/TeleSharp.Generator/Models.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json.Schema; +namespace TeleSharp.Generator +{ + class Method + { + public int id { get; set; } + public string method { get; set; } + [Newtonsoft.Json.JsonProperty("params")] + public List Params { get; set; } + public string type { get; set; } + + } + class Param + { + public string name { get; set; } + public string type { get; set; } + } + class Constructor + { + public int id { get; set; } + public string predicate { get; set; } + [Newtonsoft.Json.JsonProperty("params")] + public List Params { get; set; } + public string type { get; set; } + } + class Schema + { + public List constructors { get; set; } + public List methods { get; set; } + } +} diff --git a/TeleSharp.Generator/Program.cs b/TeleSharp.Generator/Program.cs new file mode 100644 index 0000000..00dce76 --- /dev/null +++ b/TeleSharp.Generator/Program.cs @@ -0,0 +1,433 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.CodeDom; +using System.Reflection; +using System.Text.RegularExpressions; + +namespace TeleSharp.Generator +{ + class Program + { + static List keywords = new List(new string[] { "abstract", "as", "base", "bool", "break", "byte", "case", "catch", "char", "checked", "class", "const", "continue", "decimal", "default", "delegate", "do", "double", "else", "enum", "event", "explicit", "extern", "false", "finally", "fixed", "float", "for", "foreach", "goto", "if", "implicit", "in", "in", "int", "interface", "internal", "is", "lock", "long", "namespace", "new", "null", "object", "operator", "out", "out", "override", "params", "private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed", "short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw", "true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using", "virtual", "void", "volatile", "while", "add", "alias", "ascending", "async", "await", "descending", "dynamic", "from", "get", "global", "group", "into", "join", "let", "orderby", "partial", "partial", "remove", "select", "set", "value", "var", "where", "where", "yield" }); + static List interfacesList = new List(); + static List classesList = new List(); + static void Main(string[] args) + { + + string AbsStyle = File.ReadAllText("ConstructorAbs.tmp"); + string NormalStyle = File.ReadAllText("Constructor.tmp"); + string MethodStyle = File.ReadAllText("Method.tmp"); + //string method = File.ReadAllText("constructor.tt"); + string Json = ""; + string url; + if (args.Count() == 0) url = "tl-schema.json"; else url = args[0]; + + Json = File.ReadAllText(url); + FileStream file = File.OpenWrite("Result.cs"); + StreamWriter sw = new StreamWriter(file); + Schema schema = JsonConvert.DeserializeObject(Json); + foreach (var c in schema.constructors) + { + interfacesList.Add(c.type); + classesList.Add(c.predicate); + } + foreach (var c in schema.constructors) + { + var list = schema.constructors.Where(x => x.type == c.type); + if (list.Count() > 1) + { + string path = (GetNameSpace(c.type).Replace("TeleSharp.TL", "TL\\").Replace(".", "") + "\\" + GetNameofClass(c.type, true) + ".cs").Replace("\\\\", "\\"); + FileStream classFile = MakeFile(path); + using (StreamWriter writer = new StreamWriter(classFile)) + { + string nspace = (GetNameSpace(c.type).Replace("TeleSharp.TL", "TL\\").Replace(".", "")).Replace("\\\\", "\\").Replace("\\", "."); + if (nspace.EndsWith(".")) + nspace = nspace.Remove(nspace.Length - 1, 1); + string temp = AbsStyle.Replace("/* NAMESPACE */", "TeleSharp." + nspace); + temp = temp.Replace("/* NAME */", GetNameofClass(c.type, true)); + writer.Write(temp); + writer.Close(); + classFile.Close(); + } + } + else + { + interfacesList.Remove(list.First().type); + list.First().type = "himself"; + } + } + foreach (var c in schema.constructors) + { + string path = (GetNameSpace(c.predicate).Replace("TeleSharp.TL", "TL\\").Replace(".", "") + "\\" + GetNameofClass(c.predicate, false) + ".cs").Replace("\\\\", "\\"); + FileStream classFile = MakeFile(path); + using (StreamWriter writer = new StreamWriter(classFile)) + { + #region About Class + string nspace = (GetNameSpace(c.predicate).Replace("TeleSharp.TL", "TL\\").Replace(".", "")).Replace("\\\\", "\\").Replace("\\", "."); + if (nspace.EndsWith(".")) + nspace = nspace.Remove(nspace.Length - 1, 1); + string temp = NormalStyle.Replace("/* NAMESPACE */", "TeleSharp." + nspace); + temp = (c.type == "himself") ? temp.Replace("/* PARENT */", "TLObject") : temp.Replace("/* PARENT */", GetNameofClass(c.type, true)); + temp = temp.Replace("/*Constructor*/", c.id.ToString()); + temp = temp.Replace("/* NAME */", GetNameofClass(c.predicate, false)); + #endregion + #region Fields + string fields = ""; + foreach (var tmp in c.Params) + { + fields += $" public {CheckForFlagBase(tmp.type, GetTypeName(tmp.type))} {CheckForKeyword(tmp.name)} " + "{get;set;}" + Environment.NewLine; + } + temp = temp.Replace("/* PARAMS */", fields); + #endregion + #region ComputeFlagFunc + if (!c.Params.Any(x => x.name == "flags")) temp = temp.Replace("/* COMPUTE */", ""); + else + { + var compute = "flags = 0;" + Environment.NewLine; + foreach (var param in c.Params.Where(x => IsFlagBase(x.type))) + { + if (IsTrueFlag(param.type)) + { + compute += $"flags = {CheckForKeyword(param.name)} ? (flags | {GetBitMask(param.type)}) : (flags & ~{GetBitMask(param.type)});" + Environment.NewLine; + } + else + { + compute += $"flags = {CheckForKeyword(param.name)} != null ? (flags | {GetBitMask(param.type)}) : (flags & ~{GetBitMask(param.type)});" + Environment.NewLine; + } + } + temp = temp.Replace("/* COMPUTE */", compute); + } + #endregion + #region SerializeFunc + var serialize = ""; + + if (c.Params.Any(x => x.name == "flags")) serialize += "ComputeFlags();" + Environment.NewLine + "bw.Write(flags);" + Environment.NewLine; + foreach (var p in c.Params.Where(x => x.name != "flags")) + { + serialize += WriteWriteCode(p) + Environment.NewLine; + } + temp = temp.Replace("/* SERIALIZE */", serialize); + #endregion + #region DeSerializeFunc + var deserialize = ""; + + foreach (var p in c.Params) + { + deserialize += WriteReadCode(p) + Environment.NewLine; + } + temp = temp.Replace("/* DESERIALIZE */", deserialize); + #endregion + writer.Write(temp); + writer.Close(); + classFile.Close(); + } + } + foreach (var c in schema.methods) + { + if (c.method.Contains("updateUsername")) + { + + } + string path = (GetNameSpace(c.method).Replace("TeleSharp.TL", "TL\\").Replace(".", "") + "\\" + GetNameofClass(c.method, false,true) + ".cs").Replace("\\\\", "\\"); + FileStream classFile = MakeFile(path); + using (StreamWriter writer = new StreamWriter(classFile)) + { + #region About Class + string nspace = (GetNameSpace(c.method).Replace("TeleSharp.TL", "TL\\").Replace(".", "")).Replace("\\\\", "\\").Replace("\\", "."); + if (nspace.EndsWith(".")) + nspace = nspace.Remove(nspace.Length - 1, 1); + string temp = MethodStyle.Replace("/* NAMESPACE */", "TeleSharp." + nspace); + temp = temp.Replace("/* PARENT */", "TLMethod"); + temp = temp.Replace("/*Constructor*/", c.id.ToString()); + temp = temp.Replace("/* NAME */", GetNameofClass(c.method, false,true)); + #endregion + #region Fields + string fields = ""; + foreach (var tmp in c.Params) + { + fields += $" public {CheckForFlagBase(tmp.type, GetTypeName(tmp.type))} {CheckForKeyword(tmp.name)} " + "{get;set;}" + Environment.NewLine; + } + fields += $" public {CheckForFlagBase(c.type, GetTypeName(c.type))} Response" + "{ get; set;}" + Environment.NewLine; + temp = temp.Replace("/* PARAMS */", fields); + #endregion + #region ComputeFlagFunc + if (!c.Params.Any(x => x.name == "flags")) temp = temp.Replace("/* COMPUTE */", ""); + else + { + var compute = "flags = 0;" + Environment.NewLine; + foreach (var param in c.Params.Where(x => IsFlagBase(x.type))) + { + if (IsTrueFlag(param.type)) + { + compute += $"flags = {CheckForKeyword(param.name)} ? (flags | {GetBitMask(param.type)}) : (flags & ~{GetBitMask(param.type)});" + Environment.NewLine; + } + else + { + compute += $"flags = {CheckForKeyword(param.name)} != null ? (flags | {GetBitMask(param.type)}) : (flags & ~{GetBitMask(param.type)});" + Environment.NewLine; + } + } + temp = temp.Replace("/* COMPUTE */", compute); + } + #endregion + #region SerializeFunc + var serialize = ""; + + if (c.Params.Any(x => x.name == "flags")) serialize += "ComputeFlags();" + Environment.NewLine + "bw.Write(flags);" + Environment.NewLine; + foreach (var p in c.Params.Where(x => x.name != "flags")) + { + serialize += WriteWriteCode(p) + Environment.NewLine; + } + temp = temp.Replace("/* SERIALIZE */", serialize); + #endregion + #region DeSerializeFunc + var deserialize = ""; + + foreach (var p in c.Params) + { + deserialize += WriteReadCode(p) + Environment.NewLine; + } + temp = temp.Replace("/* DESERIALIZE */", deserialize); + #endregion + #region DeSerializeRespFunc + var deserializeResp = ""; + Param p2 = new Param() { name = "Response", type = c.type }; + deserializeResp += WriteReadCode(p2) + Environment.NewLine; + temp = temp.Replace("/* DESERIALIZEResp */", deserializeResp); + #endregion + writer.Write(temp); + writer.Close(); + classFile.Close(); + } + } + } + public static string FormatName(string input) + { + if (String.IsNullOrEmpty(input)) + throw new ArgumentException("ARGH!"); + if (input.IndexOf('.') != -1) + { + input = input.Replace(".", " "); + var temp = ""; + foreach (var s in input.Split(' ')) + { + temp += FormatName(s) + " "; + } + input = temp.Trim(); + } + return input.First().ToString().ToUpper() + input.Substring(1); + } + public static string CheckForKeyword(string name) + { + if (keywords.Contains(name)) return "@" + name; + return name; + } + public static string GetNameofClass(string type, bool isinterface = false, bool ismethod = false) + { + if (!ismethod) + { + if (type.IndexOf('.') != -1 && type.IndexOf('?') == -1) + return isinterface ? "TLAbs" + FormatName(type.Split('.')[1]) : "TL" + FormatName(type.Split('.')[1]); + else if (type.IndexOf('.') != -1 && type.IndexOf('?') != -1) + return isinterface ? "TLAbs" + FormatName(type.Split('?')[1]) : "TL" + FormatName(type.Split('?')[1]); + else + return isinterface ? "TLAbs" + FormatName(type) : "TL" + FormatName(type); + } + else + { + if (type.IndexOf('.') != -1 && type.IndexOf('?') == -1) + return "TLRequest" + FormatName(type.Split('.')[1]); + else if (type.IndexOf('.') != -1 && type.IndexOf('?') != -1) + return "TLRequest" + FormatName(type.Split('?')[1]); + else + return "TLRequest" + FormatName(type) ; + } + } + private static bool IsFlagBase(string type) + { + return type.IndexOf("?") != -1; + } + private static int GetBitMask(string type) + { + return (int)Math.Pow((double)2, (double)int.Parse(type.Split('?')[0].Split('.')[1])); + } + private static bool IsTrueFlag(string type) + { + return type.Split('?')[1] == "true"; + } + public static string GetNameSpace(string type) + { + if (type.IndexOf('.') != -1) + return "TeleSharp.TL" + FormatName(type.Split('.')[0]); + else + return "TeleSharp.TL"; + } + public static string CheckForFlagBase(string type, string result) + { + if (type.IndexOf('?') == -1) + return result; + else + { + string innerType = type.Split('?')[1]; + if (innerType == "true") return result; + else if ((new string[] {"bool","int", "uint", "long", "double" }).Contains(result)) return result + "?"; + else return result; + } + } + public static string GetTypeName(string type) + { + if (type.ToLower().Contains("inputcontact")) return "TLInputPhoneContact"; + switch (type.ToLower()) + { + case "#": + case "int": + return "int"; + case "uint": + return "uint"; + case "long": + return "long"; + case "double": + return "double"; + case "string": + return "string"; + case "bytes": + return "byte[]"; + case "true": + case "bool": + return "bool"; + case "!x": + return "TLObject"; + case "x": + return "TLObject"; + } + if (type.StartsWith("Vector")) + return "TLVector<" + GetTypeName(type.Replace("Vector<", "").Replace(">", "")) + ">"; + else + { + if (type.IndexOf('.') != -1 && type.IndexOf('?') == -1) + { + + if (interfacesList.Any(x => x.ToLower() == (type).ToLower())) + return FormatName(type.Split('.')[0]) + "." + "TLAbs" + type.Split('.')[1]; + else if (classesList.Any(x => x.ToLower() == (type).ToLower())) + return FormatName(type.Split('.')[0]) + "." + "TL" + type.Split('.')[1]; + else + return FormatName(type.Split('.')[1]); + } + else if (type.IndexOf('?') == -1) + { + if (interfacesList.Any(x => x.ToLower() == type.ToLower())) + return "TLAbs" + type; + else if (classesList.Any(x => x.ToLower() == type.ToLower())) + return "TL" + type; + else + return type; + } + else + { + return GetTypeName(type.Split('?')[1]); + } + } + + } + public static string LookTypeInLists(string src) + { + if (interfacesList.Any(x => x.ToLower() == src.ToLower())) + return "TLAbs" + FormatName(src); + else if (classesList.Any(x => x.ToLower() == src.ToLower())) + return "TL" + FormatName(src); + else + return src; + } + public static string WriteWriteCode(Param p, bool flag = false) + { + switch (p.type.ToLower()) + { + case "#": + case "int": + return flag ? $"bw.Write({CheckForKeyword(p.name)}.Value);" : $"bw.Write({CheckForKeyword(p.name)});"; + case "long": + return flag ? $"bw.Write({CheckForKeyword(p.name)}.Value);" : $"bw.Write({CheckForKeyword(p.name)});"; + case "string": + return $"StringUtil.Serialize({CheckForKeyword(p.name)},bw);"; + case "bool": + return flag ? $"BoolUtil.Serialize({CheckForKeyword(p.name)}.Value,bw);" : $"BoolUtil.Serialize({CheckForKeyword(p.name)},bw);"; + case "true": + return $"BoolUtil.Serialize({CheckForKeyword(p.name)},bw);"; + case "bytes": + return $"BytesUtil.Serialize({CheckForKeyword(p.name)},bw);"; + case "double": + return flag ? $"bw.Write({CheckForKeyword(p.name)}.Value);" : $"bw.Write({CheckForKeyword(p.name)});"; + default: + if (!IsFlagBase(p.type)) + return $"ObjectUtils.SerializeObject({CheckForKeyword(p.name)},bw);"; + else + { + if (IsTrueFlag(p.type)) + return $""; + else + { + Param p2 = new Param() { name = p.name, type = p.type.Split('?')[1] }; + return $"if ((flags & {GetBitMask(p.type).ToString()}) != 0)" + Environment.NewLine + + WriteWriteCode(p2, true); + } + } + } + } + public static string WriteReadCode(Param p) + { + switch (p.type.ToLower()) + { + case "#": + case "int": + return $"{CheckForKeyword(p.name)} = br.ReadInt32();"; + case "long": + return $"{CheckForKeyword(p.name)} = br.ReadInt64();"; + case "string": + return $"{CheckForKeyword(p.name)} = StringUtil.Deserialize(br);"; + case "bool": + case "true": + return $"{CheckForKeyword(p.name)} = BoolUtil.Deserialize(br);"; + case "bytes": + return $"{CheckForKeyword(p.name)} = BytesUtil.Deserialize(br);"; + case "double": + return $"{CheckForKeyword(p.name)} = br.ReadDouble();"; + default: + if (!IsFlagBase(p.type)) + { + if (p.type.ToLower().Contains("vector")) + { + return $"{CheckForKeyword(p.name)} = ({GetTypeName(p.type)})ObjectUtils.DeserializeVector<{GetTypeName(p.type).Replace("TLVector<","").Replace(">","")}>(br);"; + } + else return $"{CheckForKeyword(p.name)} = ({GetTypeName(p.type)})ObjectUtils.DeserializeObject(br);"; + } + else + { + if (IsTrueFlag(p.type)) + return $"{CheckForKeyword(p.name)} = (flags & {GetBitMask(p.type).ToString()}) != 0;"; + else + { + Param p2 = new Param() { name = p.name, type = p.type.Split('?')[1] }; + return $"if ((flags & {GetBitMask(p.type).ToString()}) != 0)" + Environment.NewLine + + WriteReadCode(p2) + Environment.NewLine + + "else" + Environment.NewLine + + $"{CheckForKeyword(p.name)} = null;" + Environment.NewLine; + } + } + } + } + public static FileStream MakeFile(string path) + { + if (!Directory.Exists(Path.GetDirectoryName(path))) + Directory.CreateDirectory(Path.GetDirectoryName(path)); + if (File.Exists(path)) + File.Delete(path); + return File.OpenWrite(path); + } + } + +} \ No newline at end of file diff --git a/TeleSharp.Generator/Properties/AssemblyInfo.cs b/TeleSharp.Generator/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..7c4146a --- /dev/null +++ b/TeleSharp.Generator/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TeleSharp.Generator")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TeleSharp.Generator")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("9be3b9d4-9ff6-4dc8-b9cc-eb2e3f390129")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TeleSharp.Generator/TeleSharp.Generator.csproj b/TeleSharp.Generator/TeleSharp.Generator.csproj new file mode 100644 index 0000000..c386fa6 --- /dev/null +++ b/TeleSharp.Generator/TeleSharp.Generator.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {9BE3B9D4-9FF6-4DC8-B9CC-EB2E3F390129} + Exe + Properties + TeleSharp.Generator + TeleSharp.Generator + v4.5.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll + True + + + + + + + + + + + + + + + + + + + Always + + + + + + + + + Always + + + Always + + + + + \ No newline at end of file diff --git a/TeleSharp.Generator/packages.config b/TeleSharp.Generator/packages.config new file mode 100644 index 0000000..9d64bf3 --- /dev/null +++ b/TeleSharp.Generator/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/TeleSharp.TL/ObjectDeserializer.cs b/TeleSharp.TL/ObjectDeserializer.cs new file mode 100644 index 0000000..f6e256c --- /dev/null +++ b/TeleSharp.TL/ObjectDeserializer.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public class ObjectUtils + { + public static object DeserializeObject(BinaryReader reader) + { + int Constructor = reader.ReadInt32(); + object obj; + Type t =null; + try { + t = TLContext.getType(Constructor); + obj = Activator.CreateInstance(t); + } + catch(Exception ex) + { + throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !"); + } + if (t.IsSubclassOf(typeof(TLMethod))) + { + ((TLMethod)obj).deserializeResponse(reader); + return obj; + } + else if (t.IsSubclassOf(typeof(TLObject))) + { + ((TLObject)obj).DeserializeBody(reader); + return obj; + } + else throw new NotImplementedException("Weird Type : " + t.Namespace + " | " + t.Name); + } + public static void SerializeObject(object obj,BinaryWriter writer) + { + ((TLObject)obj).SerializeBody(writer); + } + public static TLVector DeserializeVector(BinaryReader reader) + { + if (reader.ReadInt32() != 481674261) throw new InvalidDataException("Bad Constructor"); + TLVector t = new TLVector(); + t.DeserializeBody(reader); + return t; + } + } +} diff --git a/TeleSharp.TL/Properties/AssemblyInfo.cs b/TeleSharp.TL/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3ff3c97 --- /dev/null +++ b/TeleSharp.TL/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("TeleSharp.TL")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TeleSharp.TL")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("d6144517-91d2-4880-86df-e9ff5d7f383a")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TeleSharp.TL/TL/Account/TLAbsPassword.cs b/TeleSharp.TL/TL/Account/TLAbsPassword.cs new file mode 100644 index 0000000..9bfacaf --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLAbsPassword.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + public abstract class TLAbsPassword : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Account/TLAuthorizations.cs b/TeleSharp.TL/TL/Account/TLAuthorizations.cs new file mode 100644 index 0000000..4d27cad --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLAuthorizations.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(307276766)] + public class TLAuthorizations : TLObject + { + public override int Constructor + { + get + { + return 307276766; + } + } + + public TLVector authorizations {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + authorizations = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(authorizations,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLNoPassword.cs b/TeleSharp.TL/TL/Account/TLNoPassword.cs new file mode 100644 index 0000000..23d604d --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLNoPassword.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-1764049896)] + public class TLNoPassword : TLAbsPassword + { + public override int Constructor + { + get + { + return -1764049896; + } + } + + public byte[] new_salt {get;set;} + public string email_unconfirmed_pattern {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + new_salt = BytesUtil.Deserialize(br); +email_unconfirmed_pattern = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(new_salt,bw); +StringUtil.Serialize(email_unconfirmed_pattern,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLPassword.cs b/TeleSharp.TL/TL/Account/TLPassword.cs new file mode 100644 index 0000000..1fc6dc0 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLPassword.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(2081952796)] + public class TLPassword : TLAbsPassword + { + public override int Constructor + { + get + { + return 2081952796; + } + } + + public byte[] current_salt {get;set;} + public byte[] new_salt {get;set;} + public string hint {get;set;} + public bool has_recovery {get;set;} + public string email_unconfirmed_pattern {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + current_salt = BytesUtil.Deserialize(br); +new_salt = BytesUtil.Deserialize(br); +hint = StringUtil.Deserialize(br); +has_recovery = BoolUtil.Deserialize(br); +email_unconfirmed_pattern = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(current_salt,bw); +BytesUtil.Serialize(new_salt,bw); +StringUtil.Serialize(hint,bw); +BoolUtil.Serialize(has_recovery,bw); +StringUtil.Serialize(email_unconfirmed_pattern,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs new file mode 100644 index 0000000..e581108 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-2037289493)] + public class TLPasswordInputSettings : TLObject + { + public override int Constructor + { + get + { + return -2037289493; + } + } + + public int flags {get;set;} + public byte[] new_salt {get;set;} + public byte[] new_password_hash {get;set;} + public string hint {get;set;} + public string email {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = new_salt != null ? (flags | 1) : (flags & ~1); +flags = new_password_hash != null ? (flags | 1) : (flags & ~1); +flags = hint != null ? (flags | 1) : (flags & ~1); +flags = email != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +if ((flags & 1) != 0) +new_salt = BytesUtil.Deserialize(br); +else +new_salt = null; + +if ((flags & 1) != 0) +new_password_hash = BytesUtil.Deserialize(br); +else +new_password_hash = null; + +if ((flags & 1) != 0) +hint = StringUtil.Deserialize(br); +else +hint = null; + +if ((flags & 2) != 0) +email = StringUtil.Deserialize(br); +else +email = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +if ((flags & 1) != 0) +BytesUtil.Serialize(new_salt,bw); +if ((flags & 1) != 0) +BytesUtil.Serialize(new_password_hash,bw); +if ((flags & 1) != 0) +StringUtil.Serialize(hint,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(email,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs new file mode 100644 index 0000000..bb8c1f4 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-1212732749)] + public class TLPasswordSettings : TLObject + { + public override int Constructor + { + get + { + return -1212732749; + } + } + + public string email {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + email = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(email,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLPrivacyRules.cs b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs new file mode 100644 index 0000000..6ede6a3 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1430961007)] + public class TLPrivacyRules : TLObject + { + public override int Constructor + { + get + { + return 1430961007; + } + } + + public TLVector rules {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + rules = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(rules,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs new file mode 100644 index 0000000..c386a1a --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1891839707)] + public class TLRequestChangePhone : TLMethod + { + public override int Constructor + { + get + { + return 1891839707; + } + } + + public string phone_number {get;set;} + public string phone_code_hash {get;set;} + public string phone_code {get;set;} + public TLAbsUser Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +phone_code_hash = StringUtil.Deserialize(br); +phone_code = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(phone_code_hash,bw); +StringUtil.Serialize(phone_code,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs new file mode 100644 index 0000000..87c4382 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(655677548)] + public class TLRequestCheckUsername : TLMethod + { + public override int Constructor + { + get + { + return 655677548; + } + } + + public string username {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(username,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs new file mode 100644 index 0000000..749d620 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1099779595)] + public class TLRequestDeleteAccount : TLMethod + { + public override int Constructor + { + get + { + return 1099779595; + } + } + + public string reason {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + reason = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(reason,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs new file mode 100644 index 0000000..36c8c88 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(150761757)] + public class TLRequestGetAccountTTL : TLMethod + { + public override int Constructor + { + get + { + return 150761757; + } + } + + public TLAccountDaysTTL Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs new file mode 100644 index 0000000..3c4891f --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-484392616)] + public class TLRequestGetAuthorizations : TLMethod + { + public override int Constructor + { + get + { + return -484392616; + } + } + + public Account.TLAuthorizations Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs new file mode 100644 index 0000000..bf56b9a --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(313765169)] + public class TLRequestGetNotifySettings : TLMethod + { + public override int Constructor + { + get + { + return 313765169; + } + } + + public TLAbsInputNotifyPeer peer {get;set;} + public TLAbsPeerNotifySettings Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs new file mode 100644 index 0000000..5b4a494 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1418342645)] + public class TLRequestGetPassword : TLMethod + { + public override int Constructor + { + get + { + return 1418342645; + } + } + + public Account.TLAbsPassword Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs new file mode 100644 index 0000000..79d46c0 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-1131605573)] + public class TLRequestGetPasswordSettings : TLMethod + { + public override int Constructor + { + get + { + return -1131605573; + } + } + + public byte[] current_password_hash {get;set;} + public Account.TLPasswordSettings Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + current_password_hash = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(current_password_hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs new file mode 100644 index 0000000..7672a74 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-623130288)] + public class TLRequestGetPrivacy : TLMethod + { + public override int Constructor + { + get + { + return -623130288; + } + } + + public TLAbsInputPrivacyKey key {get;set;} + public Account.TLPrivacyRules Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(key,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs new file mode 100644 index 0000000..6d148c7 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-1068696894)] + public class TLRequestGetWallPapers : TLMethod + { + public override int Constructor + { + get + { + return -1068696894; + } + } + + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs new file mode 100644 index 0000000..06e4f9c --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1669245048)] + public class TLRequestRegisterDevice : TLMethod + { + public override int Constructor + { + get + { + return 1669245048; + } + } + + public int token_type {get;set;} + public string token {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + token_type = br.ReadInt32(); +token = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(token_type); +StringUtil.Serialize(token,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs new file mode 100644 index 0000000..21e7d47 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-1374118561)] + public class TLRequestReportPeer : TLMethod + { + public override int Constructor + { + get + { + return -1374118561; + } + } + + public TLAbsInputPeer peer {get;set;} + public TLAbsReportReason reason {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(reason,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs new file mode 100644 index 0000000..db2abbd --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-545786948)] + public class TLRequestResetAuthorization : TLMethod + { + public override int Constructor + { + get + { + return -545786948; + } + } + + public long hash {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(hash); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs new file mode 100644 index 0000000..863f0ae --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-612493497)] + public class TLRequestResetNotifySettings : TLMethod + { + public override int Constructor + { + get + { + return -612493497; + } + } + + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs new file mode 100644 index 0000000..1cb46d9 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(149257707)] + public class TLRequestSendChangePhoneCode : TLMethod + { + public override int Constructor + { + get + { + return 149257707; + } + } + + public int flags {get;set;} + public bool allow_flashcall {get;set;} + public string phone_number {get;set;} + public bool? current_number {get;set;} + public Auth.TLSentCode Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = allow_flashcall ? (flags | 1) : (flags & ~1); +flags = current_number != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +allow_flashcall = (flags & 1) != 0; +phone_number = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +current_number = BoolUtil.Deserialize(br); +else +current_number = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +StringUtil.Serialize(phone_number,bw); +if ((flags & 1) != 0) +BoolUtil.Serialize(current_number.Value,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs new file mode 100644 index 0000000..64b6cb7 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(608323678)] + public class TLRequestSetAccountTTL : TLMethod + { + public override int Constructor + { + get + { + return 608323678; + } + } + + public TLAccountDaysTTL ttl {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + ttl = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(ttl,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs new file mode 100644 index 0000000..25d6f4a --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-906486552)] + public class TLRequestSetPrivacy : TLMethod + { + public override int Constructor + { + get + { + return -906486552; + } + } + + public TLAbsInputPrivacyKey key {get;set;} + public TLVector rules {get;set;} + public Account.TLPrivacyRules Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br); +rules = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(key,bw); +ObjectUtils.SerializeObject(rules,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs new file mode 100644 index 0000000..f805f78 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1707432768)] + public class TLRequestUnregisterDevice : TLMethod + { + public override int Constructor + { + get + { + return 1707432768; + } + } + + public int token_type {get;set;} + public string token {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + token_type = br.ReadInt32(); +token = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(token_type); +StringUtil.Serialize(token,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs new file mode 100644 index 0000000..40b70f7 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(954152242)] + public class TLRequestUpdateDeviceLocked : TLMethod + { + public override int Constructor + { + get + { + return 954152242; + } + } + + public int period {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + period = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(period); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs new file mode 100644 index 0000000..75ca0eb --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-2067899501)] + public class TLRequestUpdateNotifySettings : TLMethod + { + public override int Constructor + { + get + { + return -2067899501; + } + } + + public TLAbsInputNotifyPeer peer {get;set;} + public TLInputPeerNotifySettings settings {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br); +settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(settings,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs new file mode 100644 index 0000000..74892e1 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-92517498)] + public class TLRequestUpdatePasswordSettings : TLMethod + { + public override int Constructor + { + get + { + return -92517498; + } + } + + public byte[] current_password_hash {get;set;} + public Account.TLPasswordInputSettings new_settings {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + current_password_hash = BytesUtil.Deserialize(br); +new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(current_password_hash,bw); +ObjectUtils.SerializeObject(new_settings,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs new file mode 100644 index 0000000..2d4333b --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(2018596725)] + public class TLRequestUpdateProfile : TLMethod + { + public override int Constructor + { + get + { + return 2018596725; + } + } + + public int flags {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public string about {get;set;} + public TLAbsUser Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = first_name != null ? (flags | 1) : (flags & ~1); +flags = last_name != null ? (flags | 2) : (flags & ~2); +flags = about != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +if ((flags & 1) != 0) +first_name = StringUtil.Deserialize(br); +else +first_name = null; + +if ((flags & 2) != 0) +last_name = StringUtil.Deserialize(br); +else +last_name = null; + +if ((flags & 4) != 0) +about = StringUtil.Deserialize(br); +else +about = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +if ((flags & 1) != 0) +StringUtil.Serialize(first_name,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(last_name,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(about,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs new file mode 100644 index 0000000..5a70bc0 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1713919532)] + public class TLRequestUpdateStatus : TLMethod + { + public override int Constructor + { + get + { + return 1713919532; + } + } + + public bool offline {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offline = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BoolUtil.Serialize(offline,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs new file mode 100644 index 0000000..97cf21e --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1040964988)] + public class TLRequestUpdateUsername : TLMethod + { + public override int Constructor + { + get + { + return 1040964988; + } + } + + public string username {get;set;} + public TLAbsUser Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(username,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs b/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs new file mode 100644 index 0000000..fa01532 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + public abstract class TLAbsCodeType : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs b/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs new file mode 100644 index 0000000..c77d063 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + public abstract class TLAbsSentCodeType : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Auth/TLAuthorization.cs b/TeleSharp.TL/TL/Auth/TLAuthorization.cs new file mode 100644 index 0000000..e4445b6 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLAuthorization.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-16553231)] + public class TLAuthorization : TLObject + { + public override int Constructor + { + get + { + return -16553231; + } + } + + public TLAbsUser user {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(user,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs new file mode 100644 index 0000000..6bcc3b2 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-2128698738)] + public class TLCheckedPhone : TLObject + { + public override int Constructor + { + get + { + return -2128698738; + } + } + + public bool phone_registered {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_registered = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BoolUtil.Serialize(phone_registered,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs new file mode 100644 index 0000000..7e8110a --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1948046307)] + public class TLCodeTypeCall : TLAbsCodeType + { + public override int Constructor + { + get + { + return 1948046307; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs new file mode 100644 index 0000000..01f3dca --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(577556219)] + public class TLCodeTypeFlashCall : TLAbsCodeType + { + public override int Constructor + { + get + { + return 577556219; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs new file mode 100644 index 0000000..c7ff712 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1923290508)] + public class TLCodeTypeSms : TLAbsCodeType + { + public override int Constructor + { + get + { + return 1923290508; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs new file mode 100644 index 0000000..7a2b924 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-543777747)] + public class TLExportedAuthorization : TLObject + { + public override int Constructor + { + get + { + return -543777747; + } + } + + public int id {get;set;} + public byte[] bytes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +BytesUtil.Serialize(bytes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs new file mode 100644 index 0000000..75fdbb9 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(326715557)] + public class TLPasswordRecovery : TLObject + { + public override int Constructor + { + get + { + return 326715557; + } + } + + public string email_pattern {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + email_pattern = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(email_pattern,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs new file mode 100644 index 0000000..eb72bfd --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-841733627)] + public class TLRequestBindTempAuthKey : TLMethod + { + public override int Constructor + { + get + { + return -841733627; + } + } + + public long perm_auth_key_id {get;set;} + public long nonce {get;set;} + public int expires_at {get;set;} + public byte[] encrypted_message {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + perm_auth_key_id = br.ReadInt64(); +nonce = br.ReadInt64(); +expires_at = br.ReadInt32(); +encrypted_message = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(perm_auth_key_id); +bw.Write(nonce); +bw.Write(expires_at); +BytesUtil.Serialize(encrypted_message,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs new file mode 100644 index 0000000..0c7f61d --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(520357240)] + public class TLRequestCancelCode : TLMethod + { + public override int Constructor + { + get + { + return 520357240; + } + } + + public string phone_number {get;set;} + public string phone_code_hash {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +phone_code_hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(phone_code_hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs new file mode 100644 index 0000000..4b28ef0 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(174260510)] + public class TLRequestCheckPassword : TLMethod + { + public override int Constructor + { + get + { + return 174260510; + } + } + + public byte[] password_hash {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + password_hash = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(password_hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs new file mode 100644 index 0000000..2930bfe --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1877286395)] + public class TLRequestCheckPhone : TLMethod + { + public override int Constructor + { + get + { + return 1877286395; + } + } + + public string phone_number {get;set;} + public Auth.TLCheckedPhone Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs new file mode 100644 index 0000000..065e81a --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-440401971)] + public class TLRequestExportAuthorization : TLMethod + { + public override int Constructor + { + get + { + return -440401971; + } + } + + public int dc_id {get;set;} + public Auth.TLExportedAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dc_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(dc_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs new file mode 100644 index 0000000..d77e720 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-470837741)] + public class TLRequestImportAuthorization : TLMethod + { + public override int Constructor + { + get + { + return -470837741; + } + } + + public int id {get;set;} + public byte[] bytes {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +BytesUtil.Serialize(bytes,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs new file mode 100644 index 0000000..a6d6e05 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1738800940)] + public class TLRequestImportBotAuthorization : TLMethod + { + public override int Constructor + { + get + { + return 1738800940; + } + } + + public int flags {get;set;} + public int api_id {get;set;} + public string api_hash {get;set;} + public string bot_auth_token {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +api_id = br.ReadInt32(); +api_hash = StringUtil.Deserialize(br); +bot_auth_token = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(api_id); +StringUtil.Serialize(api_hash,bw); +StringUtil.Serialize(bot_auth_token,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs new file mode 100644 index 0000000..bad6f1c --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1461180992)] + public class TLRequestLogOut : TLMethod + { + public override int Constructor + { + get + { + return 1461180992; + } + } + + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs new file mode 100644 index 0000000..1172549 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1319464594)] + public class TLRequestRecoverPassword : TLMethod + { + public override int Constructor + { + get + { + return 1319464594; + } + } + + public string code {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + code = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(code,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs new file mode 100644 index 0000000..bf6660c --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-661144474)] + public class TLRequestRequestPasswordRecovery : TLMethod + { + public override int Constructor + { + get + { + return -661144474; + } + } + + public Auth.TLPasswordRecovery Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs new file mode 100644 index 0000000..88fa179 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1056025023)] + public class TLRequestResendCode : TLMethod + { + public override int Constructor + { + get + { + return 1056025023; + } + } + + public string phone_number {get;set;} + public string phone_code_hash {get;set;} + public Auth.TLSentCode Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +phone_code_hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(phone_code_hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs new file mode 100644 index 0000000..c6d9a51 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-1616179942)] + public class TLRequestResetAuthorizations : TLMethod + { + public override int Constructor + { + get + { + return -1616179942; + } + } + + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs new file mode 100644 index 0000000..bb956ef --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-2035355412)] + public class TLRequestSendCode : TLMethod + { + public override int Constructor + { + get + { + return -2035355412; + } + } + + public int flags { get; set; } + public bool allow_flashcall { get; set; } + public string phone_number { get; set; } + public bool? current_number { get; set; } + public int api_id { get; set; } + public string api_hash { get; set; } + public Auth.TLSentCode Response { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = allow_flashcall ? (flags | 1) : (flags & ~1); + flags = current_number != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); + allow_flashcall = (flags & 1) != 0; + phone_number = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + current_number = BoolUtil.Deserialize(br); + else + current_number = null; + + api_id = br.ReadInt32(); + api_hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + StringUtil.Serialize(phone_number, bw); + if ((flags & 1) != 0) + BoolUtil.Serialize(current_number.Value, bw); + bw.Write(api_id); + StringUtil.Serialize(api_hash, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs new file mode 100644 index 0000000..eae4082 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1998331287)] + public class TLRequestSendInvites : TLMethod + { + public override int Constructor + { + get + { + return 1998331287; + } + } + + public TLVector phone_numbers {get;set;} + public string message {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_numbers = (TLVector)ObjectUtils.DeserializeVector(br); +message = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(phone_numbers,bw); +StringUtil.Serialize(message,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs new file mode 100644 index 0000000..e6ab344 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-1126886015)] + public class TLRequestSignIn : TLMethod + { + public override int Constructor + { + get + { + return -1126886015; + } + } + + public string phone_number {get;set;} + public string phone_code_hash {get;set;} + public string phone_code {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +phone_code_hash = StringUtil.Deserialize(br); +phone_code = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(phone_code_hash,bw); +StringUtil.Serialize(phone_code,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs new file mode 100644 index 0000000..de55845 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(453408308)] + public class TLRequestSignUp : TLMethod + { + public override int Constructor + { + get + { + return 453408308; + } + } + + public string phone_number {get;set;} + public string phone_code_hash {get;set;} + public string phone_code {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public Auth.TLAuthorization Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +phone_code_hash = StringUtil.Deserialize(br); +phone_code = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(phone_code_hash,bw); +StringUtil.Serialize(phone_code,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLSentCode.cs b/TeleSharp.TL/TL/Auth/TLSentCode.cs new file mode 100644 index 0000000..fd33414 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLSentCode.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1577067778)] + public class TLSentCode : TLObject + { + public override int Constructor + { + get + { + return 1577067778; + } + } + + public int flags {get;set;} + public bool phone_registered {get;set;} + public Auth.TLAbsSentCodeType type {get;set;} + public string phone_code_hash {get;set;} + public Auth.TLAbsCodeType next_type {get;set;} + public int? timeout {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = phone_registered ? (flags | 1) : (flags & ~1); +flags = next_type != null ? (flags | 2) : (flags & ~2); +flags = timeout != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +phone_registered = (flags & 1) != 0; +type = (Auth.TLAbsSentCodeType)ObjectUtils.DeserializeObject(br); +phone_code_hash = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +next_type = (Auth.TLAbsCodeType)ObjectUtils.DeserializeObject(br); +else +next_type = null; + +if ((flags & 4) != 0) +timeout = br.ReadInt32(); +else +timeout = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(type,bw); +StringUtil.Serialize(phone_code_hash,bw); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(next_type,bw); +if ((flags & 4) != 0) +bw.Write(timeout.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs new file mode 100644 index 0000000..42511bf --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1035688326)] + public class TLSentCodeTypeApp : TLAbsSentCodeType + { + public override int Constructor + { + get + { + return 1035688326; + } + } + + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs new file mode 100644 index 0000000..a470688 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(1398007207)] + public class TLSentCodeTypeCall : TLAbsSentCodeType + { + public override int Constructor + { + get + { + return 1398007207; + } + } + + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs new file mode 100644 index 0000000..8f25207 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-1425815847)] + public class TLSentCodeTypeFlashCall : TLAbsSentCodeType + { + public override int Constructor + { + get + { + return -1425815847; + } + } + + public string pattern {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + pattern = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(pattern,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs new file mode 100644 index 0000000..af9aa39 --- /dev/null +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Auth +{ + [TLObject(-1073693790)] + public class TLSentCodeTypeSms : TLAbsSentCodeType + { + public override int Constructor + { + get + { + return -1073693790; + } + } + + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs new file mode 100644 index 0000000..4e4f9ca --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-791039645)] + public class TLChannelParticipant : TLObject + { + public override int Constructor + { + get + { + return -791039645; + } + } + + public TLAbsChannelParticipant participant {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + participant = (TLAbsChannelParticipant)ObjectUtils.DeserializeObject(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(participant,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs new file mode 100644 index 0000000..2e0e203 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-177282392)] + public class TLChannelParticipants : TLObject + { + public override int Constructor + { + get + { + return -177282392; + } + } + + public int count {get;set;} + public TLVector participants {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + count = br.ReadInt32(); +participants = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(count); +ObjectUtils.SerializeObject(participants,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs new file mode 100644 index 0000000..c5350b0 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(283557164)] + public class TLRequestCheckUsername : TLMethod + { + public override int Constructor + { + get + { + return 283557164; + } + } + + public TLAbsInputChannel channel {get;set;} + public string username {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +StringUtil.Serialize(username,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs new file mode 100644 index 0000000..beba3e5 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-192332417)] + public class TLRequestCreateChannel : TLMethod + { + public override int Constructor + { + get + { + return -192332417; + } + } + + public int flags {get;set;} + public bool broadcast {get;set;} + public bool megagroup {get;set;} + public string title {get;set;} + public string about {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = broadcast ? (flags | 1) : (flags & ~1); +flags = megagroup ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +broadcast = (flags & 1) != 0; +megagroup = (flags & 2) != 0; +title = StringUtil.Deserialize(br); +about = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +StringUtil.Serialize(title,bw); +StringUtil.Serialize(about,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs new file mode 100644 index 0000000..2176f54 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-1072619549)] + public class TLRequestDeleteChannel : TLMethod + { + public override int Constructor + { + get + { + return -1072619549; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs new file mode 100644 index 0000000..6b71f67 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-2067661490)] + public class TLRequestDeleteMessages : TLMethod + { + public override int Constructor + { + get + { + return -2067661490; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLVector id {get;set;} + public Messages.TLAffectedMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs new file mode 100644 index 0000000..6c9ed68 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-787622117)] + public class TLRequestDeleteUserHistory : TLMethod + { + public override int Constructor + { + get + { + return -787622117; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputUser user_id {get;set;} + public Messages.TLAffectedHistory Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(user_id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs new file mode 100644 index 0000000..73deacb --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(333610782)] + public class TLRequestEditAbout : TLMethod + { + public override int Constructor + { + get + { + return 333610782; + } + } + + public TLAbsInputChannel channel {get;set;} + public string about {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +about = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +StringUtil.Serialize(about,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs new file mode 100644 index 0000000..8f622bb --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-344583728)] + public class TLRequestEditAdmin : TLMethod + { + public override int Constructor + { + get + { + return -344583728; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputUser user_id {get;set;} + public TLAbsChannelParticipantRole role {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(user_id,bw); +ObjectUtils.SerializeObject(role,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs new file mode 100644 index 0000000..a368863 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-248621111)] + public class TLRequestEditPhoto : TLMethod + { + public override int Constructor + { + get + { + return -248621111; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputChatPhoto photo {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(photo,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs new file mode 100644 index 0000000..a56cf8f --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(1450044624)] + public class TLRequestEditTitle : TLMethod + { + public override int Constructor + { + get + { + return 1450044624; + } + } + + public TLAbsInputChannel channel {get;set;} + public string title {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +StringUtil.Serialize(title,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs new file mode 100644 index 0000000..e0ba434 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-950663035)] + public class TLRequestExportInvite : TLMethod + { + public override int Constructor + { + get + { + return -950663035; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsExportedChatInvite Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs new file mode 100644 index 0000000..fec91eb --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-934882771)] + public class TLRequestExportMessageLink : TLMethod + { + public override int Constructor + { + get + { + return -934882771; + } + } + + public TLAbsInputChannel channel {get;set;} + public int id {get;set;} + public TLExportedMessageLink Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +bw.Write(id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs new file mode 100644 index 0000000..8f74dc9 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(176122811)] + public class TLRequestGetChannels : TLMethod + { + public override int Constructor + { + get + { + return 176122811; + } + } + + public TLVector id {get;set;} + public Messages.TLChats Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs new file mode 100644 index 0000000..9320d29 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(141781513)] + public class TLRequestGetFullChannel : TLMethod + { + public override int Constructor + { + get + { + return 141781513; + } + } + + public TLAbsInputChannel channel {get;set;} + public Messages.TLChatFull Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs new file mode 100644 index 0000000..fafda4e --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-1814580409)] + public class TLRequestGetMessages : TLMethod + { + public override int Constructor + { + get + { + return -1814580409; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLVector id {get;set;} + public Messages.TLAbsMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs new file mode 100644 index 0000000..762a058 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(1416484774)] + public class TLRequestGetParticipant : TLMethod + { + public override int Constructor + { + get + { + return 1416484774; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputUser user_id {get;set;} + public Channels.TLChannelParticipant Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(user_id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs new file mode 100644 index 0000000..bff796d --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(618237842)] + public class TLRequestGetParticipants : TLMethod + { + public override int Constructor + { + get + { + return 618237842; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsChannelParticipantsFilter filter {get;set;} + public int offset {get;set;} + public int limit {get;set;} + public Channels.TLChannelParticipants Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br); +offset = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(filter,bw); +bw.Write(offset); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs new file mode 100644 index 0000000..c753f4a --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(429865580)] + public class TLRequestInviteToChannel : TLMethod + { + public override int Constructor + { + get + { + return 429865580; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLVector users {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(users,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs new file mode 100644 index 0000000..0192b98 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(615851205)] + public class TLRequestJoinChannel : TLMethod + { + public override int Constructor + { + get + { + return 615851205; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs new file mode 100644 index 0000000..25830ac --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-1502421484)] + public class TLRequestKickFromChannel : TLMethod + { + public override int Constructor + { + get + { + return -1502421484; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputUser user_id {get;set;} + public bool kicked {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +kicked = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(user_id,bw); +BoolUtil.Serialize(kicked,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs new file mode 100644 index 0000000..8a8964a --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-130635115)] + public class TLRequestLeaveChannel : TLMethod + { + public override int Constructor + { + get + { + return -130635115; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs new file mode 100644 index 0000000..6f96159 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-871347913)] + public class TLRequestReadHistory : TLMethod + { + public override int Constructor + { + get + { + return -871347913; + } + } + + public TLAbsInputChannel channel {get;set;} + public int max_id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +bw.Write(max_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs new file mode 100644 index 0000000..b383a08 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-32999408)] + public class TLRequestReportSpam : TLMethod + { + public override int Constructor + { + get + { + return -32999408; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsInputUser user_id {get;set;} + public TLVector id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(user_id,bw); +ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs new file mode 100644 index 0000000..38d757c --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(1231065863)] + public class TLRequestToggleInvites : TLMethod + { + public override int Constructor + { + get + { + return 1231065863; + } + } + + public TLAbsInputChannel channel {get;set;} + public bool enabled {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +enabled = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +BoolUtil.Serialize(enabled,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs new file mode 100644 index 0000000..25c2540 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(527021574)] + public class TLRequestToggleSignatures : TLMethod + { + public override int Constructor + { + get + { + return 527021574; + } + } + + public TLAbsInputChannel channel {get;set;} + public bool enabled {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +enabled = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +BoolUtil.Serialize(enabled,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs new file mode 100644 index 0000000..195d6f5 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(-1490162350)] + public class TLRequestUpdatePinnedMessage : TLMethod + { + public override int Constructor + { + get + { + return -1490162350; + } + } + + public int flags {get;set;} + public bool silent {get;set;} + public TLAbsInputChannel channel {get;set;} + public int id {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = silent ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +silent = (flags & 1) != 0; +channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(channel,bw); +bw.Write(id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs new file mode 100644 index 0000000..0942575 --- /dev/null +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Channels +{ + [TLObject(890549214)] + public class TLRequestUpdateUsername : TLMethod + { + public override int Constructor + { + get + { + return 890549214; + } + } + + public TLAbsInputChannel channel {get;set;} + public string username {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +StringUtil.Serialize(username,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs b/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs new file mode 100644 index 0000000..74381d8 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + public abstract class TLAbsBlocked : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs b/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs new file mode 100644 index 0000000..bb97ae3 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + public abstract class TLAbsContacts : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs new file mode 100644 index 0000000..f3df0c1 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + public abstract class TLAbsTopPeers : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLBlocked.cs b/TeleSharp.TL/TL/Contacts/TLBlocked.cs new file mode 100644 index 0000000..72971f8 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLBlocked.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(471043349)] + public class TLBlocked : TLAbsBlocked + { + public override int Constructor + { + get + { + return 471043349; + } + } + + public TLVector blocked {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + blocked = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(blocked,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs new file mode 100644 index 0000000..98b197e --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-1878523231)] + public class TLBlockedSlice : TLAbsBlocked + { + public override int Constructor + { + get + { + return -1878523231; + } + } + + public int count {get;set;} + public TLVector blocked {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + count = br.ReadInt32(); +blocked = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(count); +ObjectUtils.SerializeObject(blocked,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLContacts.cs b/TeleSharp.TL/TL/Contacts/TLContacts.cs new file mode 100644 index 0000000..7bd09df --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLContacts.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(1871416498)] + public class TLContacts : TLAbsContacts + { + public override int Constructor + { + get + { + return 1871416498; + } + } + + public TLVector contacts {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + contacts = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(contacts,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs new file mode 100644 index 0000000..338e001 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-1219778094)] + public class TLContactsNotModified : TLAbsContacts + { + public override int Constructor + { + get + { + return -1219778094; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLFound.cs b/TeleSharp.TL/TL/Contacts/TLFound.cs new file mode 100644 index 0000000..e223945 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLFound.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(446822276)] + public class TLFound : TLObject + { + public override int Constructor + { + get + { + return 446822276; + } + } + + public TLVector results {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + results = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(results,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs new file mode 100644 index 0000000..7e23ad6 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-1387117803)] + public class TLImportedContacts : TLObject + { + public override int Constructor + { + get + { + return -1387117803; + } + } + + public TLVector imported {get;set;} + public TLVector retry_contacts {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + imported = (TLVector)ObjectUtils.DeserializeVector(br); +retry_contacts = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(imported,bw); +ObjectUtils.SerializeObject(retry_contacts,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLLink.cs b/TeleSharp.TL/TL/Contacts/TLLink.cs new file mode 100644 index 0000000..34924ca --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLLink.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(986597452)] + public class TLLink : TLObject + { + public override int Constructor + { + get + { + return 986597452; + } + } + + public TLAbsContactLink my_link {get;set;} + public TLAbsContactLink foreign_link {get;set;} + public TLAbsUser user {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); +foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); +user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(my_link,bw); +ObjectUtils.SerializeObject(foreign_link,bw); +ObjectUtils.SerializeObject(user,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs new file mode 100644 index 0000000..ae9ce8f --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(858475004)] + public class TLRequestBlock : TLMethod + { + public override int Constructor + { + get + { + return 858475004; + } + } + + public TLAbsInputUser id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs new file mode 100644 index 0000000..a2c5406 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-1902823612)] + public class TLRequestDeleteContact : TLMethod + { + public override int Constructor + { + get + { + return -1902823612; + } + } + + public TLAbsInputUser id {get;set;} + public Contacts.TLLink Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs new file mode 100644 index 0000000..8eb56a1 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(1504393374)] + public class TLRequestDeleteContacts : TLMethod + { + public override int Constructor + { + get + { + return 1504393374; + } + } + + public TLVector id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs new file mode 100644 index 0000000..6b639ef --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-2065352905)] + public class TLRequestExportCard : TLMethod + { + public override int Constructor + { + get + { + return -2065352905; + } + } + + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs new file mode 100644 index 0000000..e4babd3 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-176409329)] + public class TLRequestGetBlocked : TLMethod + { + public override int Constructor + { + get + { + return -176409329; + } + } + + public int offset {get;set;} + public int limit {get;set;} + public Contacts.TLAbsBlocked Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs new file mode 100644 index 0000000..924edc1 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(583445000)] + public class TLRequestGetContacts : TLMethod + { + public override int Constructor + { + get + { + return 583445000; + } + } + + public string hash {get;set;} + public Contacts.TLAbsContacts Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs new file mode 100644 index 0000000..6773589 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-995929106)] + public class TLRequestGetStatuses : TLMethod + { + public override int Constructor + { + get + { + return -995929106; + } + } + + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs new file mode 100644 index 0000000..d6ce936 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-728224331)] + public class TLRequestGetTopPeers : TLMethod + { + public override int Constructor + { + get + { + return -728224331; + } + } + + public int flags {get;set;} + public bool correspondents {get;set;} + public bool bots_pm {get;set;} + public bool bots_inline {get;set;} + public bool groups {get;set;} + public bool channels {get;set;} + public int offset {get;set;} + public int limit {get;set;} + public int hash {get;set;} + public Contacts.TLAbsTopPeers Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = correspondents ? (flags | 1) : (flags & ~1); +flags = bots_pm ? (flags | 2) : (flags & ~2); +flags = bots_inline ? (flags | 4) : (flags & ~4); +flags = groups ? (flags | 1024) : (flags & ~1024); +flags = channels ? (flags | 32768) : (flags & ~32768); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +correspondents = (flags & 1) != 0; +bots_pm = (flags & 2) != 0; +bots_inline = (flags & 4) != 0; +groups = (flags & 1024) != 0; +channels = (flags & 32768) != 0; +offset = br.ReadInt32(); +limit = br.ReadInt32(); +hash = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + +bw.Write(offset); +bw.Write(limit); +bw.Write(hash); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs new file mode 100644 index 0000000..f22efbf --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(1340184318)] + public class TLRequestImportCard : TLMethod + { + public override int Constructor + { + get + { + return 1340184318; + } + } + + public TLVector export_card {get;set;} + public TLAbsUser Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + export_card = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(export_card,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs new file mode 100644 index 0000000..c42497d --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-634342611)] + public class TLRequestImportContacts : TLMethod + { + public override int Constructor + { + get + { + return -634342611; + } + } + + public TLVector contacts {get;set;} + public bool replace {get;set;} + public Contacts.TLImportedContacts Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + contacts = (TLVector)ObjectUtils.DeserializeVector(br); +replace = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(contacts,bw); +BoolUtil.Serialize(replace,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs new file mode 100644 index 0000000..45ffb0f --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(451113900)] + public class TLRequestResetTopPeerRating : TLMethod + { + public override int Constructor + { + get + { + return 451113900; + } + } + + public TLAbsTopPeerCategory category {get;set;} + public TLAbsInputPeer peer {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br); +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(category,bw); +ObjectUtils.SerializeObject(peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs new file mode 100644 index 0000000..9a014f1 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-113456221)] + public class TLRequestResolveUsername : TLMethod + { + public override int Constructor + { + get + { + return -113456221; + } + } + + public string username {get;set;} + public Contacts.TLResolvedPeer Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(username,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs new file mode 100644 index 0000000..4b74eb2 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(301470424)] + public class TLRequestSearch : TLMethod + { + public override int Constructor + { + get + { + return 301470424; + } + } + + public string q {get;set;} + public int limit {get;set;} + public Contacts.TLFound Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + q = StringUtil.Deserialize(br); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(q,bw); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs new file mode 100644 index 0000000..c9f23a7 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-448724803)] + public class TLRequestUnblock : TLMethod + { + public override int Constructor + { + get + { + return -448724803; + } + } + + public TLAbsInputUser id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs new file mode 100644 index 0000000..8b7bf6a --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(2131196633)] + public class TLResolvedPeer : TLObject + { + public override int Constructor + { + get + { + return 2131196633; + } + } + + public TLAbsPeer peer {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs new file mode 100644 index 0000000..56a37c3 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(1891070632)] + public class TLTopPeers : TLAbsTopPeers + { + public override int Constructor + { + get + { + return 1891070632; + } + } + + public TLVector categories {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + categories = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(categories,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs new file mode 100644 index 0000000..b84f3f7 --- /dev/null +++ b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Contacts +{ + [TLObject(-567906571)] + public class TLTopPeersNotModified : TLAbsTopPeers + { + public override int Constructor + { + get + { + return -567906571; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs b/TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs new file mode 100644 index 0000000..ee86c4f --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + public abstract class TLAbsAppChangelog : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs b/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs new file mode 100644 index 0000000..8f38d8d --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + public abstract class TLAbsAppUpdate : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Help/TLAppChangelog.cs b/TeleSharp.TL/TL/Help/TLAppChangelog.cs new file mode 100644 index 0000000..59ebc07 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLAppChangelog.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(1181279933)] + public class TLAppChangelog : TLAbsAppChangelog + { + public override int Constructor + { + get + { + return 1181279933; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs b/TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs new file mode 100644 index 0000000..527e58e --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1350696044)] + public class TLAppChangelogEmpty : TLAbsAppChangelog + { + public override int Constructor + { + get + { + return -1350696044; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLAppUpdate.cs b/TeleSharp.TL/TL/Help/TLAppUpdate.cs new file mode 100644 index 0000000..3eb811a --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLAppUpdate.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1987579119)] + public class TLAppUpdate : TLAbsAppUpdate + { + public override int Constructor + { + get + { + return -1987579119; + } + } + + public int id {get;set;} + public bool critical {get;set;} + public string url {get;set;} + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +critical = BoolUtil.Deserialize(br); +url = StringUtil.Deserialize(br); +text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +BoolUtil.Serialize(critical,bw); +StringUtil.Serialize(url,bw); +StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLInviteText.cs b/TeleSharp.TL/TL/Help/TLInviteText.cs new file mode 100644 index 0000000..178843b --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLInviteText.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(415997816)] + public class TLInviteText : TLObject + { + public override int Constructor + { + get + { + return 415997816; + } + } + + public string message {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs new file mode 100644 index 0000000..b0302d3 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1000708810)] + public class TLNoAppUpdate : TLAbsAppUpdate + { + public override int Constructor + { + get + { + return -1000708810; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs new file mode 100644 index 0000000..0e2016d --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1189013126)] + public class TLRequestGetAppChangelog : TLMethod + { + public override int Constructor + { + get + { + return -1189013126; + } + } + + public Help.TLAbsAppChangelog Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLAbsAppChangelog)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs new file mode 100644 index 0000000..5ef4294 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1372724842)] + public class TLRequestGetAppUpdate : TLMethod + { + public override int Constructor + { + get + { + return -1372724842; + } + } + + public Help.TLAbsAppUpdate Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLAbsAppUpdate)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs new file mode 100644 index 0000000..287cc59 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-990308245)] + public class TLRequestGetConfig : TLMethod + { + public override int Constructor + { + get + { + return -990308245; + } + } + + public TLConfig Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLConfig)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs new file mode 100644 index 0000000..5265114 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(1295590211)] + public class TLRequestGetInviteText : TLMethod + { + public override int Constructor + { + get + { + return 1295590211; + } + } + + public Help.TLInviteText Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLInviteText)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs new file mode 100644 index 0000000..85122d4 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(531836966)] + public class TLRequestGetNearestDc : TLMethod + { + public override int Constructor + { + get + { + return 531836966; + } + } + + public TLNearestDc Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLNearestDc)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs new file mode 100644 index 0000000..c0861ec --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-1663104819)] + public class TLRequestGetSupport : TLMethod + { + public override int Constructor + { + get + { + return -1663104819; + } + } + + public Help.TLSupport Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLSupport)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs new file mode 100644 index 0000000..01e46eb --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(889286899)] + public class TLRequestGetTermsOfService : TLMethod + { + public override int Constructor + { + get + { + return 889286899; + } + } + + public Help.TLTermsOfService Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLTermsOfService)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs new file mode 100644 index 0000000..85739c5 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(1862465352)] + public class TLRequestSaveAppLog : TLMethod + { + public override int Constructor + { + get + { + return 1862465352; + } + } + + public TLVector events {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + events = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(events,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLSupport.cs b/TeleSharp.TL/TL/Help/TLSupport.cs new file mode 100644 index 0000000..5c29fdd --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLSupport.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(398898678)] + public class TLSupport : TLObject + { + public override int Constructor + { + get + { + return 398898678; + } + } + + public string phone_number {get;set;} + public TLAbsUser user {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +ObjectUtils.SerializeObject(user,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLTermsOfService.cs b/TeleSharp.TL/TL/Help/TLTermsOfService.cs new file mode 100644 index 0000000..bd476c3 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLTermsOfService.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-236044656)] + public class TLTermsOfService : TLObject + { + public override int Constructor + { + get + { + return -236044656; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs new file mode 100644 index 0000000..02c5d7f --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsAllStickers : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs b/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs new file mode 100644 index 0000000..b57822b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsDhConfig : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs b/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs new file mode 100644 index 0000000..0050795 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsDialogs : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsMessages.cs b/TeleSharp.TL/TL/Messages/TLAbsMessages.cs new file mode 100644 index 0000000..bdddf0a --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsMessages.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsMessages : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs new file mode 100644 index 0000000..ee01f4e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsSavedGifs : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs b/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs new file mode 100644 index 0000000..a6d12bc --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsSentEncryptedMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAbsStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsStickers.cs new file mode 100644 index 0000000..c84da33 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAbsStickers.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + public abstract class TLAbsStickers : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs new file mode 100644 index 0000000..feab37e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1269012015)] + public class TLAffectedHistory : TLObject + { + public override int Constructor + { + get + { + return -1269012015; + } + } + + public int pts {get;set;} + public int pts_count {get;set;} + public int offset {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + pts = br.ReadInt32(); +pts_count = br.ReadInt32(); +offset = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(pts); +bw.Write(pts_count); +bw.Write(offset); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs new file mode 100644 index 0000000..3c14ba4 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-2066640507)] + public class TLAffectedMessages : TLObject + { + public override int Constructor + { + get + { + return -2066640507; + } + } + + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAllStickers.cs b/TeleSharp.TL/TL/Messages/TLAllStickers.cs new file mode 100644 index 0000000..4538c7b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAllStickers.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-302170017)] + public class TLAllStickers : TLAbsAllStickers + { + public override int Constructor + { + get + { + return -302170017; + } + } + + public int hash {get;set;} + public TLVector sets {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt32(); +sets = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(hash); +ObjectUtils.SerializeObject(sets,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs new file mode 100644 index 0000000..465b0c1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-395967805)] + public class TLAllStickersNotModified : TLAbsAllStickers + { + public override int Constructor + { + get + { + return -395967805; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs new file mode 100644 index 0000000..5b41e35 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(308605382)] + public class TLBotCallbackAnswer : TLObject + { + public override int Constructor + { + get + { + return 308605382; + } + } + + public int flags {get;set;} + public bool alert {get;set;} + public string message {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = alert ? (flags | 2) : (flags & ~2); +flags = message != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +alert = (flags & 2) != 0; +if ((flags & 1) != 0) +message = StringUtil.Deserialize(br); +else +message = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +if ((flags & 1) != 0) +StringUtil.Serialize(message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLBotResults.cs b/TeleSharp.TL/TL/Messages/TLBotResults.cs new file mode 100644 index 0000000..47bbdd1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLBotResults.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(627509670)] + public class TLBotResults : TLObject + { + public override int Constructor + { + get + { + return 627509670; + } + } + + public int flags {get;set;} + public bool gallery {get;set;} + public long query_id {get;set;} + public string next_offset {get;set;} + public TLInlineBotSwitchPM switch_pm {get;set;} + public TLVector results {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = gallery ? (flags | 1) : (flags & ~1); +flags = next_offset != null ? (flags | 2) : (flags & ~2); +flags = switch_pm != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +gallery = (flags & 1) != 0; +query_id = br.ReadInt64(); +if ((flags & 2) != 0) +next_offset = StringUtil.Deserialize(br); +else +next_offset = null; + +if ((flags & 4) != 0) +switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); +else +switch_pm = null; + +results = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(query_id); +if ((flags & 2) != 0) +StringUtil.Serialize(next_offset,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(switch_pm,bw); +ObjectUtils.SerializeObject(results,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLChannelMessages.cs b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs new file mode 100644 index 0000000..8245c35 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1725551049)] + public class TLChannelMessages : TLAbsMessages + { + public override int Constructor + { + get + { + return -1725551049; + } + } + + public int flags {get;set;} + public int pts {get;set;} + public int count {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + flags = 0; + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +pts = br.ReadInt32(); +count = br.ReadInt32(); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(pts); +bw.Write(count); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLChatFull.cs b/TeleSharp.TL/TL/Messages/TLChatFull.cs new file mode 100644 index 0000000..cc33086 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLChatFull.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-438840932)] + public class TLChatFull : TLObject + { + public override int Constructor + { + get + { + return -438840932; + } + } + + public TLAbsChatFull full_chat {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + full_chat = (TLAbsChatFull)ObjectUtils.DeserializeObject(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(full_chat,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLChats.cs b/TeleSharp.TL/TL/Messages/TLChats.cs new file mode 100644 index 0000000..5b9580e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLChats.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1694474197)] + public class TLChats : TLObject + { + public override int Constructor + { + get + { + return 1694474197; + } + } + + public TLVector chats {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chats = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(chats,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLDhConfig.cs b/TeleSharp.TL/TL/Messages/TLDhConfig.cs new file mode 100644 index 0000000..8eecfa3 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLDhConfig.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(740433629)] + public class TLDhConfig : TLAbsDhConfig + { + public override int Constructor + { + get + { + return 740433629; + } + } + + public int g {get;set;} + public byte[] p {get;set;} + public int version {get;set;} + public byte[] random {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + g = br.ReadInt32(); +p = BytesUtil.Deserialize(br); +version = br.ReadInt32(); +random = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(g); +BytesUtil.Serialize(p,bw); +bw.Write(version); +BytesUtil.Serialize(random,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs new file mode 100644 index 0000000..e866617 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1058912715)] + public class TLDhConfigNotModified : TLAbsDhConfig + { + public override int Constructor + { + get + { + return -1058912715; + } + } + + public byte[] random {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + random = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(random,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLDialogs.cs b/TeleSharp.TL/TL/Messages/TLDialogs.cs new file mode 100644 index 0000000..03ba3dc --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLDialogs.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(364538944)] + public class TLDialogs : TLAbsDialogs + { + public override int Constructor + { + get + { + return 364538944; + } + } + + public TLVector dialogs {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dialogs = (TLVector)ObjectUtils.DeserializeVector(br); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(dialogs,bw); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs new file mode 100644 index 0000000..a91aacc --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1910543603)] + public class TLDialogsSlice : TLAbsDialogs + { + public override int Constructor + { + get + { + return 1910543603; + } + } + + public int count {get;set;} + public TLVector dialogs {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + count = br.ReadInt32(); +dialogs = (TLVector)ObjectUtils.DeserializeVector(br); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(count); +ObjectUtils.SerializeObject(dialogs,bw); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLFoundGifs.cs b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs new file mode 100644 index 0000000..75dd79c --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1158290442)] + public class TLFoundGifs : TLObject + { + public override int Constructor + { + get + { + return 1158290442; + } + } + + public int next_offset {get;set;} + public TLVector results {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + next_offset = br.ReadInt32(); +results = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(next_offset); +ObjectUtils.SerializeObject(results,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs new file mode 100644 index 0000000..fb31914 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(649453030)] + public class TLMessageEditData : TLObject + { + public override int Constructor + { + get + { + return 649453030; + } + } + + public int flags {get;set;} + public bool caption {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = caption ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +caption = (flags & 1) != 0; + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLMessages.cs b/TeleSharp.TL/TL/Messages/TLMessages.cs new file mode 100644 index 0000000..3a24c7e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLMessages.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1938715001)] + public class TLMessages : TLAbsMessages + { + public override int Constructor + { + get + { + return -1938715001; + } + } + + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs new file mode 100644 index 0000000..7f3bb07 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(189033187)] + public class TLMessagesSlice : TLAbsMessages + { + public override int Constructor + { + get + { + return 189033187; + } + } + + public int count {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + count = br.ReadInt32(); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(count); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs new file mode 100644 index 0000000..346ca83 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(863093588)] + public class TLPeerDialogs : TLObject + { + public override int Constructor + { + get + { + return 863093588; + } + } + + public TLVector dialogs {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + public Updates.TLState state {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dialogs = (TLVector)ObjectUtils.DeserializeVector(br); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); +state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(dialogs,bw); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); +ObjectUtils.SerializeObject(state,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs new file mode 100644 index 0000000..c85fc89 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1035731989)] + public class TLRequestAcceptEncryption : TLMethod + { + public override int Constructor + { + get + { + return 1035731989; + } + } + + public TLInputEncryptedChat peer {get;set;} + public byte[] g_b {get;set;} + public long key_fingerprint {get;set;} + public TLAbsEncryptedChat Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +g_b = BytesUtil.Deserialize(br); +key_fingerprint = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +BytesUtil.Serialize(g_b,bw); +bw.Write(key_fingerprint); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs new file mode 100644 index 0000000..0611477 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-106911223)] + public class TLRequestAddChatUser : TLMethod + { + public override int Constructor + { + get + { + return -106911223; + } + } + + public int chat_id {get;set;} + public TLAbsInputUser user_id {get;set;} + public int fwd_limit {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +fwd_limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +ObjectUtils.SerializeObject(user_id,bw); +bw.Write(fwd_limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs new file mode 100644 index 0000000..03322af --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1051570619)] + public class TLRequestCheckChatInvite : TLMethod + { + public override int Constructor + { + get + { + return 1051570619; + } + } + + public string hash {get;set;} + public TLAbsChatInvite Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs new file mode 100644 index 0000000..0fa9aad --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(164303470)] + public class TLRequestCreateChat : TLMethod + { + public override int Constructor + { + get + { + return 164303470; + } + } + + public TLVector users {get;set;} + public string title {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); +StringUtil.Serialize(title,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs new file mode 100644 index 0000000..4ee9960 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-530505962)] + public class TLRequestDeleteChatUser : TLMethod + { + public override int Constructor + { + get + { + return -530505962; + } + } + + public int chat_id {get;set;} + public TLAbsInputUser user_id {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +ObjectUtils.SerializeObject(user_id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs new file mode 100644 index 0000000..8be7935 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(469850889)] + public class TLRequestDeleteHistory : TLMethod + { + public override int Constructor + { + get + { + return 469850889; + } + } + + public int flags {get;set;} + public bool just_clear {get;set;} + public TLAbsInputPeer peer {get;set;} + public int max_id {get;set;} + public Messages.TLAffectedHistory Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = just_clear ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +just_clear = (flags & 1) != 0; +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(peer,bw); +bw.Write(max_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs new file mode 100644 index 0000000..26c11ed --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1510897371)] + public class TLRequestDeleteMessages : TLMethod + { + public override int Constructor + { + get + { + return -1510897371; + } + } + + public TLVector id {get;set;} + public Messages.TLAffectedMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs new file mode 100644 index 0000000..49e9cdb --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-304536635)] + public class TLRequestDiscardEncryption : TLMethod + { + public override int Constructor + { + get + { + return -304536635; + } + } + + public int chat_id {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs new file mode 100644 index 0000000..f82faaf --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1444503762)] + public class TLRequestEditChatAdmin : TLMethod + { + public override int Constructor + { + get + { + return -1444503762; + } + } + + public int chat_id {get;set;} + public TLAbsInputUser user_id {get;set;} + public bool is_admin {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +is_admin = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +ObjectUtils.SerializeObject(user_id,bw); +BoolUtil.Serialize(is_admin,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs new file mode 100644 index 0000000..bacaec9 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-900957736)] + public class TLRequestEditChatPhoto : TLMethod + { + public override int Constructor + { + get + { + return -900957736; + } + } + + public int chat_id {get;set;} + public TLAbsInputChatPhoto photo {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +ObjectUtils.SerializeObject(photo,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs new file mode 100644 index 0000000..3acbed0 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-599447467)] + public class TLRequestEditChatTitle : TLMethod + { + public override int Constructor + { + get + { + return -599447467; + } + } + + public int chat_id {get;set;} + public string title {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +StringUtil.Serialize(title,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs new file mode 100644 index 0000000..415ca82 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(319564933)] + public class TLRequestEditInlineBotMessage : TLMethod + { + public override int Constructor + { + get + { + return 319564933; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public TLInputBotInlineMessageID id {get;set;} + public string message {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + public TLVector entities {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 2) : (flags & ~2); +flags = message != null ? (flags | 2048) : (flags & ~2048); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); +flags = entities != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 2) != 0; +id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); +if ((flags & 2048) != 0) +message = StringUtil.Deserialize(br); +else +message = null; + +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + +if ((flags & 8) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(id,bw); +if ((flags & 2048) != 0) +StringUtil.Serialize(message,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs new file mode 100644 index 0000000..2ad157c --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-829299510)] + public class TLRequestEditMessage : TLMethod + { + public override int Constructor + { + get + { + return -829299510; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public TLAbsInputPeer peer {get;set;} + public int id {get;set;} + public string message {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + public TLVector entities {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 2) : (flags & ~2); +flags = message != null ? (flags | 2048) : (flags & ~2048); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); +flags = entities != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 2) != 0; +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +id = br.ReadInt32(); +if ((flags & 2048) != 0) +message = StringUtil.Deserialize(br); +else +message = null; + +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + +if ((flags & 8) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(peer,bw); +bw.Write(id); +if ((flags & 2048) != 0) +StringUtil.Serialize(message,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs new file mode 100644 index 0000000..2eafe01 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(2106086025)] + public class TLRequestExportChatInvite : TLMethod + { + public override int Constructor + { + get + { + return 2106086025; + } + } + + public int chat_id {get;set;} + public TLAbsExportedChatInvite Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs new file mode 100644 index 0000000..7bb988d --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(865483769)] + public class TLRequestForwardMessage : TLMethod + { + public override int Constructor + { + get + { + return 865483769; + } + } + + public TLAbsInputPeer peer {get;set;} + public int id {get;set;} + public long random_id {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +id = br.ReadInt32(); +random_id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(id); +bw.Write(random_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs new file mode 100644 index 0000000..7fcba6b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1888354709)] + public class TLRequestForwardMessages : TLMethod + { + public override int Constructor + { + get + { + return 1888354709; + } + } + + public int flags {get;set;} + public bool silent {get;set;} + public bool background {get;set;} + public TLAbsInputPeer from_peer {get;set;} + public TLVector id {get;set;} + public TLVector random_id {get;set;} + public TLAbsInputPeer to_peer {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = silent ? (flags | 32) : (flags & ~32); +flags = background ? (flags | 64) : (flags & ~64); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +silent = (flags & 32) != 0; +background = (flags & 64) != 0; +from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +id = (TLVector)ObjectUtils.DeserializeVector(br); +random_id = (TLVector)ObjectUtils.DeserializeVector(br); +to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +ObjectUtils.SerializeObject(from_peer,bw); +ObjectUtils.SerializeObject(id,bw); +ObjectUtils.SerializeObject(random_id,bw); +ObjectUtils.SerializeObject(to_peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs new file mode 100644 index 0000000..8d268c8 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1782549861)] + public class TLRequestGetAllDrafts : TLMethod + { + public override int Constructor + { + get + { + return 1782549861; + } + } + + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs new file mode 100644 index 0000000..68c31e0 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(479598769)] + public class TLRequestGetAllStickers : TLMethod + { + public override int Constructor + { + get + { + return 479598769; + } + } + + public int hash {get;set;} + public Messages.TLAbsAllStickers Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(hash); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs new file mode 100644 index 0000000..2b53627 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1494659324)] + public class TLRequestGetBotCallbackAnswer : TLMethod + { + public override int Constructor + { + get + { + return -1494659324; + } + } + + public TLAbsInputPeer peer {get;set;} + public int msg_id {get;set;} + public byte[] data {get;set;} + public Messages.TLBotCallbackAnswer Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +msg_id = br.ReadInt32(); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(msg_id); +BytesUtil.Serialize(data,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs new file mode 100644 index 0000000..b9635c4 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1013621127)] + public class TLRequestGetChats : TLMethod + { + public override int Constructor + { + get + { + return 1013621127; + } + } + + public TLVector id {get;set;} + public Messages.TLChats Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs new file mode 100644 index 0000000..9a5a71d --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(651135312)] + public class TLRequestGetDhConfig : TLMethod + { + public override int Constructor + { + get + { + return 651135312; + } + } + + public int version {get;set;} + public int random_length {get;set;} + public Messages.TLAbsDhConfig Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + version = br.ReadInt32(); +random_length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(version); +bw.Write(random_length); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs new file mode 100644 index 0000000..219e7ac --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1799878989)] + public class TLRequestGetDialogs : TLMethod + { + public override int Constructor + { + get + { + return 1799878989; + } + } + + public int offset_date {get;set;} + public int offset_id {get;set;} + public TLAbsInputPeer offset_peer {get;set;} + public int limit {get;set;} + public Messages.TLAbsDialogs Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset_date = br.ReadInt32(); +offset_id = br.ReadInt32(); +offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset_date); +bw.Write(offset_id); +ObjectUtils.SerializeObject(offset_peer,bw); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs new file mode 100644 index 0000000..ee2678b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(864953444)] + public class TLRequestGetDocumentByHash : TLMethod + { + public override int Constructor + { + get + { + return 864953444; + } + } + + public byte[] sha256 {get;set;} + public int size {get;set;} + public string mime_type {get;set;} + public TLAbsDocument Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + sha256 = BytesUtil.Deserialize(br); +size = br.ReadInt32(); +mime_type = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(sha256,bw); +bw.Write(size); +StringUtil.Serialize(mime_type,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs new file mode 100644 index 0000000..134254f --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(998448230)] + public class TLRequestGetFullChat : TLMethod + { + public override int Constructor + { + get + { + return 998448230; + } + } + + public int chat_id {get;set;} + public Messages.TLChatFull Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs new file mode 100644 index 0000000..b0fddcd --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1347868602)] + public class TLRequestGetHistory : TLMethod + { + public override int Constructor + { + get + { + return -1347868602; + } + } + + public TLAbsInputPeer peer {get;set;} + public int offset_id {get;set;} + public int offset_date {get;set;} + public int add_offset {get;set;} + public int limit {get;set;} + public int max_id {get;set;} + public int min_id {get;set;} + public Messages.TLAbsMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +offset_id = br.ReadInt32(); +offset_date = br.ReadInt32(); +add_offset = br.ReadInt32(); +limit = br.ReadInt32(); +max_id = br.ReadInt32(); +min_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(offset_id); +bw.Write(offset_date); +bw.Write(add_offset); +bw.Write(limit); +bw.Write(max_id); +bw.Write(min_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs new file mode 100644 index 0000000..e9e9dc5 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1364105629)] + public class TLRequestGetInlineBotResults : TLMethod + { + public override int Constructor + { + get + { + return 1364105629; + } + } + + public int flags {get;set;} + public TLAbsInputUser bot {get;set;} + public TLAbsInputPeer peer {get;set;} + public TLAbsInputGeoPoint geo_point {get;set;} + public string query {get;set;} + public string offset {get;set;} + public Messages.TLBotResults Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = geo_point != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 1) != 0) +geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); +else +geo_point = null; + +query = StringUtil.Deserialize(br); +offset = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(bot,bw); +ObjectUtils.SerializeObject(peer,bw); +if ((flags & 1) != 0) +ObjectUtils.SerializeObject(geo_point,bw); +StringUtil.Serialize(query,bw); +StringUtil.Serialize(offset,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLBotResults)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs new file mode 100644 index 0000000..33c22cf --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-39416522)] + public class TLRequestGetMessageEditData : TLMethod + { + public override int Constructor + { + get + { + return -39416522; + } + } + + public TLAbsInputPeer peer {get;set;} + public int id {get;set;} + public Messages.TLMessageEditData Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs new file mode 100644 index 0000000..62b8b78 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1109588596)] + public class TLRequestGetMessages : TLMethod + { + public override int Constructor + { + get + { + return 1109588596; + } + } + + public TLVector id {get;set;} + public Messages.TLAbsMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs new file mode 100644 index 0000000..33cf44e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-993483427)] + public class TLRequestGetMessagesViews : TLMethod + { + public override int Constructor + { + get + { + return -993483427; + } + } + + public TLAbsInputPeer peer {get;set;} + public TLVector id {get;set;} + public bool increment {get;set;} + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +id = (TLVector)ObjectUtils.DeserializeVector(br); +increment = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(id,bw); +BoolUtil.Serialize(increment,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs new file mode 100644 index 0000000..22cada7 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(764901049)] + public class TLRequestGetPeerDialogs : TLMethod + { + public override int Constructor + { + get + { + return 764901049; + } + } + + public TLVector peers {get;set;} + public Messages.TLPeerDialogs Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peers = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peers,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs new file mode 100644 index 0000000..6425006 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(913498268)] + public class TLRequestGetPeerSettings : TLMethod + { + public override int Constructor + { + get + { + return 913498268; + } + } + + public TLAbsInputPeer peer {get;set;} + public TLPeerSettings Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLPeerSettings)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs new file mode 100644 index 0000000..e53008e --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-2084618926)] + public class TLRequestGetSavedGifs : TLMethod + { + public override int Constructor + { + get + { + return -2084618926; + } + } + + public int hash {get;set;} + public Messages.TLAbsSavedGifs Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(hash); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSavedGifs)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs new file mode 100644 index 0000000..1de03bd --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(639215886)] + public class TLRequestGetStickerSet : TLMethod + { + public override int Constructor + { + get + { + return 639215886; + } + } + + public TLAbsInputStickerSet stickerset {get;set;} + public Messages.TLStickerSet Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetStickers.cs new file mode 100644 index 0000000..020d0ff --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetStickers.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1373446075)] + public class TLRequestGetStickers : TLMethod + { + public override int Constructor + { + get + { + return -1373446075; + } + } + + public string emoticon {get;set;} + public string hash {get;set;} + public Messages.TLAbsStickers Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + emoticon = StringUtil.Deserialize(br); +hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(emoticon,bw); +StringUtil.Serialize(hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsStickers)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs new file mode 100644 index 0000000..67e486c --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(623001124)] + public class TLRequestGetWebPagePreview : TLMethod + { + public override int Constructor + { + get + { + return 623001124; + } + } + + public string message {get;set;} + public TLAbsMessageMedia Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(message,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs new file mode 100644 index 0000000..391d74a --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1460572005)] + public class TLRequestHideReportSpam : TLMethod + { + public override int Constructor + { + get + { + return -1460572005; + } + } + + public TLAbsInputPeer peer {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs new file mode 100644 index 0000000..4d4bea4 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1817183516)] + public class TLRequestImportChatInvite : TLMethod + { + public override int Constructor + { + get + { + return 1817183516; + } + } + + public string hash {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(hash,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs new file mode 100644 index 0000000..62c40e3 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(2066793382)] + public class TLRequestInstallStickerSet : TLMethod + { + public override int Constructor + { + get + { + return 2066793382; + } + } + + public TLAbsInputStickerSet stickerset {get;set;} + public bool disabled {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); +disabled = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset,bw); +BoolUtil.Serialize(disabled,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs new file mode 100644 index 0000000..c3d81ad --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(363051235)] + public class TLRequestMigrateChat : TLMethod + { + public override int Constructor + { + get + { + return 363051235; + } + } + + public int chat_id {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs new file mode 100644 index 0000000..9a1c4c1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(2135648522)] + public class TLRequestReadEncryptedHistory : TLMethod + { + public override int Constructor + { + get + { + return 2135648522; + } + } + + public TLInputEncryptedChat peer {get;set;} + public int max_date {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +max_date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(max_date); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs new file mode 100644 index 0000000..ff67d2f --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(238054714)] + public class TLRequestReadHistory : TLMethod + { + public override int Constructor + { + get + { + return 238054714; + } + } + + public TLAbsInputPeer peer {get;set;} + public int max_id {get;set;} + public Messages.TLAffectedMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(max_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs new file mode 100644 index 0000000..920691a --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(916930423)] + public class TLRequestReadMessageContents : TLMethod + { + public override int Constructor + { + get + { + return 916930423; + } + } + + public TLVector id {get;set;} + public Messages.TLAffectedMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs new file mode 100644 index 0000000..1ea2056 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(94983360)] + public class TLRequestReceivedMessages : TLMethod + { + public override int Constructor + { + get + { + return 94983360; + } + } + + public int max_id {get;set;} + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(max_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs new file mode 100644 index 0000000..24b4f64 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1436924774)] + public class TLRequestReceivedQueue : TLMethod + { + public override int Constructor + { + get + { + return 1436924774; + } + } + + public int max_qts {get;set;} + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + max_qts = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(max_qts); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs new file mode 100644 index 0000000..dfd9622 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1613775824)] + public class TLRequestReorderStickerSets : TLMethod + { + public override int Constructor + { + get + { + return -1613775824; + } + } + + public TLVector order {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + order = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(order,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs new file mode 100644 index 0000000..2543daf --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-820669733)] + public class TLRequestReportSpam : TLMethod + { + public override int Constructor + { + get + { + return -820669733; + } + } + + public TLAbsInputPeer peer {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs new file mode 100644 index 0000000..e5ff54a --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-162681021)] + public class TLRequestRequestEncryption : TLMethod + { + public override int Constructor + { + get + { + return -162681021; + } + } + + public TLAbsInputUser user_id {get;set;} + public int random_id {get;set;} + public byte[] g_a {get;set;} + public TLAbsEncryptedChat Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt32(); +g_a = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id,bw); +bw.Write(random_id); +BytesUtil.Serialize(g_a,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs new file mode 100644 index 0000000..54a3fe1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1137057461)] + public class TLRequestSaveDraft : TLMethod + { + public override int Constructor + { + get + { + return -1137057461; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public int? reply_to_msg_id {get;set;} + public TLAbsInputPeer peer {get;set;} + public string message {get;set;} + public TLVector entities {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 2) : (flags & ~2); +flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); +flags = entities != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 2) != 0; +if ((flags & 1) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +message = StringUtil.Deserialize(br); +if ((flags & 8) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +if ((flags & 1) != 0) +bw.Write(reply_to_msg_id.Value); +ObjectUtils.SerializeObject(peer,bw); +StringUtil.Serialize(message,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs new file mode 100644 index 0000000..ae0bb17 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(846868683)] + public class TLRequestSaveGif : TLMethod + { + public override int Constructor + { + get + { + return 846868683; + } + } + + public TLAbsInputDocument id {get;set;} + public bool unsave {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); +unsave = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); +BoolUtil.Serialize(unsave,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearch.cs b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs new file mode 100644 index 0000000..7e7aff1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-732523960)] + public class TLRequestSearch : TLMethod + { + public override int Constructor + { + get + { + return -732523960; + } + } + + public int flags {get;set;} + public TLAbsInputPeer peer {get;set;} + public string q {get;set;} + public TLAbsMessagesFilter filter {get;set;} + public int min_date {get;set;} + public int max_date {get;set;} + public int offset {get;set;} + public int max_id {get;set;} + public int limit {get;set;} + public Messages.TLAbsMessages Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +q = StringUtil.Deserialize(br); +filter = (TLAbsMessagesFilter)ObjectUtils.DeserializeObject(br); +min_date = br.ReadInt32(); +max_date = br.ReadInt32(); +offset = br.ReadInt32(); +max_id = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(peer,bw); +StringUtil.Serialize(q,bw); +ObjectUtils.SerializeObject(filter,bw); +bw.Write(min_date); +bw.Write(max_date); +bw.Write(offset); +bw.Write(max_id); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs new file mode 100644 index 0000000..db8b15d --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1080395925)] + public class TLRequestSearchGifs : TLMethod + { + public override int Constructor + { + get + { + return -1080395925; + } + } + + public string q {get;set;} + public int offset {get;set;} + public Messages.TLFoundGifs Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + q = StringUtil.Deserialize(br); +offset = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(q,bw); +bw.Write(offset); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs new file mode 100644 index 0000000..99e85e1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1640190800)] + public class TLRequestSearchGlobal : TLMethod + { + public override int Constructor + { + get + { + return -1640190800; + } + } + + public string q {get;set;} + public int offset_date {get;set;} + public TLAbsInputPeer offset_peer {get;set;} + public int offset_id {get;set;} + public int limit {get;set;} + public Messages.TLAbsMessages Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + q = StringUtil.Deserialize(br); +offset_date = br.ReadInt32(); +offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +offset_id = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(q,bw); +bw.Write(offset_date); +ObjectUtils.SerializeObject(offset_peer,bw); +bw.Write(offset_id); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendBroadcast.cs b/TeleSharp.TL/TL/Messages/TLRequestSendBroadcast.cs new file mode 100644 index 0000000..811fc35 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendBroadcast.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1082919718)] + public class TLRequestSendBroadcast : TLMethod + { + public override int Constructor + { + get + { + return -1082919718; + } + } + + public TLVector contacts {get;set;} + public TLVector random_id {get;set;} + public string message {get;set;} + public TLAbsInputMedia media {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + contacts = (TLVector)ObjectUtils.DeserializeVector(br); +random_id = (TLVector)ObjectUtils.DeserializeVector(br); +message = StringUtil.Deserialize(br); +media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(contacts,bw); +ObjectUtils.SerializeObject(random_id,bw); +StringUtil.Serialize(message,bw); +ObjectUtils.SerializeObject(media,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs new file mode 100644 index 0000000..c8da3f0 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1451792525)] + public class TLRequestSendEncrypted : TLMethod + { + public override int Constructor + { + get + { + return -1451792525; + } + } + + public TLInputEncryptedChat peer {get;set;} + public long random_id {get;set;} + public byte[] data {get;set;} + public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt64(); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(random_id); +BytesUtil.Serialize(data,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs new file mode 100644 index 0000000..626fa17 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1701831834)] + public class TLRequestSendEncryptedFile : TLMethod + { + public override int Constructor + { + get + { + return -1701831834; + } + } + + public TLInputEncryptedChat peer {get;set;} + public long random_id {get;set;} + public byte[] data {get;set;} + public TLAbsInputEncryptedFile file {get;set;} + public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt64(); +data = BytesUtil.Deserialize(br); +file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(random_id); +BytesUtil.Serialize(data,bw); +ObjectUtils.SerializeObject(file,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs new file mode 100644 index 0000000..da6cf18 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(852769188)] + public class TLRequestSendEncryptedService : TLMethod + { + public override int Constructor + { + get + { + return 852769188; + } + } + + public TLInputEncryptedChat peer {get;set;} + public long random_id {get;set;} + public byte[] data {get;set;} + public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt64(); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(random_id); +BytesUtil.Serialize(data,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs new file mode 100644 index 0000000..2d928c3 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1318189314)] + public class TLRequestSendInlineBotResult : TLMethod + { + public override int Constructor + { + get + { + return -1318189314; + } + } + + public int flags {get;set;} + public bool silent {get;set;} + public bool background {get;set;} + public bool clear_draft {get;set;} + public TLAbsInputPeer peer {get;set;} + public int? reply_to_msg_id {get;set;} + public long random_id {get;set;} + public long query_id {get;set;} + public string id {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = silent ? (flags | 32) : (flags & ~32); +flags = background ? (flags | 64) : (flags & ~64); +flags = clear_draft ? (flags | 128) : (flags & ~128); +flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +silent = (flags & 32) != 0; +background = (flags & 64) != 0; +clear_draft = (flags & 128) != 0; +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 1) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +random_id = br.ReadInt64(); +query_id = br.ReadInt64(); +id = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + +ObjectUtils.SerializeObject(peer,bw); +if ((flags & 1) != 0) +bw.Write(reply_to_msg_id.Value); +bw.Write(random_id); +bw.Write(query_id); +StringUtil.Serialize(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs new file mode 100644 index 0000000..1158c33 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-923703407)] + public class TLRequestSendMedia : TLMethod + { + public override int Constructor + { + get + { + return -923703407; + } + } + + public int flags {get;set;} + public bool silent {get;set;} + public bool background {get;set;} + public bool clear_draft {get;set;} + public TLAbsInputPeer peer {get;set;} + public int? reply_to_msg_id {get;set;} + public TLAbsInputMedia media {get;set;} + public long random_id {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = silent ? (flags | 32) : (flags & ~32); +flags = background ? (flags | 64) : (flags & ~64); +flags = clear_draft ? (flags | 128) : (flags & ~128); +flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +silent = (flags & 32) != 0; +background = (flags & 64) != 0; +clear_draft = (flags & 128) != 0; +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 1) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt64(); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + +ObjectUtils.SerializeObject(peer,bw); +if ((flags & 1) != 0) +bw.Write(reply_to_msg_id.Value); +ObjectUtils.SerializeObject(media,bw); +bw.Write(random_id); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs new file mode 100644 index 0000000..d9188a5 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-91733382)] + public class TLRequestSendMessage : TLMethod + { + public override int Constructor + { + get + { + return -91733382; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public bool silent {get;set;} + public bool background {get;set;} + public bool clear_draft {get;set;} + public TLAbsInputPeer peer {get;set;} + public int? reply_to_msg_id {get;set;} + public string message {get;set;} + public long random_id {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + public TLVector entities {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 2) : (flags & ~2); +flags = silent ? (flags | 32) : (flags & ~32); +flags = background ? (flags | 64) : (flags & ~64); +flags = clear_draft ? (flags | 128) : (flags & ~128); +flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); +flags = entities != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 2) != 0; +silent = (flags & 32) != 0; +background = (flags & 64) != 0; +clear_draft = (flags & 128) != 0; +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 1) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +message = StringUtil.Deserialize(br); +random_id = br.ReadInt64(); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + +if ((flags & 8) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + +ObjectUtils.SerializeObject(peer,bw); +if ((flags & 1) != 0) +bw.Write(reply_to_msg_id.Value); +StringUtil.Serialize(message,bw); +bw.Write(random_id); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs new file mode 100644 index 0000000..a7e2b7b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1209817370)] + public class TLRequestSetBotCallbackAnswer : TLMethod + { + public override int Constructor + { + get + { + return 1209817370; + } + } + + public int flags {get;set;} + public bool alert {get;set;} + public long query_id {get;set;} + public string message {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = alert ? (flags | 2) : (flags & ~2); +flags = message != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +alert = (flags & 2) != 0; +query_id = br.ReadInt64(); +if ((flags & 1) != 0) +message = StringUtil.Deserialize(br); +else +message = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(query_id); +if ((flags & 1) != 0) +StringUtil.Serialize(message,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs new file mode 100644 index 0000000..0904104 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(2031374829)] + public class TLRequestSetEncryptedTyping : TLMethod + { + public override int Constructor + { + get + { + return 2031374829; + } + } + + public TLInputEncryptedChat peer {get;set;} + public bool typing {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); +typing = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +BoolUtil.Serialize(typing,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs new file mode 100644 index 0000000..8f835b9 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-346119674)] + public class TLRequestSetInlineBotResults : TLMethod + { + public override int Constructor + { + get + { + return -346119674; + } + } + + public int flags {get;set;} + public bool gallery {get;set;} + public bool @private {get;set;} + public long query_id {get;set;} + public TLVector results {get;set;} + public int cache_time {get;set;} + public string next_offset {get;set;} + public TLInlineBotSwitchPM switch_pm {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + flags = 0; +flags = gallery ? (flags | 1) : (flags & ~1); +flags = @private ? (flags | 2) : (flags & ~2); +flags = next_offset != null ? (flags | 4) : (flags & ~4); +flags = switch_pm != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +gallery = (flags & 1) != 0; +@private = (flags & 2) != 0; +query_id = br.ReadInt64(); +results = (TLVector)ObjectUtils.DeserializeVector(br); +cache_time = br.ReadInt32(); +if ((flags & 4) != 0) +next_offset = StringUtil.Deserialize(br); +else +next_offset = null; + +if ((flags & 8) != 0) +switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); +else +switch_pm = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +bw.Write(query_id); +ObjectUtils.SerializeObject(results,bw); +bw.Write(cache_time); +if ((flags & 4) != 0) +StringUtil.Serialize(next_offset,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(switch_pm,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs new file mode 100644 index 0000000..c8a09bc --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1551737264)] + public class TLRequestSetTyping : TLMethod + { + public override int Constructor + { + get + { + return -1551737264; + } + } + + public TLAbsInputPeer peer {get;set;} + public TLAbsSendMessageAction action {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(action,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs new file mode 100644 index 0000000..ef96a70 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-421563528)] + public class TLRequestStartBot : TLMethod + { + public override int Constructor + { + get + { + return -421563528; + } + } + + public TLAbsInputUser bot {get;set;} + public TLAbsInputPeer peer {get;set;} + public long random_id {get;set;} + public string start_param {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); +random_id = br.ReadInt64(); +start_param = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(bot,bw); +ObjectUtils.SerializeObject(peer,bw); +bw.Write(random_id); +StringUtil.Serialize(start_param,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs new file mode 100644 index 0000000..53ac0a2 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-326379039)] + public class TLRequestToggleChatAdmins : TLMethod + { + public override int Constructor + { + get + { + return -326379039; + } + } + + public int chat_id {get;set;} + public bool enabled {get;set;} + public TLAbsUpdates Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +enabled = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +BoolUtil.Serialize(enabled,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs new file mode 100644 index 0000000..db4a7ab --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-110209570)] + public class TLRequestUninstallStickerSet : TLMethod + { + public override int Constructor + { + get + { + return -110209570; + } + } + + public TLAbsInputStickerSet stickerset {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs new file mode 100644 index 0000000..db34e4b --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(772213157)] + public class TLSavedGifs : TLAbsSavedGifs + { + public override int Constructor + { + get + { + return 772213157; + } + } + + public int hash {get;set;} + public TLVector gifs {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt32(); +gifs = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(hash); +ObjectUtils.SerializeObject(gifs,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs new file mode 100644 index 0000000..538d1e9 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-402498398)] + public class TLSavedGifsNotModified : TLAbsSavedGifs + { + public override int Constructor + { + get + { + return -402498398; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs new file mode 100644 index 0000000..911c4d2 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1802240206)] + public class TLSentEncryptedFile : TLAbsSentEncryptedMessage + { + public override int Constructor + { + get + { + return -1802240206; + } + } + + public int date {get;set;} + public TLAbsEncryptedFile file {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + date = br.ReadInt32(); +file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(date); +ObjectUtils.SerializeObject(file,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs new file mode 100644 index 0000000..351d7b1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1443858741)] + public class TLSentEncryptedMessage : TLAbsSentEncryptedMessage + { + public override int Constructor + { + get + { + return 1443858741; + } + } + + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLStickerSet.cs b/TeleSharp.TL/TL/Messages/TLStickerSet.cs new file mode 100644 index 0000000..8bbb9ba --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLStickerSet.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1240849242)] + public class TLStickerSet : TLObject + { + public override int Constructor + { + get + { + return -1240849242; + } + } + + public TLStickerSet @set {get;set;} + public TLVector packs {get;set;} + public TLVector documents {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); +packs = (TLVector)ObjectUtils.DeserializeVector(br); +documents = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(@set,bw); +ObjectUtils.SerializeObject(packs,bw); +ObjectUtils.SerializeObject(documents,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLStickers.cs b/TeleSharp.TL/TL/Messages/TLStickers.cs new file mode 100644 index 0000000..258db29 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLStickers.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1970352846)] + public class TLStickers : TLAbsStickers + { + public override int Constructor + { + get + { + return -1970352846; + } + } + + public string hash {get;set;} + public TLVector stickers {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = StringUtil.Deserialize(br); +stickers = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(hash,bw); +ObjectUtils.SerializeObject(stickers,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs new file mode 100644 index 0000000..31471f1 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-244016606)] + public class TLStickersNotModified : TLAbsStickers + { + public override int Constructor + { + get + { + return -244016606; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs b/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs new file mode 100644 index 0000000..ca753a6 --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + public abstract class TLAbsPhotos : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Photos/TLPhoto.cs b/TeleSharp.TL/TL/Photos/TLPhoto.cs new file mode 100644 index 0000000..4a76a07 --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(539045032)] + public class TLPhoto : TLObject + { + public override int Constructor + { + get + { + return 539045032; + } + } + + public TLAbsPhoto photo {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLPhotos.cs b/TeleSharp.TL/TL/Photos/TLPhotos.cs new file mode 100644 index 0000000..a3374db --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLPhotos.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(-1916114267)] + public class TLPhotos : TLAbsPhotos + { + public override int Constructor + { + get + { + return -1916114267; + } + } + + public TLVector photos {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photos = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(photos,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs new file mode 100644 index 0000000..4587848 --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(352657236)] + public class TLPhotosSlice : TLAbsPhotos + { + public override int Constructor + { + get + { + return 352657236; + } + } + + public int count {get;set;} + public TLVector photos {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + count = br.ReadInt32(); +photos = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(count); +ObjectUtils.SerializeObject(photos,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs new file mode 100644 index 0000000..08420e0 --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(-2016444625)] + public class TLRequestDeletePhotos : TLMethod + { + public override int Constructor + { + get + { + return -2016444625; + } + } + + public TLVector id {get;set;} + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs new file mode 100644 index 0000000..af8f46d --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(-1848823128)] + public class TLRequestGetUserPhotos : TLMethod + { + public override int Constructor + { + get + { + return -1848823128; + } + } + + public TLAbsInputUser user_id {get;set;} + public int offset {get;set;} + public long max_id {get;set;} + public int limit {get;set;} + public Photos.TLAbsPhotos Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); +offset = br.ReadInt32(); +max_id = br.ReadInt64(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id,bw); +bw.Write(offset); +bw.Write(max_id); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs new file mode 100644 index 0000000..42f095a --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(-285902432)] + public class TLRequestUpdateProfilePhoto : TLMethod + { + public override int Constructor + { + get + { + return -285902432; + } + } + + public TLAbsInputPhoto id {get;set;} + public TLAbsInputPhotoCrop crop {get;set;} + public TLAbsUserProfilePhoto Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); +crop = (TLAbsInputPhotoCrop)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); +ObjectUtils.SerializeObject(crop,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs new file mode 100644 index 0000000..7119b15 --- /dev/null +++ b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Photos +{ + [TLObject(-720397176)] + public class TLRequestUploadProfilePhoto : TLMethod + { + public override int Constructor + { + get + { + return -720397176; + } + } + + public TLAbsInputFile file {get;set;} + public string caption {get;set;} + public TLAbsInputGeoPoint geo_point {get;set;} + public TLAbsInputPhotoCrop crop {get;set;} + public Photos.TLPhoto Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); +geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); +crop = (TLAbsInputPhotoCrop)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(file,bw); +StringUtil.Serialize(caption,bw); +ObjectUtils.SerializeObject(geo_point,bw); +ObjectUtils.SerializeObject(crop,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLAbsFileType.cs b/TeleSharp.TL/TL/Storage/TLAbsFileType.cs new file mode 100644 index 0000000..958a25e --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLAbsFileType.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + public abstract class TLAbsFileType : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileGif.cs b/TeleSharp.TL/TL/Storage/TLFileGif.cs new file mode 100644 index 0000000..fdb3ca0 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileGif.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(-891180321)] + public class TLFileGif : TLAbsFileType + { + public override int Constructor + { + get + { + return -891180321; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileJpeg.cs b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs new file mode 100644 index 0000000..8823b85 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(8322574)] + public class TLFileJpeg : TLAbsFileType + { + public override int Constructor + { + get + { + return 8322574; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileMov.cs b/TeleSharp.TL/TL/Storage/TLFileMov.cs new file mode 100644 index 0000000..6a161ee --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileMov.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(1258941372)] + public class TLFileMov : TLAbsFileType + { + public override int Constructor + { + get + { + return 1258941372; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileMp3.cs b/TeleSharp.TL/TL/Storage/TLFileMp3.cs new file mode 100644 index 0000000..8e735dd --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileMp3.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(1384777335)] + public class TLFileMp3 : TLAbsFileType + { + public override int Constructor + { + get + { + return 1384777335; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileMp4.cs b/TeleSharp.TL/TL/Storage/TLFileMp4.cs new file mode 100644 index 0000000..d556556 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileMp4.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(-1278304028)] + public class TLFileMp4 : TLAbsFileType + { + public override int Constructor + { + get + { + return -1278304028; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFilePartial.cs b/TeleSharp.TL/TL/Storage/TLFilePartial.cs new file mode 100644 index 0000000..96a47b9 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFilePartial.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(1086091090)] + public class TLFilePartial : TLAbsFileType + { + public override int Constructor + { + get + { + return 1086091090; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFilePdf.cs b/TeleSharp.TL/TL/Storage/TLFilePdf.cs new file mode 100644 index 0000000..64af009 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFilePdf.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(-1373745011)] + public class TLFilePdf : TLAbsFileType + { + public override int Constructor + { + get + { + return -1373745011; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFilePng.cs b/TeleSharp.TL/TL/Storage/TLFilePng.cs new file mode 100644 index 0000000..9a1a57c --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFilePng.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(172975040)] + public class TLFilePng : TLAbsFileType + { + public override int Constructor + { + get + { + return 172975040; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileUnknown.cs b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs new file mode 100644 index 0000000..3cdf279 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(-1432995067)] + public class TLFileUnknown : TLAbsFileType + { + public override int Constructor + { + get + { + return -1432995067; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileWebp.cs b/TeleSharp.TL/TL/Storage/TLFileWebp.cs new file mode 100644 index 0000000..df81b09 --- /dev/null +++ b/TeleSharp.TL/TL/Storage/TLFileWebp.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Storage +{ + [TLObject(276907596)] + public class TLFileWebp : TLAbsFileType + { + public override int Constructor + { + get + { + return 276907596; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs b/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs new file mode 100644 index 0000000..8b54131 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsBotInlineMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsBotInlineResult.cs b/TeleSharp.TL/TL/TLAbsBotInlineResult.cs new file mode 100644 index 0000000..841a0fa --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsBotInlineResult.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsBotInlineResult : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs b/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs new file mode 100644 index 0000000..e754290 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChannelMessagesFilter : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipant.cs b/TeleSharp.TL/TL/TLAbsChannelParticipant.cs new file mode 100644 index 0000000..552ef91 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChannelParticipant.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChannelParticipant : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs b/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs new file mode 100644 index 0000000..c162b88 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChannelParticipantRole : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs b/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs new file mode 100644 index 0000000..afee66d --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChannelParticipantsFilter : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChat.cs b/TeleSharp.TL/TL/TLAbsChat.cs new file mode 100644 index 0000000..aa92fc0 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChat.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChat : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChatFull.cs b/TeleSharp.TL/TL/TLAbsChatFull.cs new file mode 100644 index 0000000..ef596c7 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChatFull.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChatFull : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChatInvite.cs b/TeleSharp.TL/TL/TLAbsChatInvite.cs new file mode 100644 index 0000000..64ff7dd --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChatInvite.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChatInvite : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChatParticipant.cs b/TeleSharp.TL/TL/TLAbsChatParticipant.cs new file mode 100644 index 0000000..598365a --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChatParticipant.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChatParticipant : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChatParticipants.cs b/TeleSharp.TL/TL/TLAbsChatParticipants.cs new file mode 100644 index 0000000..246eea2 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChatParticipants.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChatParticipants : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsChatPhoto.cs b/TeleSharp.TL/TL/TLAbsChatPhoto.cs new file mode 100644 index 0000000..b210308 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsChatPhoto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsChatPhoto : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsContactLink.cs b/TeleSharp.TL/TL/TLAbsContactLink.cs new file mode 100644 index 0000000..096f1cf --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsContactLink.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsContactLink : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsDocument.cs b/TeleSharp.TL/TL/TLAbsDocument.cs new file mode 100644 index 0000000..d60b4a8 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsDocument.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsDocument : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs b/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs new file mode 100644 index 0000000..8fd333d --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsDocumentAttribute : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsDraftMessage.cs b/TeleSharp.TL/TL/TLAbsDraftMessage.cs new file mode 100644 index 0000000..1f73bba --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsDraftMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsDraftMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsEncryptedChat.cs b/TeleSharp.TL/TL/TLAbsEncryptedChat.cs new file mode 100644 index 0000000..e64f973 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsEncryptedChat.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsEncryptedChat : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsEncryptedFile.cs b/TeleSharp.TL/TL/TLAbsEncryptedFile.cs new file mode 100644 index 0000000..5ada68d --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsEncryptedFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsEncryptedFile : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs b/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs new file mode 100644 index 0000000..bd37fe4 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsEncryptedMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs b/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs new file mode 100644 index 0000000..572ee11 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsExportedChatInvite : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsFileLocation.cs b/TeleSharp.TL/TL/TLAbsFileLocation.cs new file mode 100644 index 0000000..c813e5e --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsFileLocation.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsFileLocation : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsFoundGif.cs b/TeleSharp.TL/TL/TLAbsFoundGif.cs new file mode 100644 index 0000000..7fc1df8 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsFoundGif.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsFoundGif : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsGeoPoint.cs b/TeleSharp.TL/TL/TLAbsGeoPoint.cs new file mode 100644 index 0000000..935339f --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsGeoPoint.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsGeoPoint : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs b/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs new file mode 100644 index 0000000..015e1a0 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputBotInlineMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs b/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs new file mode 100644 index 0000000..9e4fb99 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputBotInlineResult : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputChannel.cs b/TeleSharp.TL/TL/TLAbsInputChannel.cs new file mode 100644 index 0000000..e84f4f7 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputChannel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputChannel : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs b/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs new file mode 100644 index 0000000..bf8800a --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputChatPhoto : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputDocument.cs b/TeleSharp.TL/TL/TLAbsInputDocument.cs new file mode 100644 index 0000000..e49097e --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputDocument.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputDocument : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs b/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs new file mode 100644 index 0000000..2567011 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputEncryptedFile : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputFile.cs b/TeleSharp.TL/TL/TLAbsInputFile.cs new file mode 100644 index 0000000..0f8adc3 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputFile : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputFileLocation.cs b/TeleSharp.TL/TL/TLAbsInputFileLocation.cs new file mode 100644 index 0000000..b67f3e8 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputFileLocation.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputFileLocation : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs b/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs new file mode 100644 index 0000000..2e3d1f5 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputGeoPoint : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputMedia.cs b/TeleSharp.TL/TL/TLAbsInputMedia.cs new file mode 100644 index 0000000..34ed3a7 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputMedia.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputMedia : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs b/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs new file mode 100644 index 0000000..23dd812 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputNotifyPeer : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPeer.cs b/TeleSharp.TL/TL/TLAbsInputPeer.cs new file mode 100644 index 0000000..24845d2 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPeer.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPeer : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs b/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs new file mode 100644 index 0000000..7266e4f --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPeerNotifyEvents : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPhoto.cs b/TeleSharp.TL/TL/TLAbsInputPhoto.cs new file mode 100644 index 0000000..dbeaed0 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPhoto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPhoto : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPhotoCrop.cs b/TeleSharp.TL/TL/TLAbsInputPhotoCrop.cs new file mode 100644 index 0000000..7c27d27 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPhotoCrop.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPhotoCrop : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs b/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs new file mode 100644 index 0000000..21b7943 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPrivacyKey : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs b/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs new file mode 100644 index 0000000..bc89964 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPrivacyRule : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputStickerSet.cs b/TeleSharp.TL/TL/TLAbsInputStickerSet.cs new file mode 100644 index 0000000..7578ef1 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputStickerSet.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputStickerSet : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsInputUser.cs b/TeleSharp.TL/TL/TLAbsInputUser.cs new file mode 100644 index 0000000..70ec16b --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputUser.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputUser : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsKeyboardButton.cs b/TeleSharp.TL/TL/TLAbsKeyboardButton.cs new file mode 100644 index 0000000..4760b4f --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsKeyboardButton.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsKeyboardButton : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsMessage.cs b/TeleSharp.TL/TL/TLAbsMessage.cs new file mode 100644 index 0000000..8f0ed6e --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsMessage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsMessage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsMessageAction.cs b/TeleSharp.TL/TL/TLAbsMessageAction.cs new file mode 100644 index 0000000..d231272 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsMessageAction.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsMessageAction : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsMessageEntity.cs b/TeleSharp.TL/TL/TLAbsMessageEntity.cs new file mode 100644 index 0000000..d892621 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsMessageEntity.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsMessageEntity : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsMessageMedia.cs b/TeleSharp.TL/TL/TLAbsMessageMedia.cs new file mode 100644 index 0000000..7b8bebc --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsMessageMedia.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsMessageMedia : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsMessagesFilter.cs b/TeleSharp.TL/TL/TLAbsMessagesFilter.cs new file mode 100644 index 0000000..f89e670 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsMessagesFilter.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsMessagesFilter : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsNotifyPeer.cs b/TeleSharp.TL/TL/TLAbsNotifyPeer.cs new file mode 100644 index 0000000..76e3bc4 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsNotifyPeer.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsNotifyPeer : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPeer.cs b/TeleSharp.TL/TL/TLAbsPeer.cs new file mode 100644 index 0000000..914dc83 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPeer.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPeer : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs b/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs new file mode 100644 index 0000000..b0df9f6 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPeerNotifyEvents : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs b/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs new file mode 100644 index 0000000..57c5087 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPeerNotifySettings : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPhoto.cs b/TeleSharp.TL/TL/TLAbsPhoto.cs new file mode 100644 index 0000000..4dd7e31 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPhoto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPhoto : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPhotoSize.cs b/TeleSharp.TL/TL/TLAbsPhotoSize.cs new file mode 100644 index 0000000..7038129 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPhotoSize.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPhotoSize : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPrivacyKey.cs b/TeleSharp.TL/TL/TLAbsPrivacyKey.cs new file mode 100644 index 0000000..1885650 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPrivacyKey.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPrivacyKey : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPrivacyRule.cs b/TeleSharp.TL/TL/TLAbsPrivacyRule.cs new file mode 100644 index 0000000..f015088 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPrivacyRule.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPrivacyRule : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsReplyMarkup.cs b/TeleSharp.TL/TL/TLAbsReplyMarkup.cs new file mode 100644 index 0000000..f7c3be0 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsReplyMarkup.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsReplyMarkup : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsReportReason.cs b/TeleSharp.TL/TL/TLAbsReportReason.cs new file mode 100644 index 0000000..87add4b --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsReportReason.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsReportReason : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsSendMessageAction.cs b/TeleSharp.TL/TL/TLAbsSendMessageAction.cs new file mode 100644 index 0000000..edcc8ed --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsSendMessageAction.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsSendMessageAction : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs b/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs new file mode 100644 index 0000000..0bf8f11 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsTopPeerCategory : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsUpdate.cs b/TeleSharp.TL/TL/TLAbsUpdate.cs new file mode 100644 index 0000000..6f71cc3 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsUpdate.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsUpdate : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsUpdates.cs b/TeleSharp.TL/TL/TLAbsUpdates.cs new file mode 100644 index 0000000..9653aa9 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsUpdates.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsUpdates : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsUser.cs b/TeleSharp.TL/TL/TLAbsUser.cs new file mode 100644 index 0000000..b9dcb61 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsUser.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsUser : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs b/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs new file mode 100644 index 0000000..c3c9e05 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsUserProfilePhoto : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsUserStatus.cs b/TeleSharp.TL/TL/TLAbsUserStatus.cs new file mode 100644 index 0000000..21ef437 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsUserStatus.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsUserStatus : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsWallPaper.cs b/TeleSharp.TL/TL/TLAbsWallPaper.cs new file mode 100644 index 0000000..a67e4e0 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsWallPaper.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsWallPaper : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsWebPage.cs b/TeleSharp.TL/TL/TLAbsWebPage.cs new file mode 100644 index 0000000..1433c52 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsWebPage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsWebPage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAccountDaysTTL.cs b/TeleSharp.TL/TL/TLAccountDaysTTL.cs new file mode 100644 index 0000000..8ffd827 --- /dev/null +++ b/TeleSharp.TL/TL/TLAccountDaysTTL.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1194283041)] + public class TLAccountDaysTTL : TLObject + { + public override int Constructor + { + get + { + return -1194283041; + } + } + + public int days {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + days = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(days); + + } + } +} diff --git a/TeleSharp.TL/TL/TLAuthorization.cs b/TeleSharp.TL/TL/TLAuthorization.cs new file mode 100644 index 0000000..2d47508 --- /dev/null +++ b/TeleSharp.TL/TL/TLAuthorization.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2079516406)] + public class TLAuthorization : TLObject + { + public override int Constructor + { + get + { + return 2079516406; + } + } + + public long hash {get;set;} + public int flags {get;set;} + public string device_model {get;set;} + public string platform {get;set;} + public string system_version {get;set;} + public int api_id {get;set;} + public string app_name {get;set;} + public string app_version {get;set;} + public int date_created {get;set;} + public int date_active {get;set;} + public string ip {get;set;} + public string country {get;set;} + public string region {get;set;} + + + public void ComputeFlags() + { + flags = 0; + + } + + public override void DeserializeBody(BinaryReader br) + { + hash = br.ReadInt64(); +flags = br.ReadInt32(); +device_model = StringUtil.Deserialize(br); +platform = StringUtil.Deserialize(br); +system_version = StringUtil.Deserialize(br); +api_id = br.ReadInt32(); +app_name = StringUtil.Deserialize(br); +app_version = StringUtil.Deserialize(br); +date_created = br.ReadInt32(); +date_active = br.ReadInt32(); +ip = StringUtil.Deserialize(br); +country = StringUtil.Deserialize(br); +region = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(hash); +StringUtil.Serialize(device_model,bw); +StringUtil.Serialize(platform,bw); +StringUtil.Serialize(system_version,bw); +bw.Write(api_id); +StringUtil.Serialize(app_name,bw); +StringUtil.Serialize(app_version,bw); +bw.Write(date_created); +bw.Write(date_active); +StringUtil.Serialize(ip,bw); +StringUtil.Serialize(country,bw); +StringUtil.Serialize(region,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotCommand.cs b/TeleSharp.TL/TL/TLBotCommand.cs new file mode 100644 index 0000000..b68d75e --- /dev/null +++ b/TeleSharp.TL/TL/TLBotCommand.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1032140601)] + public class TLBotCommand : TLObject + { + public override int Constructor + { + get + { + return -1032140601; + } + } + + public string command {get;set;} + public string description {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + command = StringUtil.Deserialize(br); +description = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(command,bw); +StringUtil.Serialize(description,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInfo.cs b/TeleSharp.TL/TL/TLBotInfo.cs new file mode 100644 index 0000000..4b0836e --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInfo.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1729618630)] + public class TLBotInfo : TLObject + { + public override int Constructor + { + get + { + return -1729618630; + } + } + + public int user_id {get;set;} + public string description {get;set;} + public TLVector commands {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +description = StringUtil.Deserialize(br); +commands = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +StringUtil.Serialize(description,bw); +ObjectUtils.SerializeObject(commands,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMediaResult.cs b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs new file mode 100644 index 0000000..530fd04 --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(400266251)] + public class TLBotInlineMediaResult : TLAbsBotInlineResult + { + public override int Constructor + { + get + { + return 400266251; + } + } + + public int flags {get;set;} + public string id {get;set;} + public string type {get;set;} + public TLAbsPhoto photo {get;set;} + public TLAbsDocument document {get;set;} + public string title {get;set;} + public string description {get;set;} + public TLAbsBotInlineMessage send_message {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = photo != null ? (flags | 1) : (flags & ~1); +flags = document != null ? (flags | 2) : (flags & ~2); +flags = title != null ? (flags | 4) : (flags & ~4); +flags = description != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +id = StringUtil.Deserialize(br); +type = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +else +photo = null; + +if ((flags & 2) != 0) +document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); +else +document = null; + +if ((flags & 4) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 8) != 0) +description = StringUtil.Deserialize(br); +else +description = null; + +send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(id,bw); +StringUtil.Serialize(type,bw); +if ((flags & 1) != 0) +ObjectUtils.SerializeObject(photo,bw); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(document,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 8) != 0) +StringUtil.Serialize(description,bw); +ObjectUtils.SerializeObject(send_message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs new file mode 100644 index 0000000..fbf782e --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(175419739)] + public class TLBotInlineMessageMediaAuto : TLAbsBotInlineMessage + { + public override int Constructor + { + get + { + return 175419739; + } + } + + public int flags {get;set;} + public string caption {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +caption = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(caption,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs new file mode 100644 index 0000000..b7a8fcd --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(904770772)] + public class TLBotInlineMessageMediaContact : TLAbsBotInlineMessage + { + public override int Constructor + { + get + { + return 904770772; + } + } + + public int flags {get;set;} + public string phone_number {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +phone_number = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs new file mode 100644 index 0000000..f8408ca --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(982505656)] + public class TLBotInlineMessageMediaGeo : TLAbsBotInlineMessage + { + public override int Constructor + { + get + { + return 982505656; + } + } + + public int flags {get;set;} + public TLAbsGeoPoint geo {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(geo,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs new file mode 100644 index 0000000..413efae --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1130767150)] + public class TLBotInlineMessageMediaVenue : TLAbsBotInlineMessage + { + public override int Constructor + { + get + { + return 1130767150; + } + } + + public int flags {get;set;} + public TLAbsGeoPoint geo {get;set;} + public string title {get;set;} + public string address {get;set;} + public string provider {get;set;} + public string venue_id {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); +title = StringUtil.Deserialize(br); +address = StringUtil.Deserialize(br); +provider = StringUtil.Deserialize(br); +venue_id = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(geo,bw); +StringUtil.Serialize(title,bw); +StringUtil.Serialize(address,bw); +StringUtil.Serialize(provider,bw); +StringUtil.Serialize(venue_id,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineMessageText.cs b/TeleSharp.TL/TL/TLBotInlineMessageText.cs new file mode 100644 index 0000000..c9ba8ca --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineMessageText.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1937807902)] + public class TLBotInlineMessageText : TLAbsBotInlineMessage + { + public override int Constructor + { + get + { + return -1937807902; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public string message {get;set;} + public TLVector entities {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 1) : (flags & ~1); +flags = entities != null ? (flags | 2) : (flags & ~2); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 1) != 0; +message = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +StringUtil.Serialize(message,bw); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(entities,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLBotInlineResult.cs b/TeleSharp.TL/TL/TLBotInlineResult.cs new file mode 100644 index 0000000..5634f1a --- /dev/null +++ b/TeleSharp.TL/TL/TLBotInlineResult.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1679053127)] + public class TLBotInlineResult : TLAbsBotInlineResult + { + public override int Constructor + { + get + { + return -1679053127; + } + } + + public int flags {get;set;} + public string id {get;set;} + public string type {get;set;} + public string title {get;set;} + public string description {get;set;} + public string url {get;set;} + public string thumb_url {get;set;} + public string content_url {get;set;} + public string content_type {get;set;} + public int? w {get;set;} + public int? h {get;set;} + public int? duration {get;set;} + public TLAbsBotInlineMessage send_message {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = title != null ? (flags | 2) : (flags & ~2); +flags = description != null ? (flags | 4) : (flags & ~4); +flags = url != null ? (flags | 8) : (flags & ~8); +flags = thumb_url != null ? (flags | 16) : (flags & ~16); +flags = content_url != null ? (flags | 32) : (flags & ~32); +flags = content_type != null ? (flags | 32) : (flags & ~32); +flags = w != null ? (flags | 64) : (flags & ~64); +flags = h != null ? (flags | 64) : (flags & ~64); +flags = duration != null ? (flags | 128) : (flags & ~128); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +id = StringUtil.Deserialize(br); +type = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 4) != 0) +description = StringUtil.Deserialize(br); +else +description = null; + +if ((flags & 8) != 0) +url = StringUtil.Deserialize(br); +else +url = null; + +if ((flags & 16) != 0) +thumb_url = StringUtil.Deserialize(br); +else +thumb_url = null; + +if ((flags & 32) != 0) +content_url = StringUtil.Deserialize(br); +else +content_url = null; + +if ((flags & 32) != 0) +content_type = StringUtil.Deserialize(br); +else +content_type = null; + +if ((flags & 64) != 0) +w = br.ReadInt32(); +else +w = null; + +if ((flags & 64) != 0) +h = br.ReadInt32(); +else +h = null; + +if ((flags & 128) != 0) +duration = br.ReadInt32(); +else +duration = null; + +send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(id,bw); +StringUtil.Serialize(type,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(description,bw); +if ((flags & 8) != 0) +StringUtil.Serialize(url,bw); +if ((flags & 16) != 0) +StringUtil.Serialize(thumb_url,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(content_url,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(content_type,bw); +if ((flags & 64) != 0) +bw.Write(w.Value); +if ((flags & 64) != 0) +bw.Write(h.Value); +if ((flags & 128) != 0) +bw.Write(duration.Value); +ObjectUtils.SerializeObject(send_message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannel.cs b/TeleSharp.TL/TL/TLChannel.cs new file mode 100644 index 0000000..63774d4 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannel.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1588737454)] + public class TLChannel : TLAbsChat + { + public override int Constructor + { + get + { + return -1588737454; + } + } + + public int flags {get;set;} + public bool creator {get;set;} + public bool kicked {get;set;} + public bool left {get;set;} + public bool editor {get;set;} + public bool moderator {get;set;} + public bool broadcast {get;set;} + public bool verified {get;set;} + public bool megagroup {get;set;} + public bool restricted {get;set;} + public bool democracy {get;set;} + public bool signatures {get;set;} + public bool min {get;set;} + public int id {get;set;} + public long? access_hash {get;set;} + public string title {get;set;} + public string username {get;set;} + public TLAbsChatPhoto photo {get;set;} + public int date {get;set;} + public int version {get;set;} + public string restriction_reason {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = creator ? (flags | 1) : (flags & ~1); +flags = kicked ? (flags | 2) : (flags & ~2); +flags = left ? (flags | 4) : (flags & ~4); +flags = editor ? (flags | 8) : (flags & ~8); +flags = moderator ? (flags | 16) : (flags & ~16); +flags = broadcast ? (flags | 32) : (flags & ~32); +flags = verified ? (flags | 128) : (flags & ~128); +flags = megagroup ? (flags | 256) : (flags & ~256); +flags = restricted ? (flags | 512) : (flags & ~512); +flags = democracy ? (flags | 1024) : (flags & ~1024); +flags = signatures ? (flags | 2048) : (flags & ~2048); +flags = min ? (flags | 4096) : (flags & ~4096); +flags = access_hash != null ? (flags | 8192) : (flags & ~8192); +flags = username != null ? (flags | 64) : (flags & ~64); +flags = restriction_reason != null ? (flags | 512) : (flags & ~512); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +creator = (flags & 1) != 0; +kicked = (flags & 2) != 0; +left = (flags & 4) != 0; +editor = (flags & 8) != 0; +moderator = (flags & 16) != 0; +broadcast = (flags & 32) != 0; +verified = (flags & 128) != 0; +megagroup = (flags & 256) != 0; +restricted = (flags & 512) != 0; +democracy = (flags & 1024) != 0; +signatures = (flags & 2048) != 0; +min = (flags & 4096) != 0; +id = br.ReadInt32(); +if ((flags & 8192) != 0) +access_hash = br.ReadInt64(); +else +access_hash = null; + +title = StringUtil.Deserialize(br); +if ((flags & 64) != 0) +username = StringUtil.Deserialize(br); +else +username = null; + +photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); +date = br.ReadInt32(); +version = br.ReadInt32(); +if ((flags & 512) != 0) +restriction_reason = StringUtil.Deserialize(br); +else +restriction_reason = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + + + + + + + + +bw.Write(id); +if ((flags & 8192) != 0) +bw.Write(access_hash.Value); +StringUtil.Serialize(title,bw); +if ((flags & 64) != 0) +StringUtil.Serialize(username,bw); +ObjectUtils.SerializeObject(photo,bw); +bw.Write(date); +bw.Write(version); +if ((flags & 512) != 0) +StringUtil.Serialize(restriction_reason,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelForbidden.cs b/TeleSharp.TL/TL/TLChannelForbidden.cs new file mode 100644 index 0000000..471a7f6 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelForbidden.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2059962289)] + public class TLChannelForbidden : TLAbsChat + { + public override int Constructor + { + get + { + return -2059962289; + } + } + + public int flags {get;set;} + public bool broadcast {get;set;} + public bool megagroup {get;set;} + public int id {get;set;} + public long access_hash {get;set;} + public string title {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = broadcast ? (flags | 32) : (flags & ~32); +flags = megagroup ? (flags | 256) : (flags & ~256); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +broadcast = (flags & 32) != 0; +megagroup = (flags & 256) != 0; +id = br.ReadInt32(); +access_hash = br.ReadInt64(); +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +bw.Write(id); +bw.Write(access_hash); +StringUtil.Serialize(title,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelFull.cs b/TeleSharp.TL/TL/TLChannelFull.cs new file mode 100644 index 0000000..6559bea --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelFull.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1009430225)] + public class TLChannelFull : TLAbsChatFull + { + public override int Constructor + { + get + { + return -1009430225; + } + } + + public int flags {get;set;} + public bool can_view_participants {get;set;} + public bool can_set_username {get;set;} + public int id {get;set;} + public string about {get;set;} + public int? participants_count {get;set;} + public int? admins_count {get;set;} + public int? kicked_count {get;set;} + public int read_inbox_max_id {get;set;} + public int read_outbox_max_id {get;set;} + public int unread_count {get;set;} + public TLAbsPhoto chat_photo {get;set;} + public TLAbsPeerNotifySettings notify_settings {get;set;} + public TLAbsExportedChatInvite exported_invite {get;set;} + public TLVector bot_info {get;set;} + public int? migrated_from_chat_id {get;set;} + public int? migrated_from_max_id {get;set;} + public int? pinned_msg_id {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = can_view_participants ? (flags | 8) : (flags & ~8); +flags = can_set_username ? (flags | 64) : (flags & ~64); +flags = participants_count != null ? (flags | 1) : (flags & ~1); +flags = admins_count != null ? (flags | 2) : (flags & ~2); +flags = kicked_count != null ? (flags | 4) : (flags & ~4); +flags = migrated_from_chat_id != null ? (flags | 16) : (flags & ~16); +flags = migrated_from_max_id != null ? (flags | 16) : (flags & ~16); +flags = pinned_msg_id != null ? (flags | 32) : (flags & ~32); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +can_view_participants = (flags & 8) != 0; +can_set_username = (flags & 64) != 0; +id = br.ReadInt32(); +about = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +participants_count = br.ReadInt32(); +else +participants_count = null; + +if ((flags & 2) != 0) +admins_count = br.ReadInt32(); +else +admins_count = null; + +if ((flags & 4) != 0) +kicked_count = br.ReadInt32(); +else +kicked_count = null; + +read_inbox_max_id = br.ReadInt32(); +read_outbox_max_id = br.ReadInt32(); +unread_count = br.ReadInt32(); +chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); +exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); +bot_info = (TLVector)ObjectUtils.DeserializeVector(br); +if ((flags & 16) != 0) +migrated_from_chat_id = br.ReadInt32(); +else +migrated_from_chat_id = null; + +if ((flags & 16) != 0) +migrated_from_max_id = br.ReadInt32(); +else +migrated_from_max_id = null; + +if ((flags & 32) != 0) +pinned_msg_id = br.ReadInt32(); +else +pinned_msg_id = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +bw.Write(id); +StringUtil.Serialize(about,bw); +if ((flags & 1) != 0) +bw.Write(participants_count.Value); +if ((flags & 2) != 0) +bw.Write(admins_count.Value); +if ((flags & 4) != 0) +bw.Write(kicked_count.Value); +bw.Write(read_inbox_max_id); +bw.Write(read_outbox_max_id); +bw.Write(unread_count); +ObjectUtils.SerializeObject(chat_photo,bw); +ObjectUtils.SerializeObject(notify_settings,bw); +ObjectUtils.SerializeObject(exported_invite,bw); +ObjectUtils.SerializeObject(bot_info,bw); +if ((flags & 16) != 0) +bw.Write(migrated_from_chat_id.Value); +if ((flags & 16) != 0) +bw.Write(migrated_from_max_id.Value); +if ((flags & 32) != 0) +bw.Write(pinned_msg_id.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilter.cs b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs new file mode 100644 index 0000000..7460690 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-847783593)] + public class TLChannelMessagesFilter : TLAbsChannelMessagesFilter + { + public override int Constructor + { + get + { + return -847783593; + } + } + + public int flags {get;set;} + public bool exclude_new_messages {get;set;} + public TLVector ranges {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = exclude_new_messages ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +exclude_new_messages = (flags & 2) != 0; +ranges = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(ranges,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs new file mode 100644 index 0000000..7e3aeb7 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1798033689)] + public class TLChannelMessagesFilterEmpty : TLAbsChannelMessagesFilter + { + public override int Constructor + { + get + { + return -1798033689; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipant.cs b/TeleSharp.TL/TL/TLChannelParticipant.cs new file mode 100644 index 0000000..1954404 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipant.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(367766557)] + public class TLChannelParticipant : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return 367766557; + } + } + + public int user_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantCreator.cs b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs new file mode 100644 index 0000000..0fd031b --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-471670279)] + public class TLChannelParticipantCreator : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return -471670279; + } + } + + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantEditor.cs b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs new file mode 100644 index 0000000..589ba4d --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1743180447)] + public class TLChannelParticipantEditor : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return -1743180447; + } + } + + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs new file mode 100644 index 0000000..f45f891 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1933187430)] + public class TLChannelParticipantKicked : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return -1933187430; + } + } + + public int user_id {get;set;} + public int kicked_by {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +kicked_by = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(kicked_by); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantModerator.cs b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs new file mode 100644 index 0000000..dd993e4 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1861910545)] + public class TLChannelParticipantModerator : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return -1861910545; + } + } + + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantSelf.cs b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs new file mode 100644 index 0000000..29be1e5 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1557620115)] + public class TLChannelParticipantSelf : TLAbsChannelParticipant + { + public override int Constructor + { + get + { + return -1557620115; + } + } + + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs new file mode 100644 index 0000000..7e40364 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1268741783)] + public class TLChannelParticipantsAdmins : TLAbsChannelParticipantsFilter + { + public override int Constructor + { + get + { + return -1268741783; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantsBots.cs b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs new file mode 100644 index 0000000..a874bd9 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1328445861)] + public class TLChannelParticipantsBots : TLAbsChannelParticipantsFilter + { + public override int Constructor + { + get + { + return -1328445861; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs new file mode 100644 index 0000000..e036ab6 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1010285434)] + public class TLChannelParticipantsKicked : TLAbsChannelParticipantsFilter + { + public override int Constructor + { + get + { + return 1010285434; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs new file mode 100644 index 0000000..a37c841 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-566281095)] + public class TLChannelParticipantsRecent : TLAbsChannelParticipantsFilter + { + public override int Constructor + { + get + { + return -566281095; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelRoleEditor.cs b/TeleSharp.TL/TL/TLChannelRoleEditor.cs new file mode 100644 index 0000000..ff75913 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelRoleEditor.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2113143156)] + public class TLChannelRoleEditor : TLAbsChannelParticipantRole + { + public override int Constructor + { + get + { + return -2113143156; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelRoleEmpty.cs b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs new file mode 100644 index 0000000..4bc07ee --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1299865402)] + public class TLChannelRoleEmpty : TLAbsChannelParticipantRole + { + public override int Constructor + { + get + { + return -1299865402; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannelRoleModerator.cs b/TeleSharp.TL/TL/TLChannelRoleModerator.cs new file mode 100644 index 0000000..94c4f47 --- /dev/null +++ b/TeleSharp.TL/TL/TLChannelRoleModerator.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1776756363)] + public class TLChannelRoleModerator : TLAbsChannelParticipantRole + { + public override int Constructor + { + get + { + return -1776756363; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChat.cs b/TeleSharp.TL/TL/TLChat.cs new file mode 100644 index 0000000..bf63f50 --- /dev/null +++ b/TeleSharp.TL/TL/TLChat.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-652419756)] + public class TLChat : TLAbsChat + { + public override int Constructor + { + get + { + return -652419756; + } + } + + public int flags {get;set;} + public bool creator {get;set;} + public bool kicked {get;set;} + public bool left {get;set;} + public bool admins_enabled {get;set;} + public bool admin {get;set;} + public bool deactivated {get;set;} + public int id {get;set;} + public string title {get;set;} + public TLAbsChatPhoto photo {get;set;} + public int participants_count {get;set;} + public int date {get;set;} + public int version {get;set;} + public TLAbsInputChannel migrated_to {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = creator ? (flags | 1) : (flags & ~1); +flags = kicked ? (flags | 2) : (flags & ~2); +flags = left ? (flags | 4) : (flags & ~4); +flags = admins_enabled ? (flags | 8) : (flags & ~8); +flags = admin ? (flags | 16) : (flags & ~16); +flags = deactivated ? (flags | 32) : (flags & ~32); +flags = migrated_to != null ? (flags | 64) : (flags & ~64); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +creator = (flags & 1) != 0; +kicked = (flags & 2) != 0; +left = (flags & 4) != 0; +admins_enabled = (flags & 8) != 0; +admin = (flags & 16) != 0; +deactivated = (flags & 32) != 0; +id = br.ReadInt32(); +title = StringUtil.Deserialize(br); +photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); +participants_count = br.ReadInt32(); +date = br.ReadInt32(); +version = br.ReadInt32(); +if ((flags & 64) != 0) +migrated_to = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +else +migrated_to = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + + +bw.Write(id); +StringUtil.Serialize(title,bw); +ObjectUtils.SerializeObject(photo,bw); +bw.Write(participants_count); +bw.Write(date); +bw.Write(version); +if ((flags & 64) != 0) +ObjectUtils.SerializeObject(migrated_to,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatEmpty.cs b/TeleSharp.TL/TL/TLChatEmpty.cs new file mode 100644 index 0000000..0efc4a3 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1683826688)] + public class TLChatEmpty : TLAbsChat + { + public override int Constructor + { + get + { + return -1683826688; + } + } + + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatForbidden.cs b/TeleSharp.TL/TL/TLChatForbidden.cs new file mode 100644 index 0000000..e2576b1 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatForbidden.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(120753115)] + public class TLChatForbidden : TLAbsChat + { + public override int Constructor + { + get + { + return 120753115; + } + } + + public int id {get;set;} + public string title {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +StringUtil.Serialize(title,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatFull.cs b/TeleSharp.TL/TL/TLChatFull.cs new file mode 100644 index 0000000..74809c8 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatFull.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(771925524)] + public class TLChatFull : TLAbsChatFull + { + public override int Constructor + { + get + { + return 771925524; + } + } + + public int id {get;set;} + public TLAbsChatParticipants participants {get;set;} + public TLAbsPhoto chat_photo {get;set;} + public TLAbsPeerNotifySettings notify_settings {get;set;} + public TLAbsExportedChatInvite exported_invite {get;set;} + public TLVector bot_info {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +participants = (TLAbsChatParticipants)ObjectUtils.DeserializeObject(br); +chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); +exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); +bot_info = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +ObjectUtils.SerializeObject(participants,bw); +ObjectUtils.SerializeObject(chat_photo,bw); +ObjectUtils.SerializeObject(notify_settings,bw); +ObjectUtils.SerializeObject(exported_invite,bw); +ObjectUtils.SerializeObject(bot_info,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatInvite.cs b/TeleSharp.TL/TL/TLChatInvite.cs new file mode 100644 index 0000000..b127691 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatInvite.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1813406880)] + public class TLChatInvite : TLAbsChatInvite + { + public override int Constructor + { + get + { + return -1813406880; + } + } + + public int flags {get;set;} + public bool channel {get;set;} + public bool broadcast {get;set;} + public bool @public {get;set;} + public bool megagroup {get;set;} + public string title {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = channel ? (flags | 1) : (flags & ~1); +flags = broadcast ? (flags | 2) : (flags & ~2); +flags = @public ? (flags | 4) : (flags & ~4); +flags = megagroup ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +channel = (flags & 1) != 0; +broadcast = (flags & 2) != 0; +@public = (flags & 4) != 0; +megagroup = (flags & 8) != 0; +title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + +StringUtil.Serialize(title,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatInviteAlready.cs b/TeleSharp.TL/TL/TLChatInviteAlready.cs new file mode 100644 index 0000000..e78bca3 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatInviteAlready.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1516793212)] + public class TLChatInviteAlready : TLAbsChatInvite + { + public override int Constructor + { + get + { + return 1516793212; + } + } + + public TLAbsChat chat {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat = (TLAbsChat)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(chat,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatInviteEmpty.cs b/TeleSharp.TL/TL/TLChatInviteEmpty.cs new file mode 100644 index 0000000..59896d2 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatInviteEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1776236393)] + public class TLChatInviteEmpty : TLAbsExportedChatInvite + { + public override int Constructor + { + get + { + return 1776236393; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatInviteExported.cs b/TeleSharp.TL/TL/TLChatInviteExported.cs new file mode 100644 index 0000000..b8a9b61 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatInviteExported.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-64092740)] + public class TLChatInviteExported : TLAbsExportedChatInvite + { + public override int Constructor + { + get + { + return -64092740; + } + } + + public string link {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + link = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(link,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatParticipant.cs b/TeleSharp.TL/TL/TLChatParticipant.cs new file mode 100644 index 0000000..ea8df15 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatParticipant.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-925415106)] + public class TLChatParticipant : TLAbsChatParticipant + { + public override int Constructor + { + get + { + return -925415106; + } + } + + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs new file mode 100644 index 0000000..d964e28 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-489233354)] + public class TLChatParticipantAdmin : TLAbsChatParticipant + { + public override int Constructor + { + get + { + return -489233354; + } + } + + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatParticipantCreator.cs b/TeleSharp.TL/TL/TLChatParticipantCreator.cs new file mode 100644 index 0000000..c1fabf7 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatParticipantCreator.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-636267638)] + public class TLChatParticipantCreator : TLAbsChatParticipant + { + public override int Constructor + { + get + { + return -636267638; + } + } + + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatParticipants.cs b/TeleSharp.TL/TL/TLChatParticipants.cs new file mode 100644 index 0000000..6700490 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatParticipants.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1061556205)] + public class TLChatParticipants : TLAbsChatParticipants + { + public override int Constructor + { + get + { + return 1061556205; + } + } + + public int chat_id {get;set;} + public TLVector participants {get;set;} + public int version {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +participants = (TLVector)ObjectUtils.DeserializeVector(br); +version = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +ObjectUtils.SerializeObject(participants,bw); +bw.Write(version); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs new file mode 100644 index 0000000..7036c6e --- /dev/null +++ b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-57668565)] + public class TLChatParticipantsForbidden : TLAbsChatParticipants + { + public override int Constructor + { + get + { + return -57668565; + } + } + + public int flags {get;set;} + public int chat_id {get;set;} + public TLAbsChatParticipant self_participant {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = self_participant != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +chat_id = br.ReadInt32(); +if ((flags & 1) != 0) +self_participant = (TLAbsChatParticipant)ObjectUtils.DeserializeObject(br); +else +self_participant = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(chat_id); +if ((flags & 1) != 0) +ObjectUtils.SerializeObject(self_participant,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatPhoto.cs b/TeleSharp.TL/TL/TLChatPhoto.cs new file mode 100644 index 0000000..93664fb --- /dev/null +++ b/TeleSharp.TL/TL/TLChatPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1632839530)] + public class TLChatPhoto : TLAbsChatPhoto + { + public override int Constructor + { + get + { + return 1632839530; + } + } + + public TLAbsFileLocation photo_small {get;set;} + public TLAbsFileLocation photo_big {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); +photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo_small,bw); +ObjectUtils.SerializeObject(photo_big,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs new file mode 100644 index 0000000..d8601e5 --- /dev/null +++ b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(935395612)] + public class TLChatPhotoEmpty : TLAbsChatPhoto + { + public override int Constructor + { + get + { + return 935395612; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLConfig.cs b/TeleSharp.TL/TL/TLConfig.cs new file mode 100644 index 0000000..e3cd209 --- /dev/null +++ b/TeleSharp.TL/TL/TLConfig.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-918482040)] + public class TLConfig : TLObject + { + public override int Constructor + { + get + { + return -918482040; + } + } + + public int date {get;set;} + public int expires {get;set;} + public bool test_mode {get;set;} + public int this_dc {get;set;} + public TLVector dc_options {get;set;} + public int chat_size_max {get;set;} + public int megagroup_size_max {get;set;} + public int forwarded_count_max {get;set;} + public int online_update_period_ms {get;set;} + public int offline_blur_timeout_ms {get;set;} + public int offline_idle_timeout_ms {get;set;} + public int online_cloud_timeout_ms {get;set;} + public int notify_cloud_delay_ms {get;set;} + public int notify_default_delay_ms {get;set;} + public int chat_big_size {get;set;} + public int push_chat_period_ms {get;set;} + public int push_chat_limit {get;set;} + public int saved_gifs_limit {get;set;} + public int edit_time_limit {get;set;} + public int rating_e_decay {get;set;} + public TLVector disabled_features {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + date = br.ReadInt32(); +expires = br.ReadInt32(); +test_mode = BoolUtil.Deserialize(br); +this_dc = br.ReadInt32(); +dc_options = (TLVector)ObjectUtils.DeserializeVector(br); +chat_size_max = br.ReadInt32(); +megagroup_size_max = br.ReadInt32(); +forwarded_count_max = br.ReadInt32(); +online_update_period_ms = br.ReadInt32(); +offline_blur_timeout_ms = br.ReadInt32(); +offline_idle_timeout_ms = br.ReadInt32(); +online_cloud_timeout_ms = br.ReadInt32(); +notify_cloud_delay_ms = br.ReadInt32(); +notify_default_delay_ms = br.ReadInt32(); +chat_big_size = br.ReadInt32(); +push_chat_period_ms = br.ReadInt32(); +push_chat_limit = br.ReadInt32(); +saved_gifs_limit = br.ReadInt32(); +edit_time_limit = br.ReadInt32(); +rating_e_decay = br.ReadInt32(); +disabled_features = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(date); +bw.Write(expires); +BoolUtil.Serialize(test_mode,bw); +bw.Write(this_dc); +ObjectUtils.SerializeObject(dc_options,bw); +bw.Write(chat_size_max); +bw.Write(megagroup_size_max); +bw.Write(forwarded_count_max); +bw.Write(online_update_period_ms); +bw.Write(offline_blur_timeout_ms); +bw.Write(offline_idle_timeout_ms); +bw.Write(online_cloud_timeout_ms); +bw.Write(notify_cloud_delay_ms); +bw.Write(notify_default_delay_ms); +bw.Write(chat_big_size); +bw.Write(push_chat_period_ms); +bw.Write(push_chat_limit); +bw.Write(saved_gifs_limit); +bw.Write(edit_time_limit); +bw.Write(rating_e_decay); +ObjectUtils.SerializeObject(disabled_features,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContact.cs b/TeleSharp.TL/TL/TLContact.cs new file mode 100644 index 0000000..70b5d85 --- /dev/null +++ b/TeleSharp.TL/TL/TLContact.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-116274796)] + public class TLContact : TLObject + { + public override int Constructor + { + get + { + return -116274796; + } + } + + public int user_id {get;set;} + public bool mutual {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +mutual = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +BoolUtil.Serialize(mutual,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactBlocked.cs b/TeleSharp.TL/TL/TLContactBlocked.cs new file mode 100644 index 0000000..75c0222 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactBlocked.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1444661369)] + public class TLContactBlocked : TLObject + { + public override int Constructor + { + get + { + return 1444661369; + } + } + + public int user_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactLinkContact.cs b/TeleSharp.TL/TL/TLContactLinkContact.cs new file mode 100644 index 0000000..5b834a5 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactLinkContact.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-721239344)] + public class TLContactLinkContact : TLAbsContactLink + { + public override int Constructor + { + get + { + return -721239344; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactLinkHasPhone.cs b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs new file mode 100644 index 0000000..90cc2e1 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(646922073)] + public class TLContactLinkHasPhone : TLAbsContactLink + { + public override int Constructor + { + get + { + return 646922073; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactLinkNone.cs b/TeleSharp.TL/TL/TLContactLinkNone.cs new file mode 100644 index 0000000..21e0de7 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactLinkNone.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-17968211)] + public class TLContactLinkNone : TLAbsContactLink + { + public override int Constructor + { + get + { + return -17968211; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactLinkUnknown.cs b/TeleSharp.TL/TL/TLContactLinkUnknown.cs new file mode 100644 index 0000000..972a5a8 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactLinkUnknown.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1599050311)] + public class TLContactLinkUnknown : TLAbsContactLink + { + public override int Constructor + { + get + { + return 1599050311; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLContactStatus.cs b/TeleSharp.TL/TL/TLContactStatus.cs new file mode 100644 index 0000000..cfcc5b9 --- /dev/null +++ b/TeleSharp.TL/TL/TLContactStatus.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-748155807)] + public class TLContactStatus : TLObject + { + public override int Constructor + { + get + { + return -748155807; + } + } + + public int user_id {get;set;} + public TLAbsUserStatus status {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +ObjectUtils.SerializeObject(status,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDcOption.cs b/TeleSharp.TL/TL/TLDcOption.cs new file mode 100644 index 0000000..c5b3755 --- /dev/null +++ b/TeleSharp.TL/TL/TLDcOption.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(98092748)] + public class TLDcOption : TLObject + { + public override int Constructor + { + get + { + return 98092748; + } + } + + public int flags {get;set;} + public bool ipv6 {get;set;} + public bool media_only {get;set;} + public bool tcpo_only {get;set;} + public int id {get;set;} + public string ip_address {get;set;} + public int port {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = ipv6 ? (flags | 1) : (flags & ~1); +flags = media_only ? (flags | 2) : (flags & ~2); +flags = tcpo_only ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +ipv6 = (flags & 1) != 0; +media_only = (flags & 2) != 0; +tcpo_only = (flags & 4) != 0; +id = br.ReadInt32(); +ip_address = StringUtil.Deserialize(br); +port = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + +bw.Write(id); +StringUtil.Serialize(ip_address,bw); +bw.Write(port); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDialog.cs b/TeleSharp.TL/TL/TLDialog.cs new file mode 100644 index 0000000..33578e6 --- /dev/null +++ b/TeleSharp.TL/TL/TLDialog.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1728035348)] + public class TLDialog : TLObject + { + public override int Constructor + { + get + { + return 1728035348; + } + } + + public int flags {get;set;} + public TLAbsPeer peer {get;set;} + public int top_message {get;set;} + public int read_inbox_max_id {get;set;} + public int read_outbox_max_id {get;set;} + public int unread_count {get;set;} + public TLAbsPeerNotifySettings notify_settings {get;set;} + public int? pts {get;set;} + public TLAbsDraftMessage draft {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = pts != null ? (flags | 1) : (flags & ~1); +flags = draft != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +top_message = br.ReadInt32(); +read_inbox_max_id = br.ReadInt32(); +read_outbox_max_id = br.ReadInt32(); +unread_count = br.ReadInt32(); +notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); +if ((flags & 1) != 0) +pts = br.ReadInt32(); +else +pts = null; + +if ((flags & 2) != 0) +draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); +else +draft = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(peer,bw); +bw.Write(top_message); +bw.Write(read_inbox_max_id); +bw.Write(read_outbox_max_id); +bw.Write(unread_count); +ObjectUtils.SerializeObject(notify_settings,bw); +if ((flags & 1) != 0) +bw.Write(pts.Value); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(draft,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDisabledFeature.cs b/TeleSharp.TL/TL/TLDisabledFeature.cs new file mode 100644 index 0000000..6e35761 --- /dev/null +++ b/TeleSharp.TL/TL/TLDisabledFeature.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1369215196)] + public class TLDisabledFeature : TLObject + { + public override int Constructor + { + get + { + return -1369215196; + } + } + + public string feature {get;set;} + public string description {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + feature = StringUtil.Deserialize(br); +description = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(feature,bw); +StringUtil.Serialize(description,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocument.cs b/TeleSharp.TL/TL/TLDocument.cs new file mode 100644 index 0000000..83f5259 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocument.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-106717361)] + public class TLDocument : TLAbsDocument + { + public override int Constructor + { + get + { + return -106717361; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + public int date {get;set;} + public string mime_type {get;set;} + public int size {get;set;} + public TLAbsPhotoSize thumb {get;set;} + public int dc_id {get;set;} + public TLVector attributes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); +date = br.ReadInt32(); +mime_type = StringUtil.Deserialize(br); +size = br.ReadInt32(); +thumb = (TLAbsPhotoSize)ObjectUtils.DeserializeObject(br); +dc_id = br.ReadInt32(); +attributes = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(date); +StringUtil.Serialize(mime_type,bw); +bw.Write(size); +ObjectUtils.SerializeObject(thumb,bw); +bw.Write(dc_id); +ObjectUtils.SerializeObject(attributes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs new file mode 100644 index 0000000..0d0159d --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(297109817)] + public class TLDocumentAttributeAnimated : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return 297109817; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs new file mode 100644 index 0000000..7c6be47 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1739392570)] + public class TLDocumentAttributeAudio : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return -1739392570; + } + } + + public int flags {get;set;} + public bool voice {get;set;} + public int duration {get;set;} + public string title {get;set;} + public string performer {get;set;} + public byte[] waveform {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = voice ? (flags | 1024) : (flags & ~1024); +flags = title != null ? (flags | 1) : (flags & ~1); +flags = performer != null ? (flags | 2) : (flags & ~2); +flags = waveform != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +voice = (flags & 1024) != 0; +duration = br.ReadInt32(); +if ((flags & 1) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 2) != 0) +performer = StringUtil.Deserialize(br); +else +performer = null; + +if ((flags & 4) != 0) +waveform = BytesUtil.Deserialize(br); +else +waveform = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(duration); +if ((flags & 1) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(performer,bw); +if ((flags & 4) != 0) +BytesUtil.Serialize(waveform,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs new file mode 100644 index 0000000..5b41c66 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(358154344)] + public class TLDocumentAttributeFilename : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return 358154344; + } + } + + public string file_name {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file_name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(file_name,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs new file mode 100644 index 0000000..bba7e08 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1815593308)] + public class TLDocumentAttributeImageSize : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return 1815593308; + } + } + + public int w {get;set;} + public int h {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + w = br.ReadInt32(); +h = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(w); +bw.Write(h); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs new file mode 100644 index 0000000..f352f61 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(978674434)] + public class TLDocumentAttributeSticker : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return 978674434; + } + } + + public string alt {get;set;} + public TLAbsInputStickerSet stickerset {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + alt = StringUtil.Deserialize(br); +stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(alt,bw); +ObjectUtils.SerializeObject(stickerset,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs new file mode 100644 index 0000000..899001e --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1494273227)] + public class TLDocumentAttributeVideo : TLAbsDocumentAttribute + { + public override int Constructor + { + get + { + return 1494273227; + } + } + + public int duration {get;set;} + public int w {get;set;} + public int h {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + duration = br.ReadInt32(); +w = br.ReadInt32(); +h = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(duration); +bw.Write(w); +bw.Write(h); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDocumentEmpty.cs b/TeleSharp.TL/TL/TLDocumentEmpty.cs new file mode 100644 index 0000000..9b50832 --- /dev/null +++ b/TeleSharp.TL/TL/TLDocumentEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(922273905)] + public class TLDocumentEmpty : TLAbsDocument + { + public override int Constructor + { + get + { + return 922273905; + } + } + + public long id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDraftMessage.cs b/TeleSharp.TL/TL/TLDraftMessage.cs new file mode 100644 index 0000000..80ed9aa --- /dev/null +++ b/TeleSharp.TL/TL/TLDraftMessage.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-40996577)] + public class TLDraftMessage : TLAbsDraftMessage + { + public override int Constructor + { + get + { + return -40996577; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public int? reply_to_msg_id {get;set;} + public string message {get;set;} + public TLVector entities {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 2) : (flags & ~2); +flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); +flags = entities != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 2) != 0; +if ((flags & 1) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +message = StringUtil.Deserialize(br); +if ((flags & 8) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +if ((flags & 1) != 0) +bw.Write(reply_to_msg_id.Value); +StringUtil.Serialize(message,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(entities,bw); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDraftMessageEmpty.cs b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs new file mode 100644 index 0000000..4c99e53 --- /dev/null +++ b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1169445179)] + public class TLDraftMessageEmpty : TLAbsDraftMessage + { + public override int Constructor + { + get + { + return -1169445179; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedChat.cs b/TeleSharp.TL/TL/TLEncryptedChat.cs new file mode 100644 index 0000000..47a9821 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedChat.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-94974410)] + public class TLEncryptedChat : TLAbsEncryptedChat + { + public override int Constructor + { + get + { + return -94974410; + } + } + + public int id {get;set;} + public long access_hash {get;set;} + public int date {get;set;} + public int admin_id {get;set;} + public int participant_id {get;set;} + public byte[] g_a_or_b {get;set;} + public long key_fingerprint {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +access_hash = br.ReadInt64(); +date = br.ReadInt32(); +admin_id = br.ReadInt32(); +participant_id = br.ReadInt32(); +g_a_or_b = BytesUtil.Deserialize(br); +key_fingerprint = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(date); +bw.Write(admin_id); +bw.Write(participant_id); +BytesUtil.Serialize(g_a_or_b,bw); +bw.Write(key_fingerprint); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs new file mode 100644 index 0000000..f77be4b --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(332848423)] + public class TLEncryptedChatDiscarded : TLAbsEncryptedChat + { + public override int Constructor + { + get + { + return 332848423; + } + } + + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs new file mode 100644 index 0000000..ade6345 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1417756512)] + public class TLEncryptedChatEmpty : TLAbsEncryptedChat + { + public override int Constructor + { + get + { + return -1417756512; + } + } + + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedChatRequested.cs b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs new file mode 100644 index 0000000..3d6a10e --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-931638658)] + public class TLEncryptedChatRequested : TLAbsEncryptedChat + { + public override int Constructor + { + get + { + return -931638658; + } + } + + public int id {get;set;} + public long access_hash {get;set;} + public int date {get;set;} + public int admin_id {get;set;} + public int participant_id {get;set;} + public byte[] g_a {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +access_hash = br.ReadInt64(); +date = br.ReadInt32(); +admin_id = br.ReadInt32(); +participant_id = br.ReadInt32(); +g_a = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(date); +bw.Write(admin_id); +bw.Write(participant_id); +BytesUtil.Serialize(g_a,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs new file mode 100644 index 0000000..7a1e308 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1006044124)] + public class TLEncryptedChatWaiting : TLAbsEncryptedChat + { + public override int Constructor + { + get + { + return 1006044124; + } + } + + public int id {get;set;} + public long access_hash {get;set;} + public int date {get;set;} + public int admin_id {get;set;} + public int participant_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +access_hash = br.ReadInt64(); +date = br.ReadInt32(); +admin_id = br.ReadInt32(); +participant_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(date); +bw.Write(admin_id); +bw.Write(participant_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedFile.cs b/TeleSharp.TL/TL/TLEncryptedFile.cs new file mode 100644 index 0000000..fc6fd67 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedFile.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1248893260)] + public class TLEncryptedFile : TLAbsEncryptedFile + { + public override int Constructor + { + get + { + return 1248893260; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + public int size {get;set;} + public int dc_id {get;set;} + public int key_fingerprint {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); +size = br.ReadInt32(); +dc_id = br.ReadInt32(); +key_fingerprint = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(size); +bw.Write(dc_id); +bw.Write(key_fingerprint); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs new file mode 100644 index 0000000..91b1fed --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1038136962)] + public class TLEncryptedFileEmpty : TLAbsEncryptedFile + { + public override int Constructor + { + get + { + return -1038136962; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedMessage.cs b/TeleSharp.TL/TL/TLEncryptedMessage.cs new file mode 100644 index 0000000..6b834a4 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedMessage.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-317144808)] + public class TLEncryptedMessage : TLAbsEncryptedMessage + { + public override int Constructor + { + get + { + return -317144808; + } + } + + public long random_id {get;set;} + public int chat_id {get;set;} + public int date {get;set;} + public byte[] bytes {get;set;} + public TLAbsEncryptedFile file {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + random_id = br.ReadInt64(); +chat_id = br.ReadInt32(); +date = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); +file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(random_id); +bw.Write(chat_id); +bw.Write(date); +BytesUtil.Serialize(bytes,bw); +ObjectUtils.SerializeObject(file,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLEncryptedMessageService.cs b/TeleSharp.TL/TL/TLEncryptedMessageService.cs new file mode 100644 index 0000000..643fd12 --- /dev/null +++ b/TeleSharp.TL/TL/TLEncryptedMessageService.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(594758406)] + public class TLEncryptedMessageService : TLAbsEncryptedMessage + { + public override int Constructor + { + get + { + return 594758406; + } + } + + public long random_id {get;set;} + public int chat_id {get;set;} + public int date {get;set;} + public byte[] bytes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + random_id = br.ReadInt64(); +chat_id = br.ReadInt32(); +date = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(random_id); +bw.Write(chat_id); +bw.Write(date); +BytesUtil.Serialize(bytes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLError.cs b/TeleSharp.TL/TL/TLError.cs new file mode 100644 index 0000000..73dab0a --- /dev/null +++ b/TeleSharp.TL/TL/TLError.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-994444869)] + public class TLError : TLObject + { + public override int Constructor + { + get + { + return -994444869; + } + } + + public int code {get;set;} + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + code = br.ReadInt32(); +text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(code); +StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLExportedMessageLink.cs b/TeleSharp.TL/TL/TLExportedMessageLink.cs new file mode 100644 index 0000000..47df36c --- /dev/null +++ b/TeleSharp.TL/TL/TLExportedMessageLink.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(524838915)] + public class TLExportedMessageLink : TLObject + { + public override int Constructor + { + get + { + return 524838915; + } + } + + public string link {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + link = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(link,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLFileLocation.cs b/TeleSharp.TL/TL/TLFileLocation.cs new file mode 100644 index 0000000..41b7c83 --- /dev/null +++ b/TeleSharp.TL/TL/TLFileLocation.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1406570614)] + public class TLFileLocation : TLAbsFileLocation + { + public override int Constructor + { + get + { + return 1406570614; + } + } + + public int dc_id {get;set;} + public long volume_id {get;set;} + public int local_id {get;set;} + public long secret {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dc_id = br.ReadInt32(); +volume_id = br.ReadInt64(); +local_id = br.ReadInt32(); +secret = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(dc_id); +bw.Write(volume_id); +bw.Write(local_id); +bw.Write(secret); + + } + } +} diff --git a/TeleSharp.TL/TL/TLFileLocationUnavailable.cs b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs new file mode 100644 index 0000000..0c848df --- /dev/null +++ b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2086234950)] + public class TLFileLocationUnavailable : TLAbsFileLocation + { + public override int Constructor + { + get + { + return 2086234950; + } + } + + public long volume_id {get;set;} + public int local_id {get;set;} + public long secret {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + volume_id = br.ReadInt64(); +local_id = br.ReadInt32(); +secret = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(volume_id); +bw.Write(local_id); +bw.Write(secret); + + } + } +} diff --git a/TeleSharp.TL/TL/TLFoundGif.cs b/TeleSharp.TL/TL/TLFoundGif.cs new file mode 100644 index 0000000..d8b4c4d --- /dev/null +++ b/TeleSharp.TL/TL/TLFoundGif.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(372165663)] + public class TLFoundGif : TLAbsFoundGif + { + public override int Constructor + { + get + { + return 372165663; + } + } + + public string url {get;set;} + public string thumb_url {get;set;} + public string content_url {get;set;} + public string content_type {get;set;} + public int w {get;set;} + public int h {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); +thumb_url = StringUtil.Deserialize(br); +content_url = StringUtil.Deserialize(br); +content_type = StringUtil.Deserialize(br); +w = br.ReadInt32(); +h = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url,bw); +StringUtil.Serialize(thumb_url,bw); +StringUtil.Serialize(content_url,bw); +StringUtil.Serialize(content_type,bw); +bw.Write(w); +bw.Write(h); + + } + } +} diff --git a/TeleSharp.TL/TL/TLFoundGifCached.cs b/TeleSharp.TL/TL/TLFoundGifCached.cs new file mode 100644 index 0000000..af1a4f1 --- /dev/null +++ b/TeleSharp.TL/TL/TLFoundGifCached.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1670052855)] + public class TLFoundGifCached : TLAbsFoundGif + { + public override int Constructor + { + get + { + return -1670052855; + } + } + + public string url {get;set;} + public TLAbsPhoto photo {get;set;} + public TLAbsDocument document {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); +photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url,bw); +ObjectUtils.SerializeObject(photo,bw); +ObjectUtils.SerializeObject(document,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLGeoPoint.cs b/TeleSharp.TL/TL/TLGeoPoint.cs new file mode 100644 index 0000000..a7a7478 --- /dev/null +++ b/TeleSharp.TL/TL/TLGeoPoint.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(541710092)] + public class TLGeoPoint : TLAbsGeoPoint + { + public override int Constructor + { + get + { + return 541710092; + } + } + + public double @long {get;set;} + public double lat {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + @long = br.ReadDouble(); +lat = br.ReadDouble(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(@long); +bw.Write(lat); + + } + } +} diff --git a/TeleSharp.TL/TL/TLGeoPointEmpty.cs b/TeleSharp.TL/TL/TLGeoPointEmpty.cs new file mode 100644 index 0000000..e3e7d7e --- /dev/null +++ b/TeleSharp.TL/TL/TLGeoPointEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(286776671)] + public class TLGeoPointEmpty : TLAbsGeoPoint + { + public override int Constructor + { + get + { + return 286776671; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLImportedContact.cs b/TeleSharp.TL/TL/TLImportedContact.cs new file mode 100644 index 0000000..0f4189d --- /dev/null +++ b/TeleSharp.TL/TL/TLImportedContact.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-805141448)] + public class TLImportedContact : TLObject + { + public override int Constructor + { + get + { + return -805141448; + } + } + + public int user_id {get;set;} + public long client_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +client_id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(client_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs new file mode 100644 index 0000000..168d719 --- /dev/null +++ b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1008755359)] + public class TLInlineBotSwitchPM : TLObject + { + public override int Constructor + { + get + { + return 1008755359; + } + } + + public string text {get;set;} + public string start_param {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); +start_param = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); +StringUtil.Serialize(start_param,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputAppEvent.cs b/TeleSharp.TL/TL/TLInputAppEvent.cs new file mode 100644 index 0000000..0ce016a --- /dev/null +++ b/TeleSharp.TL/TL/TLInputAppEvent.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1996904104)] + public class TLInputAppEvent : TLObject + { + public override int Constructor + { + get + { + return 1996904104; + } + } + + public double time {get;set;} + public string type {get;set;} + public long peer {get;set;} + public string data {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + time = br.ReadDouble(); +type = StringUtil.Deserialize(br); +peer = br.ReadInt64(); +data = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(time); +StringUtil.Serialize(type,bw); +bw.Write(peer); +StringUtil.Serialize(data,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs new file mode 100644 index 0000000..2942e1d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1995686519)] + public class TLInputBotInlineMessageID : TLObject + { + public override int Constructor + { + get + { + return -1995686519; + } + } + + public int dc_id {get;set;} + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dc_id = br.ReadInt32(); +id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(dc_id); +bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs new file mode 100644 index 0000000..6c872db --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(691006739)] + public class TLInputBotInlineMessageMediaAuto : TLAbsInputBotInlineMessage + { + public override int Constructor + { + get + { + return 691006739; + } + } + + public int flags {get;set;} + public string caption {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +caption = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(caption,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs new file mode 100644 index 0000000..b7b8e8a --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(766443943)] + public class TLInputBotInlineMessageMediaContact : TLAbsInputBotInlineMessage + { + public override int Constructor + { + get + { + return 766443943; + } + } + + public int flags {get;set;} + public string phone_number {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +phone_number = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs new file mode 100644 index 0000000..fb5cf6d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-190472735)] + public class TLInputBotInlineMessageMediaGeo : TLAbsInputBotInlineMessage + { + public override int Constructor + { + get + { + return -190472735; + } + } + + public int flags {get;set;} + public TLAbsInputGeoPoint geo_point {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(geo_point,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs new file mode 100644 index 0000000..bccde0f --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1431327288)] + public class TLInputBotInlineMessageMediaVenue : TLAbsInputBotInlineMessage + { + public override int Constructor + { + get + { + return -1431327288; + } + } + + public int flags {get;set;} + public TLAbsInputGeoPoint geo_point {get;set;} + public string title {get;set;} + public string address {get;set;} + public string provider {get;set;} + public string venue_id {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); +title = StringUtil.Deserialize(br); +address = StringUtil.Deserialize(br); +provider = StringUtil.Deserialize(br); +venue_id = StringUtil.Deserialize(br); +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +ObjectUtils.SerializeObject(geo_point,bw); +StringUtil.Serialize(title,bw); +StringUtil.Serialize(address,bw); +StringUtil.Serialize(provider,bw); +StringUtil.Serialize(venue_id,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs new file mode 100644 index 0000000..b2a3224 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1036876423)] + public class TLInputBotInlineMessageText : TLAbsInputBotInlineMessage + { + public override int Constructor + { + get + { + return 1036876423; + } + } + + public int flags {get;set;} + public bool no_webpage {get;set;} + public string message {get;set;} + public TLVector entities {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = no_webpage ? (flags | 1) : (flags & ~1); +flags = entities != null ? (flags | 2) : (flags & ~2); +flags = reply_markup != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +no_webpage = (flags & 1) != 0; +message = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + +if ((flags & 4) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +StringUtil.Serialize(message,bw); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(entities,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineResult.cs b/TeleSharp.TL/TL/TLInputBotInlineResult.cs new file mode 100644 index 0000000..cc2d640 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineResult.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(750510426)] + public class TLInputBotInlineResult : TLAbsInputBotInlineResult + { + public override int Constructor + { + get + { + return 750510426; + } + } + + public int flags {get;set;} + public string id {get;set;} + public string type {get;set;} + public string title {get;set;} + public string description {get;set;} + public string url {get;set;} + public string thumb_url {get;set;} + public string content_url {get;set;} + public string content_type {get;set;} + public int? w {get;set;} + public int? h {get;set;} + public int? duration {get;set;} + public TLAbsInputBotInlineMessage send_message {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = title != null ? (flags | 2) : (flags & ~2); +flags = description != null ? (flags | 4) : (flags & ~4); +flags = url != null ? (flags | 8) : (flags & ~8); +flags = thumb_url != null ? (flags | 16) : (flags & ~16); +flags = content_url != null ? (flags | 32) : (flags & ~32); +flags = content_type != null ? (flags | 32) : (flags & ~32); +flags = w != null ? (flags | 64) : (flags & ~64); +flags = h != null ? (flags | 64) : (flags & ~64); +flags = duration != null ? (flags | 128) : (flags & ~128); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +id = StringUtil.Deserialize(br); +type = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 4) != 0) +description = StringUtil.Deserialize(br); +else +description = null; + +if ((flags & 8) != 0) +url = StringUtil.Deserialize(br); +else +url = null; + +if ((flags & 16) != 0) +thumb_url = StringUtil.Deserialize(br); +else +thumb_url = null; + +if ((flags & 32) != 0) +content_url = StringUtil.Deserialize(br); +else +content_url = null; + +if ((flags & 32) != 0) +content_type = StringUtil.Deserialize(br); +else +content_type = null; + +if ((flags & 64) != 0) +w = br.ReadInt32(); +else +w = null; + +if ((flags & 64) != 0) +h = br.ReadInt32(); +else +h = null; + +if ((flags & 128) != 0) +duration = br.ReadInt32(); +else +duration = null; + +send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(id,bw); +StringUtil.Serialize(type,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(description,bw); +if ((flags & 8) != 0) +StringUtil.Serialize(url,bw); +if ((flags & 16) != 0) +StringUtil.Serialize(thumb_url,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(content_url,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(content_type,bw); +if ((flags & 64) != 0) +bw.Write(w.Value); +if ((flags & 64) != 0) +bw.Write(h.Value); +if ((flags & 128) != 0) +bw.Write(duration.Value); +ObjectUtils.SerializeObject(send_message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs new file mode 100644 index 0000000..8a66ef1 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-459324)] + public class TLInputBotInlineResultDocument : TLAbsInputBotInlineResult + { + public override int Constructor + { + get + { + return -459324; + } + } + + public int flags {get;set;} + public string id {get;set;} + public string type {get;set;} + public string title {get;set;} + public string description {get;set;} + public TLAbsInputDocument document {get;set;} + public TLAbsInputBotInlineMessage send_message {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = title != null ? (flags | 2) : (flags & ~2); +flags = description != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +id = StringUtil.Deserialize(br); +type = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 4) != 0) +description = StringUtil.Deserialize(br); +else +description = null; + +document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); +send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +StringUtil.Serialize(id,bw); +StringUtil.Serialize(type,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(description,bw); +ObjectUtils.SerializeObject(document,bw); +ObjectUtils.SerializeObject(send_message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs new file mode 100644 index 0000000..9eb347a --- /dev/null +++ b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1462213465)] + public class TLInputBotInlineResultPhoto : TLAbsInputBotInlineResult + { + public override int Constructor + { + get + { + return -1462213465; + } + } + + public string id {get;set;} + public string type {get;set;} + public TLAbsInputPhoto photo {get;set;} + public TLAbsInputBotInlineMessage send_message {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = StringUtil.Deserialize(br); +type = StringUtil.Deserialize(br); +photo = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); +send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(id,bw); +StringUtil.Serialize(type,bw); +ObjectUtils.SerializeObject(photo,bw); +ObjectUtils.SerializeObject(send_message,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputChannel.cs b/TeleSharp.TL/TL/TLInputChannel.cs new file mode 100644 index 0000000..85dddd5 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputChannel.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1343524562)] + public class TLInputChannel : TLAbsInputChannel + { + public override int Constructor + { + get + { + return -1343524562; + } + } + + public int channel_id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputChannelEmpty.cs b/TeleSharp.TL/TL/TLInputChannelEmpty.cs new file mode 100644 index 0000000..ca78ac3 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputChannelEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-292807034)] + public class TLInputChannelEmpty : TLAbsInputChannel + { + public override int Constructor + { + get + { + return -292807034; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputChatPhoto.cs b/TeleSharp.TL/TL/TLInputChatPhoto.cs new file mode 100644 index 0000000..39cefa1 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputChatPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1293828344)] + public class TLInputChatPhoto : TLAbsInputChatPhoto + { + public override int Constructor + { + get + { + return -1293828344; + } + } + + public TLAbsInputPhoto id {get;set;} + public TLAbsInputPhotoCrop crop {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); +crop = (TLAbsInputPhotoCrop)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); +ObjectUtils.SerializeObject(crop,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs new file mode 100644 index 0000000..06a5a4c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(480546647)] + public class TLInputChatPhotoEmpty : TLAbsInputChatPhoto + { + public override int Constructor + { + get + { + return 480546647; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs new file mode 100644 index 0000000..1c51302 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1809496270)] + public class TLInputChatUploadedPhoto : TLAbsInputChatPhoto + { + public override int Constructor + { + get + { + return -1809496270; + } + } + + public TLAbsInputFile file {get;set;} + public TLAbsInputPhotoCrop crop {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +crop = (TLAbsInputPhotoCrop)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(file,bw); +ObjectUtils.SerializeObject(crop,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputDocument.cs b/TeleSharp.TL/TL/TLInputDocument.cs new file mode 100644 index 0000000..9eddc50 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputDocument.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(410618194)] + public class TLInputDocument : TLAbsInputDocument + { + public override int Constructor + { + get + { + return 410618194; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputDocumentEmpty.cs b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs new file mode 100644 index 0000000..633f184 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1928391342)] + public class TLInputDocumentEmpty : TLAbsInputDocument + { + public override int Constructor + { + get + { + return 1928391342; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs new file mode 100644 index 0000000..c3c3598 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1313188841)] + public class TLInputDocumentFileLocation : TLAbsInputFileLocation + { + public override int Constructor + { + get + { + return 1313188841; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedChat.cs b/TeleSharp.TL/TL/TLInputEncryptedChat.cs new file mode 100644 index 0000000..621c114 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedChat.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-247351839)] + public class TLInputEncryptedChat : TLObject + { + public override int Constructor + { + get + { + return -247351839; + } + } + + public int chat_id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedFile.cs b/TeleSharp.TL/TL/TLInputEncryptedFile.cs new file mode 100644 index 0000000..bb97377 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedFile.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1511503333)] + public class TLInputEncryptedFile : TLAbsInputEncryptedFile + { + public override int Constructor + { + get + { + return 1511503333; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs new file mode 100644 index 0000000..d4235b6 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(767652808)] + public class TLInputEncryptedFileBigUploaded : TLAbsInputEncryptedFile + { + public override int Constructor + { + get + { + return 767652808; + } + } + + public long id {get;set;} + public int parts {get;set;} + public int key_fingerprint {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +parts = br.ReadInt32(); +key_fingerprint = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(parts); +bw.Write(key_fingerprint); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs new file mode 100644 index 0000000..37c1002 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(406307684)] + public class TLInputEncryptedFileEmpty : TLAbsInputEncryptedFile + { + public override int Constructor + { + get + { + return 406307684; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs new file mode 100644 index 0000000..533b621 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-182231723)] + public class TLInputEncryptedFileLocation : TLAbsInputFileLocation + { + public override int Constructor + { + get + { + return -182231723; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs new file mode 100644 index 0000000..6b34147 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1690108678)] + public class TLInputEncryptedFileUploaded : TLAbsInputEncryptedFile + { + public override int Constructor + { + get + { + return 1690108678; + } + } + + public long id {get;set;} + public int parts {get;set;} + public string md5_checksum {get;set;} + public int key_fingerprint {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +parts = br.ReadInt32(); +md5_checksum = StringUtil.Deserialize(br); +key_fingerprint = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(parts); +StringUtil.Serialize(md5_checksum,bw); +bw.Write(key_fingerprint); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputFile.cs b/TeleSharp.TL/TL/TLInputFile.cs new file mode 100644 index 0000000..0238639 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputFile.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-181407105)] + public class TLInputFile : TLAbsInputFile + { + public override int Constructor + { + get + { + return -181407105; + } + } + + public long id {get;set;} + public int parts {get;set;} + public string name {get;set;} + public string md5_checksum {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +parts = br.ReadInt32(); +name = StringUtil.Deserialize(br); +md5_checksum = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(parts); +StringUtil.Serialize(name,bw); +StringUtil.Serialize(md5_checksum,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputFileBig.cs b/TeleSharp.TL/TL/TLInputFileBig.cs new file mode 100644 index 0000000..837d835 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputFileBig.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-95482955)] + public class TLInputFileBig : TLAbsInputFile + { + public override int Constructor + { + get + { + return -95482955; + } + } + + public long id {get;set;} + public int parts {get;set;} + public string name {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +parts = br.ReadInt32(); +name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(parts); +StringUtil.Serialize(name,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputFileLocation.cs b/TeleSharp.TL/TL/TLInputFileLocation.cs new file mode 100644 index 0000000..da5d20f --- /dev/null +++ b/TeleSharp.TL/TL/TLInputFileLocation.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(342061462)] + public class TLInputFileLocation : TLAbsInputFileLocation + { + public override int Constructor + { + get + { + return 342061462; + } + } + + public long volume_id {get;set;} + public int local_id {get;set;} + public long secret {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + volume_id = br.ReadInt64(); +local_id = br.ReadInt32(); +secret = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(volume_id); +bw.Write(local_id); +bw.Write(secret); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputGeoPoint.cs b/TeleSharp.TL/TL/TLInputGeoPoint.cs new file mode 100644 index 0000000..e67feb7 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputGeoPoint.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-206066487)] + public class TLInputGeoPoint : TLAbsInputGeoPoint + { + public override int Constructor + { + get + { + return -206066487; + } + } + + public double lat {get;set;} + public double @long {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + lat = br.ReadDouble(); +@long = br.ReadDouble(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(lat); +bw.Write(@long); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs new file mode 100644 index 0000000..43bb442 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-457104426)] + public class TLInputGeoPointEmpty : TLAbsInputGeoPoint + { + public override int Constructor + { + get + { + return -457104426; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaContact.cs b/TeleSharp.TL/TL/TLInputMediaContact.cs new file mode 100644 index 0000000..c363dfc --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaContact.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1494984313)] + public class TLInputMediaContact : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -1494984313; + } + } + + public string phone_number {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaDocument.cs b/TeleSharp.TL/TL/TLInputMediaDocument.cs new file mode 100644 index 0000000..74e59fe --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaDocument.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(444068508)] + public class TLInputMediaDocument : TLAbsInputMedia + { + public override int Constructor + { + get + { + return 444068508; + } + } + + public TLAbsInputDocument id {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaEmpty.cs b/TeleSharp.TL/TL/TLInputMediaEmpty.cs new file mode 100644 index 0000000..eb084d7 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1771768449)] + public class TLInputMediaEmpty : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -1771768449; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs new file mode 100644 index 0000000..ef89518 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-104578748)] + public class TLInputMediaGeoPoint : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -104578748; + } + } + + public TLAbsInputGeoPoint geo_point {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo_point,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaGifExternal.cs b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs new file mode 100644 index 0000000..f87b5a7 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1212395773)] + public class TLInputMediaGifExternal : TLAbsInputMedia + { + public override int Constructor + { + get + { + return 1212395773; + } + } + + public string url {get;set;} + public string q {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); +q = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url,bw); +StringUtil.Serialize(q,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaPhoto.cs b/TeleSharp.TL/TL/TLInputMediaPhoto.cs new file mode 100644 index 0000000..fca67bf --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-373312269)] + public class TLInputMediaPhoto : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -373312269; + } + } + + public TLAbsInputPhoto id {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs new file mode 100644 index 0000000..9a66ef1 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(495530093)] + public class TLInputMediaUploadedDocument : TLAbsInputMedia + { + public override int Constructor + { + get + { + return 495530093; + } + } + + public TLAbsInputFile file {get;set;} + public string mime_type {get;set;} + public TLVector attributes {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +mime_type = StringUtil.Deserialize(br); +attributes = (TLVector)ObjectUtils.DeserializeVector(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(file,bw); +StringUtil.Serialize(mime_type,bw); +ObjectUtils.SerializeObject(attributes,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs new file mode 100644 index 0000000..474ed6a --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-139464256)] + public class TLInputMediaUploadedPhoto : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -139464256; + } + } + + public TLAbsInputFile file {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(file,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs new file mode 100644 index 0000000..bfe9673 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1386138479)] + public class TLInputMediaUploadedThumbDocument : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -1386138479; + } + } + + public TLAbsInputFile file {get;set;} + public TLAbsInputFile thumb {get;set;} + public string mime_type {get;set;} + public TLVector attributes {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +thumb = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); +mime_type = StringUtil.Deserialize(br); +attributes = (TLVector)ObjectUtils.DeserializeVector(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(file,bw); +ObjectUtils.SerializeObject(thumb,bw); +StringUtil.Serialize(mime_type,bw); +ObjectUtils.SerializeObject(attributes,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaVenue.cs b/TeleSharp.TL/TL/TLInputMediaVenue.cs new file mode 100644 index 0000000..dc263e7 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaVenue.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(673687578)] + public class TLInputMediaVenue : TLAbsInputMedia + { + public override int Constructor + { + get + { + return 673687578; + } + } + + public TLAbsInputGeoPoint geo_point {get;set;} + public string title {get;set;} + public string address {get;set;} + public string provider {get;set;} + public string venue_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); +title = StringUtil.Deserialize(br); +address = StringUtil.Deserialize(br); +provider = StringUtil.Deserialize(br); +venue_id = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo_point,bw); +StringUtil.Serialize(title,bw); +StringUtil.Serialize(address,bw); +StringUtil.Serialize(provider,bw); +StringUtil.Serialize(venue_id,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs new file mode 100644 index 0000000..227b439 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(546203849)] + public class TLInputMessageEntityMentionName : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 546203849; + } + } + + public int offset {get;set;} + public int length {get;set;} + public TLAbsInputUser user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); +user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); +ObjectUtils.SerializeObject(user_id,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs new file mode 100644 index 0000000..f455a3c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(975236280)] + public class TLInputMessagesFilterChatPhotos : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 975236280; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs new file mode 100644 index 0000000..d2b52a6 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1629621880)] + public class TLInputMessagesFilterDocument : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -1629621880; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs new file mode 100644 index 0000000..947f778 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1474492012)] + public class TLInputMessagesFilterEmpty : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 1474492012; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs new file mode 100644 index 0000000..0a59d17 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-3644025)] + public class TLInputMessagesFilterGif : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -3644025; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs new file mode 100644 index 0000000..5baa36d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(928101534)] + public class TLInputMessagesFilterMusic : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 928101534; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs new file mode 100644 index 0000000..a791d0d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1458172132)] + public class TLInputMessagesFilterPhotoVideo : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 1458172132; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs new file mode 100644 index 0000000..1f98292 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-648121413)] + public class TLInputMessagesFilterPhotoVideoDocuments : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -648121413; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs new file mode 100644 index 0000000..bffea4e --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1777752804)] + public class TLInputMessagesFilterPhotos : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -1777752804; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs new file mode 100644 index 0000000..035ca88 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2129714567)] + public class TLInputMessagesFilterUrl : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 2129714567; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs new file mode 100644 index 0000000..9463034 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1614803355)] + public class TLInputMessagesFilterVideo : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -1614803355; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs new file mode 100644 index 0000000..a8a5e84 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1358283666)] + public class TLInputMessagesFilterVoice : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 1358283666; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputNotifyAll.cs b/TeleSharp.TL/TL/TLInputNotifyAll.cs new file mode 100644 index 0000000..66d4344 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputNotifyAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1540769658)] + public class TLInputNotifyAll : TLAbsInputNotifyPeer + { + public override int Constructor + { + get + { + return -1540769658; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputNotifyChats.cs b/TeleSharp.TL/TL/TLInputNotifyChats.cs new file mode 100644 index 0000000..e478fdd --- /dev/null +++ b/TeleSharp.TL/TL/TLInputNotifyChats.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1251338318)] + public class TLInputNotifyChats : TLAbsInputNotifyPeer + { + public override int Constructor + { + get + { + return 1251338318; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputNotifyPeer.cs b/TeleSharp.TL/TL/TLInputNotifyPeer.cs new file mode 100644 index 0000000..14afd63 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputNotifyPeer.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1195615476)] + public class TLInputNotifyPeer : TLAbsInputNotifyPeer + { + public override int Constructor + { + get + { + return -1195615476; + } + } + + public TLAbsInputPeer peer {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputNotifyUsers.cs b/TeleSharp.TL/TL/TLInputNotifyUsers.cs new file mode 100644 index 0000000..9a7aaa5 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputNotifyUsers.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(423314455)] + public class TLInputNotifyUsers : TLAbsInputNotifyPeer + { + public override int Constructor + { + get + { + return 423314455; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerChannel.cs b/TeleSharp.TL/TL/TLInputPeerChannel.cs new file mode 100644 index 0000000..373252c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerChannel.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(548253432)] + public class TLInputPeerChannel : TLAbsInputPeer + { + public override int Constructor + { + get + { + return 548253432; + } + } + + public int channel_id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerChat.cs b/TeleSharp.TL/TL/TLInputPeerChat.cs new file mode 100644 index 0000000..698940e --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerChat.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(396093539)] + public class TLInputPeerChat : TLAbsInputPeer + { + public override int Constructor + { + get + { + return 396093539; + } + } + + public int chat_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerEmpty.cs b/TeleSharp.TL/TL/TLInputPeerEmpty.cs new file mode 100644 index 0000000..6a2cd99 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2134579434)] + public class TLInputPeerEmpty : TLAbsInputPeer + { + public override int Constructor + { + get + { + return 2134579434; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs new file mode 100644 index 0000000..112d750 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-395694988)] + public class TLInputPeerNotifyEventsAll : TLAbsInputPeerNotifyEvents + { + public override int Constructor + { + get + { + return -395694988; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs new file mode 100644 index 0000000..9d1d885 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-265263912)] + public class TLInputPeerNotifyEventsEmpty : TLAbsInputPeerNotifyEvents + { + public override int Constructor + { + get + { + return -265263912; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs new file mode 100644 index 0000000..827e12c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(949182130)] + public class TLInputPeerNotifySettings : TLObject + { + public override int Constructor + { + get + { + return 949182130; + } + } + + public int flags {get;set;} + public bool show_previews {get;set;} + public bool silent {get;set;} + public int mute_until {get;set;} + public string sound {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = show_previews ? (flags | 1) : (flags & ~1); +flags = silent ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +show_previews = (flags & 1) != 0; +silent = (flags & 2) != 0; +mute_until = br.ReadInt32(); +sound = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +bw.Write(mute_until); +StringUtil.Serialize(sound,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerSelf.cs b/TeleSharp.TL/TL/TLInputPeerSelf.cs new file mode 100644 index 0000000..9eb864e --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerSelf.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2107670217)] + public class TLInputPeerSelf : TLAbsInputPeer + { + public override int Constructor + { + get + { + return 2107670217; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerUser.cs b/TeleSharp.TL/TL/TLInputPeerUser.cs new file mode 100644 index 0000000..361eb61 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPeerUser.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2072935910)] + public class TLInputPeerUser : TLAbsInputPeer + { + public override int Constructor + { + get + { + return 2072935910; + } + } + + public int user_id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhoneContact.cs b/TeleSharp.TL/TL/TLInputPhoneContact.cs new file mode 100644 index 0000000..69f9983 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhoneContact.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-208488460)] + public class TLInputPhoneContact : TLObject + { + public override int Constructor + { + get + { + return -208488460; + } + } + + public long client_id {get;set;} + public string phone {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + client_id = br.ReadInt64(); +phone = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(client_id); +StringUtil.Serialize(phone,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhoto.cs b/TeleSharp.TL/TL/TLInputPhoto.cs new file mode 100644 index 0000000..542fdaa --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-74070332)] + public class TLInputPhoto : TLAbsInputPhoto + { + public override int Constructor + { + get + { + return -74070332; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhotoCrop.cs b/TeleSharp.TL/TL/TLInputPhotoCrop.cs new file mode 100644 index 0000000..a2d6e58 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhotoCrop.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-644787419)] + public class TLInputPhotoCrop : TLAbsInputPhotoCrop + { + public override int Constructor + { + get + { + return -644787419; + } + } + + public double crop_left {get;set;} + public double crop_top {get;set;} + public double crop_width {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + crop_left = br.ReadDouble(); +crop_top = br.ReadDouble(); +crop_width = br.ReadDouble(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(crop_left); +bw.Write(crop_top); +bw.Write(crop_width); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhotoCropAuto.cs b/TeleSharp.TL/TL/TLInputPhotoCropAuto.cs new file mode 100644 index 0000000..d93b064 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhotoCropAuto.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1377390588)] + public class TLInputPhotoCropAuto : TLAbsInputPhotoCrop + { + public override int Constructor + { + get + { + return -1377390588; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs new file mode 100644 index 0000000..a940b96 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(483901197)] + public class TLInputPhotoEmpty : TLAbsInputPhoto + { + public override int Constructor + { + get + { + return 483901197; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs new file mode 100644 index 0000000..65c0c9d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1107622874)] + public class TLInputPrivacyKeyChatInvite : TLAbsInputPrivacyKey + { + public override int Constructor + { + get + { + return -1107622874; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs new file mode 100644 index 0000000..467d620 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1335282456)] + public class TLInputPrivacyKeyStatusTimestamp : TLAbsInputPrivacyKey + { + public override int Constructor + { + get + { + return 1335282456; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs new file mode 100644 index 0000000..5a58756 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(407582158)] + public class TLInputPrivacyValueAllowAll : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return 407582158; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs new file mode 100644 index 0000000..66f1148 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(218751099)] + public class TLInputPrivacyValueAllowContacts : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return 218751099; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs new file mode 100644 index 0000000..494d498 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(320652927)] + public class TLInputPrivacyValueAllowUsers : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return 320652927; + } + } + + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs new file mode 100644 index 0000000..7502064 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-697604407)] + public class TLInputPrivacyValueDisallowAll : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return -697604407; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs new file mode 100644 index 0000000..08c9977 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(195371015)] + public class TLInputPrivacyValueDisallowContacts : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return 195371015; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs new file mode 100644 index 0000000..97b5af3 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1877932953)] + public class TLInputPrivacyValueDisallowUsers : TLAbsInputPrivacyRule + { + public override int Constructor + { + get + { + return -1877932953; + } + } + + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputReportReasonOther.cs b/TeleSharp.TL/TL/TLInputReportReasonOther.cs new file mode 100644 index 0000000..484af5c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputReportReasonOther.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-512463606)] + public class TLInputReportReasonOther : TLAbsReportReason + { + public override int Constructor + { + get + { + return -512463606; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputReportReasonPornography.cs b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs new file mode 100644 index 0000000..18661a9 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(777640226)] + public class TLInputReportReasonPornography : TLAbsReportReason + { + public override int Constructor + { + get + { + return 777640226; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputReportReasonSpam.cs b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs new file mode 100644 index 0000000..12634e3 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1490799288)] + public class TLInputReportReasonSpam : TLAbsReportReason + { + public override int Constructor + { + get + { + return 1490799288; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputReportReasonViolence.cs b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs new file mode 100644 index 0000000..8d69f8d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(505595789)] + public class TLInputReportReasonViolence : TLAbsReportReason + { + public override int Constructor + { + get + { + return 505595789; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs new file mode 100644 index 0000000..eda6e56 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-4838507)] + public class TLInputStickerSetEmpty : TLAbsInputStickerSet + { + public override int Constructor + { + get + { + return -4838507; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputStickerSetID.cs b/TeleSharp.TL/TL/TLInputStickerSetID.cs new file mode 100644 index 0000000..dd87fd9 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputStickerSetID.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1645763991)] + public class TLInputStickerSetID : TLAbsInputStickerSet + { + public override int Constructor + { + get + { + return -1645763991; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputStickerSetShortName.cs b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs new file mode 100644 index 0000000..7e6a45f --- /dev/null +++ b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2044933984)] + public class TLInputStickerSetShortName : TLAbsInputStickerSet + { + public override int Constructor + { + get + { + return -2044933984; + } + } + + public string short_name {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + short_name = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(short_name,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputUser.cs b/TeleSharp.TL/TL/TLInputUser.cs new file mode 100644 index 0000000..23fd86e --- /dev/null +++ b/TeleSharp.TL/TL/TLInputUser.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-668391402)] + public class TLInputUser : TLAbsInputUser + { + public override int Constructor + { + get + { + return -668391402; + } + } + + public int user_id {get;set;} + public long access_hash {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputUserEmpty.cs b/TeleSharp.TL/TL/TLInputUserEmpty.cs new file mode 100644 index 0000000..6c8aaf0 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputUserEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1182234929)] + public class TLInputUserEmpty : TLAbsInputUser + { + public override int Constructor + { + get + { + return -1182234929; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputUserSelf.cs b/TeleSharp.TL/TL/TLInputUserSelf.cs new file mode 100644 index 0000000..9543daa --- /dev/null +++ b/TeleSharp.TL/TL/TLInputUserSelf.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-138301121)] + public class TLInputUserSelf : TLAbsInputUser + { + public override int Constructor + { + get + { + return -138301121; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButton.cs b/TeleSharp.TL/TL/TLKeyboardButton.cs new file mode 100644 index 0000000..ede8ba7 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButton.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1560655744)] + public class TLKeyboardButton : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return -1560655744; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs new file mode 100644 index 0000000..b372950 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1748655686)] + public class TLKeyboardButtonCallback : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return 1748655686; + } + } + + public string text {get;set;} + public byte[] data {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); +BytesUtil.Serialize(data,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs new file mode 100644 index 0000000..2fd94b2 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-59151553)] + public class TLKeyboardButtonRequestGeoLocation : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return -59151553; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs new file mode 100644 index 0000000..c674066 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1318425559)] + public class TLKeyboardButtonRequestPhone : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return -1318425559; + } + } + + public string text {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRow.cs b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs new file mode 100644 index 0000000..7bab1c4 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2002815875)] + public class TLKeyboardButtonRow : TLObject + { + public override int Constructor + { + get + { + return 2002815875; + } + } + + public TLVector buttons {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + buttons = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(buttons,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs new file mode 100644 index 0000000..49875a6 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-367298028)] + public class TLKeyboardButtonSwitchInline : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return -367298028; + } + } + + public string text {get;set;} + public string query {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); +query = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); +StringUtil.Serialize(query,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs new file mode 100644 index 0000000..4b60bf4 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(629866245)] + public class TLKeyboardButtonUrl : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return 629866245; + } + } + + public string text {get;set;} + public string url {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); +url = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text,bw); +StringUtil.Serialize(url,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessage.cs b/TeleSharp.TL/TL/TLMessage.cs new file mode 100644 index 0000000..6d27950 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessage.cs @@ -0,0 +1,157 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1063525281)] + public class TLMessage : TLAbsMessage + { + public override int Constructor + { + get + { + return -1063525281; + } + } + + public int flags {get;set;} + public bool @out {get;set;} + public bool mentioned {get;set;} + public bool media_unread {get;set;} + public bool silent {get;set;} + public bool post {get;set;} + public int id {get;set;} + public int? from_id {get;set;} + public TLAbsPeer to_id {get;set;} + public TLMessageFwdHeader fwd_from {get;set;} + public int? via_bot_id {get;set;} + public int? reply_to_msg_id {get;set;} + public int date {get;set;} + public string message {get;set;} + public TLAbsMessageMedia media {get;set;} + public TLAbsReplyMarkup reply_markup {get;set;} + public TLVector entities {get;set;} + public int? views {get;set;} + public int? edit_date {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = @out ? (flags | 2) : (flags & ~2); +flags = mentioned ? (flags | 16) : (flags & ~16); +flags = media_unread ? (flags | 32) : (flags & ~32); +flags = silent ? (flags | 8192) : (flags & ~8192); +flags = post ? (flags | 16384) : (flags & ~16384); +flags = from_id != null ? (flags | 256) : (flags & ~256); +flags = fwd_from != null ? (flags | 4) : (flags & ~4); +flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); +flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); +flags = media != null ? (flags | 512) : (flags & ~512); +flags = reply_markup != null ? (flags | 64) : (flags & ~64); +flags = entities != null ? (flags | 128) : (flags & ~128); +flags = views != null ? (flags | 1024) : (flags & ~1024); +flags = edit_date != null ? (flags | 32768) : (flags & ~32768); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +@out = (flags & 2) != 0; +mentioned = (flags & 16) != 0; +media_unread = (flags & 32) != 0; +silent = (flags & 8192) != 0; +post = (flags & 16384) != 0; +id = br.ReadInt32(); +if ((flags & 256) != 0) +from_id = br.ReadInt32(); +else +from_id = null; + +to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 4) != 0) +fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); +else +fwd_from = null; + +if ((flags & 2048) != 0) +via_bot_id = br.ReadInt32(); +else +via_bot_id = null; + +if ((flags & 8) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +date = br.ReadInt32(); +message = StringUtil.Deserialize(br); +if ((flags & 512) != 0) +media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); +else +media = null; + +if ((flags & 64) != 0) +reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); +else +reply_markup = null; + +if ((flags & 128) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + +if ((flags & 1024) != 0) +views = br.ReadInt32(); +else +views = null; + +if ((flags & 32768) != 0) +edit_date = br.ReadInt32(); +else +edit_date = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + +bw.Write(id); +if ((flags & 256) != 0) +bw.Write(from_id.Value); +ObjectUtils.SerializeObject(to_id,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(fwd_from,bw); +if ((flags & 2048) != 0) +bw.Write(via_bot_id.Value); +if ((flags & 8) != 0) +bw.Write(reply_to_msg_id.Value); +bw.Write(date); +StringUtil.Serialize(message,bw); +if ((flags & 512) != 0) +ObjectUtils.SerializeObject(media,bw); +if ((flags & 64) != 0) +ObjectUtils.SerializeObject(reply_markup,bw); +if ((flags & 128) != 0) +ObjectUtils.SerializeObject(entities,bw); +if ((flags & 1024) != 0) +bw.Write(views.Value); +if ((flags & 32768) != 0) +bw.Write(edit_date.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs new file mode 100644 index 0000000..894e2d2 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1781355374)] + public class TLMessageActionChannelCreate : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1781355374; + } + } + + public string title {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(title,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs new file mode 100644 index 0000000..4b68f4d --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1336546578)] + public class TLMessageActionChannelMigrateFrom : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1336546578; + } + } + + public string title {get;set;} + public int chat_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + title = StringUtil.Deserialize(br); +chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(title,bw); +bw.Write(chat_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs new file mode 100644 index 0000000..6c7440b --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1217033015)] + public class TLMessageActionChatAddUser : TLAbsMessageAction + { + public override int Constructor + { + get + { + return 1217033015; + } + } + + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatCreate.cs b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs new file mode 100644 index 0000000..eab22ee --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1503425638)] + public class TLMessageActionChatCreate : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1503425638; + } + } + + public string title {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + title = StringUtil.Deserialize(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(title,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs new file mode 100644 index 0000000..15c5c92 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1780220945)] + public class TLMessageActionChatDeletePhoto : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1780220945; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs new file mode 100644 index 0000000..2d73873 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1297179892)] + public class TLMessageActionChatDeleteUser : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1297179892; + } + } + + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs new file mode 100644 index 0000000..9e633a7 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2144015272)] + public class TLMessageActionChatEditPhoto : TLAbsMessageAction + { + public override int Constructor + { + get + { + return 2144015272; + } + } + + public TLAbsPhoto photo {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs new file mode 100644 index 0000000..28b6bbd --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1247687078)] + public class TLMessageActionChatEditTitle : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1247687078; + } + } + + public string title {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + title = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(title,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs new file mode 100644 index 0000000..89f6b87 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-123931160)] + public class TLMessageActionChatJoinedByLink : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -123931160; + } + } + + public int inviter_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + inviter_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(inviter_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs new file mode 100644 index 0000000..8c2d487 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1371385889)] + public class TLMessageActionChatMigrateTo : TLAbsMessageAction + { + public override int Constructor + { + get + { + return 1371385889; + } + } + + public int channel_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionEmpty.cs b/TeleSharp.TL/TL/TLMessageActionEmpty.cs new file mode 100644 index 0000000..a7ad05a --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1230047312)] + public class TLMessageActionEmpty : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1230047312; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs new file mode 100644 index 0000000..f1e7ed1 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1615153660)] + public class TLMessageActionHistoryClear : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1615153660; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionPinMessage.cs b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs new file mode 100644 index 0000000..e39df7d --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1799538451)] + public class TLMessageActionPinMessage : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1799538451; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEmpty.cs b/TeleSharp.TL/TL/TLMessageEmpty.cs new file mode 100644 index 0000000..21df48e --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2082087340)] + public class TLMessageEmpty : TLAbsMessage + { + public override int Constructor + { + get + { + return -2082087340; + } + } + + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityBold.cs b/TeleSharp.TL/TL/TLMessageEntityBold.cs new file mode 100644 index 0000000..7a3affe --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityBold.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1117713463)] + public class TLMessageEntityBold : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return -1117713463; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs new file mode 100644 index 0000000..fa6c5ce --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1827637959)] + public class TLMessageEntityBotCommand : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1827637959; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityCode.cs b/TeleSharp.TL/TL/TLMessageEntityCode.cs new file mode 100644 index 0000000..ab9f940 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityCode.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(681706865)] + public class TLMessageEntityCode : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 681706865; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityEmail.cs b/TeleSharp.TL/TL/TLMessageEntityEmail.cs new file mode 100644 index 0000000..4947334 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityEmail.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1692693954)] + public class TLMessageEntityEmail : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1692693954; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityHashtag.cs b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs new file mode 100644 index 0000000..59d6779 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1868782349)] + public class TLMessageEntityHashtag : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1868782349; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityItalic.cs b/TeleSharp.TL/TL/TLMessageEntityItalic.cs new file mode 100644 index 0000000..08fd455 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityItalic.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2106619040)] + public class TLMessageEntityItalic : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return -2106619040; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityMention.cs b/TeleSharp.TL/TL/TLMessageEntityMention.cs new file mode 100644 index 0000000..b98ecd4 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityMention.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-100378723)] + public class TLMessageEntityMention : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return -100378723; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs new file mode 100644 index 0000000..4fca31b --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(892193368)] + public class TLMessageEntityMentionName : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 892193368; + } + } + + public int offset {get;set;} + public int length {get;set;} + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); +user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); +bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityPre.cs b/TeleSharp.TL/TL/TLMessageEntityPre.cs new file mode 100644 index 0000000..1438fc7 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityPre.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1938967520)] + public class TLMessageEntityPre : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1938967520; + } + } + + public int offset {get;set;} + public int length {get;set;} + public string language {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); +language = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); +StringUtil.Serialize(language,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs new file mode 100644 index 0000000..a2e809a --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1990644519)] + public class TLMessageEntityTextUrl : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1990644519; + } + } + + public int offset {get;set;} + public int length {get;set;} + public string url {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); +url = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); +StringUtil.Serialize(url,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityUnknown.cs b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs new file mode 100644 index 0000000..dd3bbf3 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1148011883)] + public class TLMessageEntityUnknown : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return -1148011883; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageEntityUrl.cs b/TeleSharp.TL/TL/TLMessageEntityUrl.cs new file mode 100644 index 0000000..330d83c --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageEntityUrl.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1859134776)] + public class TLMessageEntityUrl : TLAbsMessageEntity + { + public override int Constructor + { + get + { + return 1859134776; + } + } + + public int offset {get;set;} + public int length {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + offset = br.ReadInt32(); +length = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(offset); +bw.Write(length); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageFwdHeader.cs b/TeleSharp.TL/TL/TLMessageFwdHeader.cs new file mode 100644 index 0000000..085a3c2 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageFwdHeader.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-947462709)] + public class TLMessageFwdHeader : TLObject + { + public override int Constructor + { + get + { + return -947462709; + } + } + + public int flags {get;set;} + public int? from_id {get;set;} + public int date {get;set;} + public int? channel_id {get;set;} + public int? channel_post {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = from_id != null ? (flags | 1) : (flags & ~1); +flags = channel_id != null ? (flags | 2) : (flags & ~2); +flags = channel_post != null ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +if ((flags & 1) != 0) +from_id = br.ReadInt32(); +else +from_id = null; + +date = br.ReadInt32(); +if ((flags & 2) != 0) +channel_id = br.ReadInt32(); +else +channel_id = null; + +if ((flags & 4) != 0) +channel_post = br.ReadInt32(); +else +channel_post = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +if ((flags & 1) != 0) +bw.Write(from_id.Value); +bw.Write(date); +if ((flags & 2) != 0) +bw.Write(channel_id.Value); +if ((flags & 4) != 0) +bw.Write(channel_post.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaContact.cs b/TeleSharp.TL/TL/TLMessageMediaContact.cs new file mode 100644 index 0000000..01a2c33 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaContact.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1585262393)] + public class TLMessageMediaContact : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return 1585262393; + } + } + + public string phone_number {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + phone_number = StringUtil.Deserialize(br); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); +user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(phone_number,bw); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); +bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaDocument.cs b/TeleSharp.TL/TL/TLMessageMediaDocument.cs new file mode 100644 index 0000000..e92c924 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaDocument.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-203411800)] + public class TLMessageMediaDocument : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return -203411800; + } + } + + public TLAbsDocument document {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(document,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaEmpty.cs b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs new file mode 100644 index 0000000..15c696c --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1038967584)] + public class TLMessageMediaEmpty : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return 1038967584; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaGeo.cs b/TeleSharp.TL/TL/TLMessageMediaGeo.cs new file mode 100644 index 0000000..d80c8e4 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaGeo.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1457575028)] + public class TLMessageMediaGeo : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return 1457575028; + } + } + + public TLAbsGeoPoint geo {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaPhoto.cs b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs new file mode 100644 index 0000000..41bc37b --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1032643901)] + public class TLMessageMediaPhoto : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return 1032643901; + } + } + + public TLAbsPhoto photo {get;set;} + public string caption {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +caption = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo,bw); +StringUtil.Serialize(caption,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs new file mode 100644 index 0000000..88ffb13 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1618676578)] + public class TLMessageMediaUnsupported : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return -1618676578; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaVenue.cs b/TeleSharp.TL/TL/TLMessageMediaVenue.cs new file mode 100644 index 0000000..259c167 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaVenue.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2031269663)] + public class TLMessageMediaVenue : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return 2031269663; + } + } + + public TLAbsGeoPoint geo {get;set;} + public string title {get;set;} + public string address {get;set;} + public string provider {get;set;} + public string venue_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); +title = StringUtil.Deserialize(br); +address = StringUtil.Deserialize(br); +provider = StringUtil.Deserialize(br); +venue_id = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo,bw); +StringUtil.Serialize(title,bw); +StringUtil.Serialize(address,bw); +StringUtil.Serialize(provider,bw); +StringUtil.Serialize(venue_id,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaWebPage.cs b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs new file mode 100644 index 0000000..94306d1 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1557277184)] + public class TLMessageMediaWebPage : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return -1557277184; + } + } + + public TLAbsWebPage webpage {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(webpage,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageRange.cs b/TeleSharp.TL/TL/TLMessageRange.cs new file mode 100644 index 0000000..5d5374d --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageRange.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(182649427)] + public class TLMessageRange : TLObject + { + public override int Constructor + { + get + { + return 182649427; + } + } + + public int min_id {get;set;} + public int max_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + min_id = br.ReadInt32(); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(min_id); +bw.Write(max_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageService.cs b/TeleSharp.TL/TL/TLMessageService.cs new file mode 100644 index 0000000..0449074 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageService.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1642487306)] + public class TLMessageService : TLAbsMessage + { + public override int Constructor + { + get + { + return -1642487306; + } + } + + public int flags {get;set;} + public bool @out {get;set;} + public bool mentioned {get;set;} + public bool media_unread {get;set;} + public bool silent {get;set;} + public bool post {get;set;} + public int id {get;set;} + public int? from_id {get;set;} + public TLAbsPeer to_id {get;set;} + public int? reply_to_msg_id {get;set;} + public int date {get;set;} + public TLAbsMessageAction action {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = @out ? (flags | 2) : (flags & ~2); +flags = mentioned ? (flags | 16) : (flags & ~16); +flags = media_unread ? (flags | 32) : (flags & ~32); +flags = silent ? (flags | 8192) : (flags & ~8192); +flags = post ? (flags | 16384) : (flags & ~16384); +flags = from_id != null ? (flags | 256) : (flags & ~256); +flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +@out = (flags & 2) != 0; +mentioned = (flags & 16) != 0; +media_unread = (flags & 32) != 0; +silent = (flags & 8192) != 0; +post = (flags & 16384) != 0; +id = br.ReadInt32(); +if ((flags & 256) != 0) +from_id = br.ReadInt32(); +else +from_id = null; + +to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +if ((flags & 8) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +date = br.ReadInt32(); +action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + +bw.Write(id); +if ((flags & 256) != 0) +bw.Write(from_id.Value); +ObjectUtils.SerializeObject(to_id,bw); +if ((flags & 8) != 0) +bw.Write(reply_to_msg_id.Value); +bw.Write(date); +ObjectUtils.SerializeObject(action,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNearestDc.cs b/TeleSharp.TL/TL/TLNearestDc.cs new file mode 100644 index 0000000..d554dd3 --- /dev/null +++ b/TeleSharp.TL/TL/TLNearestDc.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1910892683)] + public class TLNearestDc : TLObject + { + public override int Constructor + { + get + { + return -1910892683; + } + } + + public string country {get;set;} + public int this_dc {get;set;} + public int nearest_dc {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + country = StringUtil.Deserialize(br); +this_dc = br.ReadInt32(); +nearest_dc = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(country,bw); +bw.Write(this_dc); +bw.Write(nearest_dc); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNotifyAll.cs b/TeleSharp.TL/TL/TLNotifyAll.cs new file mode 100644 index 0000000..284644b --- /dev/null +++ b/TeleSharp.TL/TL/TLNotifyAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1959820384)] + public class TLNotifyAll : TLAbsNotifyPeer + { + public override int Constructor + { + get + { + return 1959820384; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNotifyChats.cs b/TeleSharp.TL/TL/TLNotifyChats.cs new file mode 100644 index 0000000..98d9847 --- /dev/null +++ b/TeleSharp.TL/TL/TLNotifyChats.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1073230141)] + public class TLNotifyChats : TLAbsNotifyPeer + { + public override int Constructor + { + get + { + return -1073230141; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNotifyPeer.cs b/TeleSharp.TL/TL/TLNotifyPeer.cs new file mode 100644 index 0000000..3e0bbe2 --- /dev/null +++ b/TeleSharp.TL/TL/TLNotifyPeer.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1613493288)] + public class TLNotifyPeer : TLAbsNotifyPeer + { + public override int Constructor + { + get + { + return -1613493288; + } + } + + public TLAbsPeer peer {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNotifyUsers.cs b/TeleSharp.TL/TL/TLNotifyUsers.cs new file mode 100644 index 0000000..e17a3f7 --- /dev/null +++ b/TeleSharp.TL/TL/TLNotifyUsers.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1261946036)] + public class TLNotifyUsers : TLAbsNotifyPeer + { + public override int Constructor + { + get + { + return -1261946036; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLNull.cs b/TeleSharp.TL/TL/TLNull.cs new file mode 100644 index 0000000..bc92220 --- /dev/null +++ b/TeleSharp.TL/TL/TLNull.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1450380236)] + public class TLNull : TLObject + { + public override int Constructor + { + get + { + return 1450380236; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerChannel.cs b/TeleSharp.TL/TL/TLPeerChannel.cs new file mode 100644 index 0000000..2caaf12 --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerChannel.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1109531342)] + public class TLPeerChannel : TLAbsPeer + { + public override int Constructor + { + get + { + return -1109531342; + } + } + + public int channel_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerChat.cs b/TeleSharp.TL/TL/TLPeerChat.cs new file mode 100644 index 0000000..b8384a9 --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerChat.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1160714821)] + public class TLPeerChat : TLAbsPeer + { + public override int Constructor + { + get + { + return -1160714821; + } + } + + public int chat_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs new file mode 100644 index 0000000..3e7508c --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1830677896)] + public class TLPeerNotifyEventsAll : TLAbsPeerNotifyEvents + { + public override int Constructor + { + get + { + return 1830677896; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs new file mode 100644 index 0000000..cd04dc6 --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1378534221)] + public class TLPeerNotifyEventsEmpty : TLAbsPeerNotifyEvents + { + public override int Constructor + { + get + { + return -1378534221; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerNotifySettings.cs b/TeleSharp.TL/TL/TLPeerNotifySettings.cs new file mode 100644 index 0000000..374130e --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerNotifySettings.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1697798976)] + public class TLPeerNotifySettings : TLAbsPeerNotifySettings + { + public override int Constructor + { + get + { + return -1697798976; + } + } + + public int flags {get;set;} + public bool show_previews {get;set;} + public bool silent {get;set;} + public int mute_until {get;set;} + public string sound {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = show_previews ? (flags | 1) : (flags & ~1); +flags = silent ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +show_previews = (flags & 1) != 0; +silent = (flags & 2) != 0; +mute_until = br.ReadInt32(); +sound = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + +bw.Write(mute_until); +StringUtil.Serialize(sound,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs new file mode 100644 index 0000000..6d1a7ec --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1889961234)] + public class TLPeerNotifySettingsEmpty : TLAbsPeerNotifySettings + { + public override int Constructor + { + get + { + return 1889961234; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerSettings.cs b/TeleSharp.TL/TL/TLPeerSettings.cs new file mode 100644 index 0000000..c9c00f1 --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerSettings.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2122045747)] + public class TLPeerSettings : TLObject + { + public override int Constructor + { + get + { + return -2122045747; + } + } + + public int flags {get;set;} + public bool report_spam {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = report_spam ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +report_spam = (flags & 1) != 0; + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerUser.cs b/TeleSharp.TL/TL/TLPeerUser.cs new file mode 100644 index 0000000..5477679 --- /dev/null +++ b/TeleSharp.TL/TL/TLPeerUser.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1649296275)] + public class TLPeerUser : TLAbsPeer + { + public override int Constructor + { + get + { + return -1649296275; + } + } + + public int user_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoto.cs b/TeleSharp.TL/TL/TLPhoto.cs new file mode 100644 index 0000000..f181fef --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-840088834)] + public class TLPhoto : TLAbsPhoto + { + public override int Constructor + { + get + { + return -840088834; + } + } + + public long id {get;set;} + public long access_hash {get;set;} + public int date {get;set;} + public TLVector sizes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +access_hash = br.ReadInt64(); +date = br.ReadInt32(); +sizes = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(access_hash); +bw.Write(date); +ObjectUtils.SerializeObject(sizes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhotoCachedSize.cs b/TeleSharp.TL/TL/TLPhotoCachedSize.cs new file mode 100644 index 0000000..fe6825c --- /dev/null +++ b/TeleSharp.TL/TL/TLPhotoCachedSize.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-374917894)] + public class TLPhotoCachedSize : TLAbsPhotoSize + { + public override int Constructor + { + get + { + return -374917894; + } + } + + public string type {get;set;} + public TLAbsFileLocation location {get;set;} + public int w {get;set;} + public int h {get;set;} + public byte[] bytes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + type = StringUtil.Deserialize(br); +location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); +w = br.ReadInt32(); +h = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(type,bw); +ObjectUtils.SerializeObject(location,bw); +bw.Write(w); +bw.Write(h); +BytesUtil.Serialize(bytes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhotoEmpty.cs b/TeleSharp.TL/TL/TLPhotoEmpty.cs new file mode 100644 index 0000000..40a9166 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhotoEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(590459437)] + public class TLPhotoEmpty : TLAbsPhoto + { + public override int Constructor + { + get + { + return 590459437; + } + } + + public long id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhotoSize.cs b/TeleSharp.TL/TL/TLPhotoSize.cs new file mode 100644 index 0000000..4429643 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhotoSize.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2009052699)] + public class TLPhotoSize : TLAbsPhotoSize + { + public override int Constructor + { + get + { + return 2009052699; + } + } + + public string type {get;set;} + public TLAbsFileLocation location {get;set;} + public int w {get;set;} + public int h {get;set;} + public int size {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + type = StringUtil.Deserialize(br); +location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); +w = br.ReadInt32(); +h = br.ReadInt32(); +size = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(type,bw); +ObjectUtils.SerializeObject(location,bw); +bw.Write(w); +bw.Write(h); +bw.Write(size); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs new file mode 100644 index 0000000..10b070d --- /dev/null +++ b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(236446268)] + public class TLPhotoSizeEmpty : TLAbsPhotoSize + { + public override int Constructor + { + get + { + return 236446268; + } + } + + public string type {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + type = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(type,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs new file mode 100644 index 0000000..e0ca982 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1343122938)] + public class TLPrivacyKeyChatInvite : TLAbsPrivacyKey + { + public override int Constructor + { + get + { + return 1343122938; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs new file mode 100644 index 0000000..979a53b --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1137792208)] + public class TLPrivacyKeyStatusTimestamp : TLAbsPrivacyKey + { + public override int Constructor + { + get + { + return -1137792208; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs new file mode 100644 index 0000000..117613b --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1698855810)] + public class TLPrivacyValueAllowAll : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return 1698855810; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs new file mode 100644 index 0000000..7856d22 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-123988)] + public class TLPrivacyValueAllowContacts : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return -123988; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs new file mode 100644 index 0000000..754d826 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1297858060)] + public class TLPrivacyValueAllowUsers : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return 1297858060; + } + } + + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs new file mode 100644 index 0000000..3225b9d --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1955338397)] + public class TLPrivacyValueDisallowAll : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return -1955338397; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs new file mode 100644 index 0000000..f324e15 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-125240806)] + public class TLPrivacyValueDisallowContacts : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return -125240806; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs new file mode 100644 index 0000000..cd1ae94 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(209668535)] + public class TLPrivacyValueDisallowUsers : TLAbsPrivacyRule + { + public override int Constructor + { + get + { + return 209668535; + } + } + + public TLVector users {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs new file mode 100644 index 0000000..6a09537 --- /dev/null +++ b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1551583367)] + public class TLReceivedNotifyMessage : TLObject + { + public override int Constructor + { + get + { + return -1551583367; + } + } + + public int id {get;set;} + public int flags {get;set;} + + + public void ComputeFlags() + { + flags = 0; + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +flags = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLReplyInlineMarkup.cs b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs new file mode 100644 index 0000000..1110211 --- /dev/null +++ b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1218642516)] + public class TLReplyInlineMarkup : TLAbsReplyMarkup + { + public override int Constructor + { + get + { + return 1218642516; + } + } + + public TLVector rows {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + rows = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(rows,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs new file mode 100644 index 0000000..f1d26be --- /dev/null +++ b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-200242528)] + public class TLReplyKeyboardForceReply : TLAbsReplyMarkup + { + public override int Constructor + { + get + { + return -200242528; + } + } + + public int flags {get;set;} + public bool single_use {get;set;} + public bool selective {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = single_use ? (flags | 2) : (flags & ~2); +flags = selective ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +single_use = (flags & 2) != 0; +selective = (flags & 4) != 0; + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + } + } +} diff --git a/TeleSharp.TL/TL/TLReplyKeyboardHide.cs b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs new file mode 100644 index 0000000..78c9ea2 --- /dev/null +++ b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1606526075)] + public class TLReplyKeyboardHide : TLAbsReplyMarkup + { + public override int Constructor + { + get + { + return -1606526075; + } + } + + public int flags {get;set;} + public bool selective {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = selective ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +selective = (flags & 4) != 0; + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + } + } +} diff --git a/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs new file mode 100644 index 0000000..8a1e82a --- /dev/null +++ b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(889353612)] + public class TLReplyKeyboardMarkup : TLAbsReplyMarkup + { + public override int Constructor + { + get + { + return 889353612; + } + } + + public int flags {get;set;} + public bool resize {get;set;} + public bool single_use {get;set;} + public bool selective {get;set;} + public TLVector rows {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = resize ? (flags | 1) : (flags & ~1); +flags = single_use ? (flags | 2) : (flags & ~2); +flags = selective ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +resize = (flags & 1) != 0; +single_use = (flags & 2) != 0; +selective = (flags & 4) != 0; +rows = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + +ObjectUtils.SerializeObject(rows,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLRequestInitConnection.cs b/TeleSharp.TL/TL/TLRequestInitConnection.cs new file mode 100644 index 0000000..9ce4488 --- /dev/null +++ b/TeleSharp.TL/TL/TLRequestInitConnection.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1769565673)] + public class TLRequestInitConnection : TLMethod + { + public override int Constructor + { + get + { + return 1769565673; + } + } + + public int api_id {get;set;} + public string device_model {get;set;} + public string system_version {get;set;} + public string app_version {get;set;} + public string lang_code {get;set;} + public TLObject query {get;set;} + public TLObject Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + api_id = br.ReadInt32(); +device_model = StringUtil.Deserialize(br); +system_version = StringUtil.Deserialize(br); +app_version = StringUtil.Deserialize(br); +lang_code = StringUtil.Deserialize(br); +query = (TLObject)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(api_id); +StringUtil.Serialize(device_model,bw); +StringUtil.Serialize(system_version,bw); +StringUtil.Serialize(app_version,bw); +StringUtil.Serialize(lang_code,bw); +ObjectUtils.SerializeObject(query,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs new file mode 100644 index 0000000..635888a --- /dev/null +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-878758099)] + public class TLRequestInvokeAfterMsg : TLMethod + { + public override int Constructor + { + get + { + return -878758099; + } + } + + public long msg_id {get;set;} + public TLObject query {get;set;} + public TLObject Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + msg_id = br.ReadInt64(); +query = (TLObject)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(msg_id); +ObjectUtils.SerializeObject(query,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs new file mode 100644 index 0000000..16a3a33 --- /dev/null +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1036301552)] + public class TLRequestInvokeAfterMsgs : TLMethod + { + public override int Constructor + { + get + { + return 1036301552; + } + } + + public TLVector msg_ids {get;set;} + public TLObject query {get;set;} + public TLObject Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + msg_ids = (TLVector)ObjectUtils.DeserializeVector(br); +query = (TLObject)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(msg_ids,bw); +ObjectUtils.SerializeObject(query,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs new file mode 100644 index 0000000..b2fe196 --- /dev/null +++ b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-627372787)] + public class TLRequestInvokeWithLayer : TLMethod + { + public override int Constructor + { + get + { + return -627372787; + } + } + + public int layer {get;set;} + public TLObject query {get;set;} + public TLObject Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + layer = br.ReadInt32(); +query = (TLObject)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(layer); +ObjectUtils.SerializeObject(query,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs new file mode 100644 index 0000000..2614801 --- /dev/null +++ b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1080796745)] + public class TLRequestInvokeWithoutUpdates : TLMethod + { + public override int Constructor + { + get + { + return -1080796745; + } + } + + public TLObject query {get;set;} + public TLObject Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + query = (TLObject)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(query,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageCancelAction.cs b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs new file mode 100644 index 0000000..10ce44c --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-44119819)] + public class TLSendMessageCancelAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -44119819; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs new file mode 100644 index 0000000..b46ba18 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1653390447)] + public class TLSendMessageChooseContactAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return 1653390447; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs new file mode 100644 index 0000000..2198012 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(393186209)] + public class TLSendMessageGeoLocationAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return 393186209; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs new file mode 100644 index 0000000..dbf577a --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-718310409)] + public class TLSendMessageRecordAudioAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -718310409; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs new file mode 100644 index 0000000..0c60759 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1584933265)] + public class TLSendMessageRecordVideoAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -1584933265; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageTypingAction.cs b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs new file mode 100644 index 0000000..991f168 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(381645902)] + public class TLSendMessageTypingAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return 381645902; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs new file mode 100644 index 0000000..2664cf0 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-212740181)] + public class TLSendMessageUploadAudioAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -212740181; + } + } + + public int progress {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + progress = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(progress); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs new file mode 100644 index 0000000..bc45d33 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1441998364)] + public class TLSendMessageUploadDocumentAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -1441998364; + } + } + + public int progress {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + progress = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(progress); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs new file mode 100644 index 0000000..2e8a74d --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-774682074)] + public class TLSendMessageUploadPhotoAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -774682074; + } + } + + public int progress {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + progress = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(progress); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs new file mode 100644 index 0000000..a2576dd --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-378127636)] + public class TLSendMessageUploadVideoAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -378127636; + } + } + + public int progress {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + progress = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(progress); + + } + } +} diff --git a/TeleSharp.TL/TL/TLStickerPack.cs b/TeleSharp.TL/TL/TLStickerPack.cs new file mode 100644 index 0000000..5e701cd --- /dev/null +++ b/TeleSharp.TL/TL/TLStickerPack.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(313694676)] + public class TLStickerPack : TLObject + { + public override int Constructor + { + get + { + return 313694676; + } + } + + public string emoticon {get;set;} + public TLVector documents {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + emoticon = StringUtil.Deserialize(br); +documents = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(emoticon,bw); +ObjectUtils.SerializeObject(documents,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLStickerSet.cs b/TeleSharp.TL/TL/TLStickerSet.cs new file mode 100644 index 0000000..1b3bd05 --- /dev/null +++ b/TeleSharp.TL/TL/TLStickerSet.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-852477119)] + public class TLStickerSet : TLObject + { + public override int Constructor + { + get + { + return -852477119; + } + } + + public int flags {get;set;} + public bool installed {get;set;} + public bool disabled {get;set;} + public bool official {get;set;} + public long id {get;set;} + public long access_hash {get;set;} + public string title {get;set;} + public string short_name {get;set;} + public int count {get;set;} + public int hash {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = installed ? (flags | 1) : (flags & ~1); +flags = disabled ? (flags | 2) : (flags & ~2); +flags = official ? (flags | 4) : (flags & ~4); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +installed = (flags & 1) != 0; +disabled = (flags & 2) != 0; +official = (flags & 4) != 0; +id = br.ReadInt64(); +access_hash = br.ReadInt64(); +title = StringUtil.Deserialize(br); +short_name = StringUtil.Deserialize(br); +count = br.ReadInt32(); +hash = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + +bw.Write(id); +bw.Write(access_hash); +StringUtil.Serialize(title,bw); +StringUtil.Serialize(short_name,bw); +bw.Write(count); +bw.Write(hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeer.cs b/TeleSharp.TL/TL/TLTopPeer.cs new file mode 100644 index 0000000..13ed0b6 --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeer.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-305282981)] + public class TLTopPeer : TLObject + { + public override int Constructor + { + get + { + return -305282981; + } + } + + public TLAbsPeer peer {get;set;} + public double rating {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +rating = br.ReadDouble(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(rating); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs new file mode 100644 index 0000000..b44456d --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(344356834)] + public class TLTopPeerCategoryBotsInline : TLAbsTopPeerCategory + { + public override int Constructor + { + get + { + return 344356834; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs new file mode 100644 index 0000000..c71bd21 --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1419371685)] + public class TLTopPeerCategoryBotsPM : TLAbsTopPeerCategory + { + public override int Constructor + { + get + { + return -1419371685; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs new file mode 100644 index 0000000..ebe7997 --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(371037736)] + public class TLTopPeerCategoryChannels : TLAbsTopPeerCategory + { + public override int Constructor + { + get + { + return 371037736; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs new file mode 100644 index 0000000..e402c6c --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(104314861)] + public class TLTopPeerCategoryCorrespondents : TLAbsTopPeerCategory + { + public override int Constructor + { + get + { + return 104314861; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs new file mode 100644 index 0000000..77d7dde --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1122524854)] + public class TLTopPeerCategoryGroups : TLAbsTopPeerCategory + { + public override int Constructor + { + get + { + return -1122524854; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs new file mode 100644 index 0000000..77b1f6b --- /dev/null +++ b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-75283823)] + public class TLTopPeerCategoryPeers : TLObject + { + public override int Constructor + { + get + { + return -75283823; + } + } + + public TLAbsTopPeerCategory category {get;set;} + public int count {get;set;} + public TLVector peers {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br); +count = br.ReadInt32(); +peers = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(category,bw); +bw.Write(count); +ObjectUtils.SerializeObject(peers,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs new file mode 100644 index 0000000..ac72e51 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1500747636)] + public class TLUpdateBotCallbackQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1500747636; + } + } + + public long query_id {get;set;} + public int user_id {get;set;} + public TLAbsPeer peer {get;set;} + public int msg_id {get;set;} + public byte[] data {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + query_id = br.ReadInt64(); +user_id = br.ReadInt32(); +peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +msg_id = br.ReadInt32(); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(query_id); +bw.Write(user_id); +ObjectUtils.SerializeObject(peer,bw); +bw.Write(msg_id); +BytesUtil.Serialize(data,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs new file mode 100644 index 0000000..9e2d0cb --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1417832080)] + public class TLUpdateBotInlineQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1417832080; + } + } + + public int flags {get;set;} + public long query_id {get;set;} + public int user_id {get;set;} + public string query {get;set;} + public TLAbsGeoPoint geo {get;set;} + public string offset {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = geo != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +query_id = br.ReadInt64(); +user_id = br.ReadInt32(); +query = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); +else +geo = null; + +offset = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(query_id); +bw.Write(user_id); +StringUtil.Serialize(query,bw); +if ((flags & 1) != 0) +ObjectUtils.SerializeObject(geo,bw); +StringUtil.Serialize(offset,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs new file mode 100644 index 0000000..3c9c684 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(239663460)] + public class TLUpdateBotInlineSend : TLAbsUpdate + { + public override int Constructor + { + get + { + return 239663460; + } + } + + public int flags {get;set;} + public int user_id {get;set;} + public string query {get;set;} + public TLAbsGeoPoint geo {get;set;} + public string id {get;set;} + public TLInputBotInlineMessageID msg_id {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = geo != null ? (flags | 1) : (flags & ~1); +flags = msg_id != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +user_id = br.ReadInt32(); +query = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); +else +geo = null; + +id = StringUtil.Deserialize(br); +if ((flags & 2) != 0) +msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); +else +msg_id = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(user_id); +StringUtil.Serialize(query,bw); +if ((flags & 1) != 0) +ObjectUtils.SerializeObject(geo,bw); +StringUtil.Serialize(id,bw); +if ((flags & 2) != 0) +ObjectUtils.SerializeObject(msg_id,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChannel.cs b/TeleSharp.TL/TL/TLUpdateChannel.cs new file mode 100644 index 0000000..69cd7f2 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChannel.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1227598250)] + public class TLUpdateChannel : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1227598250; + } + } + + public int channel_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs new file mode 100644 index 0000000..b2c7d1a --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1734268085)] + public class TLUpdateChannelMessageViews : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1734268085; + } + } + + public int channel_id {get;set;} + public int id {get;set;} + public int views {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +id = br.ReadInt32(); +views = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(id); +bw.Write(views); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs new file mode 100644 index 0000000..ea79bcb --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1738988427)] + public class TLUpdateChannelPinnedMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1738988427; + } + } + + public int channel_id {get;set;} + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs new file mode 100644 index 0000000..c4c5c52 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-352032773)] + public class TLUpdateChannelTooLong : TLAbsUpdate + { + public override int Constructor + { + get + { + return -352032773; + } + } + + public int flags {get;set;} + public int channel_id {get;set;} + public int? pts {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = pts != null ? (flags | 1) : (flags & ~1); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +channel_id = br.ReadInt32(); +if ((flags & 1) != 0) +pts = br.ReadInt32(); +else +pts = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(channel_id); +if ((flags & 1) != 0) +bw.Write(pts.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatAdmins.cs b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs new file mode 100644 index 0000000..fdb056c --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1855224129)] + public class TLUpdateChatAdmins : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1855224129; + } + } + + public int chat_id {get;set;} + public bool enabled {get;set;} + public int version {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +enabled = BoolUtil.Deserialize(br); +version = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +BoolUtil.Serialize(enabled,bw); +bw.Write(version); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs new file mode 100644 index 0000000..26150a0 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-364179876)] + public class TLUpdateChatParticipantAdd : TLAbsUpdate + { + public override int Constructor + { + get + { + return -364179876; + } + } + + public int chat_id {get;set;} + public int user_id {get;set;} + public int inviter_id {get;set;} + public int date {get;set;} + public int version {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = br.ReadInt32(); +inviter_id = br.ReadInt32(); +date = br.ReadInt32(); +version = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(user_id); +bw.Write(inviter_id); +bw.Write(date); +bw.Write(version); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs new file mode 100644 index 0000000..ec25685 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1232070311)] + public class TLUpdateChatParticipantAdmin : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1232070311; + } + } + + public int chat_id {get;set;} + public int user_id {get;set;} + public bool is_admin {get;set;} + public int version {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = br.ReadInt32(); +is_admin = BoolUtil.Deserialize(br); +version = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(user_id); +BoolUtil.Serialize(is_admin,bw); +bw.Write(version); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs new file mode 100644 index 0000000..7c6e5b2 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1851755554)] + public class TLUpdateChatParticipantDelete : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1851755554; + } + } + + public int chat_id {get;set;} + public int user_id {get;set;} + public int version {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = br.ReadInt32(); +version = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(user_id); +bw.Write(version); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipants.cs b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs new file mode 100644 index 0000000..e979f69 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(125178264)] + public class TLUpdateChatParticipants : TLAbsUpdate + { + public override int Constructor + { + get + { + return 125178264; + } + } + + public TLAbsChatParticipants participants {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + participants = (TLAbsChatParticipants)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(participants,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs new file mode 100644 index 0000000..d956579 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1704596961)] + public class TLUpdateChatUserTyping : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1704596961; + } + } + + public int chat_id {get;set;} + public int user_id {get;set;} + public TLAbsSendMessageAction action {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +user_id = br.ReadInt32(); +action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(user_id); +ObjectUtils.SerializeObject(action,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateContactLink.cs b/TeleSharp.TL/TL/TLUpdateContactLink.cs new file mode 100644 index 0000000..186bab2 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateContactLink.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1657903163)] + public class TLUpdateContactLink : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1657903163; + } + } + + public int user_id {get;set;} + public TLAbsContactLink my_link {get;set;} + public TLAbsContactLink foreign_link {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); +foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +ObjectUtils.SerializeObject(my_link,bw); +ObjectUtils.SerializeObject(foreign_link,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateContactRegistered.cs b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs new file mode 100644 index 0000000..6621713 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(628472761)] + public class TLUpdateContactRegistered : TLAbsUpdate + { + public override int Constructor + { + get + { + return 628472761; + } + } + + public int user_id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateDcOptions.cs b/TeleSharp.TL/TL/TLUpdateDcOptions.cs new file mode 100644 index 0000000..7ca80a1 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateDcOptions.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1906403213)] + public class TLUpdateDcOptions : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1906403213; + } + } + + public TLVector dc_options {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dc_options = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(dc_options,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs new file mode 100644 index 0000000..a1fea02 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1015733815)] + public class TLUpdateDeleteChannelMessages : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1015733815; + } + } + + public int channel_id {get;set;} + public TLVector messages {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +ObjectUtils.SerializeObject(messages,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs new file mode 100644 index 0000000..d9d0ee0 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1576161051)] + public class TLUpdateDeleteMessages : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1576161051; + } + } + + public TLVector messages {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + messages = (TLVector)ObjectUtils.DeserializeVector(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateDraftMessage.cs b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs new file mode 100644 index 0000000..d7f299b --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-299124375)] + public class TLUpdateDraftMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return -299124375; + } + } + + public TLAbsPeer peer {get;set;} + public TLAbsDraftMessage draft {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(draft,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs new file mode 100644 index 0000000..7da5979 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(457133559)] + public class TLUpdateEditChannelMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 457133559; + } + } + + public TLAbsMessage message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(message,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateEditMessage.cs b/TeleSharp.TL/TL/TLUpdateEditMessage.cs new file mode 100644 index 0000000..de8df3f --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateEditMessage.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-469536605)] + public class TLUpdateEditMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return -469536605; + } + } + + public TLAbsMessage message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(message,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs new file mode 100644 index 0000000..50cb232 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(386986326)] + public class TLUpdateEncryptedChatTyping : TLAbsUpdate + { + public override int Constructor + { + get + { + return 386986326; + } + } + + public int chat_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs new file mode 100644 index 0000000..298120f --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(956179895)] + public class TLUpdateEncryptedMessagesRead : TLAbsUpdate + { + public override int Constructor + { + get + { + return 956179895; + } + } + + public int chat_id {get;set;} + public int max_date {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat_id = br.ReadInt32(); +max_date = br.ReadInt32(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(chat_id); +bw.Write(max_date); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateEncryption.cs b/TeleSharp.TL/TL/TLUpdateEncryption.cs new file mode 100644 index 0000000..7103c27 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateEncryption.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1264392051)] + public class TLUpdateEncryption : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1264392051; + } + } + + public TLAbsEncryptedChat chat {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + chat = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(chat,bw); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs new file mode 100644 index 0000000..b34afc0 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(750622127)] + public class TLUpdateInlineBotCallbackQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return 750622127; + } + } + + public long query_id {get;set;} + public int user_id {get;set;} + public TLInputBotInlineMessageID msg_id {get;set;} + public byte[] data {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + query_id = br.ReadInt64(); +user_id = br.ReadInt32(); +msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); +data = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(query_id); +bw.Write(user_id); +ObjectUtils.SerializeObject(msg_id,bw); +BytesUtil.Serialize(data,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateMessageID.cs b/TeleSharp.TL/TL/TLUpdateMessageID.cs new file mode 100644 index 0000000..87af18a --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateMessageID.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1318109142)] + public class TLUpdateMessageID : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1318109142; + } + } + + public int id {get;set;} + public long random_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +random_id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(random_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs b/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs new file mode 100644 index 0000000..df03f05 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1895411046)] + public class TLUpdateNewAuthorization : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1895411046; + } + } + + public long auth_key_id {get;set;} + public int date {get;set;} + public string device {get;set;} + public string location {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + auth_key_id = br.ReadInt64(); +date = br.ReadInt32(); +device = StringUtil.Deserialize(br); +location = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(auth_key_id); +bw.Write(date); +StringUtil.Serialize(device,bw); +StringUtil.Serialize(location,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs new file mode 100644 index 0000000..7bd6c21 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1656358105)] + public class TLUpdateNewChannelMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1656358105; + } + } + + public TLAbsMessage message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(message,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs new file mode 100644 index 0000000..43e1398 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(314359194)] + public class TLUpdateNewEncryptedMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 314359194; + } + } + + public TLAbsEncryptedMessage message {get;set;} + public int qts {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = (TLAbsEncryptedMessage)ObjectUtils.DeserializeObject(br); +qts = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(message,bw); +bw.Write(qts); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNewMessage.cs b/TeleSharp.TL/TL/TLUpdateNewMessage.cs new file mode 100644 index 0000000..0c524b8 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNewMessage.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(522914557)] + public class TLUpdateNewMessage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 522914557; + } + } + + public TLAbsMessage message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(message,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs new file mode 100644 index 0000000..cfa46d8 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1753886890)] + public class TLUpdateNewStickerSet : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1753886890; + } + } + + public Messages.TLStickerSet stickerset {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + stickerset = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateNotifySettings.cs b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs new file mode 100644 index 0000000..27989f0 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1094555409)] + public class TLUpdateNotifySettings : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1094555409; + } + } + + public TLAbsNotifyPeer peer {get;set;} + public TLAbsPeerNotifySettings notify_settings {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsNotifyPeer)ObjectUtils.DeserializeObject(br); +notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +ObjectUtils.SerializeObject(notify_settings,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdatePrivacy.cs b/TeleSharp.TL/TL/TLUpdatePrivacy.cs new file mode 100644 index 0000000..b4f0840 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdatePrivacy.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-298113238)] + public class TLUpdatePrivacy : TLAbsUpdate + { + public override int Constructor + { + get + { + return -298113238; + } + } + + public TLAbsPrivacyKey key {get;set;} + public TLVector rules {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + key = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br); +rules = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(key,bw); +ObjectUtils.SerializeObject(rules,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs new file mode 100644 index 0000000..1e8b0e7 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1108669311)] + public class TLUpdateReadChannelInbox : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1108669311; + } + } + + public int channel_id {get;set;} + public int max_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(max_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs new file mode 100644 index 0000000..9f612b7 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(634833351)] + public class TLUpdateReadChannelOutbox : TLAbsUpdate + { + public override int Constructor + { + get + { + return 634833351; + } + } + + public int channel_id {get;set;} + public int max_id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); +max_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); +bw.Write(max_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs new file mode 100644 index 0000000..91038db --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1721631396)] + public class TLUpdateReadHistoryInbox : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1721631396; + } + } + + public TLAbsPeer peer {get;set;} + public int max_id {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +max_id = br.ReadInt32(); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(max_id); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs new file mode 100644 index 0000000..1fc526e --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(791617983)] + public class TLUpdateReadHistoryOutbox : TLAbsUpdate + { + public override int Constructor + { + get + { + return 791617983; + } + } + + public TLAbsPeer peer {get;set;} + public int max_id {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); +max_id = br.ReadInt32(); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer,bw); +bw.Write(max_id); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs new file mode 100644 index 0000000..63faf4c --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1757493555)] + public class TLUpdateReadMessagesContents : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1757493555; + } + } + + public TLVector messages {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + messages = (TLVector)ObjectUtils.DeserializeVector(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateSavedGifs.cs b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs new file mode 100644 index 0000000..b236193 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1821035490)] + public class TLUpdateSavedGifs : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1821035490; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateServiceNotification.cs b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs new file mode 100644 index 0000000..fead92c --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(942527460)] + public class TLUpdateServiceNotification : TLAbsUpdate + { + public override int Constructor + { + get + { + return 942527460; + } + } + + public string type {get;set;} + public string message {get;set;} + public TLAbsMessageMedia media {get;set;} + public bool popup {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + type = StringUtil.Deserialize(br); +message = StringUtil.Deserialize(br); +media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); +popup = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(type,bw); +StringUtil.Serialize(message,bw); +ObjectUtils.SerializeObject(media,bw); +BoolUtil.Serialize(popup,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateShort.cs b/TeleSharp.TL/TL/TLUpdateShort.cs new file mode 100644 index 0000000..96a9f47 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateShort.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2027216577)] + public class TLUpdateShort : TLAbsUpdates + { + public override int Constructor + { + get + { + return 2027216577; + } + } + + public TLAbsUpdate update {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + update = (TLAbsUpdate)ObjectUtils.DeserializeObject(br); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(update,bw); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs new file mode 100644 index 0000000..30062c9 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(377562760)] + public class TLUpdateShortChatMessage : TLAbsUpdates + { + public override int Constructor + { + get + { + return 377562760; + } + } + + public int flags {get;set;} + public bool @out {get;set;} + public bool mentioned {get;set;} + public bool media_unread {get;set;} + public bool silent {get;set;} + public int id {get;set;} + public int from_id {get;set;} + public int chat_id {get;set;} + public string message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + public int date {get;set;} + public TLMessageFwdHeader fwd_from {get;set;} + public int? via_bot_id {get;set;} + public int? reply_to_msg_id {get;set;} + public TLVector entities {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = @out ? (flags | 2) : (flags & ~2); +flags = mentioned ? (flags | 16) : (flags & ~16); +flags = media_unread ? (flags | 32) : (flags & ~32); +flags = silent ? (flags | 8192) : (flags & ~8192); +flags = fwd_from != null ? (flags | 4) : (flags & ~4); +flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); +flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); +flags = entities != null ? (flags | 128) : (flags & ~128); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +@out = (flags & 2) != 0; +mentioned = (flags & 16) != 0; +media_unread = (flags & 32) != 0; +silent = (flags & 8192) != 0; +id = br.ReadInt32(); +from_id = br.ReadInt32(); +chat_id = br.ReadInt32(); +message = StringUtil.Deserialize(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); +date = br.ReadInt32(); +if ((flags & 4) != 0) +fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); +else +fwd_from = null; + +if ((flags & 2048) != 0) +via_bot_id = br.ReadInt32(); +else +via_bot_id = null; + +if ((flags & 8) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +if ((flags & 128) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + +bw.Write(id); +bw.Write(from_id); +bw.Write(chat_id); +StringUtil.Serialize(message,bw); +bw.Write(pts); +bw.Write(pts_count); +bw.Write(date); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(fwd_from,bw); +if ((flags & 2048) != 0) +bw.Write(via_bot_id.Value); +if ((flags & 8) != 0) +bw.Write(reply_to_msg_id.Value); +if ((flags & 128) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateShortMessage.cs b/TeleSharp.TL/TL/TLUpdateShortMessage.cs new file mode 100644 index 0000000..af3cbfe --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateShortMessage.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1857044719)] + public class TLUpdateShortMessage : TLAbsUpdates + { + public override int Constructor + { + get + { + return -1857044719; + } + } + + public int flags {get;set;} + public bool @out {get;set;} + public bool mentioned {get;set;} + public bool media_unread {get;set;} + public bool silent {get;set;} + public int id {get;set;} + public int user_id {get;set;} + public string message {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + public int date {get;set;} + public TLMessageFwdHeader fwd_from {get;set;} + public int? via_bot_id {get;set;} + public int? reply_to_msg_id {get;set;} + public TLVector entities {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = @out ? (flags | 2) : (flags & ~2); +flags = mentioned ? (flags | 16) : (flags & ~16); +flags = media_unread ? (flags | 32) : (flags & ~32); +flags = silent ? (flags | 8192) : (flags & ~8192); +flags = fwd_from != null ? (flags | 4) : (flags & ~4); +flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); +flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); +flags = entities != null ? (flags | 128) : (flags & ~128); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +@out = (flags & 2) != 0; +mentioned = (flags & 16) != 0; +media_unread = (flags & 32) != 0; +silent = (flags & 8192) != 0; +id = br.ReadInt32(); +user_id = br.ReadInt32(); +message = StringUtil.Deserialize(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); +date = br.ReadInt32(); +if ((flags & 4) != 0) +fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); +else +fwd_from = null; + +if ((flags & 2048) != 0) +via_bot_id = br.ReadInt32(); +else +via_bot_id = null; + +if ((flags & 8) != 0) +reply_to_msg_id = br.ReadInt32(); +else +reply_to_msg_id = null; + +if ((flags & 128) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + +bw.Write(id); +bw.Write(user_id); +StringUtil.Serialize(message,bw); +bw.Write(pts); +bw.Write(pts_count); +bw.Write(date); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(fwd_from,bw); +if ((flags & 2048) != 0) +bw.Write(via_bot_id.Value); +if ((flags & 8) != 0) +bw.Write(reply_to_msg_id.Value); +if ((flags & 128) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs new file mode 100644 index 0000000..62ebdf5 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(301019932)] + public class TLUpdateShortSentMessage : TLAbsUpdates + { + public override int Constructor + { + get + { + return 301019932; + } + } + + public int flags {get;set;} + public bool @out {get;set;} + public int id {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + public int date {get;set;} + public TLAbsMessageMedia media {get;set;} + public TLVector entities {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = @out ? (flags | 2) : (flags & ~2); +flags = media != null ? (flags | 512) : (flags & ~512); +flags = entities != null ? (flags | 128) : (flags & ~128); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +@out = (flags & 2) != 0; +id = br.ReadInt32(); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); +date = br.ReadInt32(); +if ((flags & 512) != 0) +media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); +else +media = null; + +if ((flags & 128) != 0) +entities = (TLVector)ObjectUtils.DeserializeVector(br); +else +entities = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(id); +bw.Write(pts); +bw.Write(pts_count); +bw.Write(date); +if ((flags & 512) != 0) +ObjectUtils.SerializeObject(media,bw); +if ((flags & 128) != 0) +ObjectUtils.SerializeObject(entities,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateStickerSets.cs b/TeleSharp.TL/TL/TLUpdateStickerSets.cs new file mode 100644 index 0000000..10947da --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateStickerSets.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1135492588)] + public class TLUpdateStickerSets : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1135492588; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs new file mode 100644 index 0000000..94f82e7 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-253774767)] + public class TLUpdateStickerSetsOrder : TLAbsUpdate + { + public override int Constructor + { + get + { + return -253774767; + } + } + + public TLVector order {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + order = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(order,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserBlocked.cs b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs new file mode 100644 index 0000000..9833b02 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2131957734)] + public class TLUpdateUserBlocked : TLAbsUpdate + { + public override int Constructor + { + get + { + return -2131957734; + } + } + + public int user_id {get;set;} + public bool blocked {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +blocked = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +BoolUtil.Serialize(blocked,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserName.cs b/TeleSharp.TL/TL/TLUpdateUserName.cs new file mode 100644 index 0000000..20db403 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserName.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1489818765)] + public class TLUpdateUserName : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1489818765; + } + } + + public int user_id {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public string username {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +first_name = StringUtil.Deserialize(br); +last_name = StringUtil.Deserialize(br); +username = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +StringUtil.Serialize(first_name,bw); +StringUtil.Serialize(last_name,bw); +StringUtil.Serialize(username,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserPhone.cs b/TeleSharp.TL/TL/TLUpdateUserPhone.cs new file mode 100644 index 0000000..56c7a79 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserPhone.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(314130811)] + public class TLUpdateUserPhone : TLAbsUpdate + { + public override int Constructor + { + get + { + return 314130811; + } + } + + public int user_id {get;set;} + public string phone {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +phone = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +StringUtil.Serialize(phone,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserPhoto.cs b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs new file mode 100644 index 0000000..f57bea5 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1791935732)] + public class TLUpdateUserPhoto : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1791935732; + } + } + + public int user_id {get;set;} + public int date {get;set;} + public TLAbsUserProfilePhoto photo {get;set;} + public bool previous {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +date = br.ReadInt32(); +photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); +previous = BoolUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +bw.Write(date); +ObjectUtils.SerializeObject(photo,bw); +BoolUtil.Serialize(previous,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserStatus.cs b/TeleSharp.TL/TL/TLUpdateUserStatus.cs new file mode 100644 index 0000000..ec24cf8 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserStatus.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(469489699)] + public class TLUpdateUserStatus : TLAbsUpdate + { + public override int Constructor + { + get + { + return 469489699; + } + } + + public int user_id {get;set;} + public TLAbsUserStatus status {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +ObjectUtils.SerializeObject(status,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateUserTyping.cs b/TeleSharp.TL/TL/TLUpdateUserTyping.cs new file mode 100644 index 0000000..592d960 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateUserTyping.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1548249383)] + public class TLUpdateUserTyping : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1548249383; + } + } + + public int user_id {get;set;} + public TLAbsSendMessageAction action {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = br.ReadInt32(); +action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(user_id); +ObjectUtils.SerializeObject(action,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateWebPage.cs b/TeleSharp.TL/TL/TLUpdateWebPage.cs new file mode 100644 index 0000000..a98f3d6 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateWebPage.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2139689491)] + public class TLUpdateWebPage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 2139689491; + } + } + + public TLAbsWebPage webpage {get;set;} + public int pts {get;set;} + public int pts_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(webpage,bw); +bw.Write(pts); +bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdates.cs b/TeleSharp.TL/TL/TLUpdates.cs new file mode 100644 index 0000000..b6ee06a --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdates.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1957577280)] + public class TLUpdates : TLAbsUpdates + { + public override int Constructor + { + get + { + return 1957577280; + } + } + + public TLVector updates {get;set;} + public TLVector users {get;set;} + public TLVector chats {get;set;} + public int date {get;set;} + public int seq {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + updates = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +date = br.ReadInt32(); +seq = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(updates,bw); +ObjectUtils.SerializeObject(users,bw); +ObjectUtils.SerializeObject(chats,bw); +bw.Write(date); +bw.Write(seq); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdatesCombined.cs b/TeleSharp.TL/TL/TLUpdatesCombined.cs new file mode 100644 index 0000000..bb03ead --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdatesCombined.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1918567619)] + public class TLUpdatesCombined : TLAbsUpdates + { + public override int Constructor + { + get + { + return 1918567619; + } + } + + public TLVector updates {get;set;} + public TLVector users {get;set;} + public TLVector chats {get;set;} + public int date {get;set;} + public int seq_start {get;set;} + public int seq {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + updates = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +date = br.ReadInt32(); +seq_start = br.ReadInt32(); +seq = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(updates,bw); +ObjectUtils.SerializeObject(users,bw); +ObjectUtils.SerializeObject(chats,bw); +bw.Write(date); +bw.Write(seq_start); +bw.Write(seq); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdatesTooLong.cs b/TeleSharp.TL/TL/TLUpdatesTooLong.cs new file mode 100644 index 0000000..28da140 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdatesTooLong.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-484987010)] + public class TLUpdatesTooLong : TLAbsUpdates + { + public override int Constructor + { + get + { + return -484987010; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUser.cs b/TeleSharp.TL/TL/TLUser.cs new file mode 100644 index 0000000..66712c8 --- /dev/null +++ b/TeleSharp.TL/TL/TLUser.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-787638374)] + public class TLUser : TLAbsUser + { + public override int Constructor + { + get + { + return -787638374; + } + } + + public int flags {get;set;} + public bool self {get;set;} + public bool contact {get;set;} + public bool mutual_contact {get;set;} + public bool deleted {get;set;} + public bool bot {get;set;} + public bool bot_chat_history {get;set;} + public bool bot_nochats {get;set;} + public bool verified {get;set;} + public bool restricted {get;set;} + public bool min {get;set;} + public bool bot_inline_geo {get;set;} + public int id {get;set;} + public long? access_hash {get;set;} + public string first_name {get;set;} + public string last_name {get;set;} + public string username {get;set;} + public string phone {get;set;} + public TLAbsUserProfilePhoto photo {get;set;} + public TLAbsUserStatus status {get;set;} + public int? bot_info_version {get;set;} + public string restriction_reason {get;set;} + public string bot_inline_placeholder {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = self ? (flags | 1024) : (flags & ~1024); +flags = contact ? (flags | 2048) : (flags & ~2048); +flags = mutual_contact ? (flags | 4096) : (flags & ~4096); +flags = deleted ? (flags | 8192) : (flags & ~8192); +flags = bot ? (flags | 16384) : (flags & ~16384); +flags = bot_chat_history ? (flags | 32768) : (flags & ~32768); +flags = bot_nochats ? (flags | 65536) : (flags & ~65536); +flags = verified ? (flags | 131072) : (flags & ~131072); +flags = restricted ? (flags | 262144) : (flags & ~262144); +flags = min ? (flags | 1048576) : (flags & ~1048576); +flags = bot_inline_geo ? (flags | 2097152) : (flags & ~2097152); +flags = access_hash != null ? (flags | 1) : (flags & ~1); +flags = first_name != null ? (flags | 2) : (flags & ~2); +flags = last_name != null ? (flags | 4) : (flags & ~4); +flags = username != null ? (flags | 8) : (flags & ~8); +flags = phone != null ? (flags | 16) : (flags & ~16); +flags = photo != null ? (flags | 32) : (flags & ~32); +flags = status != null ? (flags | 64) : (flags & ~64); +flags = bot_info_version != null ? (flags | 16384) : (flags & ~16384); +flags = restriction_reason != null ? (flags | 262144) : (flags & ~262144); +flags = bot_inline_placeholder != null ? (flags | 524288) : (flags & ~524288); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +self = (flags & 1024) != 0; +contact = (flags & 2048) != 0; +mutual_contact = (flags & 4096) != 0; +deleted = (flags & 8192) != 0; +bot = (flags & 16384) != 0; +bot_chat_history = (flags & 32768) != 0; +bot_nochats = (flags & 65536) != 0; +verified = (flags & 131072) != 0; +restricted = (flags & 262144) != 0; +min = (flags & 1048576) != 0; +bot_inline_geo = (flags & 2097152) != 0; +id = br.ReadInt32(); +if ((flags & 1) != 0) +access_hash = br.ReadInt64(); +else +access_hash = null; + +if ((flags & 2) != 0) +first_name = StringUtil.Deserialize(br); +else +first_name = null; + +if ((flags & 4) != 0) +last_name = StringUtil.Deserialize(br); +else +last_name = null; + +if ((flags & 8) != 0) +username = StringUtil.Deserialize(br); +else +username = null; + +if ((flags & 16) != 0) +phone = StringUtil.Deserialize(br); +else +phone = null; + +if ((flags & 32) != 0) +photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); +else +photo = null; + +if ((flags & 64) != 0) +status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); +else +status = null; + +if ((flags & 16384) != 0) +bot_info_version = br.ReadInt32(); +else +bot_info_version = null; + +if ((flags & 262144) != 0) +restriction_reason = StringUtil.Deserialize(br); +else +restriction_reason = null; + +if ((flags & 524288) != 0) +bot_inline_placeholder = StringUtil.Deserialize(br); +else +bot_inline_placeholder = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + + + + + + + + + + + +bw.Write(id); +if ((flags & 1) != 0) +bw.Write(access_hash.Value); +if ((flags & 2) != 0) +StringUtil.Serialize(first_name,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(last_name,bw); +if ((flags & 8) != 0) +StringUtil.Serialize(username,bw); +if ((flags & 16) != 0) +StringUtil.Serialize(phone,bw); +if ((flags & 32) != 0) +ObjectUtils.SerializeObject(photo,bw); +if ((flags & 64) != 0) +ObjectUtils.SerializeObject(status,bw); +if ((flags & 16384) != 0) +bw.Write(bot_info_version.Value); +if ((flags & 262144) != 0) +StringUtil.Serialize(restriction_reason,bw); +if ((flags & 524288) != 0) +StringUtil.Serialize(bot_inline_placeholder,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserEmpty.cs b/TeleSharp.TL/TL/TLUserEmpty.cs new file mode 100644 index 0000000..1e311d2 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(537022650)] + public class TLUserEmpty : TLAbsUser + { + public override int Constructor + { + get + { + return 537022650; + } + } + + public int id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserFull.cs b/TeleSharp.TL/TL/TLUserFull.cs new file mode 100644 index 0000000..fc1717d --- /dev/null +++ b/TeleSharp.TL/TL/TLUserFull.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1496513539)] + public class TLUserFull : TLObject + { + public override int Constructor + { + get + { + return 1496513539; + } + } + + public int flags {get;set;} + public bool blocked {get;set;} + public TLAbsUser user {get;set;} + public string about {get;set;} + public Contacts.TLLink link {get;set;} + public TLAbsPhoto profile_photo {get;set;} + public TLAbsPeerNotifySettings notify_settings {get;set;} + public TLBotInfo bot_info {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = blocked ? (flags | 1) : (flags & ~1); +flags = about != null ? (flags | 2) : (flags & ~2); +flags = profile_photo != null ? (flags | 4) : (flags & ~4); +flags = bot_info != null ? (flags | 8) : (flags & ~8); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +blocked = (flags & 1) != 0; +user = (TLAbsUser)ObjectUtils.DeserializeObject(br); +if ((flags & 2) != 0) +about = StringUtil.Deserialize(br); +else +about = null; + +link = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); +if ((flags & 4) != 0) +profile_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +else +profile_photo = null; + +notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); +if ((flags & 8) != 0) +bot_info = (TLBotInfo)ObjectUtils.DeserializeObject(br); +else +bot_info = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +ObjectUtils.SerializeObject(user,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(about,bw); +ObjectUtils.SerializeObject(link,bw); +if ((flags & 4) != 0) +ObjectUtils.SerializeObject(profile_photo,bw); +ObjectUtils.SerializeObject(notify_settings,bw); +if ((flags & 8) != 0) +ObjectUtils.SerializeObject(bot_info,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserProfilePhoto.cs b/TeleSharp.TL/TL/TLUserProfilePhoto.cs new file mode 100644 index 0000000..717a2df --- /dev/null +++ b/TeleSharp.TL/TL/TLUserProfilePhoto.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-715532088)] + public class TLUserProfilePhoto : TLAbsUserProfilePhoto + { + public override int Constructor + { + get + { + return -715532088; + } + } + + public long photo_id {get;set;} + public TLAbsFileLocation photo_small {get;set;} + public TLAbsFileLocation photo_big {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + photo_id = br.ReadInt64(); +photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); +photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(photo_id); +ObjectUtils.SerializeObject(photo_small,bw); +ObjectUtils.SerializeObject(photo_big,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs new file mode 100644 index 0000000..126cfd3 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1326562017)] + public class TLUserProfilePhotoEmpty : TLAbsUserProfilePhoto + { + public override int Constructor + { + get + { + return 1326562017; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusEmpty.cs b/TeleSharp.TL/TL/TLUserStatusEmpty.cs new file mode 100644 index 0000000..1fe6b96 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(164646985)] + public class TLUserStatusEmpty : TLAbsUserStatus + { + public override int Constructor + { + get + { + return 164646985; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusLastMonth.cs b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs new file mode 100644 index 0000000..504440f --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2011940674)] + public class TLUserStatusLastMonth : TLAbsUserStatus + { + public override int Constructor + { + get + { + return 2011940674; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusLastWeek.cs b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs new file mode 100644 index 0000000..ad6be60 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(129960444)] + public class TLUserStatusLastWeek : TLAbsUserStatus + { + public override int Constructor + { + get + { + return 129960444; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusOffline.cs b/TeleSharp.TL/TL/TLUserStatusOffline.cs new file mode 100644 index 0000000..92c2f87 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusOffline.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(9203775)] + public class TLUserStatusOffline : TLAbsUserStatus + { + public override int Constructor + { + get + { + return 9203775; + } + } + + public int was_online {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + was_online = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(was_online); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusOnline.cs b/TeleSharp.TL/TL/TLUserStatusOnline.cs new file mode 100644 index 0000000..6cfbf1f --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusOnline.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-306628279)] + public class TLUserStatusOnline : TLAbsUserStatus + { + public override int Constructor + { + get + { + return -306628279; + } + } + + public int expires {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + expires = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(expires); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUserStatusRecently.cs b/TeleSharp.TL/TL/TLUserStatusRecently.cs new file mode 100644 index 0000000..1011953 --- /dev/null +++ b/TeleSharp.TL/TL/TLUserStatusRecently.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-496024847)] + public class TLUserStatusRecently : TLAbsUserStatus + { + public override int Constructor + { + get + { + return -496024847; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWallPaper.cs b/TeleSharp.TL/TL/TLWallPaper.cs new file mode 100644 index 0000000..b53bb23 --- /dev/null +++ b/TeleSharp.TL/TL/TLWallPaper.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-860866985)] + public class TLWallPaper : TLAbsWallPaper + { + public override int Constructor + { + get + { + return -860866985; + } + } + + public int id {get;set;} + public string title {get;set;} + public TLVector sizes {get;set;} + public int color {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +title = StringUtil.Deserialize(br); +sizes = (TLVector)ObjectUtils.DeserializeVector(br); +color = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +StringUtil.Serialize(title,bw); +ObjectUtils.SerializeObject(sizes,bw); +bw.Write(color); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWallPaperSolid.cs b/TeleSharp.TL/TL/TLWallPaperSolid.cs new file mode 100644 index 0000000..42ceedf --- /dev/null +++ b/TeleSharp.TL/TL/TLWallPaperSolid.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1662091044)] + public class TLWallPaperSolid : TLAbsWallPaper + { + public override int Constructor + { + get + { + return 1662091044; + } + } + + public int id {get;set;} + public string title {get;set;} + public int bg_color {get;set;} + public int color {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt32(); +title = StringUtil.Deserialize(br); +bg_color = br.ReadInt32(); +color = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +StringUtil.Serialize(title,bw); +bw.Write(bg_color); +bw.Write(color); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWebPage.cs b/TeleSharp.TL/TL/TLWebPage.cs new file mode 100644 index 0000000..570a05a --- /dev/null +++ b/TeleSharp.TL/TL/TLWebPage.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-897446185)] + public class TLWebPage : TLAbsWebPage + { + public override int Constructor + { + get + { + return -897446185; + } + } + + public int flags {get;set;} + public long id {get;set;} + public string url {get;set;} + public string display_url {get;set;} + public string type {get;set;} + public string site_name {get;set;} + public string title {get;set;} + public string description {get;set;} + public TLAbsPhoto photo {get;set;} + public string embed_url {get;set;} + public string embed_type {get;set;} + public int? embed_width {get;set;} + public int? embed_height {get;set;} + public int? duration {get;set;} + public string author {get;set;} + public TLAbsDocument document {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = type != null ? (flags | 1) : (flags & ~1); +flags = site_name != null ? (flags | 2) : (flags & ~2); +flags = title != null ? (flags | 4) : (flags & ~4); +flags = description != null ? (flags | 8) : (flags & ~8); +flags = photo != null ? (flags | 16) : (flags & ~16); +flags = embed_url != null ? (flags | 32) : (flags & ~32); +flags = embed_type != null ? (flags | 32) : (flags & ~32); +flags = embed_width != null ? (flags | 64) : (flags & ~64); +flags = embed_height != null ? (flags | 64) : (flags & ~64); +flags = duration != null ? (flags | 128) : (flags & ~128); +flags = author != null ? (flags | 256) : (flags & ~256); +flags = document != null ? (flags | 512) : (flags & ~512); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +id = br.ReadInt64(); +url = StringUtil.Deserialize(br); +display_url = StringUtil.Deserialize(br); +if ((flags & 1) != 0) +type = StringUtil.Deserialize(br); +else +type = null; + +if ((flags & 2) != 0) +site_name = StringUtil.Deserialize(br); +else +site_name = null; + +if ((flags & 4) != 0) +title = StringUtil.Deserialize(br); +else +title = null; + +if ((flags & 8) != 0) +description = StringUtil.Deserialize(br); +else +description = null; + +if ((flags & 16) != 0) +photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); +else +photo = null; + +if ((flags & 32) != 0) +embed_url = StringUtil.Deserialize(br); +else +embed_url = null; + +if ((flags & 32) != 0) +embed_type = StringUtil.Deserialize(br); +else +embed_type = null; + +if ((flags & 64) != 0) +embed_width = br.ReadInt32(); +else +embed_width = null; + +if ((flags & 64) != 0) +embed_height = br.ReadInt32(); +else +embed_height = null; + +if ((flags & 128) != 0) +duration = br.ReadInt32(); +else +duration = null; + +if ((flags & 256) != 0) +author = StringUtil.Deserialize(br); +else +author = null; + +if ((flags & 512) != 0) +document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); +else +document = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); +bw.Write(id); +StringUtil.Serialize(url,bw); +StringUtil.Serialize(display_url,bw); +if ((flags & 1) != 0) +StringUtil.Serialize(type,bw); +if ((flags & 2) != 0) +StringUtil.Serialize(site_name,bw); +if ((flags & 4) != 0) +StringUtil.Serialize(title,bw); +if ((flags & 8) != 0) +StringUtil.Serialize(description,bw); +if ((flags & 16) != 0) +ObjectUtils.SerializeObject(photo,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(embed_url,bw); +if ((flags & 32) != 0) +StringUtil.Serialize(embed_type,bw); +if ((flags & 64) != 0) +bw.Write(embed_width.Value); +if ((flags & 64) != 0) +bw.Write(embed_height.Value); +if ((flags & 128) != 0) +bw.Write(duration.Value); +if ((flags & 256) != 0) +StringUtil.Serialize(author,bw); +if ((flags & 512) != 0) +ObjectUtils.SerializeObject(document,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWebPageEmpty.cs b/TeleSharp.TL/TL/TLWebPageEmpty.cs new file mode 100644 index 0000000..b485b95 --- /dev/null +++ b/TeleSharp.TL/TL/TLWebPageEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-350980120)] + public class TLWebPageEmpty : TLAbsWebPage + { + public override int Constructor + { + get + { + return -350980120; + } + } + + public long id {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWebPagePending.cs b/TeleSharp.TL/TL/TLWebPagePending.cs new file mode 100644 index 0000000..7829b94 --- /dev/null +++ b/TeleSharp.TL/TL/TLWebPagePending.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-981018084)] + public class TLWebPagePending : TLAbsWebPage + { + public override int Constructor + { + get + { + return -981018084; + } + } + + public long id {get;set;} + public int date {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); +date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); +bw.Write(date); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs new file mode 100644 index 0000000..ca3c10a --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + public abstract class TLAbsChannelDifference : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Updates/TLAbsDifference.cs b/TeleSharp.TL/TL/Updates/TLAbsDifference.cs new file mode 100644 index 0000000..10807ea --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLAbsDifference.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + public abstract class TLAbsDifference : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs new file mode 100644 index 0000000..f014882 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(543450958)] + public class TLChannelDifference : TLAbsChannelDifference + { + public override int Constructor + { + get + { + return 543450958; + } + } + + public int flags {get;set;} + public bool final {get;set;} + public int pts {get;set;} + public int? timeout {get;set;} + public TLVector new_messages {get;set;} + public TLVector other_updates {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = final ? (flags | 1) : (flags & ~1); +flags = timeout != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +final = (flags & 1) != 0; +pts = br.ReadInt32(); +if ((flags & 2) != 0) +timeout = br.ReadInt32(); +else +timeout = null; + +new_messages = (TLVector)ObjectUtils.DeserializeVector(br); +other_updates = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(pts); +if ((flags & 2) != 0) +bw.Write(timeout.Value); +ObjectUtils.SerializeObject(new_messages,bw); +ObjectUtils.SerializeObject(other_updates,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs new file mode 100644 index 0000000..57cd74d --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(1041346555)] + public class TLChannelDifferenceEmpty : TLAbsChannelDifference + { + public override int Constructor + { + get + { + return 1041346555; + } + } + + public int flags {get;set;} + public bool final {get;set;} + public int pts {get;set;} + public int? timeout {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = final ? (flags | 1) : (flags & ~1); +flags = timeout != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +final = (flags & 1) != 0; +pts = br.ReadInt32(); +if ((flags & 2) != 0) +timeout = br.ReadInt32(); +else +timeout = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(pts); +if ((flags & 2) != 0) +bw.Write(timeout.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs new file mode 100644 index 0000000..a869024 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(1091431943)] + public class TLChannelDifferenceTooLong : TLAbsChannelDifference + { + public override int Constructor + { + get + { + return 1091431943; + } + } + + public int flags {get;set;} + public bool final {get;set;} + public int pts {get;set;} + public int? timeout {get;set;} + public int top_message {get;set;} + public int read_inbox_max_id {get;set;} + public int read_outbox_max_id {get;set;} + public int unread_count {get;set;} + public TLVector messages {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + + + public void ComputeFlags() + { + flags = 0; +flags = final ? (flags | 1) : (flags & ~1); +flags = timeout != null ? (flags | 2) : (flags & ~2); + + } + + public override void DeserializeBody(BinaryReader br) + { + flags = br.ReadInt32(); +final = (flags & 1) != 0; +pts = br.ReadInt32(); +if ((flags & 2) != 0) +timeout = br.ReadInt32(); +else +timeout = null; + +top_message = br.ReadInt32(); +read_inbox_max_id = br.ReadInt32(); +read_outbox_max_id = br.ReadInt32(); +unread_count = br.ReadInt32(); +messages = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); +bw.Write(flags); + +bw.Write(pts); +if ((flags & 2) != 0) +bw.Write(timeout.Value); +bw.Write(top_message); +bw.Write(read_inbox_max_id); +bw.Write(read_outbox_max_id); +bw.Write(unread_count); +ObjectUtils.SerializeObject(messages,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLDifference.cs b/TeleSharp.TL/TL/Updates/TLDifference.cs new file mode 100644 index 0000000..fd4401b --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLDifference.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(16030880)] + public class TLDifference : TLAbsDifference + { + public override int Constructor + { + get + { + return 16030880; + } + } + + public TLVector new_messages {get;set;} + public TLVector new_encrypted_messages {get;set;} + public TLVector other_updates {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + public Updates.TLState state {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + new_messages = (TLVector)ObjectUtils.DeserializeVector(br); +new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); +other_updates = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); +state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(new_messages,bw); +ObjectUtils.SerializeObject(new_encrypted_messages,bw); +ObjectUtils.SerializeObject(other_updates,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); +ObjectUtils.SerializeObject(state,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs new file mode 100644 index 0000000..bf42268 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(1567990072)] + public class TLDifferenceEmpty : TLAbsDifference + { + public override int Constructor + { + get + { + return 1567990072; + } + } + + public int date {get;set;} + public int seq {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + date = br.ReadInt32(); +seq = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(date); +bw.Write(seq); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs new file mode 100644 index 0000000..8468db7 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(-1459938943)] + public class TLDifferenceSlice : TLAbsDifference + { + public override int Constructor + { + get + { + return -1459938943; + } + } + + public TLVector new_messages {get;set;} + public TLVector new_encrypted_messages {get;set;} + public TLVector other_updates {get;set;} + public TLVector chats {get;set;} + public TLVector users {get;set;} + public Updates.TLState intermediate_state {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + new_messages = (TLVector)ObjectUtils.DeserializeVector(br); +new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); +other_updates = (TLVector)ObjectUtils.DeserializeVector(br); +chats = (TLVector)ObjectUtils.DeserializeVector(br); +users = (TLVector)ObjectUtils.DeserializeVector(br); +intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(new_messages,bw); +ObjectUtils.SerializeObject(new_encrypted_messages,bw); +ObjectUtils.SerializeObject(other_updates,bw); +ObjectUtils.SerializeObject(chats,bw); +ObjectUtils.SerializeObject(users,bw); +ObjectUtils.SerializeObject(intermediate_state,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs new file mode 100644 index 0000000..7d4e79b --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(-1154295872)] + public class TLRequestGetChannelDifference : TLMethod + { + public override int Constructor + { + get + { + return -1154295872; + } + } + + public TLAbsInputChannel channel {get;set;} + public TLAbsChannelMessagesFilter filter {get;set;} + public int pts {get;set;} + public int limit {get;set;} + public Updates.TLAbsChannelDifference Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); +filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br); +pts = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel,bw); +ObjectUtils.SerializeObject(filter,bw); +bw.Write(pts); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs new file mode 100644 index 0000000..65b6318 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(168039573)] + public class TLRequestGetDifference : TLMethod + { + public override int Constructor + { + get + { + return 168039573; + } + } + + public int pts {get;set;} + public int date {get;set;} + public int qts {get;set;} + public Updates.TLAbsDifference Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + pts = br.ReadInt32(); +date = br.ReadInt32(); +qts = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(pts); +bw.Write(date); +bw.Write(qts); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetState.cs b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs new file mode 100644 index 0000000..5d80b7b --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(-304838614)] + public class TLRequestGetState : TLMethod + { + public override int Constructor + { + get + { + return -304838614; + } + } + + public Updates.TLState Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLState)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLState.cs b/TeleSharp.TL/TL/Updates/TLState.cs new file mode 100644 index 0000000..d287979 --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLState.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(-1519637954)] + public class TLState : TLObject + { + public override int Constructor + { + get + { + return -1519637954; + } + } + + public int pts {get;set;} + public int qts {get;set;} + public int date {get;set;} + public int seq {get;set;} + public int unread_count {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + pts = br.ReadInt32(); +qts = br.ReadInt32(); +date = br.ReadInt32(); +seq = br.ReadInt32(); +unread_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(pts); +bw.Write(qts); +bw.Write(date); +bw.Write(seq); +bw.Write(unread_count); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLFile.cs b/TeleSharp.TL/TL/Upload/TLFile.cs new file mode 100644 index 0000000..3cdd4cc --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLFile.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(157948117)] + public class TLFile : TLObject + { + public override int Constructor + { + get + { + return 157948117; + } + } + + public Storage.TLAbsFileType type {get;set;} + public int mtime {get;set;} + public byte[] bytes {get;set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br); +mtime = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(type,bw); +bw.Write(mtime); +BytesUtil.Serialize(bytes,bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs new file mode 100644 index 0000000..c34b8a0 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(-475607115)] + public class TLRequestGetFile : TLMethod + { + public override int Constructor + { + get + { + return -475607115; + } + } + + public TLAbsInputFileLocation location {get;set;} + public int offset {get;set;} + public int limit {get;set;} + public Upload.TLFile Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + location = (TLAbsInputFileLocation)ObjectUtils.DeserializeObject(br); +offset = br.ReadInt32(); +limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(location,bw); +bw.Write(offset); +bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Upload.TLFile)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs new file mode 100644 index 0000000..cb6c22f --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(-562337987)] + public class TLRequestSaveBigFilePart : TLMethod + { + public override int Constructor + { + get + { + return -562337987; + } + } + + public long file_id {get;set;} + public int file_part {get;set;} + public int file_total_parts {get;set;} + public byte[] bytes {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file_id = br.ReadInt64(); +file_part = br.ReadInt32(); +file_total_parts = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(file_id); +bw.Write(file_part); +bw.Write(file_total_parts); +BytesUtil.Serialize(bytes,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs new file mode 100644 index 0000000..86ce30a --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(-1291540959)] + public class TLRequestSaveFilePart : TLMethod + { + public override int Constructor + { + get + { + return -1291540959; + } + } + + public long file_id {get;set;} + public int file_part {get;set;} + public byte[] bytes {get;set;} + public bool Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file_id = br.ReadInt64(); +file_part = br.ReadInt32(); +bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(file_id); +bw.Write(file_part); +BytesUtil.Serialize(bytes,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs new file mode 100644 index 0000000..da2e0d6 --- /dev/null +++ b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Users +{ + [TLObject(-902781519)] + public class TLRequestGetFullUser : TLMethod + { + public override int Constructor + { + get + { + return -902781519; + } + } + + public TLAbsInputUser id {get;set;} + public TLUserFull Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLUserFull)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs new file mode 100644 index 0000000..4679594 --- /dev/null +++ b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Users +{ + [TLObject(227648840)] + public class TLRequestGetUsers : TLMethod + { + public override int Constructor + { + get + { + return 227648840; + } + } + + public TLVector id {get;set;} + public TLVector Response{ get; set;} + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(id,bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } + } +} diff --git a/TeleSharp.TL/TLContext.cs b/TeleSharp.TL/TLContext.cs new file mode 100644 index 0000000..db686aa --- /dev/null +++ b/TeleSharp.TL/TLContext.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public static class TLContext + { + private static Dictionary Types; + + public static void Init() + { + Types = new Dictionary(); + Types = (from t in Assembly.GetExecutingAssembly().GetTypes() + where t.IsClass && t.Namespace.StartsWith("TeleSharp.TL") + where t.IsSubclassOf(typeof(TLObject)) + where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null + select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x); + Types.Add(481674261, typeof(TLVector<>)); + } + public static Type getType(int Constructor) + { + return Types[Constructor]; + } + } +} diff --git a/TeleSharp.TL/TLMethod.cs b/TeleSharp.TL/TLMethod.cs new file mode 100644 index 0000000..7a44933 --- /dev/null +++ b/TeleSharp.TL/TLMethod.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLMethod : TLObject + { + + public abstract void deserializeResponse(BinaryReader stream); + #region MTPROTO + public long MessageId { get; set; } + public int Sequence { get; set; } + public bool Dirty { get; set; } + public bool Sended { get; private set; } + public DateTime SendTime { get; private set; } + public bool ConfirmReceived { get; set; } + public virtual bool Confirmed { get; } = true; + public virtual bool Responded { get; } = false; + + public virtual void OnSendSuccess() + { + SendTime = DateTime.Now; + Sended = true; + } + + public virtual void OnConfirm() + { + ConfirmReceived = true; + } + + public bool NeedResend + { + get + { + return Dirty || (Confirmed && !ConfirmReceived && DateTime.Now - SendTime > TimeSpan.FromSeconds(3)); + } + } + #endregion + + } +} diff --git a/TeleSharp.TL/TLObject.cs b/TeleSharp.TL/TLObject.cs new file mode 100644 index 0000000..3bc1476 --- /dev/null +++ b/TeleSharp.TL/TLObject.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public class TLObjectAttribute : Attribute + { + public int Constructor { get; private set; } + + public TLObjectAttribute(int Constructor) + { + this.Constructor = Constructor; + } + } + + public abstract class TLObject + { + public abstract int Constructor { get; } + public abstract void SerializeBody(BinaryWriter bw); + public abstract void DeserializeBody(BinaryReader br); + public byte[] Serialize() + { + using (MemoryStream m = new MemoryStream()) + using (BinaryWriter bw = new BinaryWriter(m)) + { + Serialize(bw); + bw.Close(); + m.Close(); + return m.GetBuffer(); + } + } + public void Serialize(BinaryWriter writer) + { + writer.Write(Constructor); + SerializeBody(writer); + } + public void Deserialize(BinaryReader reader) + { + int constructorId = reader.ReadInt32(); + if (constructorId != Constructor) + throw new InvalidDataException("Constructor Invalid"); + DeserializeBody(reader); + } + } +} diff --git a/TeleSharp.TL/TLUtils.cs b/TeleSharp.TL/TLUtils.cs new file mode 100644 index 0000000..f4c285b --- /dev/null +++ b/TeleSharp.TL/TLUtils.cs @@ -0,0 +1,181 @@ +using BigMath; +using BigMath.Utils; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public class IntegerUtil + { + public static int Deserialize(BinaryReader reader) + { + return reader.ReadInt32(); + } + + public static void Serialize(int src,BinaryWriter writer) + { + writer.Write(src); + } + } + public class BytesUtil + { + private static byte[] read(BinaryReader binaryReader) + { + byte firstByte = binaryReader.ReadByte(); + int len, padding; + if (firstByte == 254) + { + len = binaryReader.ReadByte() | (binaryReader.ReadByte() << 8) | (binaryReader.ReadByte() << 16); + padding = len % 4; + } + else { + len = firstByte; + padding = (len + 1) % 4; + } + + byte[] data = binaryReader.ReadBytes(len); + if (padding > 0) + { + padding = 4 - padding; + binaryReader.ReadBytes(padding); + } + + return data; + } + + private static BinaryWriter write(BinaryWriter binaryWriter, byte[] data) + { + int padding; + if (data.Length < 254) + { + padding = (data.Length + 1) % 4; + if (padding != 0) + { + padding = 4 - padding; + } + + binaryWriter.Write((byte)data.Length); + binaryWriter.Write(data); + } + else { + padding = (data.Length) % 4; + if (padding != 0) + { + padding = 4 - padding; + } + + binaryWriter.Write((byte)254); + binaryWriter.Write((byte)(data.Length)); + binaryWriter.Write((byte)(data.Length >> 8)); + binaryWriter.Write((byte)(data.Length >> 16)); + binaryWriter.Write(data); + } + + + for (int i = 0; i < padding; i++) + { + binaryWriter.Write((byte)0); + } + + return binaryWriter; + } + public static byte[] Deserialize(BinaryReader reader) + { + return read(reader); + } + + public static void Serialize(byte[] src, BinaryWriter writer) + { + write(writer,src); + } + } + public class StringUtil + { + public static string Deserialize(BinaryReader reader) + { + byte[] data = BytesUtil.Deserialize(reader); + return Encoding.UTF8.GetString(data, 0, data.Length); + } + public static void Serialize(string src,BinaryWriter writer) + { + BytesUtil.Serialize(Encoding.UTF8.GetBytes(src), writer); + } + } + public class BoolUtil + { + public static bool Deserialize(BinaryReader reader) + { + var FalseCNumber = -1132882121; + var TrueCNumber = -1720552011; + var readed = reader.ReadInt32(); + if (readed == FalseCNumber) return false; + else if (readed == TrueCNumber) return true; + else throw new InvalidDataException(String.Format("Invalid Boolean Data : {0}", readed.ToString())); + } + public static void Serialize(bool src, BinaryWriter writer) + { + var FalseCNumber = -1132882121; + var TrueCNumber = -1720552011; + writer.Write(src ? TrueCNumber:FalseCNumber); + } + } + public class UIntUtil + { + public static uint Deserialize(BinaryReader reader) + { + return reader.ReadUInt32(); + } + public static void Serialize(uint src, BinaryWriter writer) + { + writer.Write(src); + } + } + public class DoubleUtil { + public static double Deserialize(BinaryReader reader) + { + return reader.ReadDouble(); + } + public static void Serialize(double src, BinaryWriter writer) + { + writer.Write(src); + } + } + public class LongUtil + { + public static long Deserialize(BinaryReader reader) + { + return reader.ReadInt64(); + } + public static void Serialize(long src, BinaryWriter writer) + { + writer.Write(src); + } + } + public class Int128Util + { + public static Int128 Deserialize(BinaryReader reader) + { + return reader.ReadBytes(16).ToInt128(0,true); + } + public static void Serialize(Int128 src, BinaryWriter writer) + { + writer.Write(src.ToBytes(true)); + } + } + public class Int256Util + { + public static Int256 Deserialize(BinaryReader reader) + { + return reader.ReadBytes(32).ToInt256(0, true); + } + public static void Serialize(Int256 src, BinaryWriter writer) + { + writer.Write(src.ToBytes(true)); + } + } +} diff --git a/TeleSharp.TL/TLVector.cs b/TeleSharp.TL/TLVector.cs new file mode 100644 index 0000000..9c67768 --- /dev/null +++ b/TeleSharp.TL/TLVector.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TeleSharp.TL +{ + public class TLVector : TLObject + { + [TLObject(481674261)] + public List lists = new List() ; + public override int Constructor + { + get + { + return 481674261; + } + } + + public override void DeserializeBody(BinaryReader br) + { + int count = br.ReadInt32(); + for(int i= 0;i< count;i++) + { + if (typeof(T) == typeof(int)) + { + lists.Add((T)Convert.ChangeType(br.ReadInt32(),typeof(T))); + } + else if (typeof(T)==typeof(long)) + { + lists.Add((T)Convert.ChangeType(br.ReadInt64(), typeof(T))); + } + else if (typeof(T) ==typeof(string)) + { + lists.Add((T)Convert.ChangeType(StringUtil.Deserialize(br), typeof(T))); + } + else if(typeof(T)==typeof(double)) + { + lists.Add((T)Convert.ChangeType(br.ReadDouble(), typeof(T))); + } + else if (typeof(T).BaseType == typeof(TLObject)) + { + int constructor = br.ReadInt32(); + object obj = Activator.CreateInstance(typeof(T)); + typeof(T).GetMethod("DeserializeBody").Invoke(obj, new object[] { br }); + lists.Add((T)Convert.ChangeType(obj,typeof(T))); + } + } + } + + public override void SerializeBody(BinaryWriter bw) + { + throw new NotImplementedException(); + } + } +} diff --git a/TeleSharp.TL/TeleSharp.TL.csproj b/TeleSharp.TL/TeleSharp.TL.csproj new file mode 100644 index 0000000..a7a5c2c --- /dev/null +++ b/TeleSharp.TL/TeleSharp.TL.csproj @@ -0,0 +1,745 @@ + + + + + Debug + AnyCPU + {D6144517-91D2-4880-86DF-E9FF5D7F383A} + Library + Properties + TeleSharp.TL + TeleSharp.TL + v4.5.2 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\BigMath.0.5.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\BigMath.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/TeleSharp.TL/packages.config b/TeleSharp.TL/packages.config new file mode 100644 index 0000000..cde6ccb --- /dev/null +++ b/TeleSharp.TL/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file