From 341f7320dc89ce96795307c59814c0ff5175dc21 Mon Sep 17 00:00:00 2001 From: ghost1372 Date: Sun, 24 Sep 2017 11:49:06 +0330 Subject: [PATCH] Cleaned Codes and Removed UnUsed Usings --- TLSharp.Core/Auth/Authenticator.cs | 2 +- TLSharp.Core/Auth/Step1_PQRequest.cs | 2 +- TLSharp.Core/Auth/Step2_DHExchange.cs | 3 +- TLSharp.Core/Auth/Step3_CompleteDHExchange.cs | 5 +- TLSharp.Core/MTProto/Crypto/AES.cs | 9 +- TLSharp.Core/MTProto/Crypto/AuthKey.cs | 3 +- TLSharp.Core/MTProto/Crypto/BigInteger.cs | 141 +++- TLSharp.Core/MTProto/Crypto/Crc32.cs | 7 +- TLSharp.Core/MTProto/Crypto/Factorizator.cs | 13 +- TLSharp.Core/MTProto/Crypto/MD5Digest.cs | 15 +- TLSharp.Core/MTProto/Crypto/RSA.cs | 13 +- TLSharp.Core/MTProto/Crypto/Salt.cs | 6 +- TLSharp.Core/MTProto/Serializers.cs | 10 +- TLSharp.Core/Network/MtProtoPlainSender.cs | 4 +- TLSharp.Core/Network/MtProtoSender.cs | 26 +- TLSharp.Core/Network/TcpMessage.cs | 7 +- TLSharp.Core/Network/TcpTransport.cs | 7 +- TLSharp.Core/Properties/AssemblyInfo.cs | 13 +- TLSharp.Core/Requests/AckRequest.cs | 3 +- TLSharp.Core/Requests/PingRequest.cs | 4 +- TLSharp.Core/Session.cs | 8 +- TLSharp.Core/TelegramClient.cs | 787 +++++++++--------- TLSharp.Core/Utils/Helpers.cs | 2 +- TLSharp.Core/Utils/UploadHelper.cs | 3 +- TLSharp.Tests.NUnit/Test.cs | 8 +- TLSharp.Tests.VS/Properties/AssemblyInfo.cs | 13 +- TLSharp.Tests.VS/TLSharpTestsVs.cs | 9 +- TLSharp.Tests/Properties/AssemblyInfo.cs | 13 +- TLSharp.Tests/TLSharpTests.cs | 20 +- TLSharp.Tests/app.config | 14 +- TeleSharp.Generator/App.config | 6 +- TeleSharp.Generator/Models.cs | 26 +- TeleSharp.Generator/Program.cs | 101 ++- .../Properties/AssemblyInfo.cs | 13 +- TeleSharp.TL/ObjectDeserializer.cs | 18 +- TeleSharp.TL/Properties/AssemblyInfo.cs | 13 +- TeleSharp.TL/TL/Account/TLAbsPassword.cs | 9 +- TeleSharp.TL/TL/Account/TLAuthorizations.cs | 13 +- TeleSharp.TL/TL/Account/TLNoPassword.cs | 13 +- TeleSharp.TL/TL/Account/TLPassword.cs | 13 +- .../TL/Account/TLPasswordInputSettings.cs | 14 +- TeleSharp.TL/TL/Account/TLPasswordSettings.cs | 13 +- TeleSharp.TL/TL/Account/TLPrivacyRules.cs | 13 +- .../TL/Account/TLRequestChangePhone.cs | 15 +- .../TL/Account/TLRequestCheckUsername.cs | 15 +- .../TL/Account/TLRequestConfirmPhone.cs | 15 +- .../TL/Account/TLRequestDeleteAccount.cs | 15 +- .../TL/Account/TLRequestGetAccountTTL.cs | 15 +- .../TL/Account/TLRequestGetAuthorizations.cs | 15 +- .../TL/Account/TLRequestGetNotifySettings.cs | 15 +- .../TL/Account/TLRequestGetPassword.cs | 15 +- .../Account/TLRequestGetPasswordSettings.cs | 15 +- .../TL/Account/TLRequestGetPrivacy.cs | 15 +- .../TL/Account/TLRequestGetTmpPassword.cs | 15 +- .../TL/Account/TLRequestGetWallPapers.cs | 15 +- .../TL/Account/TLRequestRegisterDevice.cs | 15 +- .../TL/Account/TLRequestReportPeer.cs | 15 +- .../TL/Account/TLRequestResetAuthorization.cs | 15 +- .../Account/TLRequestResetNotifySettings.cs | 15 +- .../Account/TLRequestSendChangePhoneCode.cs | 16 +- .../Account/TLRequestSendConfirmPhoneCode.cs | 16 +- .../TL/Account/TLRequestSetAccountTTL.cs | 15 +- .../TL/Account/TLRequestSetPrivacy.cs | 15 +- .../TL/Account/TLRequestUnregisterDevice.cs | 15 +- .../TL/Account/TLRequestUpdateDeviceLocked.cs | 15 +- .../Account/TLRequestUpdateNotifySettings.cs | 15 +- .../TLRequestUpdatePasswordSettings.cs | 15 +- .../TL/Account/TLRequestUpdateProfile.cs | 16 +- .../TL/Account/TLRequestUpdateStatus.cs | 15 +- .../TL/Account/TLRequestUpdateUsername.cs | 15 +- TeleSharp.TL/TL/Account/TLTmpPassword.cs | 13 +- TeleSharp.TL/TL/Auth/TLAbsCodeType.cs | 9 +- TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs | 9 +- TeleSharp.TL/TL/Auth/TLAuthorization.cs | 13 +- TeleSharp.TL/TL/Auth/TLCheckedPhone.cs | 13 +- TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs | 14 +- TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs | 14 +- TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs | 14 +- .../TL/Auth/TLExportedAuthorization.cs | 13 +- TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs | 13 +- .../TL/Auth/TLRequestBindTempAuthKey.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs | 15 +- .../TL/Auth/TLRequestCheckPassword.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs | 15 +- .../TL/Auth/TLRequestDropTempAuthKeys.cs | 15 +- .../TL/Auth/TLRequestExportAuthorization.cs | 15 +- .../TL/Auth/TLRequestImportAuthorization.cs | 15 +- .../Auth/TLRequestImportBotAuthorization.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestLogOut.cs | 15 +- .../TL/Auth/TLRequestRecoverPassword.cs | 15 +- .../Auth/TLRequestRequestPasswordRecovery.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestResendCode.cs | 15 +- .../TL/Auth/TLRequestResetAuthorizations.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestSendCode.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestSignIn.cs | 15 +- TeleSharp.TL/TL/Auth/TLRequestSignUp.cs | 15 +- TeleSharp.TL/TL/Auth/TLSentCode.cs | 14 +- TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs | 13 +- TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs | 13 +- .../TL/Auth/TLSentCodeTypeFlashCall.cs | 13 +- TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs | 13 +- .../Bots/TLRequestAnswerWebhookJSONQuery.cs | 15 +- .../TL/Bots/TLRequestSendCustomRequest.cs | 15 +- .../TL/Channels/TLChannelParticipant.cs | 13 +- .../TL/Channels/TLChannelParticipants.cs | 13 +- .../TL/Channels/TLRequestCheckUsername.cs | 15 +- .../TL/Channels/TLRequestCreateChannel.cs | 16 +- .../TL/Channels/TLRequestDeleteChannel.cs | 15 +- .../TL/Channels/TLRequestDeleteMessages.cs | 15 +- .../TL/Channels/TLRequestDeleteUserHistory.cs | 15 +- .../TL/Channels/TLRequestEditAbout.cs | 15 +- .../TL/Channels/TLRequestEditAdmin.cs | 15 +- .../TL/Channels/TLRequestEditPhoto.cs | 15 +- .../TL/Channels/TLRequestEditTitle.cs | 15 +- .../TL/Channels/TLRequestExportInvite.cs | 15 +- .../TL/Channels/TLRequestExportMessageLink.cs | 15 +- .../TLRequestGetAdminedPublicChannels.cs | 15 +- .../TL/Channels/TLRequestGetChannels.cs | 15 +- .../TL/Channels/TLRequestGetFullChannel.cs | 15 +- .../TL/Channels/TLRequestGetMessages.cs | 15 +- .../TL/Channels/TLRequestGetParticipant.cs | 15 +- .../TL/Channels/TLRequestGetParticipants.cs | 15 +- .../TL/Channels/TLRequestInviteToChannel.cs | 15 +- .../TL/Channels/TLRequestJoinChannel.cs | 15 +- .../TL/Channels/TLRequestKickFromChannel.cs | 15 +- .../TL/Channels/TLRequestLeaveChannel.cs | 15 +- .../TL/Channels/TLRequestReadHistory.cs | 15 +- .../TL/Channels/TLRequestReportSpam.cs | 15 +- .../TL/Channels/TLRequestToggleInvites.cs | 15 +- .../TL/Channels/TLRequestToggleSignatures.cs | 15 +- .../Channels/TLRequestUpdatePinnedMessage.cs | 15 +- .../TL/Channels/TLRequestUpdateUsername.cs | 15 +- TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs | 9 +- TeleSharp.TL/TL/Contacts/TLAbsContacts.cs | 9 +- TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs | 9 +- TeleSharp.TL/TL/Contacts/TLBlocked.cs | 13 +- TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs | 13 +- TeleSharp.TL/TL/Contacts/TLContacts.cs | 13 +- .../TL/Contacts/TLContactsNotModified.cs | 14 +- TeleSharp.TL/TL/Contacts/TLFound.cs | 13 +- .../TL/Contacts/TLImportedContacts.cs | 13 +- TeleSharp.TL/TL/Contacts/TLLink.cs | 13 +- TeleSharp.TL/TL/Contacts/TLRequestBlock.cs | 15 +- .../TL/Contacts/TLRequestDeleteContact.cs | 15 +- .../TL/Contacts/TLRequestDeleteContacts.cs | 15 +- .../TL/Contacts/TLRequestExportCard.cs | 15 +- .../TL/Contacts/TLRequestGetBlocked.cs | 15 +- .../TL/Contacts/TLRequestGetContacts.cs | 15 +- .../TL/Contacts/TLRequestGetStatuses.cs | 15 +- .../TL/Contacts/TLRequestGetTopPeers.cs | 20 +- .../TL/Contacts/TLRequestImportCard.cs | 15 +- .../TL/Contacts/TLRequestImportContacts.cs | 15 +- .../Contacts/TLRequestResetTopPeerRating.cs | 15 +- .../TL/Contacts/TLRequestResolveUsername.cs | 15 +- TeleSharp.TL/TL/Contacts/TLRequestSearch.cs | 15 +- TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs | 15 +- TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs | 13 +- TeleSharp.TL/TL/Contacts/TLTopPeers.cs | 13 +- .../TL/Contacts/TLTopPeersNotModified.cs | 14 +- TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs | 9 +- TeleSharp.TL/TL/Help/TLAppUpdate.cs | 13 +- TeleSharp.TL/TL/Help/TLInviteText.cs | 13 +- TeleSharp.TL/TL/Help/TLNoAppUpdate.cs | 14 +- .../TL/Help/TLRequestGetAppChangelog.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestGetConfig.cs | 15 +- .../TL/Help/TLRequestGetInviteText.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestGetSupport.cs | 15 +- .../TL/Help/TLRequestGetTermsOfService.cs | 15 +- TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs | 15 +- .../TL/Help/TLRequestSetBotUpdatesStatus.cs | 15 +- TeleSharp.TL/TL/Help/TLSupport.cs | 13 +- TeleSharp.TL/TL/Help/TLTermsOfService.cs | 13 +- TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsChats.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsDialogs.cs | 9 +- .../TL/Messages/TLAbsFeaturedStickers.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsMessages.cs | 9 +- .../TL/Messages/TLAbsRecentStickers.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs | 9 +- .../TL/Messages/TLAbsSentEncryptedMessage.cs | 9 +- .../Messages/TLAbsStickerSetInstallResult.cs | 9 +- TeleSharp.TL/TL/Messages/TLAbsStickers.cs | 9 +- TeleSharp.TL/TL/Messages/TLAffectedHistory.cs | 13 +- .../TL/Messages/TLAffectedMessages.cs | 13 +- TeleSharp.TL/TL/Messages/TLAllStickers.cs | 13 +- .../TL/Messages/TLAllStickersNotModified.cs | 14 +- .../TL/Messages/TLArchivedStickers.cs | 13 +- .../TL/Messages/TLBotCallbackAnswer.cs | 14 +- TeleSharp.TL/TL/Messages/TLBotResults.cs | 13 +- TeleSharp.TL/TL/Messages/TLChannelMessages.cs | 13 +- TeleSharp.TL/TL/Messages/TLChatFull.cs | 13 +- TeleSharp.TL/TL/Messages/TLChats.cs | 13 +- TeleSharp.TL/TL/Messages/TLChatsSlice.cs | 13 +- TeleSharp.TL/TL/Messages/TLDhConfig.cs | 13 +- .../TL/Messages/TLDhConfigNotModified.cs | 13 +- TeleSharp.TL/TL/Messages/TLDialogs.cs | 13 +- TeleSharp.TL/TL/Messages/TLDialogsSlice.cs | 13 +- .../TL/Messages/TLFeaturedStickers.cs | 13 +- .../Messages/TLFeaturedStickersNotModified.cs | 14 +- TeleSharp.TL/TL/Messages/TLFoundGifs.cs | 13 +- TeleSharp.TL/TL/Messages/TLHighScores.cs | 13 +- TeleSharp.TL/TL/Messages/TLMessageEditData.cs | 14 +- TeleSharp.TL/TL/Messages/TLMessages.cs | 13 +- TeleSharp.TL/TL/Messages/TLMessagesSlice.cs | 13 +- TeleSharp.TL/TL/Messages/TLPeerDialogs.cs | 13 +- TeleSharp.TL/TL/Messages/TLRecentStickers.cs | 13 +- .../Messages/TLRecentStickersNotModified.cs | 14 +- .../TL/Messages/TLRequestAcceptEncryption.cs | 15 +- .../TL/Messages/TLRequestAddChatUser.cs | 15 +- .../TL/Messages/TLRequestCheckChatInvite.cs | 15 +- .../Messages/TLRequestClearRecentStickers.cs | 16 +- .../TL/Messages/TLRequestCreateChat.cs | 15 +- .../TL/Messages/TLRequestDeleteChatUser.cs | 15 +- .../TL/Messages/TLRequestDeleteHistory.cs | 15 +- .../TL/Messages/TLRequestDeleteMessages.cs | 15 +- .../TL/Messages/TLRequestDiscardEncryption.cs | 15 +- .../TL/Messages/TLRequestEditChatAdmin.cs | 15 +- .../TL/Messages/TLRequestEditChatPhoto.cs | 15 +- .../TL/Messages/TLRequestEditChatTitle.cs | 15 +- .../Messages/TLRequestEditInlineBotMessage.cs | 16 +- .../TL/Messages/TLRequestEditMessage.cs | 16 +- .../TL/Messages/TLRequestExportChatInvite.cs | 15 +- .../TL/Messages/TLRequestForwardMessage.cs | 15 +- .../TL/Messages/TLRequestForwardMessages.cs | 17 +- .../TL/Messages/TLRequestGetAllChats.cs | 15 +- .../TL/Messages/TLRequestGetAllDrafts.cs | 15 +- .../TL/Messages/TLRequestGetAllStickers.cs | 15 +- .../Messages/TLRequestGetArchivedStickers.cs | 15 +- .../Messages/TLRequestGetAttachedStickers.cs | 15 +- .../Messages/TLRequestGetBotCallbackAnswer.cs | 16 +- TeleSharp.TL/TL/Messages/TLRequestGetChats.cs | 15 +- .../TL/Messages/TLRequestGetCommonChats.cs | 15 +- .../TL/Messages/TLRequestGetDhConfig.cs | 15 +- .../TL/Messages/TLRequestGetDialogs.cs | 15 +- .../TL/Messages/TLRequestGetDocumentByHash.cs | 15 +- .../Messages/TLRequestGetFeaturedStickers.cs | 15 +- .../TL/Messages/TLRequestGetFullChat.cs | 15 +- .../TL/Messages/TLRequestGetGameHighScores.cs | 15 +- .../TL/Messages/TLRequestGetHistory.cs | 15 +- .../Messages/TLRequestGetInlineBotResults.cs | 15 +- .../TLRequestGetInlineGameHighScores.cs | 15 +- .../TL/Messages/TLRequestGetMaskStickers.cs | 15 +- .../Messages/TLRequestGetMessageEditData.cs | 15 +- .../TL/Messages/TLRequestGetMessages.cs | 15 +- .../TL/Messages/TLRequestGetMessagesViews.cs | 15 +- .../TL/Messages/TLRequestGetPeerDialogs.cs | 15 +- .../TL/Messages/TLRequestGetPeerSettings.cs | 15 +- .../TL/Messages/TLRequestGetPinnedDialogs.cs | 15 +- .../TL/Messages/TLRequestGetRecentStickers.cs | 15 +- .../TL/Messages/TLRequestGetSavedGifs.cs | 15 +- .../TL/Messages/TLRequestGetStickerSet.cs | 15 +- .../TL/Messages/TLRequestGetWebPage.cs | 15 +- .../TL/Messages/TLRequestGetWebPagePreview.cs | 15 +- .../TL/Messages/TLRequestHideReportSpam.cs | 15 +- .../TL/Messages/TLRequestImportChatInvite.cs | 15 +- .../TL/Messages/TLRequestInstallStickerSet.cs | 15 +- .../TL/Messages/TLRequestMigrateChat.cs | 15 +- .../Messages/TLRequestReadEncryptedHistory.cs | 15 +- .../Messages/TLRequestReadFeaturedStickers.cs | 15 +- .../TL/Messages/TLRequestReadHistory.cs | 15 +- .../Messages/TLRequestReadMessageContents.cs | 15 +- .../TL/Messages/TLRequestReceivedMessages.cs | 15 +- .../TL/Messages/TLRequestReceivedQueue.cs | 15 +- .../Messages/TLRequestReorderPinnedDialogs.cs | 15 +- .../Messages/TLRequestReorderStickerSets.cs | 15 +- .../Messages/TLRequestReportEncryptedSpam.cs | 15 +- .../TL/Messages/TLRequestReportSpam.cs | 15 +- .../TL/Messages/TLRequestRequestEncryption.cs | 15 +- .../TL/Messages/TLRequestSaveDraft.cs | 16 +- TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs | 15 +- .../TL/Messages/TLRequestSaveRecentSticker.cs | 15 +- TeleSharp.TL/TL/Messages/TLRequestSearch.cs | 15 +- .../TL/Messages/TLRequestSearchGifs.cs | 15 +- .../TL/Messages/TLRequestSearchGlobal.cs | 15 +- .../TL/Messages/TLRequestSendEncrypted.cs | 15 +- .../TL/Messages/TLRequestSendEncryptedFile.cs | 15 +- .../Messages/TLRequestSendEncryptedService.cs | 15 +- .../Messages/TLRequestSendInlineBotResult.cs | 17 +- .../TL/Messages/TLRequestSendMedia.cs | 18 +- .../TL/Messages/TLRequestSendMessage.cs | 19 +- .../Messages/TLRequestSetBotCallbackAnswer.cs | 15 +- .../TLRequestSetBotPrecheckoutResults.cs | 16 +- .../TLRequestSetBotShippingResults.cs | 16 +- .../Messages/TLRequestSetEncryptedTyping.cs | 15 +- .../TL/Messages/TLRequestSetGameScore.cs | 16 +- .../Messages/TLRequestSetInlineBotResults.cs | 17 +- .../Messages/TLRequestSetInlineGameScore.cs | 16 +- .../TL/Messages/TLRequestSetTyping.cs | 15 +- TeleSharp.TL/TL/Messages/TLRequestStartBot.cs | 15 +- .../TL/Messages/TLRequestToggleChatAdmins.cs | 15 +- .../TL/Messages/TLRequestToggleDialogPin.cs | 15 +- .../Messages/TLRequestUninstallStickerSet.cs | 15 +- .../TL/Messages/TLRequestUploadMedia.cs | 15 +- TeleSharp.TL/TL/Messages/TLSavedGifs.cs | 13 +- .../TL/Messages/TLSavedGifsNotModified.cs | 14 +- .../TL/Messages/TLSentEncryptedFile.cs | 13 +- .../TL/Messages/TLSentEncryptedMessage.cs | 13 +- TeleSharp.TL/TL/Messages/TLStickerSet.cs | 13 +- .../TLStickerSetInstallResultArchive.cs | 13 +- .../TLStickerSetInstallResultSuccess.cs | 14 +- TeleSharp.TL/TL/Messages/TLStickers.cs | 13 +- .../TL/Messages/TLStickersNotModified.cs | 14 +- .../TL/Payments/TLAbsPaymentResult.cs | 9 +- TeleSharp.TL/TL/Payments/TLPaymentForm.cs | 14 +- TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs | 13 +- TeleSharp.TL/TL/Payments/TLPaymentResult.cs | 13 +- .../TL/Payments/TLPaymentVerficationNeeded.cs | 13 +- .../TL/Payments/TLRequestClearSavedInfo.cs | 17 +- .../TL/Payments/TLRequestGetPaymentForm.cs | 15 +- .../TL/Payments/TLRequestGetPaymentReceipt.cs | 15 +- .../TL/Payments/TLRequestGetSavedInfo.cs | 15 +- .../TL/Payments/TLRequestSendPaymentForm.cs | 15 +- .../TLRequestValidateRequestedInfo.cs | 15 +- TeleSharp.TL/TL/Payments/TLSavedInfo.cs | 14 +- .../TL/Payments/TLValidatedRequestedInfo.cs | 14 +- TeleSharp.TL/TL/Phone/TLPhoneCall.cs | 13 +- TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs | 15 +- TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs | 15 +- TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs | 15 +- .../TL/Phone/TLRequestGetCallConfig.cs | 15 +- .../TL/Phone/TLRequestReceivedCall.cs | 15 +- TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs | 15 +- .../TL/Phone/TLRequestSaveCallDebug.cs | 15 +- .../TL/Phone/TLRequestSetCallRating.cs | 15 +- TeleSharp.TL/TL/Photos/TLAbsPhotos.cs | 9 +- TeleSharp.TL/TL/Photos/TLPhoto.cs | 13 +- TeleSharp.TL/TL/Photos/TLPhotos.cs | 13 +- TeleSharp.TL/TL/Photos/TLPhotosSlice.cs | 13 +- .../TL/Photos/TLRequestDeletePhotos.cs | 15 +- .../TL/Photos/TLRequestGetUserPhotos.cs | 15 +- .../TL/Photos/TLRequestUpdateProfilePhoto.cs | 15 +- .../TL/Photos/TLRequestUploadProfilePhoto.cs | 15 +- .../TL/Stickers/TLRequestAddStickerToSet.cs | 15 +- .../TLRequestChangeStickerPosition.cs | 15 +- .../TL/Stickers/TLRequestCreateStickerSet.cs | 15 +- .../Stickers/TLRequestRemoveStickerFromSet.cs | 15 +- TeleSharp.TL/TL/Storage/TLAbsFileType.cs | 9 +- TeleSharp.TL/TL/Storage/TLFileGif.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileJpeg.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileMov.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileMp3.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileMp4.cs | 14 +- TeleSharp.TL/TL/Storage/TLFilePartial.cs | 14 +- TeleSharp.TL/TL/Storage/TLFilePdf.cs | 14 +- TeleSharp.TL/TL/Storage/TLFilePng.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileUnknown.cs | 14 +- TeleSharp.TL/TL/Storage/TLFileWebp.cs | 14 +- TeleSharp.TL/TL/TLAbsBool.cs | 9 +- TeleSharp.TL/TL/TLAbsBotInlineMessage.cs | 9 +- TeleSharp.TL/TL/TLAbsBotInlineResult.cs | 9 +- TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs | 9 +- TeleSharp.TL/TL/TLAbsChannelParticipant.cs | 9 +- .../TL/TLAbsChannelParticipantRole.cs | 9 +- .../TL/TLAbsChannelParticipantsFilter.cs | 9 +- TeleSharp.TL/TL/TLAbsChat.cs | 9 +- TeleSharp.TL/TL/TLAbsChatFull.cs | 9 +- TeleSharp.TL/TL/TLAbsChatInvite.cs | 9 +- TeleSharp.TL/TL/TLAbsChatParticipant.cs | 9 +- TeleSharp.TL/TL/TLAbsChatParticipants.cs | 9 +- TeleSharp.TL/TL/TLAbsChatPhoto.cs | 9 +- TeleSharp.TL/TL/TLAbsContactLink.cs | 9 +- TeleSharp.TL/TL/TLAbsDocument.cs | 9 +- TeleSharp.TL/TL/TLAbsDocumentAttribute.cs | 9 +- TeleSharp.TL/TL/TLAbsDraftMessage.cs | 9 +- TeleSharp.TL/TL/TLAbsEncryptedChat.cs | 9 +- TeleSharp.TL/TL/TLAbsEncryptedFile.cs | 9 +- TeleSharp.TL/TL/TLAbsEncryptedMessage.cs | 9 +- TeleSharp.TL/TL/TLAbsExportedChatInvite.cs | 9 +- TeleSharp.TL/TL/TLAbsFileLocation.cs | 9 +- TeleSharp.TL/TL/TLAbsFoundGif.cs | 9 +- TeleSharp.TL/TL/TLAbsGeoPoint.cs | 9 +- TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs | 9 +- TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs | 9 +- TeleSharp.TL/TL/TLAbsInputChannel.cs | 9 +- TeleSharp.TL/TL/TLAbsInputChatPhoto.cs | 9 +- TeleSharp.TL/TL/TLAbsInputDocument.cs | 9 +- TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs | 9 +- TeleSharp.TL/TL/TLAbsInputFile.cs | 9 +- TeleSharp.TL/TL/TLAbsInputFileLocation.cs | 9 +- TeleSharp.TL/TL/TLAbsInputGame.cs | 9 +- TeleSharp.TL/TL/TLAbsInputGeoPoint.cs | 9 +- TeleSharp.TL/TL/TLAbsInputMedia.cs | 9 +- TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs | 9 +- .../TL/TLAbsInputPaymentCredentials.cs | 9 +- TeleSharp.TL/TL/TLAbsInputPeer.cs | 9 +- TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs | 9 +- TeleSharp.TL/TL/TLAbsInputPhoto.cs | 9 +- TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs | 9 +- TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs | 9 +- TeleSharp.TL/TL/TLAbsInputStickerSet.cs | 9 +- TeleSharp.TL/TL/TLAbsInputStickeredMedia.cs | 9 +- TeleSharp.TL/TL/TLAbsInputUser.cs | 9 +- TeleSharp.TL/TL/TLAbsKeyboardButton.cs | 9 +- TeleSharp.TL/TL/TLAbsMessage.cs | 9 +- TeleSharp.TL/TL/TLAbsMessageAction.cs | 9 +- TeleSharp.TL/TL/TLAbsMessageEntity.cs | 9 +- TeleSharp.TL/TL/TLAbsMessageMedia.cs | 9 +- TeleSharp.TL/TL/TLAbsMessagesFilter.cs | 9 +- TeleSharp.TL/TL/TLAbsNotifyPeer.cs | 9 +- TeleSharp.TL/TL/TLAbsPage.cs | 9 +- TeleSharp.TL/TL/TLAbsPageBlock.cs | 9 +- TeleSharp.TL/TL/TLAbsPeer.cs | 9 +- TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs | 9 +- TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs | 9 +- TeleSharp.TL/TL/TLAbsPhoneCall.cs | 9 +- .../TL/TLAbsPhoneCallDiscardReason.cs | 9 +- TeleSharp.TL/TL/TLAbsPhoto.cs | 9 +- TeleSharp.TL/TL/TLAbsPhotoSize.cs | 9 +- TeleSharp.TL/TL/TLAbsPrivacyKey.cs | 9 +- TeleSharp.TL/TL/TLAbsPrivacyRule.cs | 9 +- TeleSharp.TL/TL/TLAbsReplyMarkup.cs | 9 +- TeleSharp.TL/TL/TLAbsReportReason.cs | 9 +- TeleSharp.TL/TL/TLAbsRichText.cs | 9 +- TeleSharp.TL/TL/TLAbsSendMessageAction.cs | 9 +- TeleSharp.TL/TL/TLAbsStickerSetCovered.cs | 9 +- TeleSharp.TL/TL/TLAbsTopPeerCategory.cs | 9 +- TeleSharp.TL/TL/TLAbsUpdate.cs | 9 +- TeleSharp.TL/TL/TLAbsUpdates.cs | 9 +- TeleSharp.TL/TL/TLAbsUser.cs | 9 +- TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs | 9 +- TeleSharp.TL/TL/TLAbsUserStatus.cs | 9 +- TeleSharp.TL/TL/TLAbsWallPaper.cs | 9 +- TeleSharp.TL/TL/TLAbsWebPage.cs | 9 +- TeleSharp.TL/TL/TLAccountDaysTTL.cs | 13 +- TeleSharp.TL/TL/TLAuthorization.cs | 13 +- TeleSharp.TL/TL/TLBoolFalse.cs | 14 +- TeleSharp.TL/TL/TLBoolTrue.cs | 14 +- TeleSharp.TL/TL/TLBotCommand.cs | 13 +- TeleSharp.TL/TL/TLBotInfo.cs | 13 +- TeleSharp.TL/TL/TLBotInlineMediaResult.cs | 13 +- .../TL/TLBotInlineMessageMediaAuto.cs | 14 +- .../TL/TLBotInlineMessageMediaContact.cs | 14 +- TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs | 14 +- .../TL/TLBotInlineMessageMediaVenue.cs | 14 +- TeleSharp.TL/TL/TLBotInlineMessageText.cs | 14 +- TeleSharp.TL/TL/TLBotInlineResult.cs | 13 +- TeleSharp.TL/TL/TLCdnConfig.cs | 13 +- TeleSharp.TL/TL/TLCdnPublicKey.cs | 13 +- TeleSharp.TL/TL/TLChannel.cs | 25 +- TeleSharp.TL/TL/TLChannelForbidden.cs | 14 +- TeleSharp.TL/TL/TLChannelFull.cs | 15 +- TeleSharp.TL/TL/TLChannelMessagesFilter.cs | 13 +- .../TL/TLChannelMessagesFilterEmpty.cs | 14 +- TeleSharp.TL/TL/TLChannelParticipant.cs | 13 +- .../TL/TLChannelParticipantCreator.cs | 13 +- TeleSharp.TL/TL/TLChannelParticipantEditor.cs | 13 +- TeleSharp.TL/TL/TLChannelParticipantKicked.cs | 13 +- .../TL/TLChannelParticipantModerator.cs | 13 +- TeleSharp.TL/TL/TLChannelParticipantSelf.cs | 13 +- .../TL/TLChannelParticipantsAdmins.cs | 14 +- TeleSharp.TL/TL/TLChannelParticipantsBots.cs | 14 +- .../TL/TLChannelParticipantsKicked.cs | 14 +- .../TL/TLChannelParticipantsRecent.cs | 14 +- TeleSharp.TL/TL/TLChannelRoleEditor.cs | 14 +- TeleSharp.TL/TL/TLChannelRoleEmpty.cs | 14 +- TeleSharp.TL/TL/TLChannelRoleModerator.cs | 14 +- TeleSharp.TL/TL/TLChat.cs | 19 +- TeleSharp.TL/TL/TLChatEmpty.cs | 13 +- TeleSharp.TL/TL/TLChatForbidden.cs | 13 +- TeleSharp.TL/TL/TLChatFull.cs | 13 +- TeleSharp.TL/TL/TLChatInvite.cs | 17 +- TeleSharp.TL/TL/TLChatInviteAlready.cs | 13 +- TeleSharp.TL/TL/TLChatInviteEmpty.cs | 14 +- TeleSharp.TL/TL/TLChatInviteExported.cs | 13 +- TeleSharp.TL/TL/TLChatParticipant.cs | 13 +- TeleSharp.TL/TL/TLChatParticipantAdmin.cs | 13 +- TeleSharp.TL/TL/TLChatParticipantCreator.cs | 13 +- TeleSharp.TL/TL/TLChatParticipants.cs | 13 +- .../TL/TLChatParticipantsForbidden.cs | 14 +- TeleSharp.TL/TL/TLChatPhoto.cs | 13 +- TeleSharp.TL/TL/TLChatPhotoEmpty.cs | 14 +- TeleSharp.TL/TL/TLConfig.cs | 13 +- TeleSharp.TL/TL/TLContact.cs | 13 +- TeleSharp.TL/TL/TLContactBlocked.cs | 13 +- TeleSharp.TL/TL/TLContactLinkContact.cs | 14 +- TeleSharp.TL/TL/TLContactLinkHasPhone.cs | 14 +- TeleSharp.TL/TL/TLContactLinkNone.cs | 14 +- TeleSharp.TL/TL/TLContactLinkUnknown.cs | 14 +- TeleSharp.TL/TL/TLContactStatus.cs | 13 +- TeleSharp.TL/TL/TLDataJSON.cs | 13 +- TeleSharp.TL/TL/TLDcOption.cs | 16 +- TeleSharp.TL/TL/TLDialog.cs | 14 +- TeleSharp.TL/TL/TLDisabledFeature.cs | 13 +- TeleSharp.TL/TL/TLDocument.cs | 13 +- .../TL/TLDocumentAttributeAnimated.cs | 14 +- TeleSharp.TL/TL/TLDocumentAttributeAudio.cs | 14 +- .../TL/TLDocumentAttributeFilename.cs | 13 +- .../TL/TLDocumentAttributeHasStickers.cs | 14 +- .../TL/TLDocumentAttributeImageSize.cs | 13 +- TeleSharp.TL/TL/TLDocumentAttributeSticker.cs | 14 +- TeleSharp.TL/TL/TLDocumentAttributeVideo.cs | 13 +- TeleSharp.TL/TL/TLDocumentEmpty.cs | 13 +- TeleSharp.TL/TL/TLDraftMessage.cs | 13 +- TeleSharp.TL/TL/TLDraftMessageEmpty.cs | 14 +- TeleSharp.TL/TL/TLEncryptedChat.cs | 13 +- TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs | 13 +- TeleSharp.TL/TL/TLEncryptedChatEmpty.cs | 13 +- TeleSharp.TL/TL/TLEncryptedChatRequested.cs | 13 +- TeleSharp.TL/TL/TLEncryptedChatWaiting.cs | 13 +- TeleSharp.TL/TL/TLEncryptedFile.cs | 13 +- TeleSharp.TL/TL/TLEncryptedFileEmpty.cs | 14 +- TeleSharp.TL/TL/TLEncryptedMessage.cs | 13 +- TeleSharp.TL/TL/TLEncryptedMessageService.cs | 13 +- TeleSharp.TL/TL/TLError.cs | 13 +- TeleSharp.TL/TL/TLExportedMessageLink.cs | 13 +- TeleSharp.TL/TL/TLFileLocation.cs | 13 +- TeleSharp.TL/TL/TLFileLocationUnavailable.cs | 13 +- TeleSharp.TL/TL/TLFoundGif.cs | 13 +- TeleSharp.TL/TL/TLFoundGifCached.cs | 13 +- TeleSharp.TL/TL/TLGame.cs | 14 +- TeleSharp.TL/TL/TLGeoPoint.cs | 13 +- TeleSharp.TL/TL/TLGeoPointEmpty.cs | 14 +- TeleSharp.TL/TL/TLHighScore.cs | 13 +- TeleSharp.TL/TL/TLImportedContact.cs | 13 +- TeleSharp.TL/TL/TLInlineBotSwitchPM.cs | 13 +- TeleSharp.TL/TL/TLInputAppEvent.cs | 13 +- .../TL/TLInputBotInlineMessageGame.cs | 14 +- TeleSharp.TL/TL/TLInputBotInlineMessageID.cs | 13 +- .../TL/TLInputBotInlineMessageMediaAuto.cs | 14 +- .../TL/TLInputBotInlineMessageMediaContact.cs | 14 +- .../TL/TLInputBotInlineMessageMediaGeo.cs | 14 +- .../TL/TLInputBotInlineMessageMediaVenue.cs | 14 +- .../TL/TLInputBotInlineMessageText.cs | 14 +- TeleSharp.TL/TL/TLInputBotInlineResult.cs | 13 +- .../TL/TLInputBotInlineResultDocument.cs | 13 +- TeleSharp.TL/TL/TLInputBotInlineResultGame.cs | 13 +- .../TL/TLInputBotInlineResultPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputChannel.cs | 13 +- TeleSharp.TL/TL/TLInputChannelEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputChatPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputDocument.cs | 13 +- TeleSharp.TL/TL/TLInputDocumentEmpty.cs | 14 +- .../TL/TLInputDocumentFileLocation.cs | 13 +- TeleSharp.TL/TL/TLInputEncryptedChat.cs | 13 +- TeleSharp.TL/TL/TLInputEncryptedFile.cs | 13 +- .../TL/TLInputEncryptedFileBigUploaded.cs | 13 +- TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs | 14 +- .../TL/TLInputEncryptedFileLocation.cs | 13 +- .../TL/TLInputEncryptedFileUploaded.cs | 13 +- TeleSharp.TL/TL/TLInputFile.cs | 13 +- TeleSharp.TL/TL/TLInputFileBig.cs | 13 +- TeleSharp.TL/TL/TLInputFileLocation.cs | 13 +- TeleSharp.TL/TL/TLInputGameID.cs | 13 +- TeleSharp.TL/TL/TLInputGameShortName.cs | 13 +- TeleSharp.TL/TL/TLInputGeoPoint.cs | 13 +- TeleSharp.TL/TL/TLInputGeoPointEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputMediaContact.cs | 13 +- TeleSharp.TL/TL/TLInputMediaDocument.cs | 13 +- .../TL/TLInputMediaDocumentExternal.cs | 13 +- TeleSharp.TL/TL/TLInputMediaEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputMediaGame.cs | 13 +- TeleSharp.TL/TL/TLInputMediaGeoPoint.cs | 13 +- TeleSharp.TL/TL/TLInputMediaGifExternal.cs | 13 +- TeleSharp.TL/TL/TLInputMediaInvoice.cs | 13 +- TeleSharp.TL/TL/TLInputMediaPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs | 13 +- .../TL/TLInputMediaUploadedDocument.cs | 14 +- TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs | 14 +- .../TL/TLInputMediaUploadedThumbDocument.cs | 14 +- TeleSharp.TL/TL/TLInputMediaVenue.cs | 13 +- .../TL/TLInputMessageEntityMentionName.cs | 13 +- .../TL/TLInputMessagesFilterChatPhotos.cs | 14 +- .../TL/TLInputMessagesFilterDocument.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterGif.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs | 14 +- .../TL/TLInputMessagesFilterPhoneCalls.cs | 14 +- .../TL/TLInputMessagesFilterPhotoVideo.cs | 14 +- ...LInputMessagesFilterPhotoVideoDocuments.cs | 14 +- .../TL/TLInputMessagesFilterPhotos.cs | 14 +- .../TL/TLInputMessagesFilterRoundVideo.cs | 14 +- .../TL/TLInputMessagesFilterRoundVoice.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs | 14 +- TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs | 14 +- TeleSharp.TL/TL/TLInputNotifyAll.cs | 14 +- TeleSharp.TL/TL/TLInputNotifyChats.cs | 14 +- TeleSharp.TL/TL/TLInputNotifyPeer.cs | 13 +- TeleSharp.TL/TL/TLInputNotifyUsers.cs | 14 +- TeleSharp.TL/TL/TLInputPaymentCredentials.cs | 13 +- .../TL/TLInputPaymentCredentialsSaved.cs | 13 +- TeleSharp.TL/TL/TLInputPeerChannel.cs | 13 +- TeleSharp.TL/TL/TLInputPeerChat.cs | 13 +- TeleSharp.TL/TL/TLInputPeerEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs | 14 +- .../TL/TLInputPeerNotifyEventsEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputPeerNotifySettings.cs | 14 +- TeleSharp.TL/TL/TLInputPeerSelf.cs | 14 +- TeleSharp.TL/TL/TLInputPeerUser.cs | 13 +- TeleSharp.TL/TL/TLInputPhoneCall.cs | 13 +- TeleSharp.TL/TL/TLInputPhoneContact.cs | 13 +- TeleSharp.TL/TL/TLInputPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputPhotoEmpty.cs | 14 +- .../TL/TLInputPrivacyKeyChatInvite.cs | 14 +- TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs | 14 +- .../TL/TLInputPrivacyKeyStatusTimestamp.cs | 14 +- .../TL/TLInputPrivacyValueAllowAll.cs | 14 +- .../TL/TLInputPrivacyValueAllowContacts.cs | 14 +- .../TL/TLInputPrivacyValueAllowUsers.cs | 13 +- .../TL/TLInputPrivacyValueDisallowAll.cs | 14 +- .../TL/TLInputPrivacyValueDisallowContacts.cs | 14 +- .../TL/TLInputPrivacyValueDisallowUsers.cs | 13 +- TeleSharp.TL/TL/TLInputReportReasonOther.cs | 13 +- .../TL/TLInputReportReasonPornography.cs | 14 +- TeleSharp.TL/TL/TLInputReportReasonSpam.cs | 14 +- .../TL/TLInputReportReasonViolence.cs | 14 +- TeleSharp.TL/TL/TLInputStickerSetEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputStickerSetID.cs | 13 +- TeleSharp.TL/TL/TLInputStickerSetItem.cs | 14 +- TeleSharp.TL/TL/TLInputStickerSetShortName.cs | 13 +- .../TL/TLInputStickeredMediaDocument.cs | 13 +- TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs | 13 +- TeleSharp.TL/TL/TLInputUser.cs | 13 +- TeleSharp.TL/TL/TLInputUserEmpty.cs | 14 +- TeleSharp.TL/TL/TLInputUserSelf.cs | 14 +- TeleSharp.TL/TL/TLInputWebDocument.cs | 13 +- TeleSharp.TL/TL/TLInputWebFileLocation.cs | 13 +- TeleSharp.TL/TL/TLInvoice.cs | 18 +- TeleSharp.TL/TL/TLKeyboardButton.cs | 13 +- TeleSharp.TL/TL/TLKeyboardButtonBuy.cs | 13 +- TeleSharp.TL/TL/TLKeyboardButtonCallback.cs | 13 +- TeleSharp.TL/TL/TLKeyboardButtonGame.cs | 13 +- .../TL/TLKeyboardButtonRequestGeoLocation.cs | 13 +- .../TL/TLKeyboardButtonRequestPhone.cs | 13 +- TeleSharp.TL/TL/TLKeyboardButtonRow.cs | 13 +- .../TL/TLKeyboardButtonSwitchInline.cs | 13 +- TeleSharp.TL/TL/TLKeyboardButtonUrl.cs | 13 +- TeleSharp.TL/TL/TLLabeledPrice.cs | 13 +- TeleSharp.TL/TL/TLMaskCoords.cs | 13 +- TeleSharp.TL/TL/TLMessage.cs | 18 +- .../TL/TLMessageActionChannelCreate.cs | 13 +- .../TL/TLMessageActionChannelMigrateFrom.cs | 13 +- TeleSharp.TL/TL/TLMessageActionChatAddUser.cs | 13 +- TeleSharp.TL/TL/TLMessageActionChatCreate.cs | 13 +- .../TL/TLMessageActionChatDeletePhoto.cs | 14 +- .../TL/TLMessageActionChatDeleteUser.cs | 13 +- .../TL/TLMessageActionChatEditPhoto.cs | 13 +- .../TL/TLMessageActionChatEditTitle.cs | 13 +- .../TL/TLMessageActionChatJoinedByLink.cs | 13 +- .../TL/TLMessageActionChatMigrateTo.cs | 13 +- TeleSharp.TL/TL/TLMessageActionEmpty.cs | 14 +- TeleSharp.TL/TL/TLMessageActionGameScore.cs | 13 +- .../TL/TLMessageActionHistoryClear.cs | 14 +- TeleSharp.TL/TL/TLMessageActionPaymentSent.cs | 13 +- .../TL/TLMessageActionPaymentSentMe.cs | 13 +- TeleSharp.TL/TL/TLMessageActionPhoneCall.cs | 14 +- TeleSharp.TL/TL/TLMessageActionPinMessage.cs | 14 +- TeleSharp.TL/TL/TLMessageEmpty.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityBold.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityBotCommand.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityCode.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityEmail.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityHashtag.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityItalic.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityMention.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityMentionName.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityPre.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityTextUrl.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityUnknown.cs | 13 +- TeleSharp.TL/TL/TLMessageEntityUrl.cs | 13 +- TeleSharp.TL/TL/TLMessageFwdHeader.cs | 14 +- TeleSharp.TL/TL/TLMessageMediaContact.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaDocument.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaEmpty.cs | 14 +- TeleSharp.TL/TL/TLMessageMediaGame.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaGeo.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaInvoice.cs | 14 +- TeleSharp.TL/TL/TLMessageMediaPhoto.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaUnsupported.cs | 14 +- TeleSharp.TL/TL/TLMessageMediaVenue.cs | 13 +- TeleSharp.TL/TL/TLMessageMediaWebPage.cs | 13 +- TeleSharp.TL/TL/TLMessageRange.cs | 13 +- TeleSharp.TL/TL/TLMessageService.cs | 17 +- TeleSharp.TL/TL/TLNearestDc.cs | 13 +- TeleSharp.TL/TL/TLNotifyAll.cs | 14 +- TeleSharp.TL/TL/TLNotifyChats.cs | 14 +- TeleSharp.TL/TL/TLNotifyPeer.cs | 13 +- TeleSharp.TL/TL/TLNotifyUsers.cs | 14 +- TeleSharp.TL/TL/TLNull.cs | 14 +- TeleSharp.TL/TL/TLPageBlockAnchor.cs | 13 +- TeleSharp.TL/TL/TLPageBlockAuthorDate.cs | 13 +- TeleSharp.TL/TL/TLPageBlockBlockquote.cs | 13 +- TeleSharp.TL/TL/TLPageBlockChannel.cs | 13 +- TeleSharp.TL/TL/TLPageBlockCollage.cs | 13 +- TeleSharp.TL/TL/TLPageBlockCover.cs | 13 +- TeleSharp.TL/TL/TLPageBlockDivider.cs | 14 +- TeleSharp.TL/TL/TLPageBlockEmbed.cs | 14 +- TeleSharp.TL/TL/TLPageBlockEmbedPost.cs | 13 +- TeleSharp.TL/TL/TLPageBlockFooter.cs | 13 +- TeleSharp.TL/TL/TLPageBlockHeader.cs | 13 +- TeleSharp.TL/TL/TLPageBlockList.cs | 13 +- TeleSharp.TL/TL/TLPageBlockParagraph.cs | 13 +- TeleSharp.TL/TL/TLPageBlockPhoto.cs | 13 +- TeleSharp.TL/TL/TLPageBlockPreformatted.cs | 13 +- TeleSharp.TL/TL/TLPageBlockPullquote.cs | 13 +- TeleSharp.TL/TL/TLPageBlockSlideshow.cs | 13 +- TeleSharp.TL/TL/TLPageBlockSubheader.cs | 13 +- TeleSharp.TL/TL/TLPageBlockSubtitle.cs | 13 +- TeleSharp.TL/TL/TLPageBlockTitle.cs | 13 +- TeleSharp.TL/TL/TLPageBlockUnsupported.cs | 14 +- TeleSharp.TL/TL/TLPageBlockVideo.cs | 14 +- TeleSharp.TL/TL/TLPageFull.cs | 13 +- TeleSharp.TL/TL/TLPagePart.cs | 13 +- TeleSharp.TL/TL/TLPaymentCharge.cs | 13 +- TeleSharp.TL/TL/TLPaymentRequestedInfo.cs | 14 +- .../TL/TLPaymentSavedCredentialsCard.cs | 13 +- TeleSharp.TL/TL/TLPeerChannel.cs | 13 +- TeleSharp.TL/TL/TLPeerChat.cs | 13 +- TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs | 14 +- TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs | 14 +- TeleSharp.TL/TL/TLPeerNotifySettings.cs | 14 +- TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs | 14 +- TeleSharp.TL/TL/TLPeerSettings.cs | 14 +- TeleSharp.TL/TL/TLPeerUser.cs | 13 +- TeleSharp.TL/TL/TLPhoneCall.cs | 13 +- TeleSharp.TL/TL/TLPhoneCallAccepted.cs | 13 +- .../TL/TLPhoneCallDiscardReasonBusy.cs | 14 +- .../TL/TLPhoneCallDiscardReasonDisconnect.cs | 14 +- .../TL/TLPhoneCallDiscardReasonHangup.cs | 14 +- .../TL/TLPhoneCallDiscardReasonMissed.cs | 14 +- TeleSharp.TL/TL/TLPhoneCallDiscarded.cs | 15 +- TeleSharp.TL/TL/TLPhoneCallEmpty.cs | 13 +- TeleSharp.TL/TL/TLPhoneCallProtocol.cs | 14 +- TeleSharp.TL/TL/TLPhoneCallRequested.cs | 13 +- TeleSharp.TL/TL/TLPhoneCallWaiting.cs | 14 +- TeleSharp.TL/TL/TLPhoneConnection.cs | 13 +- TeleSharp.TL/TL/TLPhoto.cs | 13 +- TeleSharp.TL/TL/TLPhotoCachedSize.cs | 13 +- TeleSharp.TL/TL/TLPhotoEmpty.cs | 13 +- TeleSharp.TL/TL/TLPhotoSize.cs | 13 +- TeleSharp.TL/TL/TLPhotoSizeEmpty.cs | 13 +- TeleSharp.TL/TL/TLPostAddress.cs | 13 +- TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs | 14 +- TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs | 14 +- .../TL/TLPrivacyKeyStatusTimestamp.cs | 14 +- TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs | 14 +- .../TL/TLPrivacyValueAllowContacts.cs | 14 +- TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs | 13 +- TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs | 14 +- .../TL/TLPrivacyValueDisallowContacts.cs | 14 +- .../TL/TLPrivacyValueDisallowUsers.cs | 13 +- TeleSharp.TL/TL/TLReceivedNotifyMessage.cs | 13 +- TeleSharp.TL/TL/TLReplyInlineMarkup.cs | 13 +- TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs | 15 +- TeleSharp.TL/TL/TLReplyKeyboardHide.cs | 14 +- TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs | 15 +- TeleSharp.TL/TL/TLRequestInitConnection.cs | 15 +- TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs | 15 +- TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs | 15 +- TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs | 15 +- .../TL/TLRequestInvokeWithoutUpdates.cs | 15 +- TeleSharp.TL/TL/TLSendMessageCancelAction.cs | 14 +- .../TL/TLSendMessageChooseContactAction.cs | 14 +- .../TL/TLSendMessageGamePlayAction.cs | 14 +- .../TL/TLSendMessageGeoLocationAction.cs | 14 +- .../TL/TLSendMessageRecordAudioAction.cs | 14 +- .../TL/TLSendMessageRecordRoundAction.cs | 14 +- .../TL/TLSendMessageRecordVideoAction.cs | 14 +- TeleSharp.TL/TL/TLSendMessageTypingAction.cs | 14 +- .../TL/TLSendMessageUploadAudioAction.cs | 13 +- .../TL/TLSendMessageUploadDocumentAction.cs | 13 +- .../TL/TLSendMessageUploadPhotoAction.cs | 13 +- .../TL/TLSendMessageUploadRoundAction.cs | 13 +- .../TL/TLSendMessageUploadVideoAction.cs | 13 +- TeleSharp.TL/TL/TLShippingOption.cs | 13 +- TeleSharp.TL/TL/TLStickerPack.cs | 13 +- TeleSharp.TL/TL/TLStickerSet.cs | 16 +- TeleSharp.TL/TL/TLStickerSetCovered.cs | 13 +- TeleSharp.TL/TL/TLStickerSetMultiCovered.cs | 13 +- TeleSharp.TL/TL/TLTextBold.cs | 13 +- TeleSharp.TL/TL/TLTextConcat.cs | 13 +- TeleSharp.TL/TL/TLTextEmail.cs | 13 +- TeleSharp.TL/TL/TLTextEmpty.cs | 14 +- TeleSharp.TL/TL/TLTextFixed.cs | 13 +- TeleSharp.TL/TL/TLTextItalic.cs | 13 +- TeleSharp.TL/TL/TLTextPlain.cs | 13 +- TeleSharp.TL/TL/TLTextStrike.cs | 13 +- TeleSharp.TL/TL/TLTextUnderline.cs | 13 +- TeleSharp.TL/TL/TLTextUrl.cs | 13 +- TeleSharp.TL/TL/TLTopPeer.cs | 13 +- .../TL/TLTopPeerCategoryBotsInline.cs | 14 +- TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs | 14 +- TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs | 14 +- .../TL/TLTopPeerCategoryCorrespondents.cs | 14 +- TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs | 14 +- TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs | 13 +- TeleSharp.TL/TL/TLTrue.cs | 14 +- TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs | 14 +- TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs | 13 +- TeleSharp.TL/TL/TLUpdateBotInlineSend.cs | 14 +- .../TL/TLUpdateBotPrecheckoutQuery.cs | 13 +- TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs | 13 +- TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs | 13 +- .../TL/TLUpdateBotWebhookJSONQuery.cs | 13 +- TeleSharp.TL/TL/TLUpdateChannel.cs | 13 +- .../TL/TLUpdateChannelMessageViews.cs | 13 +- .../TL/TLUpdateChannelPinnedMessage.cs | 13 +- TeleSharp.TL/TL/TLUpdateChannelTooLong.cs | 14 +- TeleSharp.TL/TL/TLUpdateChannelWebPage.cs | 13 +- TeleSharp.TL/TL/TLUpdateChatAdmins.cs | 13 +- TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs | 13 +- .../TL/TLUpdateChatParticipantAdmin.cs | 13 +- .../TL/TLUpdateChatParticipantDelete.cs | 13 +- TeleSharp.TL/TL/TLUpdateChatParticipants.cs | 13 +- TeleSharp.TL/TL/TLUpdateChatUserTyping.cs | 13 +- TeleSharp.TL/TL/TLUpdateConfig.cs | 14 +- TeleSharp.TL/TL/TLUpdateContactLink.cs | 13 +- TeleSharp.TL/TL/TLUpdateContactRegistered.cs | 13 +- TeleSharp.TL/TL/TLUpdateDcOptions.cs | 13 +- .../TL/TLUpdateDeleteChannelMessages.cs | 13 +- TeleSharp.TL/TL/TLUpdateDeleteMessages.cs | 13 +- TeleSharp.TL/TL/TLUpdateDialogPinned.cs | 13 +- TeleSharp.TL/TL/TLUpdateDraftMessage.cs | 13 +- TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs | 13 +- TeleSharp.TL/TL/TLUpdateEditMessage.cs | 13 +- .../TL/TLUpdateEncryptedChatTyping.cs | 13 +- .../TL/TLUpdateEncryptedMessagesRead.cs | 13 +- TeleSharp.TL/TL/TLUpdateEncryption.cs | 13 +- .../TL/TLUpdateInlineBotCallbackQuery.cs | 14 +- TeleSharp.TL/TL/TLUpdateMessageID.cs | 13 +- TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs | 13 +- .../TL/TLUpdateNewEncryptedMessage.cs | 13 +- TeleSharp.TL/TL/TLUpdateNewMessage.cs | 13 +- TeleSharp.TL/TL/TLUpdateNewStickerSet.cs | 13 +- TeleSharp.TL/TL/TLUpdateNotifySettings.cs | 13 +- TeleSharp.TL/TL/TLUpdatePhoneCall.cs | 13 +- TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs | 14 +- TeleSharp.TL/TL/TLUpdatePrivacy.cs | 13 +- TeleSharp.TL/TL/TLUpdatePtsChanged.cs | 14 +- TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs | 13 +- TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs | 13 +- .../TL/TLUpdateReadFeaturedStickers.cs | 14 +- TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs | 13 +- TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs | 13 +- .../TL/TLUpdateReadMessagesContents.cs | 13 +- TeleSharp.TL/TL/TLUpdateRecentStickers.cs | 14 +- TeleSharp.TL/TL/TLUpdateSavedGifs.cs | 14 +- .../TL/TLUpdateServiceNotification.cs | 13 +- TeleSharp.TL/TL/TLUpdateShort.cs | 13 +- TeleSharp.TL/TL/TLUpdateShortChatMessage.cs | 17 +- TeleSharp.TL/TL/TLUpdateShortMessage.cs | 17 +- TeleSharp.TL/TL/TLUpdateShortSentMessage.cs | 14 +- TeleSharp.TL/TL/TLUpdateStickerSets.cs | 14 +- TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserBlocked.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserName.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserPhone.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserPhoto.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserStatus.cs | 13 +- TeleSharp.TL/TL/TLUpdateUserTyping.cs | 13 +- TeleSharp.TL/TL/TLUpdateWebPage.cs | 13 +- TeleSharp.TL/TL/TLUpdates.cs | 13 +- TeleSharp.TL/TL/TLUpdatesCombined.cs | 13 +- TeleSharp.TL/TL/TLUpdatesTooLong.cs | 14 +- TeleSharp.TL/TL/TLUser.cs | 24 +- TeleSharp.TL/TL/TLUserEmpty.cs | 13 +- TeleSharp.TL/TL/TLUserFull.cs | 15 +- TeleSharp.TL/TL/TLUserProfilePhoto.cs | 13 +- TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs | 14 +- TeleSharp.TL/TL/TLUserStatusEmpty.cs | 14 +- TeleSharp.TL/TL/TLUserStatusLastMonth.cs | 14 +- TeleSharp.TL/TL/TLUserStatusLastWeek.cs | 14 +- TeleSharp.TL/TL/TLUserStatusOffline.cs | 13 +- TeleSharp.TL/TL/TLUserStatusOnline.cs | 13 +- TeleSharp.TL/TL/TLUserStatusRecently.cs | 14 +- TeleSharp.TL/TL/TLWallPaper.cs | 13 +- TeleSharp.TL/TL/TLWallPaperSolid.cs | 13 +- TeleSharp.TL/TL/TLWebDocument.cs | 13 +- TeleSharp.TL/TL/TLWebPage.cs | 14 +- TeleSharp.TL/TL/TLWebPageEmpty.cs | 13 +- TeleSharp.TL/TL/TLWebPageNotModified.cs | 14 +- TeleSharp.TL/TL/TLWebPagePending.cs | 13 +- .../TL/Updates/TLAbsChannelDifference.cs | 9 +- TeleSharp.TL/TL/Updates/TLAbsDifference.cs | 9 +- .../TL/Updates/TLChannelDifference.cs | 13 +- .../TL/Updates/TLChannelDifferenceEmpty.cs | 14 +- .../TL/Updates/TLChannelDifferenceTooLong.cs | 13 +- TeleSharp.TL/TL/Updates/TLDifference.cs | 13 +- TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs | 13 +- TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs | 13 +- .../TL/Updates/TLDifferenceTooLong.cs | 13 +- .../Updates/TLRequestGetChannelDifference.cs | 15 +- .../TL/Updates/TLRequestGetDifference.cs | 15 +- TeleSharp.TL/TL/Updates/TLRequestGetState.cs | 15 +- TeleSharp.TL/TL/Updates/TLState.cs | 13 +- TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs | 9 +- TeleSharp.TL/TL/Upload/TLAbsFile.cs | 9 +- TeleSharp.TL/TL/Upload/TLCdnFile.cs | 13 +- .../TL/Upload/TLCdnFileReuploadNeeded.cs | 13 +- TeleSharp.TL/TL/Upload/TLFile.cs | 13 +- TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs | 13 +- TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs | 15 +- TeleSharp.TL/TL/Upload/TLRequestGetFile.cs | 15 +- TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs | 15 +- .../TL/Upload/TLRequestReuploadCdnFile.cs | 15 +- .../TL/Upload/TLRequestSaveBigFilePart.cs | 15 +- .../TL/Upload/TLRequestSaveFilePart.cs | 15 +- TeleSharp.TL/TL/Upload/TLWebFile.cs | 13 +- TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs | 15 +- TeleSharp.TL/TL/Users/TLRequestGetUsers.cs | 15 +- TeleSharp.TL/TLContext.cs | 6 +- TeleSharp.TL/TLMethod.cs | 12 +- TeleSharp.TL/TLObject.cs | 14 +- TeleSharp.TL/TLUtils.cs | 48 +- TeleSharp.TL/TLVector.cs | 5 +- 912 files changed, 2622 insertions(+), 10461 deletions(-) diff --git a/TLSharp.Core/Auth/Authenticator.cs b/TLSharp.Core/Auth/Authenticator.cs index f63523c..3fd47ba 100644 --- a/TLSharp.Core/Auth/Authenticator.cs +++ b/TLSharp.Core/Auth/Authenticator.cs @@ -34,4 +34,4 @@ namespace TLSharp.Core.Auth return step3Response; } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Auth/Step1_PQRequest.cs b/TLSharp.Core/Auth/Step1_PQRequest.cs index 8d61d9a..9da3b0c 100644 --- a/TLSharp.Core/Auth/Step1_PQRequest.cs +++ b/TLSharp.Core/Auth/Step1_PQRequest.cs @@ -93,4 +93,4 @@ namespace TLSharp.Core.Auth } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Auth/Step2_DHExchange.cs b/TLSharp.Core/Auth/Step2_DHExchange.cs index 53b8016..b69fc27 100644 --- a/TLSharp.Core/Auth/Step2_DHExchange.cs +++ b/TLSharp.Core/Auth/Step2_DHExchange.cs @@ -114,7 +114,6 @@ namespace TLSharp.Core.Auth } */ - byte[] serverNonceFromServer = responseReader.ReadBytes(16); // TODO: ! @@ -139,4 +138,4 @@ namespace TLSharp.Core.Auth } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Auth/Step3_CompleteDHExchange.cs b/TLSharp.Core/Auth/Step3_CompleteDHExchange.cs index 8ba8f5a..5f5efd4 100644 --- a/TLSharp.Core/Auth/Step3_CompleteDHExchange.cs +++ b/TLSharp.Core/Auth/Step3_CompleteDHExchange.cs @@ -11,7 +11,6 @@ namespace TLSharp.Core.Auth { public AuthKey AuthKey { get; set; } public int TimeOffset { get; set; } - } public class Step3_CompleteDHExchange @@ -143,7 +142,6 @@ namespace TLSharp.Core.Auth { // dh_gen_ok //logger.debug("dh_gen_ok"); - byte[] nonceFromServer = responseReader.ReadBytes(16); // TODO /* @@ -191,7 +189,6 @@ namespace TLSharp.Core.Auth else if (code == 0x46dc1fb9) { // dh_gen_retry throw new NotImplementedException("dh_gen_retry"); - } else if (code == 0xa69dae02) { @@ -206,4 +203,4 @@ namespace TLSharp.Core.Auth } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Crypto/AES.cs b/TLSharp.Core/MTProto/Crypto/AES.cs index 0efc746..6f7f2e0 100644 --- a/TLSharp.Core/MTProto/Crypto/AES.cs +++ b/TLSharp.Core/MTProto/Crypto/AES.cs @@ -147,7 +147,6 @@ namespace TLSharp.Core.MTProto.Crypto public static byte[] EncryptIGE(byte[] originPlaintext, byte[] key, byte[] iv) { - byte[] plaintext; using (MemoryStream plaintextBuffer = new MemoryStream(originPlaintext.Length + 40)) { @@ -216,17 +215,15 @@ namespace TLSharp.Core.MTProto.Crypto result[i] = (byte)(buffer1[i] ^ buffer2[i]); return result; } - - } - // AES engine implementation public class AesEngine { // The S box private const uint m1 = 0x80808080; + private const uint m2 = 0x7f7f7f7f; private const uint m3 = 0x0000001b; private const int BLOCK_SIZE = 16; @@ -576,7 +573,8 @@ namespace TLSharp.Core.MTProto.Crypto { EncryptBlock(WorkingKey); } - else { + else + { DecryptBlock(WorkingKey); } @@ -713,7 +711,6 @@ namespace TLSharp.Core.MTProto.Crypto } } - internal sealed class Pack { private Pack() diff --git a/TLSharp.Core/MTProto/Crypto/AuthKey.cs b/TLSharp.Core/MTProto/Crypto/AuthKey.cs index 7d568c4..ae60895 100644 --- a/TLSharp.Core/MTProto/Crypto/AuthKey.cs +++ b/TLSharp.Core/MTProto/Crypto/AuthKey.cs @@ -9,6 +9,7 @@ namespace TLSharp.Core.MTProto.Crypto private byte[] key; private ulong keyId; private ulong auxHash; + public AuthKey(BigInteger gab) { key = gab.ToByteArrayUnsigned(); @@ -84,4 +85,4 @@ namespace TLSharp.Core.MTProto.Crypto return string.Format("(Key: {0}, KeyId: {1}, AuxHash: {2})", key, keyId, auxHash); } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Crypto/BigInteger.cs b/TLSharp.Core/MTProto/Crypto/BigInteger.cs index e09a3b7..2f8df41 100644 --- a/TLSharp.Core/MTProto/Crypto/BigInteger.cs +++ b/TLSharp.Core/MTProto/Crypto/BigInteger.cs @@ -8,6 +8,7 @@ using System.Text; namespace TLSharp.Core.MTProto.Crypto { #if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT) + [Serializable] #endif public class BigInteger @@ -183,21 +184,24 @@ namespace TLSharp.Core.MTProto.Crypto // this.sign = 0; this.magnitude = ZeroMagnitude; } - else { + else + { this.sign = signum; if (i == 0) { this.magnitude = mag; } - else { + else + { // strip leading 0 words this.magnitude = new int[mag.Length - i]; Array.Copy(mag, i, this.magnitude, 0, this.magnitude.Length); } } } - else { + else + { this.sign = signum; this.magnitude = mag; } @@ -230,6 +234,7 @@ namespace TLSharp.Core.MTProto.Crypto r = radix2; rE = radix2E; break; + case 10: // This style seems to handle spaces and minus sign already (our processing redundant?) style = NumberStyles.Integer; @@ -237,6 +242,7 @@ namespace TLSharp.Core.MTProto.Crypto r = radix10; rE = radix10E; break; + case 16: // TODO Should this be HexNumber? style = NumberStyles.AllowHexSpecifier; @@ -244,11 +250,11 @@ namespace TLSharp.Core.MTProto.Crypto r = radix16; rE = radix16E; break; + default: throw new FormatException("Only bases 2, 10, or 16 allowed"); } - int index = 0; sign = 1; @@ -283,7 +289,6 @@ namespace TLSharp.Core.MTProto.Crypto BigInteger b = Zero; - int next = index + chunk; if (next <= str.Length) @@ -304,9 +309,11 @@ namespace TLSharp.Core.MTProto.Crypto // TODO Parse 64 bits at a time b = b.ShiftLeft(1); break; + case 16: b = b.ShiftLeft(64); break; + default: b = b.Multiply(rE); break; @@ -340,13 +347,15 @@ namespace TLSharp.Core.MTProto.Crypto { b = b.ShiftLeft(s.Length << 2); } - else { + else + { b = b.Multiply(r.Pow(s.Length)); } b = b.Add(bi); } - else { + else + { b = bi; } } @@ -396,7 +405,8 @@ namespace TLSharp.Core.MTProto.Crypto { this.magnitude = One.magnitude; } - else { + else + { int numBytes = end - iBval; byte[] inverse = new byte[numBytes]; @@ -418,7 +428,8 @@ namespace TLSharp.Core.MTProto.Crypto this.magnitude = MakeMagnitude(inverse, 0, inverse.Length); } } - else { + else + { // strip leading zero bytes and return magnitude bytes this.magnitude = MakeMagnitude(bytes, offset, length); this.sign = this.magnitude.Length > 0 ? 1 : 0; @@ -503,7 +514,8 @@ namespace TLSharp.Core.MTProto.Crypto //this.sign = 0; this.magnitude = ZeroMagnitude; } - else { + else + { // copy bytes this.magnitude = MakeMagnitude(bytes, offset, length); this.sign = this.magnitude.Length < 1 ? 0 : sign; @@ -565,7 +577,7 @@ namespace TLSharp.Core.MTProto.Crypto int xBits = BitsPerByte * nBytes - bitLength; byte mask = rndMask[xBits]; - for (;;) + for (; ; ) { random.NextBytes(b); @@ -612,6 +624,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * return a = a + b - b preserved. */ + private static int[] AddMagnitudes( int[] a, int[] b) @@ -666,7 +679,8 @@ namespace TLSharp.Core.MTProto.Crypto big = magToAdd; small = this.magnitude; } - else { + else + { big = this.magnitude; small = magToAdd; } @@ -684,7 +698,8 @@ namespace TLSharp.Core.MTProto.Crypto bigCopy = new int[big.Length + 1]; big.CopyTo(bigCopy, 1); } - else { + else + { bigCopy = (int[])big.Clone(); } @@ -767,7 +782,8 @@ namespace TLSharp.Core.MTProto.Crypto // TODO Optimise this case nBits = Not().BitCount; } - else { + else + { int sum = 0; for (int i = 0; i < magnitude.Length; i++) { @@ -802,7 +818,7 @@ namespace TLSharp.Core.MTProto.Crypto int indx, int[] mag) { - for (;;) + for (; ; ) { if (indx >= mag.Length) return 0; @@ -903,6 +919,7 @@ namespace TLSharp.Core.MTProto.Crypto * unsigned comparison on two arrays - note the arrays may * start with leading zeros. */ + private static int CompareTo( int xIndx, int[] x, @@ -962,6 +979,7 @@ namespace TLSharp.Core.MTProto.Crypto * return z = x / y - done in place (z value preserved, x contains the * remainder) */ + private int[] Divide( int[] x, int[] y) @@ -1004,7 +1022,8 @@ namespace TLSharp.Core.MTProto.Crypto c = ShiftLeft(y, shift); cBitLength += shift; } - else { + else + { iCount = new int[] { 1 }; int len = y.Length - yStart; @@ -1014,7 +1033,7 @@ namespace TLSharp.Core.MTProto.Crypto count = new int[iCount.Length]; - for (;;) + for (; ; ) { if (cBitLength < xBitLength || CompareNoLeadingZeroes(xStart, x, cStart, c) >= 0) @@ -1060,7 +1079,8 @@ namespace TLSharp.Core.MTProto.Crypto --cBitLength; ShiftRightOneInPlace(iCountStart, iCount); } - else { + else + { ShiftRightInPlace(cStart, c, shift); cBitLength -= shift; ShiftRightInPlace(iCountStart, iCount, shift); @@ -1078,7 +1098,8 @@ namespace TLSharp.Core.MTProto.Crypto } } } - else { + else + { count = new int[1]; } @@ -1133,7 +1154,8 @@ namespace TLSharp.Core.MTProto.Crypto biggies[0] = val.sign == this.sign ? quotient : quotient.Negate(); biggies[1] = new BigInteger(this.sign, remainder, true); } - else { + else + { int[] remainder = (int[])this.magnitude.Clone(); int[] quotient = Divide(remainder, val.magnitude); @@ -1234,6 +1256,7 @@ namespace TLSharp.Core.MTProto.Crypto * probability of 1 - (1/2)**certainty. *

From Knuth Vol 2, pg 395.

*/ + public bool IsProbablePrime( int certainty) { @@ -1259,7 +1282,6 @@ namespace TLSharp.Core.MTProto.Crypto Debug.Assert(CompareTo(Two) > 0); Debug.Assert(TestBit(0)); - // Try to reduce the penalty for really small numbers int numLists = System.Math.Min(BitLength - 1, primeLists.Length); @@ -1280,14 +1302,12 @@ namespace TLSharp.Core.MTProto.Crypto } } - // TODO Special case for < 10^16 (RabinMiller fixed list) // if (BitLength < 30) // { // RabinMiller against 2, 3, 5, 7, 11, 13, 23 is sufficient // } - // TODO Is it worth trying to create a hybrid of these two? return RabinMillerTest(certainty, random); // return SolovayStrassenTest(certainty, random); @@ -1453,7 +1473,8 @@ namespace TLSharp.Core.MTProto.Crypto v = ((long)magnitude[magnitude.Length - 2] << 32) | (magnitude[magnitude.Length - 1] & IMASK); } - else { + else + { v = (magnitude[magnitude.Length - 1] & IMASK); } @@ -1561,6 +1582,7 @@ namespace TLSharp.Core.MTProto.Crypto * @param u2Out the return object for the u2 value * @return The greatest common divisor of a and b */ + private static BigInteger ExtEuclid( BigInteger a, BigInteger b, @@ -1663,7 +1685,8 @@ namespace TLSharp.Core.MTProto.Crypto zVal = new int[m.magnitude.Length]; magnitude.CopyTo(zVal, zVal.Length - magnitude.Length); } - else { + else + { // // in normal practice we'll never see this... // @@ -1713,7 +1736,8 @@ namespace TLSharp.Core.MTProto.Crypto // be almost as heavy as a Montgomery mulitply. MultiplyMonty(yAccum, yVal, yVal, m.magnitude, mQ); } - else { + else + { Square(yAccum, yVal); Remainder(yAccum, m.magnitude); Array.Copy(yAccum, yAccum.Length - yVal.Length, yVal, 0, yVal.Length); @@ -1727,7 +1751,8 @@ namespace TLSharp.Core.MTProto.Crypto { MultiplyMonty(yAccum, yVal, zVal, m.magnitude, mQ); } - else { + else + { Multiply(yAccum, yVal, zVal); Remainder(yAccum, m.magnitude); Array.Copy(yAccum, yAccum.Length - yVal.Length, yVal, 0, @@ -1745,7 +1770,8 @@ namespace TLSharp.Core.MTProto.Crypto { MultiplyMonty(yAccum, yVal, yVal, m.magnitude, mQ); } - else { + else + { Square(yAccum, yVal); Remainder(yAccum, m.magnitude); Array.Copy(yAccum, yAccum.Length - yVal.Length, yVal, 0, yVal.Length); @@ -1773,6 +1799,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * return w with w = x * x - w is assumed to have enough space. */ + private static int[] Square( int[] w, int[] x) @@ -1817,7 +1844,8 @@ namespace TLSharp.Core.MTProto.Crypto { w[wBase] = (int)(uint)(c >> 32); } - else { + else + { Debug.Assert((uint)(c >> 32) == 0); } wBase += i; @@ -1835,7 +1863,8 @@ namespace TLSharp.Core.MTProto.Crypto { w[wBase] = (int)(uint)(u2 + (u1 >> 32) + (ulong)(uint)w[wBase]); } - else { + else + { Debug.Assert((uint)(u2 + (u1 >> 32)) == 0); } @@ -1845,6 +1874,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * return x with x = y * z - x is assumed to have enough space. */ + private static int[] Multiply( int[] x, int[] y, @@ -1857,7 +1887,7 @@ namespace TLSharp.Core.MTProto.Crypto int xBase = x.Length - y.Length; - for (;;) + for (; ; ) { long a = z[--i] & IMASK; long val = 0; @@ -1879,7 +1909,8 @@ namespace TLSharp.Core.MTProto.Crypto { x[xBase] = (int)val; } - else { + else + { Debug.Assert(val == 0); } break; @@ -1949,6 +1980,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * Calculate mQuote = -m^(-1) mod b with b = 2^32 (32 = word size) */ + private long GetMQuote() { Debug.Assert(this.sign > 0); @@ -1982,6 +2014,7 @@ namespace TLSharp.Core.MTProto.Crypto *
* NOTE: the indices of x, y, m, a different in HAC and in Java */ + private static void MultiplyMonty( int[] a, int[] x, @@ -2086,7 +2119,8 @@ namespace TLSharp.Core.MTProto.Crypto { Square(res, this.magnitude); } - else { + else + { Multiply(res, this.magnitude, val.magnitude); } @@ -2144,7 +2178,7 @@ namespace TLSharp.Core.MTProto.Crypto BigInteger y = One; BigInteger z = this; - for (;;) + for (; ; ) { if ((exp & 0x1) == 1) { @@ -2183,6 +2217,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * return x = x % y - done in place (y value preserved) */ + private int[] Remainder( int[] x, int[] y) @@ -2218,13 +2253,14 @@ namespace TLSharp.Core.MTProto.Crypto cBitLength += shift; Debug.Assert(c[0] != 0); } - else { + else + { int len = y.Length - yStart; c = new int[len]; Array.Copy(y, yStart, c, 0, len); } - for (;;) + for (; ; ) { if (cBitLength < xBitLength || CompareNoLeadingZeroes(xStart, x, cStart, c) >= 0) @@ -2268,7 +2304,8 @@ namespace TLSharp.Core.MTProto.Crypto ShiftRightOneInPlace(cStart, c); --cBitLength; } - else { + else + { ShiftRightInPlace(cStart, c, shift); cBitLength -= shift; } @@ -2326,7 +2363,8 @@ namespace TLSharp.Core.MTProto.Crypto // TODO Move before small values branch above? result = LastNBits(n.Abs().BitLength - 1); } - else { + else + { result = (int[])this.magnitude.Clone(); result = Remainder(result, n.magnitude); } @@ -2358,6 +2396,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * do a left shift - this returns a new array. */ + private static int[] ShiftLeft( int[] mag, int n) @@ -2372,7 +2411,8 @@ namespace TLSharp.Core.MTProto.Crypto newMag = new int[magLen + nInts]; mag.CopyTo(newMag, 0); } - else { + else + { int i = 0; int nBits2 = 32 - nBits; int highBits = (int)((uint)mag[0] >> nBits2); @@ -2382,7 +2422,8 @@ namespace TLSharp.Core.MTProto.Crypto newMag = new int[magLen + nInts + 1]; newMag[i++] = highBits; } - else { + else + { newMag = new int[magLen + nInts]; } @@ -2433,6 +2474,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * do a right shift - this does it in place. */ + private static void ShiftRightInPlace( int start, int[] mag, @@ -2476,6 +2518,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * do a right shift by one - this does it in place. */ + private static void ShiftRightOneInPlace( int start, int[] mag) @@ -2521,7 +2564,8 @@ namespace TLSharp.Core.MTProto.Crypto { Array.Copy(this.magnitude, 0, res, 0, res.Length); } - else { + else + { int numBits2 = 32 - numBits; int magPos = this.magnitude.Length - 1 - numInts; @@ -2549,6 +2593,7 @@ namespace TLSharp.Core.MTProto.Crypto /** * returns x = x - y - we assume x is >= y */ + private static int[] Subtract( int xStart, int[] x, @@ -2605,7 +2650,8 @@ namespace TLSharp.Core.MTProto.Crypto bigun = n; lilun = this; } - else { + else + { bigun = this; lilun = n; } @@ -2728,6 +2774,7 @@ namespace TLSharp.Core.MTProto.Crypto case 10: case 16: break; + default: throw new FormatException("Only bases 2, 10, 16 are allowed"); } @@ -2761,7 +2808,8 @@ namespace TLSharp.Core.MTProto.Crypto sb.Append(TestBit(i) ? '1' : '0'); } } - else { + else + { // This is algorithm 1a from chapter 4.4 in Seminumerical Algorithms, slow but it works IList S = new List(); BigInteger bs = ValueOf(radix); @@ -2782,7 +2830,8 @@ namespace TLSharp.Core.MTProto.Crypto { S.Add("0"); } - else { + else + { // see how to interact with different bases S.Add(b.magnitude[0].ToString("d")); } @@ -2871,12 +2920,16 @@ namespace TLSharp.Core.MTProto.Crypto { case 0: return Zero; + case 1: return One; + case 2: return Two; + case 3: return Three; + case 10: return Ten; } diff --git a/TLSharp.Core/MTProto/Crypto/Crc32.cs b/TLSharp.Core/MTProto/Crypto/Crc32.cs index c22f851..002908c 100644 --- a/TLSharp.Core/MTProto/Crypto/Crc32.cs +++ b/TLSharp.Core/MTProto/Crypto/Crc32.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Security.Cryptography; -using System.Text; -using System.Threading.Tasks; -using Ionic.Crc; namespace TLSharp.Core.MTProto.Crypto { @@ -117,4 +112,4 @@ namespace TLSharp.Core.MTProto.Crypto }; } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Crypto/Factorizator.cs b/TLSharp.Core/MTProto/Crypto/Factorizator.cs index 5a52de7..5b2333c 100644 --- a/TLSharp.Core/MTProto/Crypto/Factorizator.cs +++ b/TLSharp.Core/MTProto/Crypto/Factorizator.cs @@ -40,9 +40,11 @@ namespace TLSharp.Core.MTProto.Crypto return string.Format("P: {0}, Q: {1}", p, q); } } + public class Factorizator { public static Random random = new Random(); + public static long findSmallMultiplierLopatin(long what) { long g = 0; @@ -109,7 +111,8 @@ namespace TLSharp.Core.MTProto.Crypto { a -= b; } - else { + else + { b -= a; } } @@ -124,15 +127,13 @@ namespace TLSharp.Core.MTProto.Crypto long divisor = findSmallMultiplierLopatin(pqlong); return new FactorizedPair(BigInteger.ValueOf(divisor), BigInteger.ValueOf(pqlong / divisor)); } - else { + else + { // TODO: port pollard factorization throw new InvalidOperationException("pq too long; TODO: port the pollard algo"); // logger.error("pq too long; TODO: port the pollard algo"); // return null; } } - } - - -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Crypto/MD5Digest.cs b/TLSharp.Core/MTProto/Crypto/MD5Digest.cs index f7ae345..f2a17fe 100644 --- a/TLSharp.Core/MTProto/Crypto/MD5Digest.cs +++ b/TLSharp.Core/MTProto/Crypto/MD5Digest.cs @@ -17,6 +17,7 @@ namespace TLSharp.Core.MTProto.Crypto * * @return the size, in bytes, of the digest produced by this message digest. */ + int GetDigestSize(); /** @@ -24,6 +25,7 @@ namespace TLSharp.Core.MTProto.Crypto * * @return the size, in bytes, of the internal buffer used by this digest. */ + int GetByteLength(); /** @@ -31,6 +33,7 @@ namespace TLSharp.Core.MTProto.Crypto * * @param inByte the input byte to be entered. */ + void Update(byte input); /** @@ -40,6 +43,7 @@ namespace TLSharp.Core.MTProto.Crypto * @param inOff the offset into the byte array where the data starts. * @param len the length of the data. */ + void BlockUpdate(byte[] input, int inOff, int length); /** @@ -49,17 +53,18 @@ namespace TLSharp.Core.MTProto.Crypto * @param output the array the digest is to be copied into. * @param outOff the offset into the out array the digest is to start at. */ + int DoFinal(byte[] output, int outOff); /** * reset the digest back to it's initial state. */ + void Reset(); } public class MD5 { - public static string GetMd5String(string data) { return BitConverter.ToString(GetMd5Bytes(Encoding.UTF8.GetBytes(data))).Replace("-", "").ToLower(); @@ -184,7 +189,9 @@ namespace TLSharp.Core.MTProto.Crypto } public abstract string AlgorithmName { get; } + public abstract int GetDigestSize(); + public abstract int DoFinal(byte[] output, int outOff); public void Finish() @@ -202,7 +209,9 @@ namespace TLSharp.Core.MTProto.Crypto } internal abstract void ProcessWord(byte[] input, int inOff); + internal abstract void ProcessLength(long bitLength); + internal abstract void ProcessBlock(); } @@ -215,6 +224,7 @@ namespace TLSharp.Core.MTProto.Crypto // round 1 left rotates // private static readonly int S11 = 7; + private static readonly int S12 = 12; private static readonly int S13 = 17; private static readonly int S14 = 22; @@ -223,6 +233,7 @@ namespace TLSharp.Core.MTProto.Crypto // round 2 left rotates // private static readonly int S21 = 5; + private static readonly int S22 = 9; private static readonly int S23 = 14; private static readonly int S24 = 20; @@ -231,6 +242,7 @@ namespace TLSharp.Core.MTProto.Crypto // round 3 left rotates // private static readonly int S31 = 4; + private static readonly int S32 = 11; private static readonly int S33 = 16; private static readonly int S34 = 23; @@ -239,6 +251,7 @@ namespace TLSharp.Core.MTProto.Crypto // round 4 left rotates // private static readonly int S41 = 6; + private static readonly int S42 = 10; private static readonly int S43 = 15; private static readonly int S44 = 21; diff --git a/TLSharp.Core/MTProto/Crypto/RSA.cs b/TLSharp.Core/MTProto/Crypto/RSA.cs index 55cbcb0..993f358 100644 --- a/TLSharp.Core/MTProto/Crypto/RSA.cs +++ b/TLSharp.Core/MTProto/Crypto/RSA.cs @@ -5,10 +5,8 @@ using System.Security.Cryptography; namespace TLSharp.Core.MTProto.Crypto { - - class RSAServerKey + internal class RSAServerKey { - private string fingerprint; private BigInteger m; private BigInteger e; @@ -22,7 +20,6 @@ namespace TLSharp.Core.MTProto.Crypto public byte[] Encrypt(byte[] data, int offset, int length) { - using (MemoryStream buffer = new MemoryStream(255)) using (BinaryWriter writer = new BinaryWriter(buffer)) { @@ -46,7 +43,8 @@ namespace TLSharp.Core.MTProto.Crypto { return ciphertext; } - else { + else + { byte[] paddedCiphertext = new byte[256]; int padding = 256 - ciphertext.Length; for (int i = 0; i < padding; i++) @@ -57,9 +55,9 @@ namespace TLSharp.Core.MTProto.Crypto return paddedCiphertext; } } - } } + public class RSA { private static readonly Dictionary serverKeys = new Dictionary() { @@ -79,5 +77,4 @@ namespace TLSharp.Core.MTProto.Crypto return key.Encrypt(data, offset, length); } } - -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Crypto/Salt.cs b/TLSharp.Core/MTProto/Crypto/Salt.cs index 7bda99a..7acce1a 100644 --- a/TLSharp.Core/MTProto/Crypto/Salt.cs +++ b/TLSharp.Core/MTProto/Crypto/Salt.cs @@ -1,8 +1,5 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace TLSharp.Core.MTProto.Crypto { @@ -56,6 +53,7 @@ namespace TLSharp.Core.MTProto.Crypto return salts.Count; } } + // TODO: get actual salt and other... } @@ -91,4 +89,4 @@ namespace TLSharp.Core.MTProto.Crypto get { return salts; } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/MTProto/Serializers.cs b/TLSharp.Core/MTProto/Serializers.cs index bd46ffe..5906a4e 100644 --- a/TLSharp.Core/MTProto/Serializers.cs +++ b/TLSharp.Core/MTProto/Serializers.cs @@ -6,7 +6,6 @@ namespace TLSharp.Core.MTProto { public class Serializers { - public static class Bytes { public static byte[] read(BinaryReader binaryReader) @@ -18,7 +17,8 @@ namespace TLSharp.Core.MTProto len = binaryReader.ReadByte() | (binaryReader.ReadByte() << 8) | (binaryReader.ReadByte() << 16); padding = len % 4; } - else { + else + { len = firstByte; padding = (len + 1) % 4; } @@ -47,7 +47,8 @@ namespace TLSharp.Core.MTProto binaryWriter.Write((byte)data.Length); binaryWriter.Write(data); } - else { + else + { padding = (data.Length) % 4; if (padding != 0) { @@ -61,7 +62,6 @@ namespace TLSharp.Core.MTProto binaryWriter.Write(data); } - for (int i = 0; i < padding; i++) { binaryWriter.Write((byte)0); @@ -95,4 +95,4 @@ namespace TLSharp.Core.MTProto return "[" + System.String.Join(", ", tokens) + "]"; } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Network/MtProtoPlainSender.cs b/TLSharp.Core/Network/MtProtoPlainSender.cs index b88ecbb..a8ef63b 100644 --- a/TLSharp.Core/Network/MtProtoPlainSender.cs +++ b/TLSharp.Core/Network/MtProtoPlainSender.cs @@ -71,7 +71,5 @@ namespace TLSharp.Core.Network lastMessageId = newMessageId; return newMessageId; } - - } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Network/MtProtoSender.cs b/TLSharp.Core/Network/MtProtoSender.cs index 8a959ca..85294a4 100644 --- a/TLSharp.Core/Network/MtProtoSender.cs +++ b/TLSharp.Core/Network/MtProtoSender.cs @@ -1,12 +1,9 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.IO; using System.Linq; using System.Text.RegularExpressions; -using System.Threading; using System.Threading.Tasks; -using Ionic.Zlib; using TLSharp.Core.MTProto; using TLSharp.Core.MTProto.Crypto; using TLSharp.Core.Requests; @@ -54,7 +51,6 @@ namespace TLSharp.Core.Network } } - using (var memory = new MemoryStream()) using (var writer = new BinaryWriter(memory)) { @@ -177,36 +173,47 @@ namespace TLSharp.Core.Network case 0x73f1f8dc: // container //logger.debug("MSG container"); return HandleContainer(messageId, sequence, messageReader, request); + case 0x7abe77ec: // ping //logger.debug("MSG ping"); return HandlePing(messageId, sequence, messageReader); + case 0x347773c5: // pong //logger.debug("MSG pong"); return HandlePong(messageId, sequence, messageReader, request); + case 0xae500895: // future_salts //logger.debug("MSG future_salts"); return HandleFutureSalts(messageId, sequence, messageReader); + case 0x9ec20908: // new_session_created //logger.debug("MSG new_session_created"); return HandleNewSessionCreated(messageId, sequence, messageReader); + case 0x62d6b459: // msgs_ack //logger.debug("MSG msds_ack"); return HandleMsgsAck(messageId, sequence, messageReader); + case 0xedab447b: // bad_server_salt //logger.debug("MSG bad_server_salt"); return HandleBadServerSalt(messageId, sequence, messageReader, request); + case 0xa7eff811: // bad_msg_notification //logger.debug("MSG bad_msg_notification"); return HandleBadMsgNotification(messageId, sequence, messageReader); + case 0x276d3ec6: // msg_detailed_info //logger.debug("MSG msg_detailed_info"); return HandleMsgDetailedInfo(messageId, sequence, messageReader); + case 0xf35c6d01: // rpc_result //logger.debug("MSG rpc_result"); return HandleRpcResult(messageId, sequence, messageReader, request); + case 0x3072cfa1: // gzip_packed //logger.debug("MSG gzip_packed"); return HandleGzipPacked(messageId, sequence, messageReader, request); + case 0xe317af7e: case 0xd3f45784: case 0x2b2fbd4e: @@ -214,6 +221,7 @@ namespace TLSharp.Core.Network case 0x725b04c3: case 0x74ae4240: return HandleUpdate(messageId, sequence, messageReader); + default: //logger.debug("unknown message: {0}", code); return false; @@ -317,7 +325,6 @@ namespace TLSharp.Core.Network { throw new InvalidOperationException(errorMessage); } - } else if (innerCode == 0x3072cfa1) { @@ -341,7 +348,6 @@ namespace TLSharp.Core.Network } catch (ZlibException ex) { - } } else @@ -389,7 +395,6 @@ namespace TLSharp.Core.Network throw new InvalidOperationException("incorrect server salt (in this case, the bad_server_salt response is received with the correct salt, and the message is to be re-sent with it)"); case 64: throw new InvalidOperationException("invalid container"); - } throw new NotImplementedException("This should never happens"); /* @@ -432,7 +437,6 @@ namespace TLSharp.Core.Network } */ - //MTProtoRequest request = runningRequests[badMsgId]; //request.OnException(new MTProtoBadServerSaltException(salt)); @@ -542,7 +546,7 @@ namespace TLSharp.Core.Network private const string REPORT_MESSAGE = " See: https://github.com/sochix/TLSharp#i-get-a-xxxmigrationexception-or-a-migrate_x-error"; - protected DataCenterMigrationException(string msg, int dc) : base (msg + REPORT_MESSAGE) + protected DataCenterMigrationException(string msg, int dc) : base(msg + REPORT_MESSAGE) { DC = dc; } @@ -551,7 +555,7 @@ namespace TLSharp.Core.Network internal class PhoneMigrationException : DataCenterMigrationException { internal PhoneMigrationException(int dc) - : base ($"Phone number registered to a different DC: {dc}.", dc) + : base($"Phone number registered to a different DC: {dc}.", dc) { } } @@ -559,7 +563,7 @@ namespace TLSharp.Core.Network internal class FileMigrationException : DataCenterMigrationException { internal FileMigrationException(int dc) - : base ($"File located on a different DC: {dc}.", dc) + : base($"File located on a different DC: {dc}.", dc) { } } diff --git a/TLSharp.Core/Network/TcpMessage.cs b/TLSharp.Core/Network/TcpMessage.cs index 91ef84c..a428245 100644 --- a/TLSharp.Core/Network/TcpMessage.cs +++ b/TLSharp.Core/Network/TcpMessage.cs @@ -1,6 +1,5 @@ using System; using System.IO; -using Ionic.Crc; namespace TLSharp.Core.Network { @@ -26,9 +25,9 @@ namespace TLSharp.Core.Network { // https://core.telegram.org/mtproto#tcp-transport /* - 4 length bytes are added at the front + 4 length bytes are added at the front (to include the length, the sequence number, and CRC32; always divisible by 4) - and 4 bytes with the packet sequence number within this TCP connection + and 4 bytes with the packet sequence number within this TCP connection (the first packet sent is numbered 0, the next one 1, etc.), and 4 CRC32 bytes at the end (length, sequence number, and payload together). */ @@ -83,4 +82,4 @@ namespace TLSharp.Core.Network } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Network/TcpTransport.cs b/TLSharp.Core/Network/TcpTransport.cs index 31bd6b4..2e657bb 100644 --- a/TLSharp.Core/Network/TcpTransport.cs +++ b/TLSharp.Core/Network/TcpTransport.cs @@ -92,13 +92,12 @@ namespace TLSharp.Core.Network { return this._tcpClient.Connected; } - } - - + } + public void Dispose() { if (_tcpClient.Connected) _tcpClient.Close(); } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Properties/AssemblyInfo.cs b/TLSharp.Core/Properties/AssemblyInfo.cs index 856dc61..92a36a0 100644 --- a/TLSharp.Core/Properties/AssemblyInfo.cs +++ b/TLSharp.Core/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// 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("TLSharp.Core")] @@ -14,8 +13,8 @@ using System.Runtime.InteropServices; [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 +// 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)] @@ -25,12 +24,12 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// 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")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TLSharp.Core/Requests/AckRequest.cs b/TLSharp.Core/Requests/AckRequest.cs index 0a06b3a..18a2116 100644 --- a/TLSharp.Core/Requests/AckRequest.cs +++ b/TLSharp.Core/Requests/AckRequest.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using TeleSharp.TL; namespace TLSharp.Core.Requests { @@ -46,4 +45,4 @@ namespace TLSharp.Core.Requests } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Requests/PingRequest.cs b/TLSharp.Core/Requests/PingRequest.cs index 48aa61b..17c37fc 100644 --- a/TLSharp.Core/Requests/PingRequest.cs +++ b/TLSharp.Core/Requests/PingRequest.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using TeleSharp.TL; using TLSharp.Core.Utils; namespace TLSharp.Core.Requests @@ -36,4 +34,4 @@ namespace TLSharp.Core.Requests } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Session.cs b/TLSharp.Core/Session.cs index 7a13da9..fc660e2 100644 --- a/TLSharp.Core/Session.cs +++ b/TLSharp.Core/Session.cs @@ -9,6 +9,7 @@ namespace TLSharp.Core public interface ISessionStore { void Save(Session session); + Session Load(string sessionUserId); } @@ -43,7 +44,6 @@ namespace TLSharp.Core { public void Save(Session session) { - } public Session Load(string sessionUserId) @@ -54,9 +54,9 @@ namespace TLSharp.Core public class Session { - private const string defaultConnectionAddress = "149.154.175.100";//"149.154.167.50"; + private const string defaultConnectionAddress = "149.154.175.100";//"149.154.167.50"; - private const int defaultConnectionPort = 443; + private const int defaultConnectionPort = 443; public string SessionUserId { get; set; } public string ServerAddress { get; set; } @@ -190,4 +190,4 @@ namespace TLSharp.Core return newMessageId; } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index a8f8842..800a936 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -1,170 +1,170 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Cryptography; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; -using TeleSharp.TL.Account; -using TeleSharp.TL.Auth; -using TeleSharp.TL.Contacts; -using TeleSharp.TL.Help; -using TeleSharp.TL.Messages; -using TeleSharp.TL.Upload; -using TLSharp.Core.Auth; -using TLSharp.Core.MTProto.Crypto; -using TLSharp.Core.Network; -using TLSharp.Core.Utils; -using TLAuthorization = TeleSharp.TL.Auth.TLAuthorization; - -namespace TLSharp.Core -{ - public class TelegramClient : IDisposable - { - private MtProtoSender _sender; - private AuthKey _key; - private TcpTransport _transport; - private string _apiHash = ""; - private int _apiId = 0; - private Session _session; - private List dcOptions; - private TcpClientConnectionHandler _handler; - - public TelegramClient(int apiId, string apiHash, - ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null) - { - if (apiId == default(int)) - throw new MissingApiConfigurationException("API_ID"); - if (string.IsNullOrEmpty(apiHash)) - throw new MissingApiConfigurationException("API_HASH"); - - if (store == null) - store = new FileSessionStore(); - - TLContext.Init(); - _apiHash = apiHash; - _apiId = apiId; - _handler = handler; - - _session = Session.TryLoadOrCreateNew(store, sessionUserId); - _transport = new TcpTransport(_session.ServerAddress, _session.Port, _handler); - } - - public async Task ConnectAsync(bool reconnect = false) - { - if (_session.AuthKey == null || reconnect) - { - var result = await Authenticator.DoAuthentication(_transport); - _session.AuthKey = result.AuthKey; - _session.TimeOffset = result.TimeOffset; - } - - _sender = new MtProtoSender(_transport, _session); - - //set-up layer - var config = new TLRequestGetConfig(); - var request = new TLRequestInitConnection() - { - api_id = _apiId, - app_version = "1.0.0", - device_model = "PC", - lang_code = "en", - query = config, - system_version = "Win 10.0" - }; - var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 66, query = request }; - await _sender.Send(invokewithLayer); - await _sender.Receive(invokewithLayer); - - dcOptions = ((TLConfig)invokewithLayer.Response).dc_options.lists; - - return true; - } - - private async Task ReconnectToDcAsync(int dcId) - { - if (dcOptions == null || !dcOptions.Any()) - throw new InvalidOperationException($"Can't reconnect. Establish initial connection first."); - - var dc = dcOptions.First(d => d.id == dcId); - - _transport = new TcpTransport(dc.ip_address, dc.port, _handler); - _session.ServerAddress = dc.ip_address; - _session.Port = dc.port; - - await ConnectAsync(true); - } - - public bool IsUserAuthorized() - { - return _session.TLUser != null; - } - - public async Task IsPhoneRegisteredAsync(string phoneNumber) - { - if (String.IsNullOrWhiteSpace(phoneNumber)) - throw new ArgumentNullException(nameof(phoneNumber)); - - if (_sender == null) - throw new InvalidOperationException("Not connected!"); - - var authCheckPhoneRequest = new TLRequestCheckPhone() { phone_number = phoneNumber }; - var completed = false; - while(!completed) - { - try - { - await _sender.Send(authCheckPhoneRequest); - await _sender.Receive(authCheckPhoneRequest); - completed = true; - } - catch(PhoneMigrationException e) - { - await ReconnectToDcAsync(e.DC); - } - } - return authCheckPhoneRequest.Response.phone_registered; - } - - public async Task SendCodeRequestAsync(string phoneNumber) - { - if (String.IsNullOrWhiteSpace(phoneNumber)) - throw new ArgumentNullException(nameof(phoneNumber)); - - var completed = false; - - TLRequestSendCode request = null; - - while (!completed) - { - request = new TLRequestSendCode() { phone_number = phoneNumber, api_id = _apiId, api_hash = _apiHash }; - try - { - await _sender.Send(request); - await _sender.Receive(request); - - completed = true; - } - catch (PhoneMigrationException ex) - { - await ReconnectToDcAsync(ex.DC); - } - } - - return request.Response.phone_code_hash; - } - - public async Task MakeAuthAsync(string phoneNumber, string phoneCodeHash, string code) - { - if (String.IsNullOrWhiteSpace(phoneNumber)) - throw new ArgumentNullException(nameof(phoneNumber)); - - if (String.IsNullOrWhiteSpace(phoneCodeHash)) - throw new ArgumentNullException(nameof(phoneCodeHash)); - - if (String.IsNullOrWhiteSpace(code)) - throw new ArgumentNullException(nameof(code)); - +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +using TeleSharp.TL.Account; +using TeleSharp.TL.Auth; +using TeleSharp.TL.Contacts; +using TeleSharp.TL.Help; +using TeleSharp.TL.Messages; +using TeleSharp.TL.Upload; +using TLSharp.Core.Auth; +using TLSharp.Core.MTProto.Crypto; +using TLSharp.Core.Network; +using TLSharp.Core.Utils; +using TLAuthorization = TeleSharp.TL.Auth.TLAuthorization; + +namespace TLSharp.Core +{ + public class TelegramClient : IDisposable + { + private MtProtoSender _sender; + private AuthKey _key; + private TcpTransport _transport; + private string _apiHash = ""; + private int _apiId = 0; + private Session _session; + private List dcOptions; + private TcpClientConnectionHandler _handler; + + public TelegramClient(int apiId, string apiHash, + ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null) + { + if (apiId == default(int)) + throw new MissingApiConfigurationException("API_ID"); + if (string.IsNullOrEmpty(apiHash)) + throw new MissingApiConfigurationException("API_HASH"); + + if (store == null) + store = new FileSessionStore(); + + TLContext.Init(); + _apiHash = apiHash; + _apiId = apiId; + _handler = handler; + + _session = Session.TryLoadOrCreateNew(store, sessionUserId); + _transport = new TcpTransport(_session.ServerAddress, _session.Port, _handler); + } + + public async Task ConnectAsync(bool reconnect = false) + { + if (_session.AuthKey == null || reconnect) + { + var result = await Authenticator.DoAuthentication(_transport); + _session.AuthKey = result.AuthKey; + _session.TimeOffset = result.TimeOffset; + } + + _sender = new MtProtoSender(_transport, _session); + + //set-up layer + var config = new TLRequestGetConfig(); + var request = new TLRequestInitConnection() + { + api_id = _apiId, + app_version = "1.0.0", + device_model = "PC", + lang_code = "en", + query = config, + system_version = "Win 10.0" + }; + var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 66, query = request }; + await _sender.Send(invokewithLayer); + await _sender.Receive(invokewithLayer); + + dcOptions = ((TLConfig)invokewithLayer.Response).dc_options.lists; + + return true; + } + + private async Task ReconnectToDcAsync(int dcId) + { + if (dcOptions == null || !dcOptions.Any()) + throw new InvalidOperationException($"Can't reconnect. Establish initial connection first."); + + var dc = dcOptions.First(d => d.id == dcId); + + _transport = new TcpTransport(dc.ip_address, dc.port, _handler); + _session.ServerAddress = dc.ip_address; + _session.Port = dc.port; + + await ConnectAsync(true); + } + + public bool IsUserAuthorized() + { + return _session.TLUser != null; + } + + public async Task IsPhoneRegisteredAsync(string phoneNumber) + { + if (String.IsNullOrWhiteSpace(phoneNumber)) + throw new ArgumentNullException(nameof(phoneNumber)); + + if (_sender == null) + throw new InvalidOperationException("Not connected!"); + + var authCheckPhoneRequest = new TLRequestCheckPhone() { phone_number = phoneNumber }; + var completed = false; + while (!completed) + { + try + { + await _sender.Send(authCheckPhoneRequest); + await _sender.Receive(authCheckPhoneRequest); + completed = true; + } + catch (PhoneMigrationException e) + { + await ReconnectToDcAsync(e.DC); + } + } + return authCheckPhoneRequest.Response.phone_registered; + } + + public async Task SendCodeRequestAsync(string phoneNumber) + { + if (String.IsNullOrWhiteSpace(phoneNumber)) + throw new ArgumentNullException(nameof(phoneNumber)); + + var completed = false; + + TLRequestSendCode request = null; + + while (!completed) + { + request = new TLRequestSendCode() { phone_number = phoneNumber, api_id = _apiId, api_hash = _apiHash }; + try + { + await _sender.Send(request); + await _sender.Receive(request); + + completed = true; + } + catch (PhoneMigrationException ex) + { + await ReconnectToDcAsync(ex.DC); + } + } + + return request.Response.phone_code_hash; + } + + public async Task MakeAuthAsync(string phoneNumber, string phoneCodeHash, string code) + { + if (String.IsNullOrWhiteSpace(phoneNumber)) + throw new ArgumentNullException(nameof(phoneNumber)); + + if (String.IsNullOrWhiteSpace(phoneCodeHash)) + throw new ArgumentNullException(nameof(phoneCodeHash)); + + if (String.IsNullOrWhiteSpace(code)) + throw new ArgumentNullException(nameof(code)); + var request = new TLRequestSignIn() { phone_number = phoneNumber, phone_code_hash = phoneCodeHash, phone_code = code }; var completed = false; @@ -181,176 +181,176 @@ namespace TLSharp.Core { await ReconnectToDcAsync(e.DC); } - } - - OnUserAuthenticated(((TLUser)request.Response.user)); - - return ((TLUser)request.Response.user); - } - public async Task GetPasswordSetting() - { - var request = new TLRequestGetPassword(); - - await _sender.Send(request); - await _sender.Receive(request); - - return ((TLPassword)request.Response); - } - - public async Task MakeAuthWithPasswordAsync(TLPassword password, string password_str) - { - - byte[] password_bytes = Encoding.UTF8.GetBytes(password_str); - IEnumerable rv = password.current_salt.Concat(password_bytes).Concat(password.current_salt); - - SHA256Managed hashstring = new SHA256Managed(); - var password_hash = hashstring.ComputeHash(rv.ToArray()); - - var request = new TLRequestCheckPassword() { password_hash = password_hash }; - await _sender.Send(request); - await _sender.Receive(request); - - OnUserAuthenticated(((TLUser)request.Response.user)); - - return ((TLUser)request.Response.user); - } - - public async Task SignUpAsync(string phoneNumber, string phoneCodeHash, string code, string firstName, string lastName) - { - var request = new TLRequestSignUp() { phone_number = phoneNumber, phone_code = code, phone_code_hash = phoneCodeHash, first_name = firstName, last_name = lastName }; - await _sender.Send(request); - await _sender.Receive(request); - - OnUserAuthenticated(((TLUser)request.Response.user)); - - return ((TLUser)request.Response.user); - } - public async Task SendRequestAsync(TLMethod methodToExecute) - { - await _sender.Send(methodToExecute); - await _sender.Receive(methodToExecute); - - var result = methodToExecute.GetType().GetProperty("Response").GetValue(methodToExecute); - - return (T)result; - } - - public async Task GetContactsAsync() - { - if (!IsUserAuthorized()) - throw new InvalidOperationException("Authorize user first!"); - - var req = new TLRequestGetContacts() { hash = "" }; - - return await SendRequestAsync(req); - } - - public async Task SendMessageAsync(TLAbsInputPeer peer, string message) - { - if (!IsUserAuthorized()) - throw new InvalidOperationException("Authorize user first!"); - - return await SendRequestAsync( - new TLRequestSendMessage() - { - peer = peer, - message = message, - random_id = Helpers.GenerateRandomLong() - }); - } - - public async Task SendTypingAsync(TLAbsInputPeer peer) - { - var req = new TLRequestSetTyping() - { - action = new TLSendMessageTypingAction(), - peer = peer - }; - return await SendRequestAsync(req); - } - - public async Task GetUserDialogsAsync() - { - var peer = new TLInputPeerSelf(); - return await SendRequestAsync( - new TLRequestGetDialogs() { offset_date = 0, offset_peer = peer, limit = 100 }); - } - - public async Task SendUploadedPhoto(TLAbsInputPeer peer, TLAbsInputFile file, string caption) - { - return await SendRequestAsync(new TLRequestSendMedia() - { - random_id = Helpers.GenerateRandomLong(), - background = false, - clear_draft = false, - media = new TLInputMediaUploadedPhoto() { file = file, caption = caption }, - peer = peer - }); - } - - public async Task SendUploadedDocument( - TLAbsInputPeer peer, TLAbsInputFile file, string caption, string mimeType, TLVector attributes) - { - return await SendRequestAsync(new TLRequestSendMedia() - { - random_id = Helpers.GenerateRandomLong(), - background = false, - clear_draft = false, - media = new TLInputMediaUploadedDocument() - { - file = file, - caption = caption, - mime_type = mimeType, - attributes = attributes - }, - peer = peer - }); - } - - public async Task GetFile(TLAbsInputFileLocation location, int filePartSize, int offset = 0) - { - TLFile result = null; - try - { - result = await SendRequestAsync(new TLRequestGetFile() - { - location = location, - limit = filePartSize, - offset = offset - }); - } - catch (FileMigrationException ex) - { - var exportedAuth = await SendRequestAsync(new TLRequestExportAuthorization() { dc_id = ex.DC }); - - var authKey = _session.AuthKey; - var timeOffset = _session.TimeOffset; - var serverAddress = _session.ServerAddress; - var serverPort = _session.Port; - - await ReconnectToDcAsync(ex.DC); - var auth = await SendRequestAsync(new TLRequestImportAuthorization - { - bytes = exportedAuth.bytes, - id = exportedAuth.id - }); - result = await GetFile(location, filePartSize, offset); - - _session.AuthKey = authKey; - _session.TimeOffset = timeOffset; - _transport = new TcpTransport(serverAddress, serverPort); - _session.ServerAddress = serverAddress; - _session.Port = serverPort; - await ConnectAsync(); - - } - - return result; - } - - public async Task SendPingAsync() - { - await _sender.SendPingAsync(); + } + + OnUserAuthenticated(((TLUser)request.Response.user)); + + return ((TLUser)request.Response.user); + } + + public async Task GetPasswordSetting() + { + var request = new TLRequestGetPassword(); + + await _sender.Send(request); + await _sender.Receive(request); + + return ((TLPassword)request.Response); + } + + public async Task MakeAuthWithPasswordAsync(TLPassword password, string password_str) + { + byte[] password_bytes = Encoding.UTF8.GetBytes(password_str); + IEnumerable rv = password.current_salt.Concat(password_bytes).Concat(password.current_salt); + + SHA256Managed hashstring = new SHA256Managed(); + var password_hash = hashstring.ComputeHash(rv.ToArray()); + + var request = new TLRequestCheckPassword() { password_hash = password_hash }; + await _sender.Send(request); + await _sender.Receive(request); + + OnUserAuthenticated(((TLUser)request.Response.user)); + + return ((TLUser)request.Response.user); + } + + public async Task SignUpAsync(string phoneNumber, string phoneCodeHash, string code, string firstName, string lastName) + { + var request = new TLRequestSignUp() { phone_number = phoneNumber, phone_code = code, phone_code_hash = phoneCodeHash, first_name = firstName, last_name = lastName }; + await _sender.Send(request); + await _sender.Receive(request); + + OnUserAuthenticated(((TLUser)request.Response.user)); + + return ((TLUser)request.Response.user); + } + + public async Task SendRequestAsync(TLMethod methodToExecute) + { + await _sender.Send(methodToExecute); + await _sender.Receive(methodToExecute); + + var result = methodToExecute.GetType().GetProperty("Response").GetValue(methodToExecute); + + return (T)result; + } + + public async Task GetContactsAsync() + { + if (!IsUserAuthorized()) + throw new InvalidOperationException("Authorize user first!"); + + var req = new TLRequestGetContacts() { hash = "" }; + + return await SendRequestAsync(req); + } + + public async Task SendMessageAsync(TLAbsInputPeer peer, string message) + { + if (!IsUserAuthorized()) + throw new InvalidOperationException("Authorize user first!"); + + return await SendRequestAsync( + new TLRequestSendMessage() + { + peer = peer, + message = message, + random_id = Helpers.GenerateRandomLong() + }); + } + + public async Task SendTypingAsync(TLAbsInputPeer peer) + { + var req = new TLRequestSetTyping() + { + action = new TLSendMessageTypingAction(), + peer = peer + }; + return await SendRequestAsync(req); + } + + public async Task GetUserDialogsAsync() + { + var peer = new TLInputPeerSelf(); + return await SendRequestAsync( + new TLRequestGetDialogs() { offset_date = 0, offset_peer = peer, limit = 100 }); + } + + public async Task SendUploadedPhoto(TLAbsInputPeer peer, TLAbsInputFile file, string caption) + { + return await SendRequestAsync(new TLRequestSendMedia() + { + random_id = Helpers.GenerateRandomLong(), + background = false, + clear_draft = false, + media = new TLInputMediaUploadedPhoto() { file = file, caption = caption }, + peer = peer + }); + } + + public async Task SendUploadedDocument( + TLAbsInputPeer peer, TLAbsInputFile file, string caption, string mimeType, TLVector attributes) + { + return await SendRequestAsync(new TLRequestSendMedia() + { + random_id = Helpers.GenerateRandomLong(), + background = false, + clear_draft = false, + media = new TLInputMediaUploadedDocument() + { + file = file, + caption = caption, + mime_type = mimeType, + attributes = attributes + }, + peer = peer + }); + } + + public async Task GetFile(TLAbsInputFileLocation location, int filePartSize, int offset = 0) + { + TLFile result = null; + try + { + result = await SendRequestAsync(new TLRequestGetFile() + { + location = location, + limit = filePartSize, + offset = offset + }); + } + catch (FileMigrationException ex) + { + var exportedAuth = await SendRequestAsync(new TLRequestExportAuthorization() { dc_id = ex.DC }); + + var authKey = _session.AuthKey; + var timeOffset = _session.TimeOffset; + var serverAddress = _session.ServerAddress; + var serverPort = _session.Port; + + await ReconnectToDcAsync(ex.DC); + var auth = await SendRequestAsync(new TLRequestImportAuthorization + { + bytes = exportedAuth.bytes, + id = exportedAuth.id + }); + result = await GetFile(location, filePartSize, offset); + + _session.AuthKey = authKey; + _session.TimeOffset = timeOffset; + _transport = new TcpTransport(serverAddress, serverPort); + _session.ServerAddress = serverAddress; + _session.Port = serverPort; + await ConnectAsync(); + } + + return result; + } + + public async Task SendPingAsync() + { + await _sender.SendPingAsync(); } public async Task GetHistoryAsync(TLAbsInputPeer peer, int offset, int max_id, int limit) @@ -366,31 +366,31 @@ namespace TLSharp.Core limit = limit }; return await SendRequestAsync(req); - } - - /// - /// Serch user or chat. API: contacts.search#11f812d8 q:string limit:int = contacts.Found; - /// - /// User or chat name - /// Max result count - /// - public async Task SearchUserAsync(string q, int limit = 10) - { - var r = new TeleSharp.TL.Contacts.TLRequestSearch - { - q = q, - limit = limit - }; - - return await SendRequestAsync(r); - } - - private void OnUserAuthenticated(TLUser TLUser) - { - _session.TLUser = TLUser; - _session.SessionExpires = int.MaxValue; - - _session.Save(); + } + + /// + /// Serch user or chat. API: contacts.search#11f812d8 q:string limit:int = contacts.Found; + /// + /// User or chat name + /// Max result count + /// + public async Task SearchUserAsync(string q, int limit = 10) + { + var r = new TeleSharp.TL.Contacts.TLRequestSearch + { + q = q, + limit = limit + }; + + return await SendRequestAsync(r); + } + + private void OnUserAuthenticated(TLUser TLUser) + { + _session.TLUser = TLUser; + _session.SessionExpires = int.MaxValue; + + _session.Save(); } public bool IsConnected @@ -403,32 +403,37 @@ namespace TLSharp.Core } } - public void Dispose() - { - if (_transport != null) - { - _transport.Dispose(); - _transport = null; - } - } - } - - public class MissingApiConfigurationException : Exception - { - public const string InfoUrl = "https://github.com/sochix/TLSharp#quick-configuration"; - - internal MissingApiConfigurationException(string invalidParamName) : - base($"Your {invalidParamName} setting is missing. Adjust the configuration first, see {InfoUrl}") - { - } - } - - public class InvalidPhoneCodeException : Exception - { - internal InvalidPhoneCodeException(string msg) : base(msg) { } - } - public class CloudPasswordNeededException : Exception - { - internal CloudPasswordNeededException(string msg) : base(msg) { } - } -} + public void Dispose() + { + if (_transport != null) + { + _transport.Dispose(); + _transport = null; + } + } + } + + public class MissingApiConfigurationException : Exception + { + public const string InfoUrl = "https://github.com/sochix/TLSharp#quick-configuration"; + + internal MissingApiConfigurationException(string invalidParamName) : + base($"Your {invalidParamName} setting is missing. Adjust the configuration first, see {InfoUrl}") + { + } + } + + public class InvalidPhoneCodeException : Exception + { + internal InvalidPhoneCodeException(string msg) : base(msg) + { + } + } + + public class CloudPasswordNeededException : Exception + { + internal CloudPasswordNeededException(string msg) : base(msg) + { + } + } +} \ No newline at end of file diff --git a/TLSharp.Core/Utils/Helpers.cs b/TLSharp.Core/Utils/Helpers.cs index cff71ec..d1a9316 100644 --- a/TLSharp.Core/Utils/Helpers.cs +++ b/TLSharp.Core/Utils/Helpers.cs @@ -93,4 +93,4 @@ namespace TLSharp.Core.Utils } } } -} +} \ No newline at end of file diff --git a/TLSharp.Core/Utils/UploadHelper.cs b/TLSharp.Core/Utils/UploadHelper.cs index 68fc176..812d332 100644 --- a/TLSharp.Core/Utils/UploadHelper.cs +++ b/TLSharp.Core/Utils/UploadHelper.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; @@ -132,4 +131,4 @@ namespace TLSharp.Core.Utils } } } -} +} \ No newline at end of file diff --git a/TLSharp.Tests.NUnit/Test.cs b/TLSharp.Tests.NUnit/Test.cs index 40e54ac..dd0ca43 100644 --- a/TLSharp.Tests.NUnit/Test.cs +++ b/TLSharp.Tests.NUnit/Test.cs @@ -1,8 +1,4 @@ - -using System; -using System.Threading.Tasks; - -using NUnit.Framework; +using System.Threading.Tasks; namespace TLSharp.Tests { @@ -82,4 +78,4 @@ namespace TLSharp.Tests await base.SendMessageByUserNameTest(); } } -} +} \ No newline at end of file diff --git a/TLSharp.Tests.VS/Properties/AssemblyInfo.cs b/TLSharp.Tests.VS/Properties/AssemblyInfo.cs index 2eef1f8..3069bf5 100644 --- a/TLSharp.Tests.VS/Properties/AssemblyInfo.cs +++ b/TLSharp.Tests.VS/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// 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("TLSharp.Tests.VS")] @@ -14,8 +13,8 @@ using System.Runtime.InteropServices; [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 +// 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)] @@ -25,12 +24,12 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// 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")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TLSharp.Tests.VS/TLSharpTestsVs.cs b/TLSharp.Tests.VS/TLSharpTestsVs.cs index 8f6c58d..0610a4c 100644 --- a/TLSharp.Tests.VS/TLSharpTestsVs.cs +++ b/TLSharp.Tests.VS/TLSharpTestsVs.cs @@ -1,8 +1,6 @@ - +using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading.Tasks; -using Microsoft.VisualStudio.TestTools.UnitTesting; - namespace TLSharp.Tests { [TestClass] @@ -13,7 +11,7 @@ namespace TLSharp.Tests { base.Init(o => Assert.IsNotNull(o), b => Assert.IsTrue(b)); } - + [TestMethod] public override async Task AuthUser() { @@ -67,6 +65,7 @@ namespace TLSharp.Tests { await base.CheckPhones(); } + [TestMethod] [Ignore] public override async Task FloodExceptionShouldNotCauseCannotReadPackageLengthError() @@ -80,4 +79,4 @@ namespace TLSharp.Tests await base.SendMessageByUserNameTest(); } } -} +} \ No newline at end of file diff --git a/TLSharp.Tests/Properties/AssemblyInfo.cs b/TLSharp.Tests/Properties/AssemblyInfo.cs index 706d0a4..7588908 100644 --- a/TLSharp.Tests/Properties/AssemblyInfo.cs +++ b/TLSharp.Tests/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// 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("TLSharp.Tests")] @@ -14,8 +13,8 @@ using System.Runtime.InteropServices; [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 +// 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)] @@ -25,12 +24,12 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// 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")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TLSharp.Tests/TLSharpTests.cs b/TLSharp.Tests/TLSharpTests.cs index 487b535..58a9aff 100644 --- a/TLSharp.Tests/TLSharpTests.cs +++ b/TLSharp.Tests/TLSharpTests.cs @@ -1,5 +1,4 @@ - -using System; +using System; using System.Configuration; using System.Diagnostics; using System.IO; @@ -11,7 +10,6 @@ using TeleSharp.TL; using TeleSharp.TL.Messages; using TLSharp.Core; using TLSharp.Core.Network; -using TLSharp.Core.Requests; using TLSharp.Core.Utils; namespace TLSharp.Tests @@ -38,7 +36,7 @@ namespace TLSharp.Tests private int ApiId { get; set; } - class Assert + private class Assert { static internal void IsNotNull(object obj) { @@ -143,7 +141,7 @@ namespace TLSharp.Tests var password = await client.GetPasswordSetting(); var password_str = PasswordToAuthenticate; - user = await client.MakeAuthWithPasswordAsync(password,password_str); + user = await client.MakeAuthWithPasswordAsync(password, password_str); } catch (InvalidPhoneCodeException ex) { @@ -191,7 +189,7 @@ namespace TLSharp.Tests await client.ConnectAsync(); - var dialogs = (TLDialogs) await client.GetUserDialogsAsync(); + var dialogs = (TLDialogs)await client.GetUserDialogsAsync(); var chat = dialogs.chats.lists .OfType() .FirstOrDefault(c => c.title == "TestGroup"); @@ -268,7 +266,7 @@ namespace TLSharp.Tests version = document.version }, document.size); - + Assert.IsTrue(resFile.bytes.Length > 0); } @@ -283,9 +281,9 @@ namespace TLSharp.Tests var user = result.users.lists .OfType() .FirstOrDefault(x => x.id == 5880094); - + var photo = ((TLUserProfilePhoto)user.photo); - var photoLocation = (TLFileLocation) photo.photo_big; + var photoLocation = (TLFileLocation)photo.photo_big; var resFile = await client.GetFile(new TLInputFileLocation() { @@ -294,7 +292,7 @@ namespace TLSharp.Tests volume_id = photoLocation.volume_id }, 1024); - var res = await client.GetUserDialogsAsync(); + var res = await client.GetUserDialogsAsync(); Assert.IsTrue(resFile.bytes.Length > 0); } @@ -377,4 +375,4 @@ namespace TLSharp.Tests await client.SendMessageAsync(new TLInputPeerUser() { user_id = user.id }, "TEST"); } } -} +} \ No newline at end of file diff --git a/TLSharp.Tests/app.config b/TLSharp.Tests/app.config index 490261d..9465786 100644 --- a/TLSharp.Tests/app.config +++ b/TLSharp.Tests/app.config @@ -5,11 +5,11 @@ - - - - - - + + + + + + - + \ No newline at end of file diff --git a/TeleSharp.Generator/App.config b/TeleSharp.Generator/App.config index 88fa402..6584bb4 100644 --- a/TeleSharp.Generator/App.config +++ b/TeleSharp.Generator/App.config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file diff --git a/TeleSharp.Generator/Models.cs b/TeleSharp.Generator/Models.cs index 8e43820..61f6c5f 100644 --- a/TeleSharp.Generator/Models.cs +++ b/TeleSharp.Generator/Models.cs @@ -1,36 +1,38 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json.Schema; +using System.Collections.Generic; + namespace TeleSharp.Generator { - class Method + internal 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; } + public string type { get; set; } } - class Param + + internal class Param { public string name { get; set; } public string type { get; set; } } - class Constructor + + internal 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 + + internal class Schema { public List constructors { get; set; } public List methods { get; set; } } -} +} \ No newline at end of file diff --git a/TeleSharp.Generator/Program.cs b/TeleSharp.Generator/Program.cs index 535017b..f59ae09 100644 --- a/TeleSharp.Generator/Program.cs +++ b/TeleSharp.Generator/Program.cs @@ -1,24 +1,18 @@ -using Newtonsoft.Json; -using System; +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 + internal 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) - { + private 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" }); + private static List interfacesList = new List(); + private static List classesList = new List(); + private static void Main(string[] args) + { string AbsStyle = File.ReadAllText("ConstructorAbs.tmp"); string NormalStyle = File.ReadAllText("Constructor.tmp"); string MethodStyle = File.ReadAllText("Method.tmp"); @@ -68,6 +62,7 @@ namespace TeleSharp.Generator 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); @@ -75,16 +70,22 @@ namespace TeleSharp.Generator 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 + + #endregion About Class + #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 + + #endregion Fields + #region ComputeFlagFunc + if (!c.Params.Any(x => x.name == "flags")) temp = temp.Replace("/* COMPUTE */", ""); else { @@ -102,8 +103,11 @@ namespace TeleSharp.Generator } temp = temp.Replace("/* COMPUTE */", compute); } - #endregion + + #endregion ComputeFlagFunc + #region SerializeFunc + var serialize = ""; if (c.Params.Any(x => x.name == "flags")) serialize += "ComputeFlags();" + Environment.NewLine + "bw.Write(flags);" + Environment.NewLine; @@ -112,8 +116,11 @@ namespace TeleSharp.Generator serialize += WriteWriteCode(p) + Environment.NewLine; } temp = temp.Replace("/* SERIALIZE */", serialize); - #endregion + + #endregion SerializeFunc + #region DeSerializeFunc + var deserialize = ""; foreach (var p in c.Params) @@ -121,7 +128,9 @@ namespace TeleSharp.Generator deserialize += WriteReadCode(p) + Environment.NewLine; } temp = temp.Replace("/* DESERIALIZE */", deserialize); - #endregion + + #endregion DeSerializeFunc + writer.Write(temp); writer.Close(); classFile.Close(); @@ -134,6 +143,7 @@ namespace TeleSharp.Generator 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); @@ -141,8 +151,11 @@ namespace TeleSharp.Generator temp = temp.Replace("/* PARENT */", "TLMethod"); temp = temp.Replace("/*Constructor*/", c.id.ToString()); temp = temp.Replace("/* NAME */", GetNameofClass(c.method, false, true)); - #endregion + + #endregion About Class + #region Fields + string fields = ""; foreach (var tmp in c.Params) { @@ -150,8 +163,11 @@ namespace TeleSharp.Generator } fields += $" public {CheckForFlagBase(c.type, GetTypeName(c.type))} Response" + "{ get; set;}" + Environment.NewLine; temp = temp.Replace("/* PARAMS */", fields); - #endregion + + #endregion Fields + #region ComputeFlagFunc + if (!c.Params.Any(x => x.name == "flags")) temp = temp.Replace("/* COMPUTE */", ""); else { @@ -169,8 +185,11 @@ namespace TeleSharp.Generator } temp = temp.Replace("/* COMPUTE */", compute); } - #endregion + + #endregion ComputeFlagFunc + #region SerializeFunc + var serialize = ""; if (c.Params.Any(x => x.name == "flags")) serialize += "ComputeFlags();" + Environment.NewLine + "bw.Write(flags);" + Environment.NewLine; @@ -179,8 +198,11 @@ namespace TeleSharp.Generator serialize += WriteWriteCode(p) + Environment.NewLine; } temp = temp.Replace("/* SERIALIZE */", serialize); - #endregion + + #endregion SerializeFunc + #region DeSerializeFunc + var deserialize = ""; foreach (var p in c.Params) @@ -188,19 +210,25 @@ namespace TeleSharp.Generator deserialize += WriteReadCode(p) + Environment.NewLine; } temp = temp.Replace("/* DESERIALIZE */", deserialize); - #endregion + + #endregion DeSerializeFunc + #region DeSerializeRespFunc + var deserializeResp = ""; Param p2 = new Param() { name = "Response", type = c.type }; deserializeResp += WriteReadCode(p2) + Environment.NewLine; temp = temp.Replace("/* DESERIALIZEResp */", deserializeResp); - #endregion + + #endregion DeSerializeRespFunc + writer.Write(temp); writer.Close(); classFile.Close(); } } } + public static string FormatName(string input) { if (String.IsNullOrEmpty(input)) @@ -217,11 +245,13 @@ namespace TeleSharp.Generator } 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) @@ -243,18 +273,22 @@ namespace TeleSharp.Generator 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) @@ -262,6 +296,7 @@ namespace TeleSharp.Generator else return "TeleSharp.TL"; } + public static string CheckForFlagBase(string type, string result) { if (type.IndexOf('?') == -1) @@ -274,6 +309,7 @@ namespace TeleSharp.Generator else return result; } } + public static string GetTypeName(string type) { switch (type.ToLower()) @@ -281,21 +317,29 @@ namespace TeleSharp.Generator 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"; } @@ -306,10 +350,8 @@ namespace TeleSharp.Generator if (type.ToLower().Contains("inputcontact")) return "TLInputPhoneContact"; - 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())) @@ -330,9 +372,8 @@ namespace TeleSharp.Generator { return GetTypeName(type.Split('?')[1]); } - - } + public static string LookTypeInLists(string src) { if (interfacesList.Any(x => x.ToLower() == src.ToLower())) @@ -342,6 +383,7 @@ namespace TeleSharp.Generator else return src; } + public static string WriteWriteCode(Param p, bool flag = false) { switch (p.type.ToLower()) @@ -377,6 +419,7 @@ namespace TeleSharp.Generator } } } + public static string WriteReadCode(Param p) { switch (p.type.ToLower()) @@ -419,6 +462,7 @@ namespace TeleSharp.Generator } } } + public static FileStream MakeFile(string path) { if (!Directory.Exists(Path.GetDirectoryName(path))) @@ -428,5 +472,4 @@ namespace TeleSharp.Generator return File.OpenWrite(path); } } - } \ No newline at end of file diff --git a/TeleSharp.Generator/Properties/AssemblyInfo.cs b/TeleSharp.Generator/Properties/AssemblyInfo.cs index 7c4146a..158efe4 100644 --- a/TeleSharp.Generator/Properties/AssemblyInfo.cs +++ b/TeleSharp.Generator/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// 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")] @@ -14,8 +13,8 @@ using System.Runtime.InteropServices; [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 +// 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)] @@ -25,12 +24,12 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// 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")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TeleSharp.TL/ObjectDeserializer.cs b/TeleSharp.TL/ObjectDeserializer.cs index 3c695ab..15e3816 100644 --- a/TeleSharp.TL/ObjectDeserializer.cs +++ b/TeleSharp.TL/ObjectDeserializer.cs @@ -1,11 +1,6 @@ using 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 @@ -14,12 +9,13 @@ namespace TeleSharp.TL { int Constructor = reader.ReadInt32(); object obj; - Type t =null; - try { + Type t = null; + try + { t = TLContext.getType(Constructor); obj = Activator.CreateInstance(t); } - catch(Exception ex) + catch (Exception ex) { throw new InvalidDataException("Constructor Invalid Or Context.Init Not Called !", ex); } @@ -35,10 +31,12 @@ namespace TeleSharp.TL } else throw new NotImplementedException("Weird Type : " + t.Namespace + " | " + t.Name); } - public static void SerializeObject(object obj,BinaryWriter writer) + + 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"); @@ -47,4 +45,4 @@ namespace TeleSharp.TL return t; } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/Properties/AssemblyInfo.cs b/TeleSharp.TL/Properties/AssemblyInfo.cs index 3ff3c97..f513ead 100644 --- a/TeleSharp.TL/Properties/AssemblyInfo.cs +++ b/TeleSharp.TL/Properties/AssemblyInfo.cs @@ -1,8 +1,7 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// 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")] @@ -14,8 +13,8 @@ using System.Runtime.InteropServices; [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 +// 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)] @@ -25,12 +24,12 @@ using System.Runtime.InteropServices; // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// 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")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLAbsPassword.cs b/TeleSharp.TL/TL/Account/TLAbsPassword.cs index 9bfacaf..7570a8b 100644 --- a/TeleSharp.TL/TL/Account/TLAbsPassword.cs +++ b/TeleSharp.TL/TL/Account/TLAbsPassword.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLAuthorizations.cs b/TeleSharp.TL/TL/Account/TLAuthorizations.cs index c79e460..a6eb23a 100644 --- a/TeleSharp.TL/TL/Account/TLAuthorizations.cs +++ b/TeleSharp.TL/TL/Account/TLAuthorizations.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLNoPassword.cs b/TeleSharp.TL/TL/Account/TLNoPassword.cs index db0443a..f22f479 100644 --- a/TeleSharp.TL/TL/Account/TLNoPassword.cs +++ b/TeleSharp.TL/TL/Account/TLNoPassword.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Account 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); BytesUtil.Serialize(new_salt, bw); StringUtil.Serialize(email_unconfirmed_pattern, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLPassword.cs b/TeleSharp.TL/TL/Account/TLPassword.cs index 31660f6..eff1c12 100644 --- a/TeleSharp.TL/TL/Account/TLPassword.cs +++ b/TeleSharp.TL/TL/Account/TLPassword.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Account public bool has_recovery { get; set; } public string email_unconfirmed_pattern { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Account hint = StringUtil.Deserialize(br); has_recovery = BoolUtil.Deserialize(br); email_unconfirmed_pattern = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL.Account StringUtil.Serialize(hint, bw); BoolUtil.Serialize(has_recovery, bw); StringUtil.Serialize(email_unconfirmed_pattern, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs index 646b2de..18381bf 100644 --- a/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs +++ b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,7 +19,6 @@ namespace TeleSharp.TL.Account public string hint { get; set; } public string email { get; set; } - public void ComputeFlags() { flags = 0; @@ -32,7 +26,6 @@ namespace TeleSharp.TL.Account 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) @@ -57,8 +50,6 @@ namespace TeleSharp.TL.Account email = StringUtil.Deserialize(br); else email = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -74,7 +65,6 @@ namespace TeleSharp.TL.Account StringUtil.Serialize(hint, bw); if ((flags & 2) != 0) StringUtil.Serialize(email, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs index 1a56870..0105747 100644 --- a/TeleSharp.TL/TL/Account/TLPasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLPrivacyRules.cs b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs index b5e011e..f790977 100644 --- a/TeleSharp.TL/TL/Account/TLPrivacyRules.cs +++ b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Account 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); ObjectUtils.SerializeObject(rules, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs index 151211c..d3042c4 100644 --- a/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs +++ b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Account public string phone_code { get; set; } public TLAbsUser Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Account phone_number = StringUtil.Deserialize(br); phone_code_hash = StringUtil.Deserialize(br); phone_code = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs index 9d7d869..2cdc5c1 100644 --- a/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs +++ b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs b/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs index 2e61e50..c648778 100644 --- a/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs +++ b/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs @@ -1,10 +1,5 @@ -using 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(1596029123)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account public string phone_code { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { phone_code_hash = StringUtil.Deserialize(br); phone_code = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); StringUtil.Serialize(phone_code_hash, bw); StringUtil.Serialize(phone_code, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs index c4fa8fd..c4c8555 100644 --- a/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs +++ b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs index 50c0799..f587be0 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs index da2a722..bce3406 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs index 4224d57..3907193 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs index c9dcb56..33617e5 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs index 29c6b85..a8fd6c1 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs index b54e501..77f7028 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs b/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs index 0fc8c00..4e7702f 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs @@ -1,10 +1,5 @@ -using 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(1250046590)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account public int period { get; set; } public Account.TLTmpPassword Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { password_hash = BytesUtil.Deserialize(br); period = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); BytesUtil.Serialize(password_hash, bw); bw.Write(period); - } + public override void deserializeResponse(BinaryReader br) { Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs index df2e4d6..d4b44bd 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs index a5bb3f6..a664eef 100644 --- a/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs +++ b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); bw.Write(token_type); StringUtil.Serialize(token, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs index e29ff0c..5016400 100644 --- a/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs +++ b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(reason, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs index 53ae259..093a727 100644 --- a/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs +++ b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs index 7451499..cd57bd5 100644 --- a/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs index 4f5f9ea..5faa131 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL.Account 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) @@ -42,8 +35,6 @@ namespace TeleSharp.TL.Account current_number = BoolUtil.Deserialize(br); else current_number = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +46,11 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs b/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs index f1b4824..12a802f 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs @@ -1,10 +1,5 @@ -using 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(353818557)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL.Account 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) @@ -42,8 +35,6 @@ namespace TeleSharp.TL.Account current_number = BoolUtil.Deserialize(br); else current_number = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +46,11 @@ namespace TeleSharp.TL.Account StringUtil.Serialize(hash, bw); if ((flags & 1) != 0) BoolUtil.Serialize(current_number.Value, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs index c76328e..1aed968 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs index 3349bef..bf49767 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); ObjectUtils.SerializeObject(key, bw); ObjectUtils.SerializeObject(rules, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs index 32c7d5a..cdd7d83 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); bw.Write(token_type); StringUtil.Serialize(token, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs index 949ce63..cce8007 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs index f8e7fef..43ddf18 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(settings, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs index 84f7cd5..0c3eeb2 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Account 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); BytesUtil.Serialize(current_password_hash, bw); ObjectUtils.SerializeObject(new_settings, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs index 067357d..b42de40 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,14 +19,12 @@ namespace TeleSharp.TL.Account 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) @@ -51,8 +44,6 @@ namespace TeleSharp.TL.Account about = StringUtil.Deserialize(br); else about = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -66,12 +57,11 @@ namespace TeleSharp.TL.Account StringUtil.Serialize(last_name, bw); if ((flags & 4) != 0) StringUtil.Serialize(about, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs index 9855eae..1e77249 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs index 724546c..f6527fb 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Account 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Account/TLTmpPassword.cs b/TeleSharp.TL/TL/Account/TLTmpPassword.cs index 97afa55..afc5df9 100644 --- a/TeleSharp.TL/TL/Account/TLTmpPassword.cs +++ b/TeleSharp.TL/TL/Account/TLTmpPassword.cs @@ -1,10 +1,5 @@ -using 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(-614138572)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Account public byte[] tmp_password { get; set; } public int valid_until { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { tmp_password = BytesUtil.Deserialize(br); valid_until = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Account bw.Write(Constructor); BytesUtil.Serialize(tmp_password, bw); bw.Write(valid_until); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs b/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs index fa01532..a9e16e8 100644 --- a/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs +++ b/TeleSharp.TL/TL/Auth/TLAbsCodeType.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs b/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs index c77d063..f948067 100644 --- a/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs +++ b/TeleSharp.TL/TL/Auth/TLAbsSentCodeType.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLAuthorization.cs b/TeleSharp.TL/TL/Auth/TLAuthorization.cs index c174acd..1baec7b 100644 --- a/TeleSharp.TL/TL/Auth/TLAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLAuthorization.cs @@ -1,10 +1,5 @@ -using 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(-855308010)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL.Auth public int? tmp_sessions { get; set; } public TLAbsUser user { get; set; } - public void ComputeFlags() { flags = 0; flags = tmp_sessions != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL.Auth tmp_sessions = null; user = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +42,6 @@ namespace TeleSharp.TL.Auth if ((flags & 1) != 0) bw.Write(tmp_sessions.Value); ObjectUtils.SerializeObject(user, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs index 2a13764..d5b0264 100644 --- a/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs +++ b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs index 2c7e702..1a8dd37 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs index 8a08af4..05afe22 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs index c7279cd..6e73490 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs index 3ea43ca..535f8b2 100644 --- a/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Auth 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Auth bw.Write(Constructor); bw.Write(id); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs index ea805f6..33f1fec 100644 --- a/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs +++ b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs index 227ab01..7dc08a7 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Auth public byte[] encrypted_message { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Auth nonce = br.ReadInt64(); expires_at = br.ReadInt32(); encrypted_message = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Auth bw.Write(nonce); bw.Write(expires_at); BytesUtil.Serialize(encrypted_message, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs index 8f567ae..e0861b4 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Auth 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Auth bw.Write(Constructor); StringUtil.Serialize(phone_number, bw); StringUtil.Serialize(phone_code_hash, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs index b728dec..6d26fbe 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs index b29e89e..cf2c6d6 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs b/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs index a9e7bca..395d3bb 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs @@ -1,10 +1,5 @@ -using 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(-1907842680)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Auth public TLVector except_auth_keys { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { except_auth_keys = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(except_auth_keys, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs index b629c81..f7add93 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs index d0718a4..2eb8beb 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Auth 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Auth bw.Write(Constructor); bw.Write(id); BytesUtil.Serialize(bytes, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs index 1ad936e..d96c28b 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,11 +19,9 @@ namespace TeleSharp.TL.Auth public string bot_auth_token { get; set; } public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() { flags = 0; - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Auth api_id = br.ReadInt32(); api_hash = StringUtil.Deserialize(br); bot_auth_token = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,12 +40,11 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs index 7a885f5..67caea7 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs index 4a2aa4f..6b4db14 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs index c4679da..2149897 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs index 221e937..ccab51b 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Auth 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs index aee5013..1ba084b 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs index bb956ef..55f987e 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs @@ -1,10 +1,5 @@ -using 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)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL.Auth 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) @@ -47,7 +40,6 @@ namespace TeleSharp.TL.Auth api_id = br.ReadInt32(); api_hash = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -61,12 +53,11 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs index 420509b..2edcde5 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Auth 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Auth bw.Write(Constructor); ObjectUtils.SerializeObject(phone_numbers, bw); StringUtil.Serialize(message, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs index 0dc2184..e477355 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Auth public string phone_code { get; set; } public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Auth phone_number = StringUtil.Deserialize(br); phone_code_hash = StringUtil.Deserialize(br); phone_code = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs index 0fd17db..d267bc8 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL.Auth public string last_name { get; set; } public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Auth phone_code = StringUtil.Deserialize(br); first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLSentCode.cs b/TeleSharp.TL/TL/Auth/TLSentCode.cs index 610d964..8319646 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCode.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCode.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,14 +20,12 @@ namespace TeleSharp.TL.Auth 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) @@ -50,8 +43,6 @@ namespace TeleSharp.TL.Auth timeout = br.ReadInt32(); else timeout = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -66,7 +57,6 @@ namespace TeleSharp.TL.Auth ObjectUtils.SerializeObject(next_type, bw); if ((flags & 4) != 0) bw.Write(timeout.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs index 5a487c3..8b4748a 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs index 920ae40..6d5b936 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs index 47bdbc5..0c6d054 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs index 2af8d3f..80bcf8e 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs b/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs index 9ba080c..1e380f7 100644 --- a/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs +++ b/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Bots { [TLObject(-434028723)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Bots public TLDataJSON data { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { query_id = br.ReadInt64(); data = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Bots bw.Write(Constructor); bw.Write(query_id); ObjectUtils.SerializeObject(data, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs b/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs index af13b0a..aa1149e 100644 --- a/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs +++ b/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Bots { [TLObject(-1440257555)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Bots public TLDataJSON @params { get; set; } public TLDataJSON Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { custom_method = StringUtil.Deserialize(br); @params = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Bots bw.Write(Constructor); StringUtil.Serialize(custom_method, bw); ObjectUtils.SerializeObject(@params, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs index 543b4fe..364664a 100644 --- a/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Channels 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(participant, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs index 127e352..4b64d8f 100644 --- a/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Channels public TLVector participants { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Channels count = br.ReadInt32(); participants = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Channels bw.Write(count); ObjectUtils.SerializeObject(participants, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs index d22f195..fc0a65f 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); StringUtil.Serialize(username, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs index 4d47168..4a38b24 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,13 +20,11 @@ namespace TeleSharp.TL.Channels 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) @@ -41,7 +34,6 @@ namespace TeleSharp.TL.Channels megagroup = (flags & 2) != 0; title = StringUtil.Deserialize(br); about = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -50,15 +42,13 @@ namespace TeleSharp.TL.Channels ComputeFlags(); bw.Write(flags); - StringUtil.Serialize(title, bw); StringUtil.Serialize(about, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs index b713f99..d6f7dbc 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs index 2b62cac..b473ff5 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs index 2f6c476..a41b306 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(user_id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs index 9a188b5..a71608c 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); StringUtil.Serialize(about, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs index 6f4e265..8d98791 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Channels public TLAbsChannelParticipantRole role { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Channels channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Channels ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(user_id, bw); ObjectUtils.SerializeObject(role, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs index fe472ce..8d20d9c 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(photo, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs index 5b8dfcd..bab26ed 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); StringUtil.Serialize(title, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs index 76a3b28..cf964b4 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs index 216add2..af05109 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); bw.Write(id); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs b/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs index 0d771b5..c0a5a14 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs @@ -1,10 +1,5 @@ -using 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(-1920105769)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Channels public Messages.TLAbsChats 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 = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs index cbbbb61..8b4d9fe 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels public TLVector id { get; set; } public Messages.TLAbsChats 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.TLAbsChats)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs index db5a4d1..c89cc2c 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs index 2eafe53..8a328a1 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs index 96ef93b..e1f46cb 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(user_id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs index b2099b0..0178626 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Channels public int limit { get; set; } public Channels.TLChannelParticipants Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Channels filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br); offset = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Channels ObjectUtils.SerializeObject(filter, bw); bw.Write(offset); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs index 2f2b8ae..f819808 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(users, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs index 2fd7439..7a61a05 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs index 5b5bc58..0051d58 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Channels public bool kicked { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Channels channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); kicked = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Channels ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(user_id, bw); BoolUtil.Serialize(kicked, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs index c62dd0a..76fbe71 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Channels 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs index 7837b31..b8d9e4f 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); bw.Write(max_id); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs index ea78032..4cd683e 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Channels public TLVector id { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Channels channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); id = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Channels ObjectUtils.SerializeObject(channel, bw); ObjectUtils.SerializeObject(user_id, bw); ObjectUtils.SerializeObject(id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs index e0401e8..5647cae 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); BoolUtil.Serialize(enabled, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs index f215360..20ecd8f 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); BoolUtil.Serialize(enabled, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs index 8c0724a..9ad0deb 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL.Channels 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) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Channels silent = (flags & 1) != 0; channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Channels ObjectUtils.SerializeObject(channel, bw); bw.Write(id); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs index 012e52d..e5f6e4a 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Channels 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Channels bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); StringUtil.Serialize(username, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs b/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs index 74381d8..ff30a9a 100644 --- a/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs +++ b/TeleSharp.TL/TL/Contacts/TLAbsBlocked.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs b/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs index bb97ae3..6a27b7f 100644 --- a/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLAbsContacts.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs index f3df0c1..e4c1bc9 100644 --- a/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs +++ b/TeleSharp.TL/TL/Contacts/TLAbsTopPeers.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLBlocked.cs b/TeleSharp.TL/TL/Contacts/TLBlocked.cs index 4599bef..99d8d1e 100644 --- a/TeleSharp.TL/TL/Contacts/TLBlocked.cs +++ b/TeleSharp.TL/TL/Contacts/TLBlocked.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); ObjectUtils.SerializeObject(blocked, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs index 1e6799c..d3f793c 100644 --- a/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs +++ b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLVector blocked { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts count = br.ReadInt32(); blocked = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts bw.Write(count); ObjectUtils.SerializeObject(blocked, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLContacts.cs b/TeleSharp.TL/TL/Contacts/TLContacts.cs index de8ee75..4966061 100644 --- a/TeleSharp.TL/TL/Contacts/TLContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLContacts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); ObjectUtils.SerializeObject(contacts, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs index ef9f2bc..5fd2a49 100644 --- a/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs +++ b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Contacts } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLFound.cs b/TeleSharp.TL/TL/Contacts/TLFound.cs index 5bb1057..5b3c0d0 100644 --- a/TeleSharp.TL/TL/Contacts/TLFound.cs +++ b/TeleSharp.TL/TL/Contacts/TLFound.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts results = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts ObjectUtils.SerializeObject(results, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs index 1825722..ed058e0 100644 --- a/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLVector retry_contacts { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts imported = (TLVector)ObjectUtils.DeserializeVector(br); retry_contacts = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts ObjectUtils.SerializeObject(imported, bw); ObjectUtils.SerializeObject(retry_contacts, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLLink.cs b/TeleSharp.TL/TL/Contacts/TLLink.cs index 59c1e93..27247b5 100644 --- a/TeleSharp.TL/TL/Contacts/TLLink.cs +++ b/TeleSharp.TL/TL/Contacts/TLLink.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLAbsContactLink foreign_link { get; set; } public TLAbsUser user { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); user = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts ObjectUtils.SerializeObject(my_link, bw); ObjectUtils.SerializeObject(foreign_link, bw); ObjectUtils.SerializeObject(user, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs index b2934d9..3a3ecbd 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs index 3920cf2..de4c6d0 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs index 9691678..32f09ae 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs index cafdaee..edcd0ff 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs index 466b2bd..7bd6990 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); bw.Write(offset); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs index 1d5a242..2097a3e 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs index aff110f..ed957af 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs index 7419a63..fbc5476 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -30,7 +25,6 @@ namespace TeleSharp.TL.Contacts public int hash { get; set; } public Contacts.TLAbsTopPeers Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -40,7 +34,6 @@ namespace TeleSharp.TL.Contacts flags = phone_calls ? (flags | 8) : (flags & ~8); flags = groups ? (flags | 1024) : (flags & ~1024); flags = channels ? (flags | 32768) : (flags & ~32768); - } public override void DeserializeBody(BinaryReader br) @@ -55,7 +48,6 @@ namespace TeleSharp.TL.Contacts offset = br.ReadInt32(); limit = br.ReadInt32(); hash = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -64,20 +56,14 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs index 1347969..51b77bf 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs index 19b0cc3..259eede 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); ObjectUtils.SerializeObject(contacts, bw); BoolUtil.Serialize(replace, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs index 58f3435..e5c2b89 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); ObjectUtils.SerializeObject(category, bw); ObjectUtils.SerializeObject(peer, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs index ef6e22a..a0876ce 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs index 59133fe..092702e 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Contacts 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Contacts bw.Write(Constructor); StringUtil.Serialize(q, bw); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs index 8457ce1..ae005f2 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Contacts 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs index ddff6e0..dfce266 100644 --- a/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs +++ b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs index fbe48f5..4378fd0 100644 --- a/TeleSharp.TL/TL/Contacts/TLTopPeers.cs +++ b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Contacts public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Contacts categories = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Contacts ObjectUtils.SerializeObject(categories, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs index 792627b..2049664 100644 --- a/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs +++ b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Contacts } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs b/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs index 8f38d8d..8a137c7 100644 --- a/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLAbsAppUpdate.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLAppUpdate.cs b/TeleSharp.TL/TL/Help/TLAppUpdate.cs index 299e15a..2317965 100644 --- a/TeleSharp.TL/TL/Help/TLAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLAppUpdate.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Help public string url { get; set; } public string text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL.Help critical = BoolUtil.Deserialize(br); url = StringUtil.Deserialize(br); text = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL.Help BoolUtil.Serialize(critical, bw); StringUtil.Serialize(url, bw); StringUtil.Serialize(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLInviteText.cs b/TeleSharp.TL/TL/Help/TLInviteText.cs index 4b76e71..e11d931 100644 --- a/TeleSharp.TL/TL/Help/TLInviteText.cs +++ b/TeleSharp.TL/TL/Help/TLInviteText.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs index ad0619f..f06b2bc 100644 --- a/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Help } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs index 25b73b9..68f008b 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs @@ -1,10 +1,5 @@ -using 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(-1877938321)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Help public string prev_app_version { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { prev_app_version = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); StringUtil.Serialize(prev_app_version, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs index bd489ba..7723273 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs b/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs index 858e937..15381cf 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs @@ -1,10 +1,5 @@ -using 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(1375900482)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help public TLCdnConfig 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 = (TLCdnConfig)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs index f202dc5..9e58ae2 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs index 9e38248..d02b914 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs index 49185c3..3d098e0 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs index 7bd4530..93bd5bd 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs index 2b692f2..6b2ead1 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs index b39eeb1..bc32082 100644 --- a/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs +++ b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs b/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs index 8d20aba..9b5602b 100644 --- a/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs +++ b/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs @@ -1,10 +1,5 @@ -using 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(-333262899)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Help public string message { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { pending_updates_count = br.ReadInt32(); message = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Help bw.Write(Constructor); bw.Write(pending_updates_count); StringUtil.Serialize(message, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLSupport.cs b/TeleSharp.TL/TL/Help/TLSupport.cs index 7166a81..d69b254 100644 --- a/TeleSharp.TL/TL/Help/TLSupport.cs +++ b/TeleSharp.TL/TL/Help/TLSupport.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Help 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Help bw.Write(Constructor); StringUtil.Serialize(phone_number, bw); ObjectUtils.SerializeObject(user, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Help/TLTermsOfService.cs b/TeleSharp.TL/TL/Help/TLTermsOfService.cs index 2d20496..806f3a6 100644 --- a/TeleSharp.TL/TL/Help/TLTermsOfService.cs +++ b/TeleSharp.TL/TL/Help/TLTermsOfService.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Help 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs index 02c5d7f..1989f7b 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsAllStickers.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsChats.cs b/TeleSharp.TL/TL/Messages/TLAbsChats.cs index 06a5553..a960b20 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsChats.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsChats.cs @@ -1,13 +1,6 @@ -using 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 TLAbsChats : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs b/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs index b57822b..697150c 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsDhConfig.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs b/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs index 0050795..c41df34 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsDialogs.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsFeaturedStickers.cs index bc96191..1caa731 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsFeaturedStickers.cs @@ -1,13 +1,6 @@ -using 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 TLAbsFeaturedStickers : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsMessages.cs b/TeleSharp.TL/TL/Messages/TLAbsMessages.cs index bdddf0a..6b133bb 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsMessages.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsRecentStickers.cs index 1e763ff..dbf4302 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsRecentStickers.cs @@ -1,13 +1,6 @@ -using 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 TLAbsRecentStickers : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs index ee01f4e..ddb7618 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsSavedGifs.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs b/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs index a6d12bc..dabb7f0 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsSentEncryptedMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsStickerSetInstallResult.cs b/TeleSharp.TL/TL/Messages/TLAbsStickerSetInstallResult.cs index bf4da05..301951f 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsStickerSetInstallResult.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsStickerSetInstallResult.cs @@ -1,13 +1,6 @@ -using 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 TLAbsStickerSetInstallResult : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAbsStickers.cs b/TeleSharp.TL/TL/Messages/TLAbsStickers.cs index c84da33..f7dd86e 100644 --- a/TeleSharp.TL/TL/Messages/TLAbsStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsStickers.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs index e185393..e22b802 100644 --- a/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Messages public int pts_count { get; set; } public int offset { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Messages pts = br.ReadInt32(); pts_count = br.ReadInt32(); offset = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Messages bw.Write(pts); bw.Write(pts_count); bw.Write(offset); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs index 20448f1..055a283 100644 --- a/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAllStickers.cs b/TeleSharp.TL/TL/Messages/TLAllStickers.cs index f4b679d..2178328 100644 --- a/TeleSharp.TL/TL/Messages/TLAllStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAllStickers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(hash); ObjectUtils.SerializeObject(sets, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs index 2df94dc..946d348 100644 --- a/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs b/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs index 44d543e..26e8e01 100644 --- a/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs @@ -1,10 +1,5 @@ -using 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(1338747336)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages public int count { get; set; } public TLVector sets { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); sets = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(count); ObjectUtils.SerializeObject(sets, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs index d6b8d2f..e4e1f21 100644 --- a/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs @@ -1,10 +1,5 @@ -using 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(911761060)] @@ -25,7 +20,6 @@ namespace TeleSharp.TL.Messages public string url { get; set; } public int cache_time { get; set; } - public void ComputeFlags() { flags = 0; @@ -33,7 +27,6 @@ namespace TeleSharp.TL.Messages flags = has_url ? (flags | 8) : (flags & ~8); flags = message != null ? (flags | 1) : (flags & ~1); flags = url != null ? (flags | 4) : (flags & ~4); - } public override void DeserializeBody(BinaryReader br) @@ -52,7 +45,6 @@ namespace TeleSharp.TL.Messages url = null; cache_time = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -61,13 +53,11 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - if ((flags & 1) != 0) StringUtil.Serialize(message, bw); if ((flags & 4) != 0) StringUtil.Serialize(url, bw); bw.Write(cache_time); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLBotResults.cs b/TeleSharp.TL/TL/Messages/TLBotResults.cs index 976c8f4..8dc56aa 100644 --- a/TeleSharp.TL/TL/Messages/TLBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLBotResults.cs @@ -1,10 +1,5 @@ -using 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(-858565059)] @@ -26,14 +21,12 @@ namespace TeleSharp.TL.Messages public TLVector results { get; set; } public int cache_time { 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) @@ -53,7 +46,6 @@ namespace TeleSharp.TL.Messages results = (TLVector)ObjectUtils.DeserializeVector(br); cache_time = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -69,7 +61,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(switch_pm, bw); ObjectUtils.SerializeObject(results, bw); bw.Write(cache_time); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLChannelMessages.cs b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs index c3330a7..9743bf1 100644 --- a/TeleSharp.TL/TL/Messages/TLChannelMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,11 +20,9 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { flags = 0; - } public override void DeserializeBody(BinaryReader br) @@ -40,7 +33,6 @@ namespace TeleSharp.TL.Messages messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -53,7 +45,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLChatFull.cs b/TeleSharp.TL/TL/Messages/TLChatFull.cs index 60f65d4..4a0e890 100644 --- a/TeleSharp.TL/TL/Messages/TLChatFull.cs +++ b/TeleSharp.TL/TL/Messages/TLChatFull.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Messages full_chat = (TLAbsChatFull)ObjectUtils.DeserializeObject(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(full_chat, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLChats.cs b/TeleSharp.TL/TL/Messages/TLChats.cs index 9740ca9..f5b2795 100644 --- a/TeleSharp.TL/TL/Messages/TLChats.cs +++ b/TeleSharp.TL/TL/Messages/TLChats.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLChatsSlice.cs b/TeleSharp.TL/TL/Messages/TLChatsSlice.cs index ea804a8..dd653a2 100644 --- a/TeleSharp.TL/TL/Messages/TLChatsSlice.cs +++ b/TeleSharp.TL/TL/Messages/TLChatsSlice.cs @@ -1,10 +1,5 @@ -using 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(-1663561404)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages public int count { get; set; } public TLVector chats { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); chats = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(count); ObjectUtils.SerializeObject(chats, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLDhConfig.cs b/TeleSharp.TL/TL/Messages/TLDhConfig.cs index 7c8ccd7..adbb741 100644 --- a/TeleSharp.TL/TL/Messages/TLDhConfig.cs +++ b/TeleSharp.TL/TL/Messages/TLDhConfig.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public int version { get; set; } public byte[] random { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL.Messages p = BytesUtil.Deserialize(br); version = br.ReadInt32(); random = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL.Messages BytesUtil.Serialize(p, bw); bw.Write(version); BytesUtil.Serialize(random, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs index 1df1c4d..ced7e15 100644 --- a/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLDialogs.cs b/TeleSharp.TL/TL/Messages/TLDialogs.cs index 1984165..cf9a6bd 100644 --- a/TeleSharp.TL/TL/Messages/TLDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLDialogs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL.Messages messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs index 4fbb86c..8846233 100644 --- a/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs +++ b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Messages messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs index f2ccdc6..dd32e54 100644 --- a/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs @@ -1,10 +1,5 @@ -using 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(-123893531)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Messages public TLVector sets { get; set; } public TLVector unread { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Messages hash = br.ReadInt32(); sets = (TLVector)ObjectUtils.DeserializeVector(br); unread = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Messages bw.Write(hash); ObjectUtils.SerializeObject(sets, bw); ObjectUtils.SerializeObject(unread, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs index d7f5113..e1493ea 100644 --- a/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs @@ -1,10 +1,5 @@ -using 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(82699215)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLFoundGifs.cs b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs index b67e0a9..ceeafd7 100644 --- a/TeleSharp.TL/TL/Messages/TLFoundGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(next_offset); ObjectUtils.SerializeObject(results, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLHighScores.cs b/TeleSharp.TL/TL/Messages/TLHighScores.cs index 57c272f..46aaa93 100644 --- a/TeleSharp.TL/TL/Messages/TLHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLHighScores.cs @@ -1,10 +1,5 @@ -using 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(-1707344487)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages public TLVector scores { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { scores = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(scores, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs index c9e3e8d..8521a4c 100644 --- a/TeleSharp.TL/TL/Messages/TLMessageEditData.cs +++ b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,19 +16,16 @@ namespace TeleSharp.TL.Messages 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) @@ -41,8 +33,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLMessages.cs b/TeleSharp.TL/TL/Messages/TLMessages.cs index 44d039b..beea246 100644 --- a/TeleSharp.TL/TL/Messages/TLMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Messages messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs index adf83c0..0187bb8 100644 --- a/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs +++ b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public TLVector chats { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL.Messages messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs index 72252cc..d7ef091 100644 --- a/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Messages public TLVector users { get; set; } public Updates.TLState state { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Messages chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); state = (Updates.TLState)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); ObjectUtils.SerializeObject(state, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRecentStickers.cs index 8917b62..34dfda7 100644 --- a/TeleSharp.TL/TL/Messages/TLRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRecentStickers.cs @@ -1,10 +1,5 @@ -using 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(1558317424)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages public int hash { get; set; } public TLVector stickers { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt32(); stickers = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(hash); ObjectUtils.SerializeObject(stickers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs index 06493b7..0f9a559 100644 --- a/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs @@ -1,10 +1,5 @@ -using 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(186120336)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs index 84e73e1..0dc847e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public long key_fingerprint { get; set; } public TLAbsEncryptedChat Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); g_b = BytesUtil.Deserialize(br); key_fingerprint = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); BytesUtil.Serialize(g_b, bw); bw.Write(key_fingerprint); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs index 4a5fe93..8d63678 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public int fwd_limit { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages chat_id = br.ReadInt32(); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); fwd_limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages bw.Write(chat_id); ObjectUtils.SerializeObject(user_id, bw); bw.Write(fwd_limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs index 12ca662..250bf70 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs index b82cfa3..5ff385c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs @@ -1,10 +1,5 @@ -using 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(-1986437075)] @@ -22,19 +17,16 @@ namespace TeleSharp.TL.Messages public bool attached { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = attached ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); attached = (flags & 1) != 0; - } public override void SerializeBody(BinaryWriter bw) @@ -42,13 +34,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs index d376c40..2142718 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(users, bw); StringUtil.Serialize(title, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs index 2245e31..bce54f8 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(chat_id); ObjectUtils.SerializeObject(user_id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs index 380aa8b..64afe3f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL.Messages 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) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Messages just_clear = (flags & 1) != 0; peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); max_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(max_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs index eab25bd..666fb37 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs @@ -1,10 +1,5 @@ -using 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(-443640366)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL.Messages public TLVector id { get; set; } public Messages.TLAffectedMessages Response { get; set; } - public void ComputeFlags() { flags = 0; flags = revoke ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages flags = br.ReadInt32(); revoke = (flags & 1) != 0; id = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(flags); ObjectUtils.SerializeObject(id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs index 4ca5cb2..c797860 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs index 04019ed..98c2394 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public bool is_admin { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages chat_id = br.ReadInt32(); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); is_admin = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages bw.Write(chat_id); ObjectUtils.SerializeObject(user_id, bw); BoolUtil.Serialize(is_admin, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs index fc28401..383934e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(chat_id); ObjectUtils.SerializeObject(photo, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs index 93938d3..892955a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(chat_id); StringUtil.Serialize(title, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs index e20cc28..574f29d 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -26,7 +21,6 @@ namespace TeleSharp.TL.Messages public TLVector entities { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -34,7 +28,6 @@ namespace TeleSharp.TL.Messages 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) @@ -56,8 +49,6 @@ namespace TeleSharp.TL.Messages entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -73,12 +64,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(reply_markup, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(entities, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs index 2d46b7f..31f7d8f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -27,7 +22,6 @@ namespace TeleSharp.TL.Messages public TLVector entities { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -35,7 +29,6 @@ namespace TeleSharp.TL.Messages 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) @@ -58,8 +51,6 @@ namespace TeleSharp.TL.Messages entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -76,12 +67,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(reply_markup, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(entities, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs index 8f91889..45eabd3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs index 47d9adf..892c28d 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public long random_id { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); id = br.ReadInt32(); random_id = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(id); bw.Write(random_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs index cdc9b99..e4c1ca5 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -28,14 +23,12 @@ namespace TeleSharp.TL.Messages 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); flags = with_my_score ? (flags | 256) : (flags & ~256); - } public override void DeserializeBody(BinaryReader br) @@ -48,7 +41,6 @@ namespace TeleSharp.TL.Messages id = (TLVector)ObjectUtils.DeserializeVector(br); random_id = (TLVector)ObjectUtils.DeserializeVector(br); to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -57,18 +49,15 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs index c54d495..62cb4da 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs @@ -1,10 +1,5 @@ -using 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(-341307408)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages public TLVector except_ids { get; set; } public Messages.TLAbsChats Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { except_ids = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(except_ids, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs index 322419e..7958e6e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs index 63cfb2f..a9a4a74 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs index ae0a646..9aca45b 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs @@ -1,10 +1,5 @@ -using 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(1475442322)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL.Messages public int limit { get; set; } public Messages.TLArchivedStickers Response { get; set; } - public void ComputeFlags() { flags = 0; flags = masks ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Messages masks = (flags & 1) != 0; offset_id = br.ReadInt64(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Messages bw.Write(offset_id); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLArchivedStickers)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs index 6c22cd3..b100e72 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs @@ -1,10 +1,5 @@ -using 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(-866424884)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages public TLAbsInputStickeredMedia media { get; set; } public TLVector Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { media = (TLAbsInputStickeredMedia)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(media, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLVector)ObjectUtils.DeserializeVector(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs index 5fa3344..601411a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs @@ -1,10 +1,5 @@ -using 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(-2130010132)] @@ -25,13 +20,11 @@ namespace TeleSharp.TL.Messages public byte[] data { get; set; } public Messages.TLBotCallbackAnswer Response { get; set; } - public void ComputeFlags() { flags = 0; flags = game ? (flags | 2) : (flags & ~2); flags = data != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -44,8 +37,6 @@ namespace TeleSharp.TL.Messages data = BytesUtil.Deserialize(br); else data = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -58,12 +49,11 @@ namespace TeleSharp.TL.Messages bw.Write(msg_id); if ((flags & 1) != 0) BytesUtil.Serialize(data, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs index c0fc6c0..b3b7e92 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages public TLVector id { get; set; } public Messages.TLAbsChats 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.TLAbsChats)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs index 6c796ad..88c9f62 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs @@ -1,10 +1,5 @@ -using 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(218777796)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public int limit { get; set; } public Messages.TLAbsChats Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); max_id = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(user_id, bw); bw.Write(max_id); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs index 8fd09f0..7775723 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(version); bw.Write(random_length); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs index d600140..992a6e9 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs @@ -1,10 +1,5 @@ -using 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(421243333)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL.Messages public int limit { get; set; } public Messages.TLAbsDialogs Response { get; set; } - public void ComputeFlags() { flags = 0; flags = exclude_pinned ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -42,7 +35,6 @@ namespace TeleSharp.TL.Messages offset_id = br.ReadInt32(); offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +47,11 @@ namespace TeleSharp.TL.Messages bw.Write(offset_id); ObjectUtils.SerializeObject(offset_peer, bw); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs index cbfe986..5c4d778 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public string mime_type { get; set; } public TLAbsDocument Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages sha256 = BytesUtil.Deserialize(br); size = br.ReadInt32(); mime_type = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages BytesUtil.Serialize(sha256, bw); bw.Write(size); StringUtil.Serialize(mime_type, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs index 10f3971..17eee0c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs @@ -1,10 +1,5 @@ -using 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(766298703)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages public int hash { get; set; } public Messages.TLAbsFeaturedStickers 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.TLAbsFeaturedStickers)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs index 4265497..6372b07 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs b/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs index eed9d7b..c0d5d4c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs @@ -1,10 +1,5 @@ -using 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(-400399203)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public TLAbsInputUser user_id { get; set; } public Messages.TLHighScores Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); id = br.ReadInt32(); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(id); ObjectUtils.SerializeObject(user_id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs index 175f257..a2e502a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -27,10 +22,8 @@ namespace TeleSharp.TL.Messages public int min_id { get; set; } public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -42,7 +35,6 @@ namespace TeleSharp.TL.Messages limit = br.ReadInt32(); max_id = br.ReadInt32(); min_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +47,11 @@ namespace TeleSharp.TL.Messages bw.Write(limit); bw.Write(max_id); bw.Write(min_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs index 9aca3ed..63c4096 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs @@ -1,10 +1,5 @@ -using 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)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL.Messages 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) @@ -46,7 +39,6 @@ namespace TeleSharp.TL.Messages query = StringUtil.Deserialize(br); offset = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -60,12 +52,11 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs b/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs index a3cd7c0..0b09d4e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs @@ -1,10 +1,5 @@ -using 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(258170395)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages public TLAbsInputUser user_id { get; set; } public Messages.TLHighScores Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); ObjectUtils.SerializeObject(user_id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs index 620e0fc..95af6fc 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs @@ -1,10 +1,5 @@ -using 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(1706608543)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs index 523d085..580190b 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); bw.Write(id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs index b98d3b6..f88f33e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs index 2316aff..9ffc32e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public bool increment { get; set; } public TLVector Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); id = (TLVector)ObjectUtils.DeserializeVector(br); increment = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(id, bw); BoolUtil.Serialize(increment, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLVector)ObjectUtils.DeserializeVector(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs index a721f8c..f9f6d49 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs index 4d0cd19..4f2256e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs index f1968bc..839eee1 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs @@ -1,10 +1,5 @@ -using 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(-497756594)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Messages public Messages.TLPeerDialogs 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 = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs index 89d1cad..f8a48c3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs @@ -1,10 +1,5 @@ -using 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(1587647177)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL.Messages public int hash { get; set; } public Messages.TLAbsRecentStickers Response { get; set; } - public void ComputeFlags() { flags = 0; flags = attached ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages flags = br.ReadInt32(); attached = (flags & 1) != 0; hash = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(flags); bw.Write(hash); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsRecentStickers)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs index 063f180..88a735e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs index 04ad989..51b4550 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs b/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs index 3cd060f..707a08c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs @@ -1,10 +1,5 @@ -using 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(852135825)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages public int hash { get; set; } public TLAbsWebPage Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); hash = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); StringUtil.Serialize(url, bw); bw.Write(hash); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs index 871483c..21499ef 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs index 380802d..798a75c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs index d4c3a36..604b346 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs index 24e5101..f0b5c39 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs @@ -1,10 +1,5 @@ -using 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(-946871200)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages public bool archived { get; set; } public Messages.TLAbsStickerSetInstallResult Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); archived = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(stickerset, bw); BoolUtil.Serialize(archived, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsStickerSetInstallResult)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs index ceb3cd9..0fd4298 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs index 3433f6f..e061fed 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); bw.Write(max_date); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs index a9330b4..0e288b6 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs @@ -1,10 +1,5 @@ -using 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(1527873830)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs index e0fa08a..5330620 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); bw.Write(max_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs index 17777c6..b06aa25 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs index 6bb2692..3972b4a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs index 1ac2dcf..67dc1df 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs index 04f8397..204d915 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs @@ -1,10 +1,5 @@ -using 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(-1784678844)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL.Messages public TLVector order { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = force ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages flags = br.ReadInt32(); force = (flags & 1) != 0; order = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(flags); ObjectUtils.SerializeObject(order, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs index 4debd3a..379df2e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs @@ -1,10 +1,5 @@ -using 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(2016638777)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL.Messages public TLVector order { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = masks ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages flags = br.ReadInt32(); masks = (flags & 1) != 0; order = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(flags); ObjectUtils.SerializeObject(order, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs index 1e7ac33..b5bf7ad 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs @@ -1,10 +1,5 @@ -using 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(1259113487)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages public TLInputEncryptedChat peer { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs index 3a0cf83..bce3d5e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs index 5199e64..276bced 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public byte[] g_a { get; set; } public TLAbsEncryptedChat Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); random_id = br.ReadInt32(); g_a = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs index c1aa315..9001df6 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs @@ -1,10 +1,5 @@ -using 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)] @@ -26,14 +21,12 @@ namespace TeleSharp.TL.Messages 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) @@ -51,8 +44,6 @@ namespace TeleSharp.TL.Messages entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -67,12 +58,11 @@ namespace TeleSharp.TL.Messages StringUtil.Serialize(message, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(entities, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs index 569f1b4..95c7cf1 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); BoolUtil.Serialize(unsave, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs index 3f653cc..2ca6f33 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs @@ -1,10 +1,5 @@ -using 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(958863608)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL.Messages public bool unsave { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = attached ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Messages attached = (flags & 1) != 0; id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); unsave = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(id, bw); BoolUtil.Serialize(unsave, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearch.cs b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs index 56d10c0..c15f09d 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearch.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs @@ -1,10 +1,5 @@ -using 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)] @@ -29,11 +24,9 @@ namespace TeleSharp.TL.Messages public int limit { get; set; } public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() { flags = 0; - } public override void DeserializeBody(BinaryReader br) @@ -47,7 +40,6 @@ namespace TeleSharp.TL.Messages offset = br.ReadInt32(); max_id = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -63,12 +55,11 @@ namespace TeleSharp.TL.Messages bw.Write(offset); bw.Write(max_id); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs index 363f4c7..9e332b2 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); StringUtil.Serialize(q, bw); bw.Write(offset); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs index 8974f6f..634458f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL.Messages public int limit { get; set; } public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Messages offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); offset_id = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(offset_peer, bw); bw.Write(offset_id); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs index 77e54b5..aeaf0cf 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public byte[] data { get; set; } public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); random_id = br.ReadInt64(); data = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(random_id); BytesUtil.Serialize(data, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs index 6719bd3..88c5cb8 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Messages public TLAbsInputEncryptedFile file { get; set; } public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages random_id = br.ReadInt64(); data = BytesUtil.Deserialize(br); file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(random_id); BytesUtil.Serialize(data, bw); ObjectUtils.SerializeObject(file, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs index d67815a..e4ee680 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Messages public byte[] data { get; set; } public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Messages peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); random_id = br.ReadInt64(); data = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(random_id); BytesUtil.Serialize(data, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs index b66c714..c2c3a44 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs @@ -1,10 +1,5 @@ -using 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)] @@ -29,7 +24,6 @@ namespace TeleSharp.TL.Messages public string id { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -37,7 +31,6 @@ namespace TeleSharp.TL.Messages 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) @@ -55,7 +48,6 @@ namespace TeleSharp.TL.Messages random_id = br.ReadInt64(); query_id = br.ReadInt64(); id = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -64,20 +56,17 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs index f4948de..704e0b8 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs @@ -1,10 +1,5 @@ -using 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)] @@ -29,7 +24,6 @@ namespace TeleSharp.TL.Messages public TLAbsReplyMarkup reply_markup { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -38,7 +32,6 @@ namespace TeleSharp.TL.Messages 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) @@ -59,8 +52,6 @@ namespace TeleSharp.TL.Messages reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -69,8 +60,6 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - - ObjectUtils.SerializeObject(peer, bw); if ((flags & 1) != 0) bw.Write(reply_to_msg_id.Value); @@ -78,12 +67,11 @@ namespace TeleSharp.TL.Messages bw.Write(random_id); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs index 200f910..f92689d 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -31,7 +26,6 @@ namespace TeleSharp.TL.Messages public TLVector entities { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -42,7 +36,6 @@ namespace TeleSharp.TL.Messages 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) @@ -69,8 +62,6 @@ namespace TeleSharp.TL.Messages entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -79,9 +70,6 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - - - ObjectUtils.SerializeObject(peer, bw); if ((flags & 1) != 0) bw.Write(reply_to_msg_id.Value); @@ -91,12 +79,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(reply_markup, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(entities, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs index 4b7e354..a7d43f3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs @@ -1,10 +1,5 @@ -using 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(-712043766)] @@ -26,14 +21,12 @@ namespace TeleSharp.TL.Messages public int cache_time { 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); flags = url != null ? (flags | 4) : (flags & ~4); - } public override void DeserializeBody(BinaryReader br) @@ -52,7 +45,6 @@ namespace TeleSharp.TL.Messages url = null; cache_time = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -67,12 +59,11 @@ namespace TeleSharp.TL.Messages if ((flags & 4) != 0) StringUtil.Serialize(url, bw); bw.Write(cache_time); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs index 7e8fa88..9fb828e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs @@ -1,10 +1,5 @@ -using 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(163765653)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL.Messages public string error { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = success ? (flags | 2) : (flags & ~2); flags = error != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -42,8 +35,6 @@ namespace TeleSharp.TL.Messages error = StringUtil.Deserialize(br); else error = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +46,11 @@ namespace TeleSharp.TL.Messages bw.Write(query_id); if ((flags & 1) != 0) StringUtil.Serialize(error, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs index 21c32a9..09175aa 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs @@ -1,10 +1,5 @@ -using 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(-436833542)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL.Messages public TLVector shipping_options { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = error != null ? (flags | 1) : (flags & ~1); flags = shipping_options != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -46,8 +39,6 @@ namespace TeleSharp.TL.Messages shipping_options = (TLVector)ObjectUtils.DeserializeVector(br); else shipping_options = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -60,12 +51,11 @@ namespace TeleSharp.TL.Messages StringUtil.Serialize(error, bw); if ((flags & 2) != 0) ObjectUtils.SerializeObject(shipping_options, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs index e8a40f7..f40dff4 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); BoolUtil.Serialize(typing, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs b/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs index b2459c3..4deec0a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs @@ -1,10 +1,5 @@ -using 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(-1896289088)] @@ -27,13 +22,11 @@ namespace TeleSharp.TL.Messages public int score { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { flags = 0; flags = edit_message ? (flags | 1) : (flags & ~1); flags = force ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -45,7 +38,6 @@ namespace TeleSharp.TL.Messages id = br.ReadInt32(); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); score = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -54,17 +46,15 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - ObjectUtils.SerializeObject(peer, bw); bw.Write(id); ObjectUtils.SerializeObject(user_id, bw); bw.Write(score); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs index 152f9b9..5f6ac6f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs @@ -1,10 +1,5 @@ -using 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)] @@ -28,7 +23,6 @@ namespace TeleSharp.TL.Messages public TLInlineBotSwitchPM switch_pm { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; @@ -36,7 +30,6 @@ namespace TeleSharp.TL.Messages 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) @@ -56,8 +49,6 @@ namespace TeleSharp.TL.Messages switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); else switch_pm = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -66,7 +57,6 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - bw.Write(query_id); ObjectUtils.SerializeObject(results, bw); bw.Write(cache_time); @@ -74,12 +64,11 @@ namespace TeleSharp.TL.Messages StringUtil.Serialize(next_offset, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(switch_pm, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs b/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs index 98043f6..d5d99da 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs @@ -1,10 +1,5 @@ -using 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(363700068)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL.Messages public int score { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = edit_message ? (flags | 1) : (flags & ~1); flags = force ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -43,7 +36,6 @@ namespace TeleSharp.TL.Messages id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); score = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -52,16 +44,14 @@ namespace TeleSharp.TL.Messages ComputeFlags(); bw.Write(flags); - ObjectUtils.SerializeObject(id, bw); ObjectUtils.SerializeObject(user_id, bw); bw.Write(score); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs index 590c872..1927652 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(action, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs index eec3478..6ea8572 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Messages public string start_param { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); random_id = br.ReadInt64(); start_param = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(peer, bw); bw.Write(random_id); StringUtil.Serialize(start_param, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs index 0b003b3..db32a90 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(chat_id); BoolUtil.Serialize(enabled, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs b/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs index b2247f3..9a79103 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs @@ -1,10 +1,5 @@ -using 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(847887978)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL.Messages public TLAbsInputPeer peer { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = pinned ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Messages flags = br.ReadInt32(); pinned = (flags & 1) != 0; peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Messages bw.Write(flags); ObjectUtils.SerializeObject(peer, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs index a364d5b..dc2651c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs b/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs index a61d844..d127d91 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs @@ -1,10 +1,5 @@ -using 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(1369162417)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Messages public TLAbsInputMedia media { get; set; } public TLAbsMessageMedia Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(media, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs index ae83608..848d4a6 100644 --- a/TeleSharp.TL/TL/Messages/TLSavedGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(hash); ObjectUtils.SerializeObject(gifs, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs index b0d0b70..fcf0c34 100644 --- a/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs index be91cdc..e4fc07c 100644 --- a/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); bw.Write(date); ObjectUtils.SerializeObject(file, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs index 8a94a79..36849ff 100644 --- a/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Messages 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLStickerSet.cs b/TeleSharp.TL/TL/Messages/TLStickerSet.cs index d32cd01..3314666 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSet.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Messages public TLVector packs { get; set; } public TLVector documents { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Messages @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); packs = (TLVector)ObjectUtils.DeserializeVector(br); documents = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Messages ObjectUtils.SerializeObject(@set, bw); ObjectUtils.SerializeObject(packs, bw); ObjectUtils.SerializeObject(documents, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs index 40afbfc..9891dce 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs @@ -1,10 +1,5 @@ -using 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(904138920)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Messages public TLVector sets { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { sets = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(sets, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs index ec926c6..558a333 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs @@ -1,10 +1,5 @@ -using 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(946083368)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLStickers.cs b/TeleSharp.TL/TL/Messages/TLStickers.cs index 128e1a1..5e4f42f 100644 --- a/TeleSharp.TL/TL/Messages/TLStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLStickers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Messages 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Messages bw.Write(Constructor); StringUtil.Serialize(hash, bw); ObjectUtils.SerializeObject(stickers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs index be90b51..452b069 100644 --- a/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs b/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs index 5099caa..c7052f7 100644 --- a/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs +++ b/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs @@ -1,13 +1,6 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; namespace TeleSharp.TL.Payments { public abstract class TLAbsPaymentResult : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLPaymentForm.cs index ac674ba..8ed2290 100644 --- a/TeleSharp.TL/TL/Payments/TLPaymentForm.cs +++ b/TeleSharp.TL/TL/Payments/TLPaymentForm.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(1062645411)] @@ -31,7 +26,6 @@ namespace TeleSharp.TL.Payments public TLPaymentSavedCredentialsCard saved_credentials { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { flags = 0; @@ -41,7 +35,6 @@ namespace TeleSharp.TL.Payments flags = native_params != null ? (flags | 16) : (flags & ~16); flags = saved_info != null ? (flags | 1) : (flags & ~1); flags = saved_credentials != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -74,7 +67,6 @@ namespace TeleSharp.TL.Payments saved_credentials = null; users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -83,7 +75,6 @@ namespace TeleSharp.TL.Payments ComputeFlags(); bw.Write(flags); - bw.Write(bot_id); ObjectUtils.SerializeObject(invoice, bw); bw.Write(provider_id); @@ -97,7 +88,6 @@ namespace TeleSharp.TL.Payments if ((flags & 2) != 0) ObjectUtils.SerializeObject(saved_credentials, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs b/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs index ca10f21..f6d76ef 100644 --- a/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs +++ b/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(1342771681)] @@ -30,13 +25,11 @@ namespace TeleSharp.TL.Payments public string credentials_title { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { flags = 0; flags = info != null ? (flags | 1) : (flags & ~1); flags = shipping != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -60,7 +53,6 @@ namespace TeleSharp.TL.Payments total_amount = br.ReadInt64(); credentials_title = StringUtil.Deserialize(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -80,7 +72,6 @@ namespace TeleSharp.TL.Payments bw.Write(total_amount); StringUtil.Serialize(credentials_title, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLPaymentResult.cs b/TeleSharp.TL/TL/Payments/TLPaymentResult.cs index 57f2897..2aea256 100644 --- a/TeleSharp.TL/TL/Payments/TLPaymentResult.cs +++ b/TeleSharp.TL/TL/Payments/TLPaymentResult.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(1314881805)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Payments public TLAbsUpdates updates { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { updates = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(updates, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs b/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs index ed61477..05d78d1 100644 --- a/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs +++ b/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(1800845601)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Payments public string url { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); StringUtil.Serialize(url, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs index 3073969..335af46 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(-667062079)] @@ -23,13 +18,11 @@ namespace TeleSharp.TL.Payments public bool info { get; set; } public bool Response { get; set; } - public void ComputeFlags() { flags = 0; flags = credentials ? (flags | 1) : (flags & ~1); flags = info ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Payments flags = br.ReadInt32(); credentials = (flags & 1) != 0; info = (flags & 2) != 0; - } public override void SerializeBody(BinaryWriter bw) @@ -45,14 +37,11 @@ namespace TeleSharp.TL.Payments bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs index 6a4586b..8439a0a 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(-1712285883)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Payments public int msg_id { get; set; } public Payments.TLPaymentForm Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { msg_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); bw.Write(msg_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Payments.TLPaymentForm)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs index 76f6b01..7a71bf2 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(-1601001088)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Payments public int msg_id { get; set; } public Payments.TLPaymentReceipt Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { msg_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); bw.Write(msg_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (Payments.TLPaymentReceipt)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs index c0316fc..78259fb 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(578650699)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Payments public Payments.TLSavedInfo 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 = (Payments.TLSavedInfo)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs index f3557a4..073edf7 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(730364339)] @@ -25,13 +20,11 @@ namespace TeleSharp.TL.Payments public TLAbsInputPaymentCredentials credentials { get; set; } public Payments.TLAbsPaymentResult Response { get; set; } - public void ComputeFlags() { flags = 0; flags = requested_info_id != null ? (flags | 1) : (flags & ~1); flags = shipping_option_id != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -49,7 +42,6 @@ namespace TeleSharp.TL.Payments shipping_option_id = null; credentials = (TLAbsInputPaymentCredentials)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -63,12 +55,11 @@ namespace TeleSharp.TL.Payments if ((flags & 2) != 0) StringUtil.Serialize(shipping_option_id, bw); ObjectUtils.SerializeObject(credentials, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Payments.TLAbsPaymentResult)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs index e4cba01..30a3a04 100644 --- a/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs +++ b/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(1997180532)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL.Payments public TLPaymentRequestedInfo info { get; set; } public Payments.TLValidatedRequestedInfo Response { get; set; } - public void ComputeFlags() { flags = 0; flags = save ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -38,7 +31,6 @@ namespace TeleSharp.TL.Payments save = (flags & 1) != 0; msg_id = br.ReadInt32(); info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,12 +41,11 @@ namespace TeleSharp.TL.Payments bw.Write(msg_id); ObjectUtils.SerializeObject(info, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Payments.TLValidatedRequestedInfo)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLSavedInfo.cs index 8a9172e..cb4a5f6 100644 --- a/TeleSharp.TL/TL/Payments/TLSavedInfo.cs +++ b/TeleSharp.TL/TL/Payments/TLSavedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(-74456004)] @@ -22,13 +17,11 @@ namespace TeleSharp.TL.Payments public bool has_saved_credentials { get; set; } public TLPaymentRequestedInfo saved_info { get; set; } - public void ComputeFlags() { flags = 0; flags = has_saved_credentials ? (flags | 2) : (flags & ~2); flags = saved_info != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -39,8 +32,6 @@ namespace TeleSharp.TL.Payments saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); else saved_info = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +42,6 @@ namespace TeleSharp.TL.Payments if ((flags & 1) != 0) ObjectUtils.SerializeObject(saved_info, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs b/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs index 46a9d5e..5c02b55 100644 --- a/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs +++ b/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Payments { [TLObject(-784000893)] @@ -22,13 +17,11 @@ namespace TeleSharp.TL.Payments public string id { get; set; } public TLVector shipping_options { get; set; } - public void ComputeFlags() { flags = 0; flags = id != null ? (flags | 1) : (flags & ~1); flags = shipping_options != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -43,8 +36,6 @@ namespace TeleSharp.TL.Payments shipping_options = (TLVector)ObjectUtils.DeserializeVector(br); else shipping_options = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -56,7 +47,6 @@ namespace TeleSharp.TL.Payments StringUtil.Serialize(id, bw); if ((flags & 2) != 0) ObjectUtils.SerializeObject(shipping_options, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLPhoneCall.cs b/TeleSharp.TL/TL/Phone/TLPhoneCall.cs index 2f7441e..9e12d39 100644 --- a/TeleSharp.TL/TL/Phone/TLPhoneCall.cs +++ b/TeleSharp.TL/TL/Phone/TLPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(-326966976)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Phone public TLAbsPhoneCall phone_call { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { phone_call = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Phone bw.Write(Constructor); ObjectUtils.SerializeObject(phone_call, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs b/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs index 86293e0..8d4faed 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(1003664544)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Phone public TLPhoneCallProtocol protocol { get; set; } public Phone.TLPhoneCall Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Phone peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); g_b = BytesUtil.Deserialize(br); protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Phone ObjectUtils.SerializeObject(peer, bw); BytesUtil.Serialize(g_b, bw); ObjectUtils.SerializeObject(protocol, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs b/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs index 03a8891..8745eb4 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(788404002)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Phone public TLPhoneCallProtocol protocol { get; set; } public Phone.TLPhoneCall Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Phone g_a = BytesUtil.Deserialize(br); key_fingerprint = br.ReadInt64(); protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Phone BytesUtil.Serialize(g_a, bw); bw.Write(key_fingerprint); ObjectUtils.SerializeObject(protocol, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs b/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs index e55827a..b4d83f9 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(2027164582)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Phone public long connection_id { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Phone duration = br.ReadInt32(); reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br); connection_id = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Phone bw.Write(duration); ObjectUtils.SerializeObject(reason, bw); bw.Write(connection_id); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs b/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs index ac1432a..3b39bf7 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(1430593449)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Phone public TLDataJSON 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 = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs b/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs index 1415657..ea8b71d 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(399855457)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Phone public TLInputPhoneCall peer { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { peer = (TLInputPhoneCall)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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs b/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs index fbcf7a5..9f7f1c5 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(1536537556)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Phone public TLPhoneCallProtocol protocol { get; set; } public Phone.TLPhoneCall Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Phone random_id = br.ReadInt32(); g_a_hash = BytesUtil.Deserialize(br); protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Phone bw.Write(random_id); BytesUtil.Serialize(g_a_hash, bw); ObjectUtils.SerializeObject(protocol, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs b/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs index 8abcaaa..8e6fa43 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(662363518)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Phone public TLDataJSON debug { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); debug = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Phone bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(debug, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs b/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs index 124a7c8..0958465 100644 --- a/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs +++ b/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Phone { [TLObject(475228724)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Phone public string comment { get; set; } public TLAbsUpdates Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Phone peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); rating = br.ReadInt32(); comment = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Phone ObjectUtils.SerializeObject(peer, bw); bw.Write(rating); StringUtil.Serialize(comment, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs b/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs index ca753a6..e1b8b0a 100644 --- a/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLAbsPhotos.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLPhoto.cs b/TeleSharp.TL/TL/Photos/TLPhoto.cs index 22eabda..d123e77 100644 --- a/TeleSharp.TL/TL/Photos/TLPhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLPhoto.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Photos 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Photos bw.Write(Constructor); ObjectUtils.SerializeObject(photo, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLPhotos.cs b/TeleSharp.TL/TL/Photos/TLPhotos.cs index 8cc7d45..88c9ee8 100644 --- a/TeleSharp.TL/TL/Photos/TLPhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLPhotos.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Photos 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Photos bw.Write(Constructor); ObjectUtils.SerializeObject(photos, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs index c476908..6194cf3 100644 --- a/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs +++ b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Photos public TLVector photos { get; set; } public TLVector users { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Photos count = br.ReadInt32(); photos = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Photos bw.Write(count); ObjectUtils.SerializeObject(photos, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs index 045b0dc..90ffb72 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Photos 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs index 18f5724..a5ff0ab 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Photos public int limit { get; set; } public Photos.TLAbsPhotos Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Photos offset = br.ReadInt32(); max_id = br.ReadInt64(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Photos bw.Write(offset); bw.Write(max_id); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs index 8a138ab..62bb33c 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs @@ -1,10 +1,5 @@ -using 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(-256159406)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Photos public TLAbsInputPhoto id { get; set; } public TLAbsUserProfilePhoto Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs index 1a4a98a..e72b326 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs @@ -1,10 +1,5 @@ -using 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(1328726168)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Photos public TLAbsInputFile file { get; set; } public Photos.TLPhoto Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(file, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs index 35cf6c8..8289dfb 100644 --- a/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs +++ b/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Stickers { [TLObject(-2041315650)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Stickers public TLInputStickerSetItem sticker { get; set; } public Messages.TLStickerSet Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); sticker = (TLInputStickerSetItem)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Stickers bw.Write(Constructor); ObjectUtils.SerializeObject(stickerset, bw); ObjectUtils.SerializeObject(sticker, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs b/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs index 0a4b102..296fde3 100644 --- a/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs +++ b/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Stickers { [TLObject(1322714570)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Stickers public int position { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { sticker = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); position = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Stickers bw.Write(Constructor); ObjectUtils.SerializeObject(sticker, bw); bw.Write(position); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs index 20d9178..90cc86d 100644 --- a/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs +++ b/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Stickers { [TLObject(-1680314774)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL.Stickers public TLVector stickers { get; set; } public Messages.TLStickerSet Response { get; set; } - public void ComputeFlags() { flags = 0; flags = masks ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -42,7 +35,6 @@ namespace TeleSharp.TL.Stickers title = StringUtil.Deserialize(br); short_name = StringUtil.Deserialize(br); stickers = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +47,11 @@ namespace TeleSharp.TL.Stickers StringUtil.Serialize(title, bw); StringUtil.Serialize(short_name, bw); ObjectUtils.SerializeObject(stickers, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs index b92bdd3..de24ab1 100644 --- a/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs +++ b/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL.Stickers { [TLObject(69556532)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Stickers public TLAbsInputDocument sticker { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { sticker = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(sticker, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLAbsFileType.cs b/TeleSharp.TL/TL/Storage/TLAbsFileType.cs index 958a25e..8d15156 100644 --- a/TeleSharp.TL/TL/Storage/TLAbsFileType.cs +++ b/TeleSharp.TL/TL/Storage/TLAbsFileType.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileGif.cs b/TeleSharp.TL/TL/Storage/TLFileGif.cs index 26960b3..60accb5 100644 --- a/TeleSharp.TL/TL/Storage/TLFileGif.cs +++ b/TeleSharp.TL/TL/Storage/TLFileGif.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileJpeg.cs b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs index b6df7d4..c3c1ec3 100644 --- a/TeleSharp.TL/TL/Storage/TLFileJpeg.cs +++ b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileMov.cs b/TeleSharp.TL/TL/Storage/TLFileMov.cs index 210f622..b022459 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMov.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMov.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileMp3.cs b/TeleSharp.TL/TL/Storage/TLFileMp3.cs index 89cf402..b047d1a 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMp3.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMp3.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileMp4.cs b/TeleSharp.TL/TL/Storage/TLFileMp4.cs index d4ee9f8..a7ffb02 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMp4.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMp4.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFilePartial.cs b/TeleSharp.TL/TL/Storage/TLFilePartial.cs index acfbe49..7cdc763 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePartial.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePartial.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFilePdf.cs b/TeleSharp.TL/TL/Storage/TLFilePdf.cs index ce26269..d22e460 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePdf.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePdf.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFilePng.cs b/TeleSharp.TL/TL/Storage/TLFilePng.cs index 3587007..2389691 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePng.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePng.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileUnknown.cs b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs index 3656c9e..284b9c6 100644 --- a/TeleSharp.TL/TL/Storage/TLFileUnknown.cs +++ b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Storage/TLFileWebp.cs b/TeleSharp.TL/TL/Storage/TLFileWebp.cs index 500bc24..10f612b 100644 --- a/TeleSharp.TL/TL/Storage/TLFileWebp.cs +++ b/TeleSharp.TL/TL/Storage/TLFileWebp.cs @@ -1,10 +1,5 @@ -using 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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsBool.cs b/TeleSharp.TL/TL/TLAbsBool.cs index afa7d6c..26b9311 100644 --- a/TeleSharp.TL/TL/TLAbsBool.cs +++ b/TeleSharp.TL/TL/TLAbsBool.cs @@ -1,13 +1,6 @@ -using 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 TLAbsBool : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs b/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs index 8b54131..b7e5de0 100644 --- a/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs +++ b/TeleSharp.TL/TL/TLAbsBotInlineMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsBotInlineResult.cs b/TeleSharp.TL/TL/TLAbsBotInlineResult.cs index 841a0fa..fff1265 100644 --- a/TeleSharp.TL/TL/TLAbsBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLAbsBotInlineResult.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs b/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs index e754290..b3aa190 100644 --- a/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs +++ b/TeleSharp.TL/TL/TLAbsChannelMessagesFilter.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipant.cs b/TeleSharp.TL/TL/TLAbsChannelParticipant.cs index 552ef91..1896c68 100644 --- a/TeleSharp.TL/TL/TLAbsChannelParticipant.cs +++ b/TeleSharp.TL/TL/TLAbsChannelParticipant.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs b/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs index c162b88..1fe1e5b 100644 --- a/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs +++ b/TeleSharp.TL/TL/TLAbsChannelParticipantRole.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs b/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs index afee66d..d2aa540 100644 --- a/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs +++ b/TeleSharp.TL/TL/TLAbsChannelParticipantsFilter.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChat.cs b/TeleSharp.TL/TL/TLAbsChat.cs index aa92fc0..ce7ba30 100644 --- a/TeleSharp.TL/TL/TLAbsChat.cs +++ b/TeleSharp.TL/TL/TLAbsChat.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChatFull.cs b/TeleSharp.TL/TL/TLAbsChatFull.cs index ef596c7..4add016 100644 --- a/TeleSharp.TL/TL/TLAbsChatFull.cs +++ b/TeleSharp.TL/TL/TLAbsChatFull.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChatInvite.cs b/TeleSharp.TL/TL/TLAbsChatInvite.cs index 64ff7dd..970efb3 100644 --- a/TeleSharp.TL/TL/TLAbsChatInvite.cs +++ b/TeleSharp.TL/TL/TLAbsChatInvite.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChatParticipant.cs b/TeleSharp.TL/TL/TLAbsChatParticipant.cs index 598365a..958f7aa 100644 --- a/TeleSharp.TL/TL/TLAbsChatParticipant.cs +++ b/TeleSharp.TL/TL/TLAbsChatParticipant.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChatParticipants.cs b/TeleSharp.TL/TL/TLAbsChatParticipants.cs index 246eea2..b7807af 100644 --- a/TeleSharp.TL/TL/TLAbsChatParticipants.cs +++ b/TeleSharp.TL/TL/TLAbsChatParticipants.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsChatPhoto.cs b/TeleSharp.TL/TL/TLAbsChatPhoto.cs index b210308..5239de0 100644 --- a/TeleSharp.TL/TL/TLAbsChatPhoto.cs +++ b/TeleSharp.TL/TL/TLAbsChatPhoto.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsContactLink.cs b/TeleSharp.TL/TL/TLAbsContactLink.cs index 096f1cf..ef83ea1 100644 --- a/TeleSharp.TL/TL/TLAbsContactLink.cs +++ b/TeleSharp.TL/TL/TLAbsContactLink.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsDocument.cs b/TeleSharp.TL/TL/TLAbsDocument.cs index d60b4a8..fd5a7dc 100644 --- a/TeleSharp.TL/TL/TLAbsDocument.cs +++ b/TeleSharp.TL/TL/TLAbsDocument.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs b/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs index 8fd333d..5f0b1e8 100644 --- a/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs +++ b/TeleSharp.TL/TL/TLAbsDocumentAttribute.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsDraftMessage.cs b/TeleSharp.TL/TL/TLAbsDraftMessage.cs index 1f73bba..efcdffe 100644 --- a/TeleSharp.TL/TL/TLAbsDraftMessage.cs +++ b/TeleSharp.TL/TL/TLAbsDraftMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsEncryptedChat.cs b/TeleSharp.TL/TL/TLAbsEncryptedChat.cs index e64f973..5cad366 100644 --- a/TeleSharp.TL/TL/TLAbsEncryptedChat.cs +++ b/TeleSharp.TL/TL/TLAbsEncryptedChat.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsEncryptedFile.cs b/TeleSharp.TL/TL/TLAbsEncryptedFile.cs index 5ada68d..03e698e 100644 --- a/TeleSharp.TL/TL/TLAbsEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLAbsEncryptedFile.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs b/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs index bd37fe4..f67ca7b 100644 --- a/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs +++ b/TeleSharp.TL/TL/TLAbsEncryptedMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs b/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs index 572ee11..05c2109 100644 --- a/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs +++ b/TeleSharp.TL/TL/TLAbsExportedChatInvite.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsFileLocation.cs b/TeleSharp.TL/TL/TLAbsFileLocation.cs index c813e5e..0b9f105 100644 --- a/TeleSharp.TL/TL/TLAbsFileLocation.cs +++ b/TeleSharp.TL/TL/TLAbsFileLocation.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsFoundGif.cs b/TeleSharp.TL/TL/TLAbsFoundGif.cs index 7fc1df8..e5d1a87 100644 --- a/TeleSharp.TL/TL/TLAbsFoundGif.cs +++ b/TeleSharp.TL/TL/TLAbsFoundGif.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsGeoPoint.cs b/TeleSharp.TL/TL/TLAbsGeoPoint.cs index 935339f..4960f50 100644 --- a/TeleSharp.TL/TL/TLAbsGeoPoint.cs +++ b/TeleSharp.TL/TL/TLAbsGeoPoint.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs b/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs index 015e1a0..b08b9ca 100644 --- a/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs +++ b/TeleSharp.TL/TL/TLAbsInputBotInlineMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs b/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs index 9e4fb99..8d41f3c 100644 --- a/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLAbsInputBotInlineResult.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputChannel.cs b/TeleSharp.TL/TL/TLAbsInputChannel.cs index e84f4f7..3335fb2 100644 --- a/TeleSharp.TL/TL/TLAbsInputChannel.cs +++ b/TeleSharp.TL/TL/TLAbsInputChannel.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs b/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs index bf8800a..c7abff6 100644 --- a/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs +++ b/TeleSharp.TL/TL/TLAbsInputChatPhoto.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputDocument.cs b/TeleSharp.TL/TL/TLAbsInputDocument.cs index e49097e..55ceae0 100644 --- a/TeleSharp.TL/TL/TLAbsInputDocument.cs +++ b/TeleSharp.TL/TL/TLAbsInputDocument.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs b/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs index 2567011..d23015e 100644 --- a/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLAbsInputEncryptedFile.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputFile.cs b/TeleSharp.TL/TL/TLAbsInputFile.cs index 0f8adc3..b0489f1 100644 --- a/TeleSharp.TL/TL/TLAbsInputFile.cs +++ b/TeleSharp.TL/TL/TLAbsInputFile.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputFileLocation.cs b/TeleSharp.TL/TL/TLAbsInputFileLocation.cs index b67f3e8..02f6906 100644 --- a/TeleSharp.TL/TL/TLAbsInputFileLocation.cs +++ b/TeleSharp.TL/TL/TLAbsInputFileLocation.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputGame.cs b/TeleSharp.TL/TL/TLAbsInputGame.cs index 16334de..746f67d 100644 --- a/TeleSharp.TL/TL/TLAbsInputGame.cs +++ b/TeleSharp.TL/TL/TLAbsInputGame.cs @@ -1,13 +1,6 @@ -using 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 TLAbsInputGame : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs b/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs index 2e3d1f5..7052b63 100644 --- a/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs +++ b/TeleSharp.TL/TL/TLAbsInputGeoPoint.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputMedia.cs b/TeleSharp.TL/TL/TLAbsInputMedia.cs index 34ed3a7..914076c 100644 --- a/TeleSharp.TL/TL/TLAbsInputMedia.cs +++ b/TeleSharp.TL/TL/TLAbsInputMedia.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs b/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs index 23dd812..7776ba3 100644 --- a/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLAbsInputNotifyPeer.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs b/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs index 87a6b58..bb07b08 100644 --- a/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs +++ b/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs @@ -1,13 +1,6 @@ -using 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 TLAbsInputPaymentCredentials : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPeer.cs b/TeleSharp.TL/TL/TLAbsInputPeer.cs index 24845d2..2c339d5 100644 --- a/TeleSharp.TL/TL/TLAbsInputPeer.cs +++ b/TeleSharp.TL/TL/TLAbsInputPeer.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs b/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs index 7266e4f..e19cfc8 100644 --- a/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs +++ b/TeleSharp.TL/TL/TLAbsInputPeerNotifyEvents.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPhoto.cs b/TeleSharp.TL/TL/TLAbsInputPhoto.cs index dbeaed0..760970e 100644 --- a/TeleSharp.TL/TL/TLAbsInputPhoto.cs +++ b/TeleSharp.TL/TL/TLAbsInputPhoto.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs b/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs index 21b7943..b6d434b 100644 --- a/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs +++ b/TeleSharp.TL/TL/TLAbsInputPrivacyKey.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs b/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs index bc89964..32b62db 100644 --- a/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs +++ b/TeleSharp.TL/TL/TLAbsInputPrivacyRule.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputStickerSet.cs b/TeleSharp.TL/TL/TLAbsInputStickerSet.cs index 7578ef1..3da4053 100644 --- a/TeleSharp.TL/TL/TLAbsInputStickerSet.cs +++ b/TeleSharp.TL/TL/TLAbsInputStickerSet.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputStickeredMedia.cs b/TeleSharp.TL/TL/TLAbsInputStickeredMedia.cs index 23d182d..608a4b6 100644 --- a/TeleSharp.TL/TL/TLAbsInputStickeredMedia.cs +++ b/TeleSharp.TL/TL/TLAbsInputStickeredMedia.cs @@ -1,13 +1,6 @@ -using 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 TLAbsInputStickeredMedia : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsInputUser.cs b/TeleSharp.TL/TL/TLAbsInputUser.cs index 70ec16b..1a0dee5 100644 --- a/TeleSharp.TL/TL/TLAbsInputUser.cs +++ b/TeleSharp.TL/TL/TLAbsInputUser.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsKeyboardButton.cs b/TeleSharp.TL/TL/TLAbsKeyboardButton.cs index 4760b4f..cdc89ab 100644 --- a/TeleSharp.TL/TL/TLAbsKeyboardButton.cs +++ b/TeleSharp.TL/TL/TLAbsKeyboardButton.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsMessage.cs b/TeleSharp.TL/TL/TLAbsMessage.cs index 8f0ed6e..46d3210 100644 --- a/TeleSharp.TL/TL/TLAbsMessage.cs +++ b/TeleSharp.TL/TL/TLAbsMessage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsMessageAction.cs b/TeleSharp.TL/TL/TLAbsMessageAction.cs index d231272..5e99299 100644 --- a/TeleSharp.TL/TL/TLAbsMessageAction.cs +++ b/TeleSharp.TL/TL/TLAbsMessageAction.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsMessageEntity.cs b/TeleSharp.TL/TL/TLAbsMessageEntity.cs index d892621..2ae0503 100644 --- a/TeleSharp.TL/TL/TLAbsMessageEntity.cs +++ b/TeleSharp.TL/TL/TLAbsMessageEntity.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsMessageMedia.cs b/TeleSharp.TL/TL/TLAbsMessageMedia.cs index 7b8bebc..7cbe1d5 100644 --- a/TeleSharp.TL/TL/TLAbsMessageMedia.cs +++ b/TeleSharp.TL/TL/TLAbsMessageMedia.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsMessagesFilter.cs b/TeleSharp.TL/TL/TLAbsMessagesFilter.cs index f89e670..a74c628 100644 --- a/TeleSharp.TL/TL/TLAbsMessagesFilter.cs +++ b/TeleSharp.TL/TL/TLAbsMessagesFilter.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsNotifyPeer.cs b/TeleSharp.TL/TL/TLAbsNotifyPeer.cs index 76e3bc4..5003ff4 100644 --- a/TeleSharp.TL/TL/TLAbsNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLAbsNotifyPeer.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPage.cs b/TeleSharp.TL/TL/TLAbsPage.cs index 92ef907..247abc9 100644 --- a/TeleSharp.TL/TL/TLAbsPage.cs +++ b/TeleSharp.TL/TL/TLAbsPage.cs @@ -1,13 +1,6 @@ -using 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 TLAbsPage : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPageBlock.cs b/TeleSharp.TL/TL/TLAbsPageBlock.cs index 5928c6e..f7c6542 100644 --- a/TeleSharp.TL/TL/TLAbsPageBlock.cs +++ b/TeleSharp.TL/TL/TLAbsPageBlock.cs @@ -1,13 +1,6 @@ -using 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 TLAbsPageBlock : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPeer.cs b/TeleSharp.TL/TL/TLAbsPeer.cs index 914dc83..a6bc5eb 100644 --- a/TeleSharp.TL/TL/TLAbsPeer.cs +++ b/TeleSharp.TL/TL/TLAbsPeer.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs b/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs index b0df9f6..04268e8 100644 --- a/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs +++ b/TeleSharp.TL/TL/TLAbsPeerNotifyEvents.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs b/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs index 57c5087..5499b97 100644 --- a/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs +++ b/TeleSharp.TL/TL/TLAbsPeerNotifySettings.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPhoneCall.cs b/TeleSharp.TL/TL/TLAbsPhoneCall.cs index 46faf28..117be60 100644 --- a/TeleSharp.TL/TL/TLAbsPhoneCall.cs +++ b/TeleSharp.TL/TL/TLAbsPhoneCall.cs @@ -1,13 +1,6 @@ -using 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 TLAbsPhoneCall : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs b/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs index c6283d6..a701446 100644 --- a/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs +++ b/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs @@ -1,13 +1,6 @@ -using 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 TLAbsPhoneCallDiscardReason : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPhoto.cs b/TeleSharp.TL/TL/TLAbsPhoto.cs index 4dd7e31..e4d3821 100644 --- a/TeleSharp.TL/TL/TLAbsPhoto.cs +++ b/TeleSharp.TL/TL/TLAbsPhoto.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPhotoSize.cs b/TeleSharp.TL/TL/TLAbsPhotoSize.cs index 7038129..6bd572a 100644 --- a/TeleSharp.TL/TL/TLAbsPhotoSize.cs +++ b/TeleSharp.TL/TL/TLAbsPhotoSize.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPrivacyKey.cs b/TeleSharp.TL/TL/TLAbsPrivacyKey.cs index 1885650..e223ad8 100644 --- a/TeleSharp.TL/TL/TLAbsPrivacyKey.cs +++ b/TeleSharp.TL/TL/TLAbsPrivacyKey.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsPrivacyRule.cs b/TeleSharp.TL/TL/TLAbsPrivacyRule.cs index f015088..72bf716 100644 --- a/TeleSharp.TL/TL/TLAbsPrivacyRule.cs +++ b/TeleSharp.TL/TL/TLAbsPrivacyRule.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsReplyMarkup.cs b/TeleSharp.TL/TL/TLAbsReplyMarkup.cs index f7c3be0..552abb1 100644 --- a/TeleSharp.TL/TL/TLAbsReplyMarkup.cs +++ b/TeleSharp.TL/TL/TLAbsReplyMarkup.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsReportReason.cs b/TeleSharp.TL/TL/TLAbsReportReason.cs index 87add4b..a845952 100644 --- a/TeleSharp.TL/TL/TLAbsReportReason.cs +++ b/TeleSharp.TL/TL/TLAbsReportReason.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsRichText.cs b/TeleSharp.TL/TL/TLAbsRichText.cs index 5e84f35..df42b14 100644 --- a/TeleSharp.TL/TL/TLAbsRichText.cs +++ b/TeleSharp.TL/TL/TLAbsRichText.cs @@ -1,13 +1,6 @@ -using 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 TLAbsRichText : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsSendMessageAction.cs b/TeleSharp.TL/TL/TLAbsSendMessageAction.cs index edcc8ed..56fefc1 100644 --- a/TeleSharp.TL/TL/TLAbsSendMessageAction.cs +++ b/TeleSharp.TL/TL/TLAbsSendMessageAction.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsStickerSetCovered.cs b/TeleSharp.TL/TL/TLAbsStickerSetCovered.cs index 2a558fb..c79345a 100644 --- a/TeleSharp.TL/TL/TLAbsStickerSetCovered.cs +++ b/TeleSharp.TL/TL/TLAbsStickerSetCovered.cs @@ -1,13 +1,6 @@ -using 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 TLAbsStickerSetCovered : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs b/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs index 0bf8f11..766b2da 100644 --- a/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs +++ b/TeleSharp.TL/TL/TLAbsTopPeerCategory.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsUpdate.cs b/TeleSharp.TL/TL/TLAbsUpdate.cs index 6f71cc3..270ef0f 100644 --- a/TeleSharp.TL/TL/TLAbsUpdate.cs +++ b/TeleSharp.TL/TL/TLAbsUpdate.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsUpdates.cs b/TeleSharp.TL/TL/TLAbsUpdates.cs index 9653aa9..2f0657d 100644 --- a/TeleSharp.TL/TL/TLAbsUpdates.cs +++ b/TeleSharp.TL/TL/TLAbsUpdates.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsUser.cs b/TeleSharp.TL/TL/TLAbsUser.cs index b9dcb61..ae1aded 100644 --- a/TeleSharp.TL/TL/TLAbsUser.cs +++ b/TeleSharp.TL/TL/TLAbsUser.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs b/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs index c3c9e05..0728f72 100644 --- a/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs +++ b/TeleSharp.TL/TL/TLAbsUserProfilePhoto.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsUserStatus.cs b/TeleSharp.TL/TL/TLAbsUserStatus.cs index 21ef437..93795de 100644 --- a/TeleSharp.TL/TL/TLAbsUserStatus.cs +++ b/TeleSharp.TL/TL/TLAbsUserStatus.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsWallPaper.cs b/TeleSharp.TL/TL/TLAbsWallPaper.cs index a67e4e0..3d0b9a5 100644 --- a/TeleSharp.TL/TL/TLAbsWallPaper.cs +++ b/TeleSharp.TL/TL/TLAbsWallPaper.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAbsWebPage.cs b/TeleSharp.TL/TL/TLAbsWebPage.cs index 1433c52..972d36a 100644 --- a/TeleSharp.TL/TL/TLAbsWebPage.cs +++ b/TeleSharp.TL/TL/TLAbsWebPage.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAccountDaysTTL.cs b/TeleSharp.TL/TL/TLAccountDaysTTL.cs index b7b03d6..d83e597 100644 --- a/TeleSharp.TL/TL/TLAccountDaysTTL.cs +++ b/TeleSharp.TL/TL/TLAccountDaysTTL.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLAuthorization.cs b/TeleSharp.TL/TL/TLAuthorization.cs index d88f80e..4672fe3 100644 --- a/TeleSharp.TL/TL/TLAuthorization.cs +++ b/TeleSharp.TL/TL/TLAuthorization.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -32,11 +27,9 @@ namespace TeleSharp.TL public string country { get; set; } public string region { get; set; } - public void ComputeFlags() { flags = 0; - } public override void DeserializeBody(BinaryReader br) @@ -54,7 +47,6 @@ namespace TeleSharp.TL ip = StringUtil.Deserialize(br); country = StringUtil.Deserialize(br); region = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -74,7 +66,6 @@ namespace TeleSharp.TL StringUtil.Serialize(ip, bw); StringUtil.Serialize(country, bw); StringUtil.Serialize(region, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBoolFalse.cs b/TeleSharp.TL/TL/TLBoolFalse.cs index 7282348..9f2f9ed 100644 --- a/TeleSharp.TL/TL/TLBoolFalse.cs +++ b/TeleSharp.TL/TL/TLBoolFalse.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1132882121)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBoolTrue.cs b/TeleSharp.TL/TL/TLBoolTrue.cs index a96c279..3212e23 100644 --- a/TeleSharp.TL/TL/TLBoolTrue.cs +++ b/TeleSharp.TL/TL/TLBoolTrue.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1720552011)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotCommand.cs b/TeleSharp.TL/TL/TLBotCommand.cs index 9fdba40..9e2f628 100644 --- a/TeleSharp.TL/TL/TLBotCommand.cs +++ b/TeleSharp.TL/TL/TLBotCommand.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(command, bw); StringUtil.Serialize(description, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInfo.cs b/TeleSharp.TL/TL/TLBotInfo.cs index 6d1eea6..6f4ca4d 100644 --- a/TeleSharp.TL/TL/TLBotInfo.cs +++ b/TeleSharp.TL/TL/TLBotInfo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public string description { get; set; } public TLVector commands { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); description = StringUtil.Deserialize(br); commands = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); StringUtil.Serialize(description, bw); ObjectUtils.SerializeObject(commands, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMediaResult.cs b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs index 8341d75..93eec18 100644 --- a/TeleSharp.TL/TL/TLBotInlineMediaResult.cs +++ b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -27,7 +22,6 @@ namespace TeleSharp.TL public string description { get; set; } public TLAbsBotInlineMessage send_message { get; set; } - public void ComputeFlags() { flags = 0; @@ -35,7 +29,6 @@ namespace TeleSharp.TL 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) @@ -64,7 +57,6 @@ namespace TeleSharp.TL description = null; send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -83,7 +75,6 @@ namespace TeleSharp.TL if ((flags & 8) != 0) StringUtil.Serialize(description, bw); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs index 69eb0c2..825e5e1 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL StringUtil.Serialize(caption, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs index 3786db1..2a26d7e 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL 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) @@ -42,8 +35,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -56,7 +47,6 @@ namespace TeleSharp.TL StringUtil.Serialize(last_name, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs index 40140e3..d8d41b8 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(geo, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs index 1fc56f7..c1415fb 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL 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) @@ -46,8 +39,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -62,7 +53,6 @@ namespace TeleSharp.TL StringUtil.Serialize(venue_id, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineMessageText.cs b/TeleSharp.TL/TL/TLBotInlineMessageText.cs index aa24123..2275068 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageText.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageText.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,14 +19,12 @@ namespace TeleSharp.TL 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) @@ -48,8 +41,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -63,7 +54,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(entities, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLBotInlineResult.cs b/TeleSharp.TL/TL/TLBotInlineResult.cs index a755165..aa25e7a 100644 --- a/TeleSharp.TL/TL/TLBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLBotInlineResult.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -32,7 +27,6 @@ namespace TeleSharp.TL public int? duration { get; set; } public TLAbsBotInlineMessage send_message { get; set; } - public void ComputeFlags() { flags = 0; @@ -45,7 +39,6 @@ namespace TeleSharp.TL 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) @@ -99,7 +92,6 @@ namespace TeleSharp.TL duration = null; send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -128,7 +120,6 @@ namespace TeleSharp.TL if ((flags & 128) != 0) bw.Write(duration.Value); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLCdnConfig.cs b/TeleSharp.TL/TL/TLCdnConfig.cs index a72d63c..c6bf420 100644 --- a/TeleSharp.TL/TL/TLCdnConfig.cs +++ b/TeleSharp.TL/TL/TLCdnConfig.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1462101002)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLVector public_keys { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { public_keys = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(public_keys, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLCdnPublicKey.cs b/TeleSharp.TL/TL/TLCdnPublicKey.cs index 2053c43..cb4428e 100644 --- a/TeleSharp.TL/TL/TLCdnPublicKey.cs +++ b/TeleSharp.TL/TL/TLCdnPublicKey.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-914167110)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public int dc_id { get; set; } public string public_key { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { dc_id = br.ReadInt32(); public_key = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(dc_id); StringUtil.Serialize(public_key, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannel.cs b/TeleSharp.TL/TL/TLChannel.cs index 591f3ec..72a6c37 100644 --- a/TeleSharp.TL/TL/TLChannel.cs +++ b/TeleSharp.TL/TL/TLChannel.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -40,7 +35,6 @@ namespace TeleSharp.TL public int version { get; set; } public string restriction_reason { get; set; } - public void ComputeFlags() { flags = 0; @@ -59,7 +53,6 @@ namespace TeleSharp.TL 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) @@ -96,8 +89,6 @@ namespace TeleSharp.TL restriction_reason = StringUtil.Deserialize(br); else restriction_reason = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -106,17 +97,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - - - - - - - - bw.Write(id); if ((flags & 8192) != 0) bw.Write(access_hash.Value); @@ -128,7 +108,6 @@ namespace TeleSharp.TL bw.Write(version); if ((flags & 512) != 0) StringUtil.Serialize(restriction_reason, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelForbidden.cs b/TeleSharp.TL/TL/TLChannelForbidden.cs index 251e0de..9119a0b 100644 --- a/TeleSharp.TL/TL/TLChannelForbidden.cs +++ b/TeleSharp.TL/TL/TLChannelForbidden.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,13 +20,11 @@ namespace TeleSharp.TL 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) @@ -42,7 +35,6 @@ namespace TeleSharp.TL id = br.ReadInt32(); access_hash = br.ReadInt64(); title = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,11 +43,9 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(id); bw.Write(access_hash); StringUtil.Serialize(title, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelFull.cs b/TeleSharp.TL/TL/TLChannelFull.cs index 9103d6f..d950973 100644 --- a/TeleSharp.TL/TL/TLChannelFull.cs +++ b/TeleSharp.TL/TL/TLChannelFull.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -37,7 +32,6 @@ namespace TeleSharp.TL public int? migrated_from_max_id { get; set; } public int? pinned_msg_id { get; set; } - public void ComputeFlags() { flags = 0; @@ -49,7 +43,6 @@ namespace TeleSharp.TL 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) @@ -95,8 +88,6 @@ namespace TeleSharp.TL pinned_msg_id = br.ReadInt32(); else pinned_msg_id = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -105,7 +96,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(id); StringUtil.Serialize(about, bw); if ((flags & 1) != 0) @@ -127,7 +117,6 @@ namespace TeleSharp.TL bw.Write(migrated_from_max_id.Value); if ((flags & 32) != 0) bw.Write(pinned_msg_id.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilter.cs b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs index 34de3ea..2fd0647 100644 --- a/TeleSharp.TL/TL/TLChannelMessagesFilter.cs +++ b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -35,7 +28,6 @@ namespace TeleSharp.TL flags = br.ReadInt32(); exclude_new_messages = (flags & 2) != 0; ranges = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(flags); ObjectUtils.SerializeObject(ranges, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs index 597e651..7b67ad2 100644 --- a/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs +++ b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipant.cs b/TeleSharp.TL/TL/TLChannelParticipant.cs index a424eba..04b996e 100644 --- a/TeleSharp.TL/TL/TLChannelParticipant.cs +++ b/TeleSharp.TL/TL/TLChannelParticipant.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantCreator.cs b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs index b535637..95b1f86 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantCreator.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantEditor.cs b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs index 14d2385..7e6a930 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantEditor.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int inviter_id { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); inviter_id = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(inviter_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs index 3ff3ecb..5c034a4 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantKicked.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int kicked_by { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); kicked_by = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(kicked_by); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantModerator.cs b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs index 303d1e9..05f42b1 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantModerator.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int inviter_id { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); inviter_id = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(inviter_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantSelf.cs b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs index 5dddc45..d888376 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantSelf.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int inviter_id { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); inviter_id = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(inviter_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs index b880c87..699507e 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantsBots.cs b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs index 48b3bad..e275d03 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsBots.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs index 5aa217d..04f9c57 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs index ed6b15f..fa1545a 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelRoleEditor.cs b/TeleSharp.TL/TL/TLChannelRoleEditor.cs index 34c9db0..ccc6ed8 100644 --- a/TeleSharp.TL/TL/TLChannelRoleEditor.cs +++ b/TeleSharp.TL/TL/TLChannelRoleEditor.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelRoleEmpty.cs b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs index 5382073..0eda3b3 100644 --- a/TeleSharp.TL/TL/TLChannelRoleEmpty.cs +++ b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChannelRoleModerator.cs b/TeleSharp.TL/TL/TLChannelRoleModerator.cs index 4c83bab..2dd8cc5 100644 --- a/TeleSharp.TL/TL/TLChannelRoleModerator.cs +++ b/TeleSharp.TL/TL/TLChannelRoleModerator.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChat.cs b/TeleSharp.TL/TL/TLChat.cs index 061456a..0fc5eac 100644 --- a/TeleSharp.TL/TL/TLChat.cs +++ b/TeleSharp.TL/TL/TLChat.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -33,7 +28,6 @@ namespace TeleSharp.TL public int version { get; set; } public TLAbsInputChannel migrated_to { get; set; } - public void ComputeFlags() { flags = 0; @@ -44,7 +38,6 @@ namespace TeleSharp.TL 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) @@ -66,8 +59,6 @@ namespace TeleSharp.TL migrated_to = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); else migrated_to = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -76,11 +67,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - - bw.Write(id); StringUtil.Serialize(title, bw); ObjectUtils.SerializeObject(photo, bw); @@ -89,7 +75,6 @@ namespace TeleSharp.TL bw.Write(version); if ((flags & 64) != 0) ObjectUtils.SerializeObject(migrated_to, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatEmpty.cs b/TeleSharp.TL/TL/TLChatEmpty.cs index a7b0a3a..667a230 100644 --- a/TeleSharp.TL/TL/TLChatEmpty.cs +++ b/TeleSharp.TL/TL/TLChatEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatForbidden.cs b/TeleSharp.TL/TL/TLChatForbidden.cs index 0ab907a..20ea5de 100644 --- a/TeleSharp.TL/TL/TLChatForbidden.cs +++ b/TeleSharp.TL/TL/TLChatForbidden.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); StringUtil.Serialize(title, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatFull.cs b/TeleSharp.TL/TL/TLChatFull.cs index 7f718cf..3b6090b 100644 --- a/TeleSharp.TL/TL/TLChatFull.cs +++ b/TeleSharp.TL/TL/TLChatFull.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public TLAbsExportedChatInvite exported_invite { get; set; } public TLVector bot_info { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); bot_info = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(notify_settings, bw); ObjectUtils.SerializeObject(exported_invite, bw); ObjectUtils.SerializeObject(bot_info, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatInvite.cs b/TeleSharp.TL/TL/TLChatInvite.cs index 0383a60..4019cd3 100644 --- a/TeleSharp.TL/TL/TLChatInvite.cs +++ b/TeleSharp.TL/TL/TLChatInvite.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-613092008)] @@ -28,7 +23,6 @@ namespace TeleSharp.TL public int participants_count { get; set; } public TLVector participants { get; set; } - public void ComputeFlags() { flags = 0; @@ -37,7 +31,6 @@ namespace TeleSharp.TL flags = @public ? (flags | 4) : (flags & ~4); flags = megagroup ? (flags | 8) : (flags & ~8); flags = participants != null ? (flags | 16) : (flags & ~16); - } public override void DeserializeBody(BinaryReader br) @@ -54,8 +47,6 @@ namespace TeleSharp.TL participants = (TLVector)ObjectUtils.DeserializeVector(br); else participants = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -64,15 +55,11 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - StringUtil.Serialize(title, bw); ObjectUtils.SerializeObject(photo, bw); bw.Write(participants_count); if ((flags & 16) != 0) ObjectUtils.SerializeObject(participants, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatInviteAlready.cs b/TeleSharp.TL/TL/TLChatInviteAlready.cs index 8526376..235f241 100644 --- a/TeleSharp.TL/TL/TLChatInviteAlready.cs +++ b/TeleSharp.TL/TL/TLChatInviteAlready.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatInviteEmpty.cs b/TeleSharp.TL/TL/TLChatInviteEmpty.cs index 34b59f0..ebdb6eb 100644 --- a/TeleSharp.TL/TL/TLChatInviteEmpty.cs +++ b/TeleSharp.TL/TL/TLChatInviteEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatInviteExported.cs b/TeleSharp.TL/TL/TLChatInviteExported.cs index 619b2c2..dbda3d8 100644 --- a/TeleSharp.TL/TL/TLChatInviteExported.cs +++ b/TeleSharp.TL/TL/TLChatInviteExported.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatParticipant.cs b/TeleSharp.TL/TL/TLChatParticipant.cs index 0f1fd23..d08fe4a 100644 --- a/TeleSharp.TL/TL/TLChatParticipant.cs +++ b/TeleSharp.TL/TL/TLChatParticipant.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int inviter_id { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); inviter_id = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(inviter_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs index 09e5c8f..ee95317 100644 --- a/TeleSharp.TL/TL/TLChatParticipantAdmin.cs +++ b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int inviter_id { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); inviter_id = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); bw.Write(inviter_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatParticipantCreator.cs b/TeleSharp.TL/TL/TLChatParticipantCreator.cs index 7d88993..e1d25e2 100644 --- a/TeleSharp.TL/TL/TLChatParticipantCreator.cs +++ b/TeleSharp.TL/TL/TLChatParticipantCreator.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatParticipants.cs b/TeleSharp.TL/TL/TLChatParticipants.cs index f24b592..cedd3fa 100644 --- a/TeleSharp.TL/TL/TLChatParticipants.cs +++ b/TeleSharp.TL/TL/TLChatParticipants.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLVector participants { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); participants = (TLVector)ObjectUtils.DeserializeVector(br); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(chat_id); ObjectUtils.SerializeObject(participants, bw); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs index a00b013..601c6be 100644 --- a/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs +++ b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL self_participant = (TLAbsChatParticipant)ObjectUtils.DeserializeObject(br); else self_participant = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL bw.Write(chat_id); if ((flags & 1) != 0) ObjectUtils.SerializeObject(self_participant, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatPhoto.cs b/TeleSharp.TL/TL/TLChatPhoto.cs index 2c58635..3efecc9 100644 --- a/TeleSharp.TL/TL/TLChatPhoto.cs +++ b/TeleSharp.TL/TL/TLChatPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(photo_small, bw); ObjectUtils.SerializeObject(photo_big, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs index cea4e99..2c0460d 100644 --- a/TeleSharp.TL/TL/TLChatPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLConfig.cs b/TeleSharp.TL/TL/TLConfig.cs index 1285ef0..86459ba 100644 --- a/TeleSharp.TL/TL/TLConfig.cs +++ b/TeleSharp.TL/TL/TLConfig.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-882895228)] @@ -50,13 +45,11 @@ namespace TeleSharp.TL public string me_url_prefix { get; set; } public TLVector disabled_features { get; set; } - public void ComputeFlags() { flags = 0; flags = phonecalls_enabled ? (flags | 2) : (flags & ~2); flags = tmp_sessions != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -96,7 +89,6 @@ namespace TeleSharp.TL call_packet_timeout_ms = br.ReadInt32(); me_url_prefix = StringUtil.Deserialize(br); disabled_features = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -135,7 +127,6 @@ namespace TeleSharp.TL bw.Write(call_packet_timeout_ms); StringUtil.Serialize(me_url_prefix, bw); ObjectUtils.SerializeObject(disabled_features, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContact.cs b/TeleSharp.TL/TL/TLContact.cs index 010bb63..7f178d7 100644 --- a/TeleSharp.TL/TL/TLContact.cs +++ b/TeleSharp.TL/TL/TLContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); BoolUtil.Serialize(mutual, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactBlocked.cs b/TeleSharp.TL/TL/TLContactBlocked.cs index c54c457..ffbbb3b 100644 --- a/TeleSharp.TL/TL/TLContactBlocked.cs +++ b/TeleSharp.TL/TL/TLContactBlocked.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactLinkContact.cs b/TeleSharp.TL/TL/TLContactLinkContact.cs index 3c3b673..e9df987 100644 --- a/TeleSharp.TL/TL/TLContactLinkContact.cs +++ b/TeleSharp.TL/TL/TLContactLinkContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactLinkHasPhone.cs b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs index 6ac2fd4..d2a6fbe 100644 --- a/TeleSharp.TL/TL/TLContactLinkHasPhone.cs +++ b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactLinkNone.cs b/TeleSharp.TL/TL/TLContactLinkNone.cs index 66a0bd9..3c0a168 100644 --- a/TeleSharp.TL/TL/TLContactLinkNone.cs +++ b/TeleSharp.TL/TL/TLContactLinkNone.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactLinkUnknown.cs b/TeleSharp.TL/TL/TLContactLinkUnknown.cs index a4a4cd6..2184e8f 100644 --- a/TeleSharp.TL/TL/TLContactLinkUnknown.cs +++ b/TeleSharp.TL/TL/TLContactLinkUnknown.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLContactStatus.cs b/TeleSharp.TL/TL/TLContactStatus.cs index 4d4dcbd..effec18 100644 --- a/TeleSharp.TL/TL/TLContactStatus.cs +++ b/TeleSharp.TL/TL/TLContactStatus.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); ObjectUtils.SerializeObject(status, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDataJSON.cs b/TeleSharp.TL/TL/TLDataJSON.cs index 88fff40..2a5519a 100644 --- a/TeleSharp.TL/TL/TLDataJSON.cs +++ b/TeleSharp.TL/TL/TLDataJSON.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(2104790276)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public string data { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { data = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); StringUtil.Serialize(data, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDcOption.cs b/TeleSharp.TL/TL/TLDcOption.cs index fc27d1a..2e40047 100644 --- a/TeleSharp.TL/TL/TLDcOption.cs +++ b/TeleSharp.TL/TL/TLDcOption.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -27,7 +22,6 @@ namespace TeleSharp.TL public string ip_address { get; set; } public int port { get; set; } - public void ComputeFlags() { flags = 0; @@ -35,7 +29,6 @@ namespace TeleSharp.TL flags = media_only ? (flags | 2) : (flags & ~2); flags = tcpo_only ? (flags | 4) : (flags & ~4); flags = cdn ? (flags | 8) : (flags & ~8); - } public override void DeserializeBody(BinaryReader br) @@ -48,7 +41,6 @@ namespace TeleSharp.TL id = br.ReadInt32(); ip_address = StringUtil.Deserialize(br); port = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -57,13 +49,9 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - bw.Write(id); StringUtil.Serialize(ip_address, bw); bw.Write(port); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDialog.cs b/TeleSharp.TL/TL/TLDialog.cs index 53578c4..e287837 100644 --- a/TeleSharp.TL/TL/TLDialog.cs +++ b/TeleSharp.TL/TL/TLDialog.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -29,14 +24,12 @@ namespace TeleSharp.TL public int? pts { get; set; } public TLAbsDraftMessage draft { get; set; } - public void ComputeFlags() { flags = 0; flags = pinned ? (flags | 4) : (flags & ~4); flags = pts != null ? (flags | 1) : (flags & ~1); flags = draft != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -58,8 +51,6 @@ namespace TeleSharp.TL draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); else draft = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -78,7 +69,6 @@ namespace TeleSharp.TL bw.Write(pts.Value); if ((flags & 2) != 0) ObjectUtils.SerializeObject(draft, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDisabledFeature.cs b/TeleSharp.TL/TL/TLDisabledFeature.cs index e5304a4..ed1db51 100644 --- a/TeleSharp.TL/TL/TLDisabledFeature.cs +++ b/TeleSharp.TL/TL/TLDisabledFeature.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(feature, bw); StringUtil.Serialize(description, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocument.cs b/TeleSharp.TL/TL/TLDocument.cs index 1fe6dde..217781c 100644 --- a/TeleSharp.TL/TL/TLDocument.cs +++ b/TeleSharp.TL/TL/TLDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2027738169)] @@ -28,10 +23,8 @@ namespace TeleSharp.TL public int version { get; set; } public TLVector attributes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -45,7 +38,6 @@ namespace TeleSharp.TL dc_id = br.ReadInt32(); version = br.ReadInt32(); attributes = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -60,7 +52,6 @@ namespace TeleSharp.TL bw.Write(dc_id); bw.Write(version); ObjectUtils.SerializeObject(attributes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs index e090031..221e3c1 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs index cb98173..8775244 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,7 +20,6 @@ namespace TeleSharp.TL public string performer { get; set; } public byte[] waveform { get; set; } - public void ComputeFlags() { flags = 0; @@ -33,7 +27,6 @@ namespace TeleSharp.TL 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) @@ -55,8 +48,6 @@ namespace TeleSharp.TL waveform = BytesUtil.Deserialize(br); else waveform = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -72,7 +63,6 @@ namespace TeleSharp.TL StringUtil.Serialize(performer, bw); if ((flags & 4) != 0) BytesUtil.Serialize(waveform, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs index 86c21a1..7a2dbc1 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs b/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs index a31049f..42a7a32 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1744710921)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs index 304e930..bb931f6 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(w); bw.Write(h); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs index 46fa3e0..931a991 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1662637586)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL public TLAbsInputStickerSet stickerset { get; set; } public TLMaskCoords mask_coords { get; set; } - public void ComputeFlags() { flags = 0; flags = mask ? (flags | 2) : (flags & ~2); flags = mask_coords != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -43,8 +36,6 @@ namespace TeleSharp.TL mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br); else mask_coords = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -57,7 +48,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(stickerset, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(mask_coords, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs index ed3f842..69558ac 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(250621158)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL public int w { get; set; } public int h { get; set; } - public void ComputeFlags() { flags = 0; flags = round_message ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL duration = br.ReadInt32(); w = br.ReadInt32(); h = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL bw.Write(duration); bw.Write(w); bw.Write(h); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDocumentEmpty.cs b/TeleSharp.TL/TL/TLDocumentEmpty.cs index 30a0930..0a0e31f 100644 --- a/TeleSharp.TL/TL/TLDocumentEmpty.cs +++ b/TeleSharp.TL/TL/TLDocumentEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDraftMessage.cs b/TeleSharp.TL/TL/TLDraftMessage.cs index 6ab9751..ddc42ff 100644 --- a/TeleSharp.TL/TL/TLDraftMessage.cs +++ b/TeleSharp.TL/TL/TLDraftMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,14 +20,12 @@ namespace TeleSharp.TL 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) @@ -51,7 +44,6 @@ namespace TeleSharp.TL entities = null; date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -66,7 +58,6 @@ namespace TeleSharp.TL if ((flags & 8) != 0) ObjectUtils.SerializeObject(entities, bw); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLDraftMessageEmpty.cs b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs index a5d31cf..97081aa 100644 --- a/TeleSharp.TL/TL/TLDraftMessageEmpty.cs +++ b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedChat.cs b/TeleSharp.TL/TL/TLEncryptedChat.cs index ba71d7c..07f10c6 100644 --- a/TeleSharp.TL/TL/TLEncryptedChat.cs +++ b/TeleSharp.TL/TL/TLEncryptedChat.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -26,10 +21,8 @@ namespace TeleSharp.TL public byte[] g_a_or_b { get; set; } public long key_fingerprint { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -41,7 +34,6 @@ namespace TeleSharp.TL participant_id = br.ReadInt32(); g_a_or_b = BytesUtil.Deserialize(br); key_fingerprint = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +46,6 @@ namespace TeleSharp.TL bw.Write(participant_id); BytesUtil.Serialize(g_a_or_b, bw); bw.Write(key_fingerprint); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs index f6331e1..673385e 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs index 9a0f353..611c2e4 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedChatRequested.cs b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs index 18f82c6..efdbeba 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatRequested.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public int participant_id { get; set; } public byte[] g_a { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL admin_id = br.ReadInt32(); participant_id = br.ReadInt32(); g_a = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL bw.Write(admin_id); bw.Write(participant_id); BytesUtil.Serialize(g_a, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs index 1b8b20e..c44f56b 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int admin_id { get; set; } public int participant_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); admin_id = br.ReadInt32(); participant_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(date); bw.Write(admin_id); bw.Write(participant_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedFile.cs b/TeleSharp.TL/TL/TLEncryptedFile.cs index 138b49a..da62ec1 100644 --- a/TeleSharp.TL/TL/TLEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLEncryptedFile.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int dc_id { get; set; } public int key_fingerprint { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL size = br.ReadInt32(); dc_id = br.ReadInt32(); key_fingerprint = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(size); bw.Write(dc_id); bw.Write(key_fingerprint); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs index d1735f2..8889f25 100644 --- a/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs +++ b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedMessage.cs b/TeleSharp.TL/TL/TLEncryptedMessage.cs index fde4d6c..0c277a5 100644 --- a/TeleSharp.TL/TL/TLEncryptedMessage.cs +++ b/TeleSharp.TL/TL/TLEncryptedMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public byte[] bytes { get; set; } public TLAbsEncryptedFile file { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(date); BytesUtil.Serialize(bytes, bw); ObjectUtils.SerializeObject(file, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLEncryptedMessageService.cs b/TeleSharp.TL/TL/TLEncryptedMessageService.cs index 8b80e11..c281062 100644 --- a/TeleSharp.TL/TL/TLEncryptedMessageService.cs +++ b/TeleSharp.TL/TL/TLEncryptedMessageService.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int date { get; set; } public byte[] bytes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); date = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(chat_id); bw.Write(date); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLError.cs b/TeleSharp.TL/TL/TLError.cs index 808fb57..effa3ed 100644 --- a/TeleSharp.TL/TL/TLError.cs +++ b/TeleSharp.TL/TL/TLError.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(code); StringUtil.Serialize(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLExportedMessageLink.cs b/TeleSharp.TL/TL/TLExportedMessageLink.cs index f1aa71c..639e46d 100644 --- a/TeleSharp.TL/TL/TLExportedMessageLink.cs +++ b/TeleSharp.TL/TL/TLExportedMessageLink.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLFileLocation.cs b/TeleSharp.TL/TL/TLFileLocation.cs index 89815eb..080fbd4 100644 --- a/TeleSharp.TL/TL/TLFileLocation.cs +++ b/TeleSharp.TL/TL/TLFileLocation.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int local_id { get; set; } public long secret { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL volume_id = br.ReadInt64(); local_id = br.ReadInt32(); secret = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(volume_id); bw.Write(local_id); bw.Write(secret); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLFileLocationUnavailable.cs b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs index a11d98b..a3a0752 100644 --- a/TeleSharp.TL/TL/TLFileLocationUnavailable.cs +++ b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int local_id { get; set; } public long secret { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL volume_id = br.ReadInt64(); local_id = br.ReadInt32(); secret = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(volume_id); bw.Write(local_id); bw.Write(secret); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLFoundGif.cs b/TeleSharp.TL/TL/TLFoundGif.cs index 80f4234..999306e 100644 --- a/TeleSharp.TL/TL/TLFoundGif.cs +++ b/TeleSharp.TL/TL/TLFoundGif.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public int w { get; set; } public int h { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL content_type = StringUtil.Deserialize(br); w = br.ReadInt32(); h = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL StringUtil.Serialize(content_type, bw); bw.Write(w); bw.Write(h); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLFoundGifCached.cs b/TeleSharp.TL/TL/TLFoundGifCached.cs index aaf0d97..bdbb494 100644 --- a/TeleSharp.TL/TL/TLFoundGifCached.cs +++ b/TeleSharp.TL/TL/TLFoundGifCached.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLAbsPhoto photo { get; set; } public TLAbsDocument document { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL url = StringUtil.Deserialize(br); photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL StringUtil.Serialize(url, bw); ObjectUtils.SerializeObject(photo, bw); ObjectUtils.SerializeObject(document, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLGame.cs b/TeleSharp.TL/TL/TLGame.cs index 1c39aec..30c70d5 100644 --- a/TeleSharp.TL/TL/TLGame.cs +++ b/TeleSharp.TL/TL/TLGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1107729093)] @@ -27,12 +22,10 @@ namespace TeleSharp.TL public TLAbsPhoto photo { get; set; } public TLAbsDocument document { get; set; } - public void ComputeFlags() { flags = 0; flags = document != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -48,8 +41,6 @@ namespace TeleSharp.TL document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); else document = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -65,7 +56,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(photo, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(document, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLGeoPoint.cs b/TeleSharp.TL/TL/TLGeoPoint.cs index 5825c85..d14e55d 100644 --- a/TeleSharp.TL/TL/TLGeoPoint.cs +++ b/TeleSharp.TL/TL/TLGeoPoint.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(@long); bw.Write(lat); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLGeoPointEmpty.cs b/TeleSharp.TL/TL/TLGeoPointEmpty.cs index 9caaffc..ee8aa81 100644 --- a/TeleSharp.TL/TL/TLGeoPointEmpty.cs +++ b/TeleSharp.TL/TL/TLGeoPointEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLHighScore.cs b/TeleSharp.TL/TL/TLHighScore.cs index 344afc4..5561778 100644 --- a/TeleSharp.TL/TL/TLHighScore.cs +++ b/TeleSharp.TL/TL/TLHighScore.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1493171408)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int user_id { get; set; } public int score { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL pos = br.ReadInt32(); user_id = br.ReadInt32(); score = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(pos); bw.Write(user_id); bw.Write(score); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLImportedContact.cs b/TeleSharp.TL/TL/TLImportedContact.cs index e9472bd..8c7ff93 100644 --- a/TeleSharp.TL/TL/TLImportedContact.cs +++ b/TeleSharp.TL/TL/TLImportedContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(client_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs index abe0402..0a49a71 100644 --- a/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs +++ b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(text, bw); StringUtil.Serialize(start_param, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputAppEvent.cs b/TeleSharp.TL/TL/TLInputAppEvent.cs index c363fd3..cfdbecb 100644 --- a/TeleSharp.TL/TL/TLInputAppEvent.cs +++ b/TeleSharp.TL/TL/TLInputAppEvent.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public long peer { get; set; } public string data { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL type = StringUtil.Deserialize(br); peer = br.ReadInt64(); data = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(type, bw); bw.Write(peer); StringUtil.Serialize(data, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs index fb64d88..9538467 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1262639204)] @@ -21,12 +16,10 @@ namespace TeleSharp.TL public int flags { 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) @@ -36,8 +29,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -47,7 +38,6 @@ namespace TeleSharp.TL bw.Write(flags); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs index d6fbb90..9f89bd3 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public long id { get; set; } public long access_hash { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL dc_id = br.ReadInt32(); id = br.ReadInt64(); access_hash = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(dc_id); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs index 4f95b57..e243454 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL StringUtil.Serialize(caption, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs index 6cb03c1..e5c236e 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,12 +19,10 @@ namespace TeleSharp.TL 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) @@ -42,8 +35,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -56,7 +47,6 @@ namespace TeleSharp.TL StringUtil.Serialize(last_name, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs index 4f1e0b4..1a2ce4d 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(geo_point, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs index bcdc206..c5d825b 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL 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) @@ -46,8 +39,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -62,7 +53,6 @@ namespace TeleSharp.TL StringUtil.Serialize(venue_id, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs index 74c7e89..048600f 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,14 +19,12 @@ namespace TeleSharp.TL 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) @@ -48,8 +41,6 @@ namespace TeleSharp.TL reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); else reply_markup = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -63,7 +54,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(entities, bw); if ((flags & 4) != 0) ObjectUtils.SerializeObject(reply_markup, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineResult.cs b/TeleSharp.TL/TL/TLInputBotInlineResult.cs index 61cb634..c81c0a6 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResult.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -32,7 +27,6 @@ namespace TeleSharp.TL public int? duration { get; set; } public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() { flags = 0; @@ -45,7 +39,6 @@ namespace TeleSharp.TL 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) @@ -99,7 +92,6 @@ namespace TeleSharp.TL duration = null; send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -128,7 +120,6 @@ namespace TeleSharp.TL if ((flags & 128) != 0) bw.Write(duration.Value); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs index d6cbd34..b0b57e8 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL 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) @@ -52,7 +45,6 @@ namespace TeleSharp.TL document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -68,7 +60,6 @@ namespace TeleSharp.TL StringUtil.Serialize(description, bw); ObjectUtils.SerializeObject(document, bw); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs b/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs index 332f5ba..5a24950 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1336154098)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public string short_name { get; set; } public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL id = StringUtil.Deserialize(br); short_name = StringUtil.Deserialize(br); send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL StringUtil.Serialize(id, bw); StringUtil.Serialize(short_name, bw); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs index d1f5163..1949cd4 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public TLAbsInputPhoto photo { get; set; } public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL type = StringUtil.Deserialize(br); photo = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(type, bw); ObjectUtils.SerializeObject(photo, bw); ObjectUtils.SerializeObject(send_message, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputChannel.cs b/TeleSharp.TL/TL/TLInputChannel.cs index 1ddc7b6..2856a97 100644 --- a/TeleSharp.TL/TL/TLInputChannel.cs +++ b/TeleSharp.TL/TL/TLInputChannel.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(channel_id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputChannelEmpty.cs b/TeleSharp.TL/TL/TLInputChannelEmpty.cs index 886a76a..ae4be0b 100644 --- a/TeleSharp.TL/TL/TLInputChannelEmpty.cs +++ b/TeleSharp.TL/TL/TLInputChannelEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputChatPhoto.cs b/TeleSharp.TL/TL/TLInputChatPhoto.cs index b121571..cf5e96e 100644 --- a/TeleSharp.TL/TL/TLInputChatPhoto.cs +++ b/TeleSharp.TL/TL/TLInputChatPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1991004873)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsInputPhoto id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs index 38ef207..372d30f 100644 --- a/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs index 1d39edb..e6034cf 100644 --- a/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs +++ b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1837345356)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsInputFile file { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(file, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputDocument.cs b/TeleSharp.TL/TL/TLInputDocument.cs index 4a126e3..76e6ddb 100644 --- a/TeleSharp.TL/TL/TLInputDocument.cs +++ b/TeleSharp.TL/TL/TLInputDocument.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputDocumentEmpty.cs b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs index b5fa786..755ed03 100644 --- a/TeleSharp.TL/TL/TLInputDocumentEmpty.cs +++ b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs index 9df5282..bbe92be 100644 --- a/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1125058340)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public long access_hash { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL id = br.ReadInt64(); access_hash = br.ReadInt64(); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(id); bw.Write(access_hash); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedChat.cs b/TeleSharp.TL/TL/TLInputEncryptedChat.cs index 71e9ff1..a197d30 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedChat.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedChat.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(chat_id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedFile.cs b/TeleSharp.TL/TL/TLInputEncryptedFile.cs index 1c9ca5e..09576cc 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFile.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs index 9b72184..b2725dc 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int parts { get; set; } public int key_fingerprint { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL id = br.ReadInt64(); parts = br.ReadInt32(); key_fingerprint = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(id); bw.Write(parts); bw.Write(key_fingerprint); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs index 0768ad0..56c68e2 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs index dc995eb..755c33c 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs index 098c53c..28badb7 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string md5_checksum { get; set; } public int key_fingerprint { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL parts = br.ReadInt32(); md5_checksum = StringUtil.Deserialize(br); key_fingerprint = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(parts); StringUtil.Serialize(md5_checksum, bw); bw.Write(key_fingerprint); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputFile.cs b/TeleSharp.TL/TL/TLInputFile.cs index 27bb35a..ac764d6 100644 --- a/TeleSharp.TL/TL/TLInputFile.cs +++ b/TeleSharp.TL/TL/TLInputFile.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string name { get; set; } public string md5_checksum { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL parts = br.ReadInt32(); name = StringUtil.Deserialize(br); md5_checksum = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(parts); StringUtil.Serialize(name, bw); StringUtil.Serialize(md5_checksum, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputFileBig.cs b/TeleSharp.TL/TL/TLInputFileBig.cs index 7ff2248..12808b1 100644 --- a/TeleSharp.TL/TL/TLInputFileBig.cs +++ b/TeleSharp.TL/TL/TLInputFileBig.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int parts { get; set; } public string name { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL id = br.ReadInt64(); parts = br.ReadInt32(); name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(id); bw.Write(parts); StringUtil.Serialize(name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputFileLocation.cs b/TeleSharp.TL/TL/TLInputFileLocation.cs index 11af85d..aee2246 100644 --- a/TeleSharp.TL/TL/TLInputFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputFileLocation.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int local_id { get; set; } public long secret { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL volume_id = br.ReadInt64(); local_id = br.ReadInt32(); secret = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(volume_id); bw.Write(local_id); bw.Write(secret); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputGameID.cs b/TeleSharp.TL/TL/TLInputGameID.cs index 26963e2..732e74d 100644 --- a/TeleSharp.TL/TL/TLInputGameID.cs +++ b/TeleSharp.TL/TL/TLInputGameID.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(53231223)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputGameShortName.cs b/TeleSharp.TL/TL/TLInputGameShortName.cs index 1ec009e..351879a 100644 --- a/TeleSharp.TL/TL/TLInputGameShortName.cs +++ b/TeleSharp.TL/TL/TLInputGameShortName.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1020139510)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsInputUser bot_id { get; set; } public string short_name { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { bot_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); short_name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(bot_id, bw); StringUtil.Serialize(short_name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputGeoPoint.cs b/TeleSharp.TL/TL/TLInputGeoPoint.cs index 5afce57..a9bcea8 100644 --- a/TeleSharp.TL/TL/TLInputGeoPoint.cs +++ b/TeleSharp.TL/TL/TLInputGeoPoint.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(lat); bw.Write(@long); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs index 765e72a..2db03f7 100644 --- a/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs +++ b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaContact.cs b/TeleSharp.TL/TL/TLInputMediaContact.cs index 793114a..a696225 100644 --- a/TeleSharp.TL/TL/TLInputMediaContact.cs +++ b/TeleSharp.TL/TL/TLInputMediaContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public string first_name { get; set; } public string last_name { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL phone_number = StringUtil.Deserialize(br); first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL StringUtil.Serialize(phone_number, bw); StringUtil.Serialize(first_name, bw); StringUtil.Serialize(last_name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaDocument.cs b/TeleSharp.TL/TL/TLInputMediaDocument.cs index 53d2925..5e71ad6 100644 --- a/TeleSharp.TL/TL/TLInputMediaDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaDocument.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs b/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs index 622bcec..585ad85 100644 --- a/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-437690244)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string url { get; set; } public string caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); caption = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(url, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaEmpty.cs b/TeleSharp.TL/TL/TLInputMediaEmpty.cs index eb9e65f..250f97e 100644 --- a/TeleSharp.TL/TL/TLInputMediaEmpty.cs +++ b/TeleSharp.TL/TL/TLInputMediaEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaGame.cs b/TeleSharp.TL/TL/TLInputMediaGame.cs index 117c3bc..3ad5132 100644 --- a/TeleSharp.TL/TL/TLInputMediaGame.cs +++ b/TeleSharp.TL/TL/TLInputMediaGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-750828557)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsInputGame id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputGame)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs index 37a7793..9e5872d 100644 --- a/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs +++ b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaGifExternal.cs b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs index 69b3d2b..572fc0a 100644 --- a/TeleSharp.TL/TL/TLInputMediaGifExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(url, bw); StringUtil.Serialize(q, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaInvoice.cs b/TeleSharp.TL/TL/TLInputMediaInvoice.cs index 7558df7..08f22e7 100644 --- a/TeleSharp.TL/TL/TLInputMediaInvoice.cs +++ b/TeleSharp.TL/TL/TLInputMediaInvoice.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1844103547)] @@ -27,12 +22,10 @@ namespace TeleSharp.TL public string provider { get; set; } public string start_param { get; set; } - public void ComputeFlags() { flags = 0; flags = photo != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -49,7 +42,6 @@ namespace TeleSharp.TL payload = BytesUtil.Deserialize(br); provider = StringUtil.Deserialize(br); start_param = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -65,7 +57,6 @@ namespace TeleSharp.TL BytesUtil.Serialize(payload, bw); StringUtil.Serialize(provider, bw); StringUtil.Serialize(start_param, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaPhoto.cs b/TeleSharp.TL/TL/TLInputMediaPhoto.cs index 21ac04f..d1b0620 100644 --- a/TeleSharp.TL/TL/TLInputMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLInputMediaPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs b/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs index f2e0621..21a46c5 100644 --- a/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1252045032)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string url { get; set; } public string caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); caption = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(url, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs index 87d195a..9797c86 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-797904407)] @@ -25,12 +20,10 @@ namespace TeleSharp.TL public string caption { get; set; } public TLVector stickers { get; set; } - public void ComputeFlags() { flags = 0; flags = stickers != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -44,8 +37,6 @@ namespace TeleSharp.TL stickers = (TLVector)ObjectUtils.DeserializeVector(br); else stickers = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -59,7 +50,6 @@ namespace TeleSharp.TL StringUtil.Serialize(caption, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(stickers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs index 491026d..0d047e4 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1661770481)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL public string caption { get; set; } public TLVector stickers { get; set; } - public void ComputeFlags() { flags = 0; flags = stickers != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -40,8 +33,6 @@ namespace TeleSharp.TL stickers = (TLVector)ObjectUtils.DeserializeVector(br); else stickers = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -53,7 +44,6 @@ namespace TeleSharp.TL StringUtil.Serialize(caption, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(stickers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs index 1376b6e..53bfb17 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1356369070)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL public string caption { get; set; } public TLVector stickers { get; set; } - public void ComputeFlags() { flags = 0; flags = stickers != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -46,8 +39,6 @@ namespace TeleSharp.TL stickers = (TLVector)ObjectUtils.DeserializeVector(br); else stickers = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -62,7 +53,6 @@ namespace TeleSharp.TL StringUtil.Serialize(caption, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(stickers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMediaVenue.cs b/TeleSharp.TL/TL/TLInputMediaVenue.cs index 32ca4b4..fc8f439 100644 --- a/TeleSharp.TL/TL/TLInputMediaVenue.cs +++ b/TeleSharp.TL/TL/TLInputMediaVenue.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public string provider { get; set; } public string venue_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL address = StringUtil.Deserialize(br); provider = StringUtil.Deserialize(br); venue_id = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL StringUtil.Serialize(address, bw); StringUtil.Serialize(provider, bw); StringUtil.Serialize(venue_id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs index 249c494..23fc272 100644 --- a/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs +++ b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int length { get; set; } public TLAbsInputUser user_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL offset = br.ReadInt32(); length = br.ReadInt32(); user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(offset); bw.Write(length); ObjectUtils.SerializeObject(user_id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs index e0e50b4..e06faad 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs index a94c03e..b11c784 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs index 38ab571..a1d2e8a 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs index 859a973..79d8ac0 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs index 28a86fe..f73b015 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs index dd7b97a..ad5a750 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2134272152)] @@ -21,19 +16,16 @@ namespace TeleSharp.TL public int flags { get; set; } public bool missed { get; set; } - public void ComputeFlags() { flags = 0; flags = missed ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); missed = (flags & 1) != 0; - } public override void SerializeBody(BinaryWriter bw) @@ -41,8 +33,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs index 4cc17e5..9d8f899 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs index 5b1c262..0d8d821 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs index ae49c77..392e78e 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs index d7fc258..e3a98a5 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1253451181)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs index 8d6bf1d..23b7c78 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(2054952868)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs index 6fb42b5..6c5e462 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs index 8f714a6..38d2d85 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs index 8f55014..6768389 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputNotifyAll.cs b/TeleSharp.TL/TL/TLInputNotifyAll.cs index d8651fa..f9b9ff7 100644 --- a/TeleSharp.TL/TL/TLInputNotifyAll.cs +++ b/TeleSharp.TL/TL/TLInputNotifyAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputNotifyChats.cs b/TeleSharp.TL/TL/TLInputNotifyChats.cs index f997223..cbd5952 100644 --- a/TeleSharp.TL/TL/TLInputNotifyChats.cs +++ b/TeleSharp.TL/TL/TLInputNotifyChats.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputNotifyPeer.cs b/TeleSharp.TL/TL/TLInputNotifyPeer.cs index 1e6943b..c4a9cf5 100644 --- a/TeleSharp.TL/TL/TLInputNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLInputNotifyPeer.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputNotifyUsers.cs b/TeleSharp.TL/TL/TLInputNotifyUsers.cs index e896b47..d005dcc 100644 --- a/TeleSharp.TL/TL/TLInputNotifyUsers.cs +++ b/TeleSharp.TL/TL/TLInputNotifyUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPaymentCredentials.cs b/TeleSharp.TL/TL/TLInputPaymentCredentials.cs index 8f9852c..0941d4f 100644 --- a/TeleSharp.TL/TL/TLInputPaymentCredentials.cs +++ b/TeleSharp.TL/TL/TLInputPaymentCredentials.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(873977640)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL public bool save { get; set; } public TLDataJSON data { get; set; } - public void ComputeFlags() { flags = 0; flags = save ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL flags = br.ReadInt32(); save = (flags & 1) != 0; data = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(flags); ObjectUtils.SerializeObject(data, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs b/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs index f8ff075..5d6487a 100644 --- a/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs +++ b/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1056001329)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string id { get; set; } public byte[] tmp_password { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = StringUtil.Deserialize(br); tmp_password = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(id, bw); BytesUtil.Serialize(tmp_password, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerChannel.cs b/TeleSharp.TL/TL/TLInputPeerChannel.cs index f1452d4..e8755a4 100644 --- a/TeleSharp.TL/TL/TLInputPeerChannel.cs +++ b/TeleSharp.TL/TL/TLInputPeerChannel.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(channel_id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerChat.cs b/TeleSharp.TL/TL/TLInputPeerChat.cs index 6de3926..9916ed3 100644 --- a/TeleSharp.TL/TL/TLInputPeerChat.cs +++ b/TeleSharp.TL/TL/TLInputPeerChat.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerEmpty.cs b/TeleSharp.TL/TL/TLInputPeerEmpty.cs index b30e5cb..0ba000c 100644 --- a/TeleSharp.TL/TL/TLInputPeerEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPeerEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs index 35df4ed..f732e00 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs index f913a8a..c87f6ad 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs index eeadd13..1558aad 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL 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) @@ -40,7 +33,6 @@ namespace TeleSharp.TL silent = (flags & 2) != 0; mute_until = br.ReadInt32(); sound = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,10 +41,8 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(mute_until); StringUtil.Serialize(sound, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerSelf.cs b/TeleSharp.TL/TL/TLInputPeerSelf.cs index ae1de40..627808f 100644 --- a/TeleSharp.TL/TL/TLInputPeerSelf.cs +++ b/TeleSharp.TL/TL/TLInputPeerSelf.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPeerUser.cs b/TeleSharp.TL/TL/TLInputPeerUser.cs index 38c63d6..e346bd6 100644 --- a/TeleSharp.TL/TL/TLInputPeerUser.cs +++ b/TeleSharp.TL/TL/TLInputPeerUser.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPhoneCall.cs b/TeleSharp.TL/TL/TLInputPhoneCall.cs index e2f96ee..1a0b09b 100644 --- a/TeleSharp.TL/TL/TLInputPhoneCall.cs +++ b/TeleSharp.TL/TL/TLInputPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(506920429)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPhoneContact.cs b/TeleSharp.TL/TL/TLInputPhoneContact.cs index 651c19c..0fd9c49 100644 --- a/TeleSharp.TL/TL/TLInputPhoneContact.cs +++ b/TeleSharp.TL/TL/TLInputPhoneContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string first_name { get; set; } public string last_name { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL phone = StringUtil.Deserialize(br); first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(phone, bw); StringUtil.Serialize(first_name, bw); StringUtil.Serialize(last_name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPhoto.cs b/TeleSharp.TL/TL/TLInputPhoto.cs index 2526698..6351c6b 100644 --- a/TeleSharp.TL/TL/TLInputPhoto.cs +++ b/TeleSharp.TL/TL/TLInputPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs index e86298b..06ff4b6 100644 --- a/TeleSharp.TL/TL/TLInputPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs index 6ad6919..2de1a21 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs index 772863b..5c64735 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-88417185)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs index 20d0ea5..3b1d623 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs index ff6ab62..0b3bf91 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs index 2ebb4e9..80b1a7e 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs index ba2c1f4..f1ae71e 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs index 775265d..a987fbe 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs index 2813936..e2a9633 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs index 2edca8b..48c508d 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputReportReasonOther.cs b/TeleSharp.TL/TL/TLInputReportReasonOther.cs index bbb9a92..8a928bd 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonOther.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonOther.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputReportReasonPornography.cs b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs index 7c3f36e..5ba272a 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonPornography.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputReportReasonSpam.cs b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs index a313a30..064c231 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonSpam.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputReportReasonViolence.cs b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs index b1e1008..d5c6838 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonViolence.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs index f990574..a53dc95 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickerSetID.cs b/TeleSharp.TL/TL/TLInputStickerSetID.cs index 0e98635..6b293db 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetID.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetID.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickerSetItem.cs b/TeleSharp.TL/TL/TLInputStickerSetItem.cs index 7fa69a0..85700fd 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetItem.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetItem.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-6249322)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL public string emoji { get; set; } public TLMaskCoords mask_coords { get; set; } - public void ComputeFlags() { flags = 0; flags = mask_coords != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -40,8 +33,6 @@ namespace TeleSharp.TL mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br); else mask_coords = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -53,7 +44,6 @@ namespace TeleSharp.TL StringUtil.Serialize(emoji, bw); if ((flags & 1) != 0) ObjectUtils.SerializeObject(mask_coords, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickerSetShortName.cs b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs index fa04120..63a374f 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetShortName.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs b/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs index 309b509..15f064f 100644 --- a/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs +++ b/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(70813275)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsInputDocument id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs b/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs index caa6fe4..2465119 100644 --- a/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1251549527)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsInputPhoto id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputUser.cs b/TeleSharp.TL/TL/TLInputUser.cs index 2d3d7af..475bcd7 100644 --- a/TeleSharp.TL/TL/TLInputUser.cs +++ b/TeleSharp.TL/TL/TLInputUser.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputUserEmpty.cs b/TeleSharp.TL/TL/TLInputUserEmpty.cs index 9609d31..f28668f 100644 --- a/TeleSharp.TL/TL/TLInputUserEmpty.cs +++ b/TeleSharp.TL/TL/TLInputUserEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputUserSelf.cs b/TeleSharp.TL/TL/TLInputUserSelf.cs index be91a59..717f419 100644 --- a/TeleSharp.TL/TL/TLInputUserSelf.cs +++ b/TeleSharp.TL/TL/TLInputUserSelf.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputWebDocument.cs b/TeleSharp.TL/TL/TLInputWebDocument.cs index 4f92e62..d6058f8 100644 --- a/TeleSharp.TL/TL/TLInputWebDocument.cs +++ b/TeleSharp.TL/TL/TLInputWebDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1678949555)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string mime_type { get; set; } public TLVector attributes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL size = br.ReadInt32(); mime_type = StringUtil.Deserialize(br); attributes = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(size); StringUtil.Serialize(mime_type, bw); ObjectUtils.SerializeObject(attributes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInputWebFileLocation.cs b/TeleSharp.TL/TL/TLInputWebFileLocation.cs index 9e73e01..49c67cd 100644 --- a/TeleSharp.TL/TL/TLInputWebFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputWebFileLocation.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1036396922)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string url { get; set; } public long access_hash { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); access_hash = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(url, bw); bw.Write(access_hash); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLInvoice.cs b/TeleSharp.TL/TL/TLInvoice.cs index 2b415c1..3d8586e 100644 --- a/TeleSharp.TL/TL/TLInvoice.cs +++ b/TeleSharp.TL/TL/TLInvoice.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1022713000)] @@ -28,7 +23,6 @@ namespace TeleSharp.TL public string currency { get; set; } public TLVector prices { get; set; } - public void ComputeFlags() { flags = 0; @@ -38,7 +32,6 @@ namespace TeleSharp.TL flags = email_requested ? (flags | 8) : (flags & ~8); flags = shipping_address_requested ? (flags | 16) : (flags & ~16); flags = flexible ? (flags | 32) : (flags & ~32); - } public override void DeserializeBody(BinaryReader br) @@ -52,7 +45,6 @@ namespace TeleSharp.TL flexible = (flags & 32) != 0; currency = StringUtil.Deserialize(br); prices = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -61,14 +53,8 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - - StringUtil.Serialize(currency, bw); ObjectUtils.SerializeObject(prices, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButton.cs b/TeleSharp.TL/TL/TLKeyboardButton.cs index dfcf9a5..d4bef8e 100644 --- a/TeleSharp.TL/TL/TLKeyboardButton.cs +++ b/TeleSharp.TL/TL/TLKeyboardButton.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs b/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs index f141d90..766d8f6 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1344716869)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs index 9f0f284..fc44c9c 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(text, bw); BytesUtil.Serialize(data, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonGame.cs b/TeleSharp.TL/TL/TLKeyboardButtonGame.cs index fcd022f..5d13ecb 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonGame.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1358175439)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs index 73dd7c4..f776e8b 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs index 3020069..5014be9 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRow.cs b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs index de3f961..d9a8e4a 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRow.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs index 08c7a9d..2a6f46a 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(90744648)] @@ -23,12 +18,10 @@ namespace TeleSharp.TL public string text { get; set; } public string query { get; set; } - public void ComputeFlags() { flags = 0; flags = same_peer ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL same_peer = (flags & 1) != 0; text = StringUtil.Deserialize(br); query = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL StringUtil.Serialize(text, bw); StringUtil.Serialize(query, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs index a510d6d..eff998f 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(text, bw); StringUtil.Serialize(url, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLLabeledPrice.cs b/TeleSharp.TL/TL/TLLabeledPrice.cs index 8b5ca0f..eec2722 100644 --- a/TeleSharp.TL/TL/TLLabeledPrice.cs +++ b/TeleSharp.TL/TL/TLLabeledPrice.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-886477832)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string label { get; set; } public long amount { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { label = StringUtil.Deserialize(br); amount = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(label, bw); bw.Write(amount); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMaskCoords.cs b/TeleSharp.TL/TL/TLMaskCoords.cs index c11122b..e663459 100644 --- a/TeleSharp.TL/TL/TLMaskCoords.cs +++ b/TeleSharp.TL/TL/TLMaskCoords.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1361650766)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public double y { get; set; } public double zoom { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL x = br.ReadDouble(); y = br.ReadDouble(); zoom = br.ReadDouble(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(x); bw.Write(y); bw.Write(zoom); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessage.cs b/TeleSharp.TL/TL/TLMessage.cs index 54f1768..224e3e9 100644 --- a/TeleSharp.TL/TL/TLMessage.cs +++ b/TeleSharp.TL/TL/TLMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -38,7 +33,6 @@ namespace TeleSharp.TL public int? views { get; set; } public int? edit_date { get; set; } - public void ComputeFlags() { flags = 0; @@ -56,7 +50,6 @@ namespace TeleSharp.TL 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) @@ -115,8 +108,6 @@ namespace TeleSharp.TL edit_date = br.ReadInt32(); else edit_date = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -125,10 +116,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - bw.Write(id); if ((flags & 256) != 0) bw.Write(from_id.Value); @@ -151,7 +138,6 @@ namespace TeleSharp.TL bw.Write(views.Value); if ((flags & 32768) != 0) bw.Write(edit_date.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs index b1d28bb..d17070a 100644 --- a/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs +++ b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs index 032d4b9..1bdcb9d 100644 --- a/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs +++ b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(title, bw); bw.Write(chat_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs index 82177b2..9ae6921 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatCreate.cs b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs index 2de5f06..5f6829f 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatCreate.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(title, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs index e492513..47910ac 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs index 2eff63c..3b8995a 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs index 4544d16..ffa9312 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs index 3d5a625..35c7f64 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs index 2d67365..453cc80 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs index d802622..e5ba301 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionEmpty.cs b/TeleSharp.TL/TL/TLMessageActionEmpty.cs index 81ce4fe..6d453ce 100644 --- a/TeleSharp.TL/TL/TLMessageActionEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageActionEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionGameScore.cs b/TeleSharp.TL/TL/TLMessageActionGameScore.cs index 3f03d72..907c591 100644 --- a/TeleSharp.TL/TL/TLMessageActionGameScore.cs +++ b/TeleSharp.TL/TL/TLMessageActionGameScore.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1834538890)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public long game_id { get; set; } public int score { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { game_id = br.ReadInt64(); score = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(game_id); bw.Write(score); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs index 9d4a752..60382c7 100644 --- a/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs +++ b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs b/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs index a54def3..5cd878a 100644 --- a/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs +++ b/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1080663248)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string currency { get; set; } public long total_amount { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { currency = StringUtil.Deserialize(br); total_amount = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(currency, bw); bw.Write(total_amount); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs b/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs index eacd637..f580c01 100644 --- a/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs +++ b/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1892568281)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL public string shipping_option_id { get; set; } public TLPaymentCharge charge { get; set; } - public void ComputeFlags() { flags = 0; flags = info != null ? (flags | 1) : (flags & ~1); flags = shipping_option_id != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -52,7 +45,6 @@ namespace TeleSharp.TL shipping_option_id = null; charge = (TLPaymentCharge)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -68,7 +60,6 @@ namespace TeleSharp.TL if ((flags & 2) != 0) StringUtil.Serialize(shipping_option_id, bw); ObjectUtils.SerializeObject(charge, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs b/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs index a712119..158b4c1 100644 --- a/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs +++ b/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2132731265)] @@ -23,13 +18,11 @@ namespace TeleSharp.TL public TLAbsPhoneCallDiscardReason reason { get; set; } public int? duration { get; set; } - public void ComputeFlags() { flags = 0; flags = reason != null ? (flags | 1) : (flags & ~1); flags = duration != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -45,8 +38,6 @@ namespace TeleSharp.TL duration = br.ReadInt32(); else duration = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -59,7 +50,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(reason, bw); if ((flags & 2) != 0) bw.Write(duration.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageActionPinMessage.cs b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs index 411d057..8583861 100644 --- a/TeleSharp.TL/TL/TLMessageActionPinMessage.cs +++ b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEmpty.cs b/TeleSharp.TL/TL/TLMessageEmpty.cs index 2a685a9..0d0aff9 100644 --- a/TeleSharp.TL/TL/TLMessageEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityBold.cs b/TeleSharp.TL/TL/TLMessageEntityBold.cs index 507318d..52e1b8f 100644 --- a/TeleSharp.TL/TL/TLMessageEntityBold.cs +++ b/TeleSharp.TL/TL/TLMessageEntityBold.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs index 8f054a7..088acbb 100644 --- a/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs +++ b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityCode.cs b/TeleSharp.TL/TL/TLMessageEntityCode.cs index 87d81ae..18553a8 100644 --- a/TeleSharp.TL/TL/TLMessageEntityCode.cs +++ b/TeleSharp.TL/TL/TLMessageEntityCode.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityEmail.cs b/TeleSharp.TL/TL/TLMessageEntityEmail.cs index 666a00f..907d93d 100644 --- a/TeleSharp.TL/TL/TLMessageEntityEmail.cs +++ b/TeleSharp.TL/TL/TLMessageEntityEmail.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityHashtag.cs b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs index 64e4dfe..1a924cb 100644 --- a/TeleSharp.TL/TL/TLMessageEntityHashtag.cs +++ b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityItalic.cs b/TeleSharp.TL/TL/TLMessageEntityItalic.cs index 0d10e44..ec38018 100644 --- a/TeleSharp.TL/TL/TLMessageEntityItalic.cs +++ b/TeleSharp.TL/TL/TLMessageEntityItalic.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityMention.cs b/TeleSharp.TL/TL/TLMessageEntityMention.cs index e0206fe..17fc9ab 100644 --- a/TeleSharp.TL/TL/TLMessageEntityMention.cs +++ b/TeleSharp.TL/TL/TLMessageEntityMention.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs index 1020d9e..74c4cb4 100644 --- a/TeleSharp.TL/TL/TLMessageEntityMentionName.cs +++ b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int length { get; set; } public int user_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL offset = br.ReadInt32(); length = br.ReadInt32(); user_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(offset); bw.Write(length); bw.Write(user_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityPre.cs b/TeleSharp.TL/TL/TLMessageEntityPre.cs index fcff1f0..23ce377 100644 --- a/TeleSharp.TL/TL/TLMessageEntityPre.cs +++ b/TeleSharp.TL/TL/TLMessageEntityPre.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int length { get; set; } public string language { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL offset = br.ReadInt32(); length = br.ReadInt32(); language = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(offset); bw.Write(length); StringUtil.Serialize(language, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs index 17ed6b8..8edcc25 100644 --- a/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs +++ b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int length { get; set; } public string url { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL offset = br.ReadInt32(); length = br.ReadInt32(); url = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(offset); bw.Write(length); StringUtil.Serialize(url, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityUnknown.cs b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs index 5aa0bc0..2082453 100644 --- a/TeleSharp.TL/TL/TLMessageEntityUnknown.cs +++ b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageEntityUrl.cs b/TeleSharp.TL/TL/TLMessageEntityUrl.cs index fdab9ca..b2f6944 100644 --- a/TeleSharp.TL/TL/TLMessageEntityUrl.cs +++ b/TeleSharp.TL/TL/TLMessageEntityUrl.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(offset); bw.Write(length); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageFwdHeader.cs b/TeleSharp.TL/TL/TLMessageFwdHeader.cs index 53545d6..4474666 100644 --- a/TeleSharp.TL/TL/TLMessageFwdHeader.cs +++ b/TeleSharp.TL/TL/TLMessageFwdHeader.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,14 +19,12 @@ namespace TeleSharp.TL 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) @@ -52,8 +45,6 @@ namespace TeleSharp.TL channel_post = br.ReadInt32(); else channel_post = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -68,7 +59,6 @@ namespace TeleSharp.TL bw.Write(channel_id.Value); if ((flags & 4) != 0) bw.Write(channel_post.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaContact.cs b/TeleSharp.TL/TL/TLMessageMediaContact.cs index afaead6..6e711b1 100644 --- a/TeleSharp.TL/TL/TLMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLMessageMediaContact.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string last_name { get; set; } public int user_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); user_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(first_name, bw); StringUtil.Serialize(last_name, bw); bw.Write(user_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaDocument.cs b/TeleSharp.TL/TL/TLMessageMediaDocument.cs index 411ab20..6a1e76a 100644 --- a/TeleSharp.TL/TL/TLMessageMediaDocument.cs +++ b/TeleSharp.TL/TL/TLMessageMediaDocument.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(document, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaEmpty.cs b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs index 46e3443..80c0c1e 100644 --- a/TeleSharp.TL/TL/TLMessageMediaEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaGame.cs b/TeleSharp.TL/TL/TLMessageMediaGame.cs index 73eede6..6002ed7 100644 --- a/TeleSharp.TL/TL/TLMessageMediaGame.cs +++ b/TeleSharp.TL/TL/TLMessageMediaGame.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-38694904)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLGame game { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { game = (TLGame)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(game, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaGeo.cs b/TeleSharp.TL/TL/TLMessageMediaGeo.cs index 2f5090b..e5822a7 100644 --- a/TeleSharp.TL/TL/TLMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLMessageMediaGeo.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaInvoice.cs b/TeleSharp.TL/TL/TLMessageMediaInvoice.cs index da47296..c9df227 100644 --- a/TeleSharp.TL/TL/TLMessageMediaInvoice.cs +++ b/TeleSharp.TL/TL/TLMessageMediaInvoice.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2074799289)] @@ -29,7 +24,6 @@ namespace TeleSharp.TL public long total_amount { get; set; } public string start_param { get; set; } - public void ComputeFlags() { flags = 0; @@ -37,7 +31,6 @@ namespace TeleSharp.TL flags = test ? (flags | 8) : (flags & ~8); flags = photo != null ? (flags | 1) : (flags & ~1); flags = receipt_msg_id != null ? (flags | 4) : (flags & ~4); - } public override void DeserializeBody(BinaryReader br) @@ -60,7 +53,6 @@ namespace TeleSharp.TL currency = StringUtil.Deserialize(br); total_amount = br.ReadInt64(); start_param = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -69,7 +61,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - StringUtil.Serialize(title, bw); StringUtil.Serialize(description, bw); if ((flags & 1) != 0) @@ -79,7 +70,6 @@ namespace TeleSharp.TL StringUtil.Serialize(currency, bw); bw.Write(total_amount); StringUtil.Serialize(start_param, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaPhoto.cs b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs index 0d6e31f..c33c464 100644 --- a/TeleSharp.TL/TL/TLMessageMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(photo, bw); StringUtil.Serialize(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs index c5df2cb..de0c41a 100644 --- a/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs +++ b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaVenue.cs b/TeleSharp.TL/TL/TLMessageMediaVenue.cs index a1dfd9c..026e14e 100644 --- a/TeleSharp.TL/TL/TLMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLMessageMediaVenue.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public string provider { get; set; } public string venue_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL address = StringUtil.Deserialize(br); provider = StringUtil.Deserialize(br); venue_id = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL StringUtil.Serialize(address, bw); StringUtil.Serialize(provider, bw); StringUtil.Serialize(venue_id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageMediaWebPage.cs b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs index 99c7438..4a4dd91 100644 --- a/TeleSharp.TL/TL/TLMessageMediaWebPage.cs +++ b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageRange.cs b/TeleSharp.TL/TL/TLMessageRange.cs index 59da0a2..2607da4 100644 --- a/TeleSharp.TL/TL/TLMessageRange.cs +++ b/TeleSharp.TL/TL/TLMessageRange.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(min_id); bw.Write(max_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLMessageService.cs b/TeleSharp.TL/TL/TLMessageService.cs index f5ab220..cd2d82d 100644 --- a/TeleSharp.TL/TL/TLMessageService.cs +++ b/TeleSharp.TL/TL/TLMessageService.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -31,7 +26,6 @@ namespace TeleSharp.TL public int date { get; set; } public TLAbsMessageAction action { get; set; } - public void ComputeFlags() { flags = 0; @@ -42,7 +36,6 @@ namespace TeleSharp.TL 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) @@ -67,7 +60,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -76,10 +68,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - bw.Write(id); if ((flags & 256) != 0) bw.Write(from_id.Value); @@ -88,7 +76,6 @@ namespace TeleSharp.TL bw.Write(reply_to_msg_id.Value); bw.Write(date); ObjectUtils.SerializeObject(action, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNearestDc.cs b/TeleSharp.TL/TL/TLNearestDc.cs index 188713d..dc4d8cc 100644 --- a/TeleSharp.TL/TL/TLNearestDc.cs +++ b/TeleSharp.TL/TL/TLNearestDc.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int this_dc { get; set; } public int nearest_dc { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL country = StringUtil.Deserialize(br); this_dc = br.ReadInt32(); nearest_dc = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL StringUtil.Serialize(country, bw); bw.Write(this_dc); bw.Write(nearest_dc); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNotifyAll.cs b/TeleSharp.TL/TL/TLNotifyAll.cs index 47d2946..0e97649 100644 --- a/TeleSharp.TL/TL/TLNotifyAll.cs +++ b/TeleSharp.TL/TL/TLNotifyAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNotifyChats.cs b/TeleSharp.TL/TL/TLNotifyChats.cs index 6707b8e..0dce919 100644 --- a/TeleSharp.TL/TL/TLNotifyChats.cs +++ b/TeleSharp.TL/TL/TLNotifyChats.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNotifyPeer.cs b/TeleSharp.TL/TL/TLNotifyPeer.cs index 3689b66..3de491c 100644 --- a/TeleSharp.TL/TL/TLNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLNotifyPeer.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNotifyUsers.cs b/TeleSharp.TL/TL/TLNotifyUsers.cs index 5f08555..1b81e25 100644 --- a/TeleSharp.TL/TL/TLNotifyUsers.cs +++ b/TeleSharp.TL/TL/TLNotifyUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLNull.cs b/TeleSharp.TL/TL/TLNull.cs index 77473d2..51ba96d 100644 --- a/TeleSharp.TL/TL/TLNull.cs +++ b/TeleSharp.TL/TL/TLNull.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockAnchor.cs b/TeleSharp.TL/TL/TLPageBlockAnchor.cs index 7ec7d57..f79beb1 100644 --- a/TeleSharp.TL/TL/TLPageBlockAnchor.cs +++ b/TeleSharp.TL/TL/TLPageBlockAnchor.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-837994576)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public string name { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { name = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); StringUtil.Serialize(name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs b/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs index 5c9261d..1da0ee3 100644 --- a/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs +++ b/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1162877472)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsRichText author { get; set; } public int published_date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { author = (TLAbsRichText)ObjectUtils.DeserializeObject(br); published_date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(author, bw); bw.Write(published_date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockBlockquote.cs b/TeleSharp.TL/TL/TLPageBlockBlockquote.cs index 626a7fa..1fb6e38 100644 --- a/TeleSharp.TL/TL/TLPageBlockBlockquote.cs +++ b/TeleSharp.TL/TL/TLPageBlockBlockquote.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(641563686)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockChannel.cs b/TeleSharp.TL/TL/TLPageBlockChannel.cs index aa4273d..c06ccf0 100644 --- a/TeleSharp.TL/TL/TLPageBlockChannel.cs +++ b/TeleSharp.TL/TL/TLPageBlockChannel.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-283684427)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsChat channel { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsChat)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(channel, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockCollage.cs b/TeleSharp.TL/TL/TLPageBlockCollage.cs index 5d462a0..b68a3e4 100644 --- a/TeleSharp.TL/TL/TLPageBlockCollage.cs +++ b/TeleSharp.TL/TL/TLPageBlockCollage.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(145955919)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLVector items { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { items = (TLVector)ObjectUtils.DeserializeVector(br); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(items, bw); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockCover.cs b/TeleSharp.TL/TL/TLPageBlockCover.cs index af49f66..6f2064b 100644 --- a/TeleSharp.TL/TL/TLPageBlockCover.cs +++ b/TeleSharp.TL/TL/TLPageBlockCover.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(972174080)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsPageBlock cover { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { cover = (TLAbsPageBlock)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(cover, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockDivider.cs b/TeleSharp.TL/TL/TLPageBlockDivider.cs index 7a80cbd..32887fd 100644 --- a/TeleSharp.TL/TL/TLPageBlockDivider.cs +++ b/TeleSharp.TL/TL/TLPageBlockDivider.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-618614392)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockEmbed.cs b/TeleSharp.TL/TL/TLPageBlockEmbed.cs index bf8aaee..ebe1ab4 100644 --- a/TeleSharp.TL/TL/TLPageBlockEmbed.cs +++ b/TeleSharp.TL/TL/TLPageBlockEmbed.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-840826671)] @@ -28,7 +23,6 @@ namespace TeleSharp.TL public int h { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { flags = 0; @@ -37,7 +31,6 @@ namespace TeleSharp.TL flags = url != null ? (flags | 2) : (flags & ~2); flags = html != null ? (flags | 4) : (flags & ~4); flags = poster_photo_id != null ? (flags | 16) : (flags & ~16); - } public override void DeserializeBody(BinaryReader br) @@ -63,7 +56,6 @@ namespace TeleSharp.TL w = br.ReadInt32(); h = br.ReadInt32(); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -72,7 +64,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - if ((flags & 2) != 0) StringUtil.Serialize(url, bw); if ((flags & 4) != 0) @@ -82,7 +73,6 @@ namespace TeleSharp.TL bw.Write(w); bw.Write(h); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs b/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs index 99d202e..56bd5b3 100644 --- a/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs +++ b/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(690781161)] @@ -26,10 +21,8 @@ namespace TeleSharp.TL public TLVector blocks { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -41,7 +34,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); blocks = (TLVector)ObjectUtils.DeserializeVector(br); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +46,6 @@ namespace TeleSharp.TL bw.Write(date); ObjectUtils.SerializeObject(blocks, bw); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockFooter.cs b/TeleSharp.TL/TL/TLPageBlockFooter.cs index a63c031..87ec6de 100644 --- a/TeleSharp.TL/TL/TLPageBlockFooter.cs +++ b/TeleSharp.TL/TL/TLPageBlockFooter.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1216809369)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockHeader.cs b/TeleSharp.TL/TL/TLPageBlockHeader.cs index 31eee73..9933d98 100644 --- a/TeleSharp.TL/TL/TLPageBlockHeader.cs +++ b/TeleSharp.TL/TL/TLPageBlockHeader.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1076861716)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockList.cs b/TeleSharp.TL/TL/TLPageBlockList.cs index d2101f5..34b0ec7 100644 --- a/TeleSharp.TL/TL/TLPageBlockList.cs +++ b/TeleSharp.TL/TL/TLPageBlockList.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(978896884)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public bool ordered { get; set; } public TLVector items { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { ordered = BoolUtil.Deserialize(br); items = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); BoolUtil.Serialize(ordered, bw); ObjectUtils.SerializeObject(items, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockParagraph.cs b/TeleSharp.TL/TL/TLPageBlockParagraph.cs index 5adbc35..782171a 100644 --- a/TeleSharp.TL/TL/TLPageBlockParagraph.cs +++ b/TeleSharp.TL/TL/TLPageBlockParagraph.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1182402406)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockPhoto.cs b/TeleSharp.TL/TL/TLPageBlockPhoto.cs index 0aa3a10..5835849 100644 --- a/TeleSharp.TL/TL/TLPageBlockPhoto.cs +++ b/TeleSharp.TL/TL/TLPageBlockPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-372860542)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public long photo_id { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { photo_id = br.ReadInt64(); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(photo_id); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockPreformatted.cs b/TeleSharp.TL/TL/TLPageBlockPreformatted.cs index baecdfd..810154c 100644 --- a/TeleSharp.TL/TL/TLPageBlockPreformatted.cs +++ b/TeleSharp.TL/TL/TLPageBlockPreformatted.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1066346178)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } public string language { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); language = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); StringUtil.Serialize(language, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockPullquote.cs b/TeleSharp.TL/TL/TLPageBlockPullquote.cs index 437218f..8842514 100644 --- a/TeleSharp.TL/TL/TLPageBlockPullquote.cs +++ b/TeleSharp.TL/TL/TLPageBlockPullquote.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1329878739)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockSlideshow.cs b/TeleSharp.TL/TL/TLPageBlockSlideshow.cs index b57094a..b0c6a6f 100644 --- a/TeleSharp.TL/TL/TLPageBlockSlideshow.cs +++ b/TeleSharp.TL/TL/TLPageBlockSlideshow.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(319588707)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLVector items { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { items = (TLVector)ObjectUtils.DeserializeVector(br); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(items, bw); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockSubheader.cs b/TeleSharp.TL/TL/TLPageBlockSubheader.cs index 3438876..bf32f04 100644 --- a/TeleSharp.TL/TL/TLPageBlockSubheader.cs +++ b/TeleSharp.TL/TL/TLPageBlockSubheader.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-248793375)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockSubtitle.cs b/TeleSharp.TL/TL/TLPageBlockSubtitle.cs index 258acf6..a4b4479 100644 --- a/TeleSharp.TL/TL/TLPageBlockSubtitle.cs +++ b/TeleSharp.TL/TL/TLPageBlockSubtitle.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1879401953)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockTitle.cs b/TeleSharp.TL/TL/TLPageBlockTitle.cs index 296daf3..ab6e598 100644 --- a/TeleSharp.TL/TL/TLPageBlockTitle.cs +++ b/TeleSharp.TL/TL/TLPageBlockTitle.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1890305021)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockUnsupported.cs b/TeleSharp.TL/TL/TLPageBlockUnsupported.cs index 9de6957..403c24e 100644 --- a/TeleSharp.TL/TL/TLPageBlockUnsupported.cs +++ b/TeleSharp.TL/TL/TLPageBlockUnsupported.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(324435594)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageBlockVideo.cs b/TeleSharp.TL/TL/TLPageBlockVideo.cs index 610ca8b..9266752 100644 --- a/TeleSharp.TL/TL/TLPageBlockVideo.cs +++ b/TeleSharp.TL/TL/TLPageBlockVideo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-640214938)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL public long video_id { get; set; } public TLAbsRichText caption { get; set; } - public void ComputeFlags() { flags = 0; flags = autoplay ? (flags | 1) : (flags & ~1); flags = loop ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -40,7 +33,6 @@ namespace TeleSharp.TL loop = (flags & 2) != 0; video_id = br.ReadInt64(); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,10 +41,8 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(video_id); ObjectUtils.SerializeObject(caption, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPageFull.cs b/TeleSharp.TL/TL/TLPageFull.cs index d377c1e..740bb5a 100644 --- a/TeleSharp.TL/TL/TLPageFull.cs +++ b/TeleSharp.TL/TL/TLPageFull.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-677274263)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLVector photos { get; set; } public TLVector videos { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL blocks = (TLVector)ObjectUtils.DeserializeVector(br); photos = (TLVector)ObjectUtils.DeserializeVector(br); videos = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(blocks, bw); ObjectUtils.SerializeObject(photos, bw); ObjectUtils.SerializeObject(videos, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPagePart.cs b/TeleSharp.TL/TL/TLPagePart.cs index f7c6851..94b1451 100644 --- a/TeleSharp.TL/TL/TLPagePart.cs +++ b/TeleSharp.TL/TL/TLPagePart.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1913754556)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLVector photos { get; set; } public TLVector videos { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL blocks = (TLVector)ObjectUtils.DeserializeVector(br); photos = (TLVector)ObjectUtils.DeserializeVector(br); videos = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(blocks, bw); ObjectUtils.SerializeObject(photos, bw); ObjectUtils.SerializeObject(videos, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPaymentCharge.cs b/TeleSharp.TL/TL/TLPaymentCharge.cs index 6b6844a..943cc04 100644 --- a/TeleSharp.TL/TL/TLPaymentCharge.cs +++ b/TeleSharp.TL/TL/TLPaymentCharge.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-368917890)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string id { get; set; } public string provider_charge_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = StringUtil.Deserialize(br); provider_charge_id = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(id, bw); StringUtil.Serialize(provider_charge_id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs b/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs index 9c37da4..6db63d5 100644 --- a/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs +++ b/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1868808300)] @@ -24,7 +19,6 @@ namespace TeleSharp.TL public string email { get; set; } public TLPostAddress shipping_address { get; set; } - public void ComputeFlags() { flags = 0; @@ -32,7 +26,6 @@ namespace TeleSharp.TL flags = phone != null ? (flags | 2) : (flags & ~2); flags = email != null ? (flags | 4) : (flags & ~4); flags = shipping_address != null ? (flags | 8) : (flags & ~8); - } public override void DeserializeBody(BinaryReader br) @@ -57,8 +50,6 @@ namespace TeleSharp.TL shipping_address = (TLPostAddress)ObjectUtils.DeserializeObject(br); else shipping_address = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -74,7 +65,6 @@ namespace TeleSharp.TL StringUtil.Serialize(email, bw); if ((flags & 8) != 0) ObjectUtils.SerializeObject(shipping_address, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs b/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs index 1bd0fdf..d99762f 100644 --- a/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs +++ b/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-842892769)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public string id { get; set; } public string title { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { id = StringUtil.Deserialize(br); title = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(id, bw); StringUtil.Serialize(title, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerChannel.cs b/TeleSharp.TL/TL/TLPeerChannel.cs index 905dfdc..99dfe98 100644 --- a/TeleSharp.TL/TL/TLPeerChannel.cs +++ b/TeleSharp.TL/TL/TLPeerChannel.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerChat.cs b/TeleSharp.TL/TL/TLPeerChat.cs index 55265e5..e3800ad 100644 --- a/TeleSharp.TL/TL/TLPeerChat.cs +++ b/TeleSharp.TL/TL/TLPeerChat.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs index 6d829fd..a410ad9 100644 --- a/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs index 3e3b952..b3dfaee 100644 --- a/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerNotifySettings.cs b/TeleSharp.TL/TL/TLPeerNotifySettings.cs index 508ecc1..2e98b31 100644 --- a/TeleSharp.TL/TL/TLPeerNotifySettings.cs +++ b/TeleSharp.TL/TL/TLPeerNotifySettings.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL 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) @@ -40,7 +33,6 @@ namespace TeleSharp.TL silent = (flags & 2) != 0; mute_until = br.ReadInt32(); sound = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -49,10 +41,8 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(mute_until); StringUtil.Serialize(sound, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs index d3e028f..8de0ad5 100644 --- a/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs +++ b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerSettings.cs b/TeleSharp.TL/TL/TLPeerSettings.cs index 4fd8e10..6757bac 100644 --- a/TeleSharp.TL/TL/TLPeerSettings.cs +++ b/TeleSharp.TL/TL/TLPeerSettings.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,19 +16,16 @@ namespace TeleSharp.TL 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) @@ -41,8 +33,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPeerUser.cs b/TeleSharp.TL/TL/TLPeerUser.cs index d758566..9e7e25c 100644 --- a/TeleSharp.TL/TL/TLPeerUser.cs +++ b/TeleSharp.TL/TL/TLPeerUser.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCall.cs b/TeleSharp.TL/TL/TLPhoneCall.cs index b8fd237..ca035bd 100644 --- a/TeleSharp.TL/TL/TLPhoneCall.cs +++ b/TeleSharp.TL/TL/TLPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1660057)] @@ -30,10 +25,8 @@ namespace TeleSharp.TL public TLVector alternative_connections { get; set; } public int start_date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -49,7 +42,6 @@ namespace TeleSharp.TL connection = (TLPhoneConnection)ObjectUtils.DeserializeObject(br); alternative_connections = (TLVector)ObjectUtils.DeserializeVector(br); start_date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -66,7 +58,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(connection, bw); ObjectUtils.SerializeObject(alternative_connections, bw); bw.Write(start_date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallAccepted.cs b/TeleSharp.TL/TL/TLPhoneCallAccepted.cs index 83f5981..f79d87b 100644 --- a/TeleSharp.TL/TL/TLPhoneCallAccepted.cs +++ b/TeleSharp.TL/TL/TLPhoneCallAccepted.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1828732223)] @@ -26,10 +21,8 @@ namespace TeleSharp.TL public byte[] g_b { get; set; } public TLPhoneCallProtocol protocol { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -41,7 +34,6 @@ namespace TeleSharp.TL participant_id = br.ReadInt32(); g_b = BytesUtil.Deserialize(br); protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +46,6 @@ namespace TeleSharp.TL bw.Write(participant_id); BytesUtil.Serialize(g_b, bw); ObjectUtils.SerializeObject(protocol, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs index 59fd875..757be24 100644 --- a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-84416311)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs index 9f09d4c..ff8cd1f 100644 --- a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-527056480)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs index eb5bdef..6fd4487 100644 --- a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1471006352)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs index d5eef1b..b62f7c6 100644 --- a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2048646399)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs b/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs index d2ff879..963963c 100644 --- a/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs +++ b/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1355435489)] @@ -25,7 +20,6 @@ namespace TeleSharp.TL public TLAbsPhoneCallDiscardReason reason { get; set; } public int? duration { get; set; } - public void ComputeFlags() { flags = 0; @@ -33,7 +27,6 @@ namespace TeleSharp.TL flags = need_debug ? (flags | 8) : (flags & ~8); flags = reason != null ? (flags | 1) : (flags & ~1); flags = duration != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -51,8 +44,6 @@ namespace TeleSharp.TL duration = br.ReadInt32(); else duration = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -61,13 +52,11 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(id); if ((flags & 1) != 0) ObjectUtils.SerializeObject(reason, bw); if ((flags & 2) != 0) bw.Write(duration.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallEmpty.cs b/TeleSharp.TL/TL/TLPhoneCallEmpty.cs index 098ec73..38cc5ce 100644 --- a/TeleSharp.TL/TL/TLPhoneCallEmpty.cs +++ b/TeleSharp.TL/TL/TLPhoneCallEmpty.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1399245077)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallProtocol.cs b/TeleSharp.TL/TL/TLPhoneCallProtocol.cs index 5b3907b..c4225b5 100644 --- a/TeleSharp.TL/TL/TLPhoneCallProtocol.cs +++ b/TeleSharp.TL/TL/TLPhoneCallProtocol.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1564789301)] @@ -24,13 +19,11 @@ namespace TeleSharp.TL public int min_layer { get; set; } public int max_layer { get; set; } - public void ComputeFlags() { flags = 0; flags = udp_p2p ? (flags | 1) : (flags & ~1); flags = udp_reflector ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -40,7 +33,6 @@ namespace TeleSharp.TL udp_reflector = (flags & 2) != 0; min_layer = br.ReadInt32(); max_layer = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -49,10 +41,8 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - bw.Write(min_layer); bw.Write(max_layer); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallRequested.cs b/TeleSharp.TL/TL/TLPhoneCallRequested.cs index d46bdd8..5c740ae 100644 --- a/TeleSharp.TL/TL/TLPhoneCallRequested.cs +++ b/TeleSharp.TL/TL/TLPhoneCallRequested.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2089411356)] @@ -26,10 +21,8 @@ namespace TeleSharp.TL public byte[] g_a_hash { get; set; } public TLPhoneCallProtocol protocol { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -41,7 +34,6 @@ namespace TeleSharp.TL participant_id = br.ReadInt32(); g_a_hash = BytesUtil.Deserialize(br); protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +46,6 @@ namespace TeleSharp.TL bw.Write(participant_id); BytesUtil.Serialize(g_a_hash, bw); ObjectUtils.SerializeObject(protocol, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneCallWaiting.cs b/TeleSharp.TL/TL/TLPhoneCallWaiting.cs index 4fe5947..b0dc63b 100644 --- a/TeleSharp.TL/TL/TLPhoneCallWaiting.cs +++ b/TeleSharp.TL/TL/TLPhoneCallWaiting.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(462375633)] @@ -27,12 +22,10 @@ namespace TeleSharp.TL public TLPhoneCallProtocol protocol { get; set; } public int? receive_date { get; set; } - public void ComputeFlags() { flags = 0; flags = receive_date != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -48,8 +41,6 @@ namespace TeleSharp.TL receive_date = br.ReadInt32(); else receive_date = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -65,7 +56,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(protocol, bw); if ((flags & 1) != 0) bw.Write(receive_date.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoneConnection.cs b/TeleSharp.TL/TL/TLPhoneConnection.cs index fcfeb13..c37ba3e 100644 --- a/TeleSharp.TL/TL/TLPhoneConnection.cs +++ b/TeleSharp.TL/TL/TLPhoneConnection.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1655957568)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int port { get; set; } public byte[] peer_tag { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL ipv6 = StringUtil.Deserialize(br); port = br.ReadInt32(); peer_tag = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL StringUtil.Serialize(ipv6, bw); bw.Write(port); BytesUtil.Serialize(peer_tag, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhoto.cs b/TeleSharp.TL/TL/TLPhoto.cs index d8869a9..83004af 100644 --- a/TeleSharp.TL/TL/TLPhoto.cs +++ b/TeleSharp.TL/TL/TLPhoto.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1836524247)] @@ -25,12 +20,10 @@ namespace TeleSharp.TL public int date { get; set; } public TLVector sizes { get; set; } - public void ComputeFlags() { flags = 0; flags = has_stickers ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -41,7 +34,6 @@ namespace TeleSharp.TL access_hash = br.ReadInt64(); date = br.ReadInt32(); sizes = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +46,6 @@ namespace TeleSharp.TL bw.Write(access_hash); bw.Write(date); ObjectUtils.SerializeObject(sizes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhotoCachedSize.cs b/TeleSharp.TL/TL/TLPhotoCachedSize.cs index b40e782..3515b03 100644 --- a/TeleSharp.TL/TL/TLPhotoCachedSize.cs +++ b/TeleSharp.TL/TL/TLPhotoCachedSize.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int h { get; set; } public byte[] bytes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL w = br.ReadInt32(); h = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(w); bw.Write(h); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhotoEmpty.cs b/TeleSharp.TL/TL/TLPhotoEmpty.cs index dbbf21f..d3ee32a 100644 --- a/TeleSharp.TL/TL/TLPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLPhotoEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhotoSize.cs b/TeleSharp.TL/TL/TLPhotoSize.cs index 0119b32..eeb054b 100644 --- a/TeleSharp.TL/TL/TLPhotoSize.cs +++ b/TeleSharp.TL/TL/TLPhotoSize.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int h { get; set; } public int size { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL w = br.ReadInt32(); h = br.ReadInt32(); size = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(w); bw.Write(h); bw.Write(size); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs index 8ca1307..966a6ef 100644 --- a/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs +++ b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPostAddress.cs b/TeleSharp.TL/TL/TLPostAddress.cs index 00bc3a6..a084294 100644 --- a/TeleSharp.TL/TL/TLPostAddress.cs +++ b/TeleSharp.TL/TL/TLPostAddress.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(512535275)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public string country_iso2 { get; set; } public string post_code { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL state = StringUtil.Deserialize(br); country_iso2 = StringUtil.Deserialize(br); post_code = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL StringUtil.Serialize(state, bw); StringUtil.Serialize(country_iso2, bw); StringUtil.Serialize(post_code, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs index bcd4d8b..7d5de6b 100644 --- a/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs +++ b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs b/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs index fd227f8..db02b77 100644 --- a/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs +++ b/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1030105979)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs index 00ecf71..6c29203 100644 --- a/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs +++ b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs index 59dc672..f188b52 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs index 0fd7f59..31c248c 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs index c2a99f5..a396fc1 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs index a632b37..109aad7 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs index b68d0ea..ecf7e37 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs index cd20b42..0bc4953 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs index 50ca24d..a644256 100644 --- a/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs +++ b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,18 +16,15 @@ namespace TeleSharp.TL 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) @@ -41,7 +33,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); bw.Write(id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLReplyInlineMarkup.cs b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs index 3043c26..380a73c 100644 --- a/TeleSharp.TL/TL/TLReplyInlineMarkup.cs +++ b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs index cc3cc00..4671b82 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,13 +17,11 @@ namespace TeleSharp.TL 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) @@ -36,7 +29,6 @@ namespace TeleSharp.TL flags = br.ReadInt32(); single_use = (flags & 2) != 0; selective = (flags & 4) != 0; - } public override void SerializeBody(BinaryWriter bw) @@ -44,9 +36,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLReplyKeyboardHide.cs b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs index 06ae195..91792fc 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardHide.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,19 +16,16 @@ namespace TeleSharp.TL 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) @@ -41,8 +33,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ComputeFlags(); bw.Write(flags); - - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs index 773c2f8..5c090dc 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,14 +19,12 @@ namespace TeleSharp.TL 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) @@ -41,7 +34,6 @@ namespace TeleSharp.TL single_use = (flags & 2) != 0; selective = (flags & 4) != 0; rows = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -50,10 +42,7 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - ObjectUtils.SerializeObject(rows, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLRequestInitConnection.cs b/TeleSharp.TL/TL/TLRequestInitConnection.cs index ae2b501..847188a 100644 --- a/TeleSharp.TL/TL/TLRequestInitConnection.cs +++ b/TeleSharp.TL/TL/TLRequestInitConnection.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -26,10 +21,8 @@ namespace TeleSharp.TL public TLObject query { get; set; } public TLObject Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -40,7 +33,6 @@ namespace TeleSharp.TL app_version = StringUtil.Deserialize(br); lang_code = StringUtil.Deserialize(br); query = (TLObject)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -52,12 +44,11 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs index 830389d..4583aa1 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(msg_id); ObjectUtils.SerializeObject(query, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLObject)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs index 4680569..0e2b7a1 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(msg_ids, bw); ObjectUtils.SerializeObject(query, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLObject)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs index 001422f..ded062e 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL 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) @@ -40,12 +32,11 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(layer); ObjectUtils.SerializeObject(query, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = (TLObject)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs index bd33df4..e0efe6c 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageCancelAction.cs b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs index cd8aff8..c8602c7 100644 --- a/TeleSharp.TL/TL/TLSendMessageCancelAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs index 609d518..ade5b68 100644 --- a/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs b/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs index df56b60..3059733 100644 --- a/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-580219064)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs index f93684c..51b6cb3 100644 --- a/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs index 68dc5a7..04a649c 100644 --- a/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs index 0ac0e85..9defc58 100644 --- a/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1997373508)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs index a169573..63ab0c0 100644 --- a/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageTypingAction.cs b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs index 72237c8..32d1876 100644 --- a/TeleSharp.TL/TL/TLSendMessageTypingAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs index 3fb3aa6..1477e7b 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs index 394d035..6e483d7 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs index b9d0a48..82c2700 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs index 285c9f5..42f7c80 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(608050278)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs index 09585ba..d38aba6 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLShippingOption.cs b/TeleSharp.TL/TL/TLShippingOption.cs index edd6939..31fba7c 100644 --- a/TeleSharp.TL/TL/TLShippingOption.cs +++ b/TeleSharp.TL/TL/TLShippingOption.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1239335713)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public string title { get; set; } public TLVector prices { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL id = StringUtil.Deserialize(br); title = StringUtil.Deserialize(br); prices = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL StringUtil.Serialize(id, bw); StringUtil.Serialize(title, bw); ObjectUtils.SerializeObject(prices, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLStickerPack.cs b/TeleSharp.TL/TL/TLStickerPack.cs index a979a24..df05eae 100644 --- a/TeleSharp.TL/TL/TLStickerPack.cs +++ b/TeleSharp.TL/TL/TLStickerPack.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); StringUtil.Serialize(emoticon, bw); ObjectUtils.SerializeObject(documents, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLStickerSet.cs b/TeleSharp.TL/TL/TLStickerSet.cs index eafd8a7..a2d9c52 100644 --- a/TeleSharp.TL/TL/TLStickerSet.cs +++ b/TeleSharp.TL/TL/TLStickerSet.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -30,7 +25,6 @@ namespace TeleSharp.TL public int count { get; set; } public int hash { get; set; } - public void ComputeFlags() { flags = 0; @@ -38,7 +32,6 @@ namespace TeleSharp.TL flags = archived ? (flags | 2) : (flags & ~2); flags = official ? (flags | 4) : (flags & ~4); flags = masks ? (flags | 8) : (flags & ~8); - } public override void DeserializeBody(BinaryReader br) @@ -54,7 +47,6 @@ namespace TeleSharp.TL short_name = StringUtil.Deserialize(br); count = br.ReadInt32(); hash = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -63,16 +55,12 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLStickerSetCovered.cs b/TeleSharp.TL/TL/TLStickerSetCovered.cs index 8affe29..2c7112b 100644 --- a/TeleSharp.TL/TL/TLStickerSetCovered.cs +++ b/TeleSharp.TL/TL/TLStickerSetCovered.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1678812626)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLStickerSet @set { get; set; } public TLAbsDocument cover { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); cover = (TLAbsDocument)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(@set, bw); ObjectUtils.SerializeObject(cover, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs b/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs index a1e0192..4a1802d 100644 --- a/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs +++ b/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(872932635)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLStickerSet @set { get; set; } public TLVector covers { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); covers = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(@set, bw); ObjectUtils.SerializeObject(covers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextBold.cs b/TeleSharp.TL/TL/TLTextBold.cs index 7e6e45a..9e22783 100644 --- a/TeleSharp.TL/TL/TLTextBold.cs +++ b/TeleSharp.TL/TL/TLTextBold.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1730456516)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextConcat.cs b/TeleSharp.TL/TL/TLTextConcat.cs index 71b3c17..726bea1 100644 --- a/TeleSharp.TL/TL/TLTextConcat.cs +++ b/TeleSharp.TL/TL/TLTextConcat.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(2120376535)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLVector texts { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { texts = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(texts, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextEmail.cs b/TeleSharp.TL/TL/TLTextEmail.cs index dff0973..0f2ff66 100644 --- a/TeleSharp.TL/TL/TLTextEmail.cs +++ b/TeleSharp.TL/TL/TLTextEmail.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-564523562)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } public string email { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); email = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); StringUtil.Serialize(email, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextEmpty.cs b/TeleSharp.TL/TL/TLTextEmpty.cs index fa71a43..a41767c 100644 --- a/TeleSharp.TL/TL/TLTextEmpty.cs +++ b/TeleSharp.TL/TL/TLTextEmpty.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-599948721)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextFixed.cs b/TeleSharp.TL/TL/TLTextFixed.cs index cb9b7d9..a5068b7 100644 --- a/TeleSharp.TL/TL/TLTextFixed.cs +++ b/TeleSharp.TL/TL/TLTextFixed.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1816074681)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextItalic.cs b/TeleSharp.TL/TL/TLTextItalic.cs index 86e7d86..e3201a3 100644 --- a/TeleSharp.TL/TL/TLTextItalic.cs +++ b/TeleSharp.TL/TL/TLTextItalic.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-653089380)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextPlain.cs b/TeleSharp.TL/TL/TLTextPlain.cs index 044cce0..96a83ee 100644 --- a/TeleSharp.TL/TL/TLTextPlain.cs +++ b/TeleSharp.TL/TL/TLTextPlain.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1950782688)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextStrike.cs b/TeleSharp.TL/TL/TLTextStrike.cs index e3cff4e..005e154 100644 --- a/TeleSharp.TL/TL/TLTextStrike.cs +++ b/TeleSharp.TL/TL/TLTextStrike.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1678197867)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextUnderline.cs b/TeleSharp.TL/TL/TLTextUnderline.cs index 6d98ef3..bc22e7d 100644 --- a/TeleSharp.TL/TL/TLTextUnderline.cs +++ b/TeleSharp.TL/TL/TLTextUnderline.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1054465340)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsRichText text { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(text, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTextUrl.cs b/TeleSharp.TL/TL/TLTextUrl.cs index c86ea43..5a79a16 100644 --- a/TeleSharp.TL/TL/TLTextUrl.cs +++ b/TeleSharp.TL/TL/TLTextUrl.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1009288385)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public string url { get; set; } public long webpage_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); url = StringUtil.Deserialize(br); webpage_id = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(text, bw); StringUtil.Serialize(url, bw); bw.Write(webpage_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeer.cs b/TeleSharp.TL/TL/TLTopPeer.cs index 1cdf7f8..febbaec 100644 --- a/TeleSharp.TL/TL/TLTopPeer.cs +++ b/TeleSharp.TL/TL/TLTopPeer.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); bw.Write(rating); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs index 8d41db6..00dc760 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs index efdc6b1..5786e92 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs index 570af94..8db849f 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs index 8e8a829..927d71f 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs index c283b15..99b2cbb 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs index 5068801..d720b1c 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int count { get; set; } public TLVector peers { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br); count = br.ReadInt32(); peers = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(category, bw); bw.Write(count); ObjectUtils.SerializeObject(peers, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLTrue.cs b/TeleSharp.TL/TL/TLTrue.cs index 7a08914..5742d2c 100644 --- a/TeleSharp.TL/TL/TLTrue.cs +++ b/TeleSharp.TL/TL/TLTrue.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1072550713)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs index 7af81ea..d50c265 100644 --- a/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-415938591)] @@ -27,13 +22,11 @@ namespace TeleSharp.TL public byte[] data { get; set; } public string game_short_name { get; set; } - public void ComputeFlags() { flags = 0; flags = data != null ? (flags | 1) : (flags & ~1); flags = game_short_name != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -53,8 +46,6 @@ namespace TeleSharp.TL game_short_name = StringUtil.Deserialize(br); else game_short_name = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -71,7 +62,6 @@ namespace TeleSharp.TL BytesUtil.Serialize(data, bw); if ((flags & 2) != 0) StringUtil.Serialize(game_short_name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs index 9fcdd8f..5762093 100644 --- a/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,12 +20,10 @@ namespace TeleSharp.TL 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) @@ -45,7 +38,6 @@ namespace TeleSharp.TL geo = null; offset = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -59,7 +51,6 @@ namespace TeleSharp.TL if ((flags & 1) != 0) ObjectUtils.SerializeObject(geo, bw); StringUtil.Serialize(offset, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs index 3438f31..a4205a3 100644 --- a/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs +++ b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,13 +20,11 @@ namespace TeleSharp.TL 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) @@ -49,8 +42,6 @@ namespace TeleSharp.TL msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); else msg_id = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -65,7 +56,6 @@ namespace TeleSharp.TL StringUtil.Serialize(id, bw); if ((flags & 2) != 0) ObjectUtils.SerializeObject(msg_id, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs b/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs index 93dde43..46e9e52 100644 --- a/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1563376297)] @@ -27,13 +22,11 @@ namespace TeleSharp.TL public string currency { get; set; } public long total_amount { get; set; } - public void ComputeFlags() { flags = 0; flags = info != null ? (flags | 1) : (flags & ~1); flags = shipping_option_id != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -54,7 +47,6 @@ namespace TeleSharp.TL currency = StringUtil.Deserialize(br); total_amount = br.ReadInt64(); - } public override void SerializeBody(BinaryWriter bw) @@ -71,7 +63,6 @@ namespace TeleSharp.TL StringUtil.Serialize(shipping_option_id, bw); StringUtil.Serialize(currency, bw); bw.Write(total_amount); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs b/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs index f140aac..0569bdb 100644 --- a/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-523384512)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public byte[] payload { get; set; } public TLPostAddress shipping_address { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); payload = BytesUtil.Deserialize(br); shipping_address = (TLPostAddress)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(user_id); BytesUtil.Serialize(payload, bw); ObjectUtils.SerializeObject(shipping_address, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs b/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs index 49aa6d2..a1a617a 100644 --- a/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs +++ b/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2095595325)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLDataJSON data { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { data = (TLDataJSON)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(data, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs b/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs index e1854d8..3a7f508 100644 --- a/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1684914010)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLDataJSON data { get; set; } public int timeout { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL query_id = br.ReadInt64(); data = (TLDataJSON)ObjectUtils.DeserializeObject(br); timeout = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(query_id); ObjectUtils.SerializeObject(data, bw); bw.Write(timeout); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChannel.cs b/TeleSharp.TL/TL/TLUpdateChannel.cs index e6ec0fe..b475efa 100644 --- a/TeleSharp.TL/TL/TLUpdateChannel.cs +++ b/TeleSharp.TL/TL/TLUpdateChannel.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs index 5b55466..4a1656d 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int id { get; set; } public int views { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL channel_id = br.ReadInt32(); id = br.ReadInt32(); views = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(channel_id); bw.Write(id); bw.Write(views); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs index 7e688a1..e754274 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(channel_id); bw.Write(id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs index 204a48a..00caf3a 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL 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) @@ -38,8 +31,6 @@ namespace TeleSharp.TL pts = br.ReadInt32(); else pts = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -50,7 +41,6 @@ namespace TeleSharp.TL bw.Write(channel_id); if ((flags & 1) != 0) bw.Write(pts.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs b/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs index 8bf22b5..2c13cb3 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1081547008)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(webpage, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatAdmins.cs b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs index 5a4e8a3..e4004d2 100644 --- a/TeleSharp.TL/TL/TLUpdateChatAdmins.cs +++ b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public bool enabled { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); enabled = BoolUtil.Deserialize(br); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(chat_id); BoolUtil.Serialize(enabled, bw); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs index ef9957e..2ad0c8e 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int date { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL inviter_id = br.ReadInt32(); date = br.ReadInt32(); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL bw.Write(inviter_id); bw.Write(date); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs index adb481c..f499209 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public bool is_admin { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); is_admin = BoolUtil.Deserialize(br); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(user_id); BoolUtil.Serialize(is_admin, bw); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs index 82a7e4a..28fe8cf 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int user_id { get; set; } public int version { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); user_id = br.ReadInt32(); version = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(chat_id); bw.Write(user_id); bw.Write(version); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipants.cs b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs index f985632..b08fa6c 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipants.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs index 2e23b01..6c2c63d 100644 --- a/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int user_id { get; set; } public TLAbsSendMessageAction action { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); user_id = br.ReadInt32(); action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(chat_id); bw.Write(user_id); ObjectUtils.SerializeObject(action, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateConfig.cs b/TeleSharp.TL/TL/TLUpdateConfig.cs index 6f90595..4cc5f17 100644 --- a/TeleSharp.TL/TL/TLUpdateConfig.cs +++ b/TeleSharp.TL/TL/TLUpdateConfig.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1574314746)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateContactLink.cs b/TeleSharp.TL/TL/TLUpdateContactLink.cs index 9387fda..bc08c6b 100644 --- a/TeleSharp.TL/TL/TLUpdateContactLink.cs +++ b/TeleSharp.TL/TL/TLUpdateContactLink.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLAbsContactLink my_link { get; set; } public TLAbsContactLink foreign_link { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL user_id = br.ReadInt32(); my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(user_id); ObjectUtils.SerializeObject(my_link, bw); ObjectUtils.SerializeObject(foreign_link, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateContactRegistered.cs b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs index 97a8de5..c01f420 100644 --- a/TeleSharp.TL/TL/TLUpdateContactRegistered.cs +++ b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateDcOptions.cs b/TeleSharp.TL/TL/TLUpdateDcOptions.cs index 55197a8..adaf0e1 100644 --- a/TeleSharp.TL/TL/TLUpdateDcOptions.cs +++ b/TeleSharp.TL/TL/TLUpdateDcOptions.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs index dc69693..cfb60dd 100644 --- a/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs +++ b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL messages = (TLVector)ObjectUtils.DeserializeVector(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(messages, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs index 4b0080b..1a08373 100644 --- a/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs +++ b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL messages = (TLVector)ObjectUtils.DeserializeVector(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(messages, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateDialogPinned.cs b/TeleSharp.TL/TL/TLUpdateDialogPinned.cs index b875718..5fb361c 100644 --- a/TeleSharp.TL/TL/TLUpdateDialogPinned.cs +++ b/TeleSharp.TL/TL/TLUpdateDialogPinned.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-686710068)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL public bool pinned { get; set; } public TLAbsPeer peer { get; set; } - public void ComputeFlags() { flags = 0; flags = pinned ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL flags = br.ReadInt32(); pinned = (flags & 1) != 0; peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(flags); ObjectUtils.SerializeObject(peer, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateDraftMessage.cs b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs index abd6c89..0aaaea3 100644 --- a/TeleSharp.TL/TL/TLUpdateDraftMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(draft, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs index efe5373..fcede86 100644 --- a/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(message, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateEditMessage.cs b/TeleSharp.TL/TL/TLUpdateEditMessage.cs index 1e67a97..dd9471d 100644 --- a/TeleSharp.TL/TL/TLUpdateEditMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateEditMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(message, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs index d2ab449..ec47d58 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs index a0eae12..0880c3e 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int max_date { get; set; } public int date { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL chat_id = br.ReadInt32(); max_date = br.ReadInt32(); date = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(chat_id); bw.Write(max_date); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateEncryption.cs b/TeleSharp.TL/TL/TLUpdateEncryption.cs index a44a20a..b05fd60 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryption.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryption.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(chat, bw); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs index 1b88d14..50ef427 100644 --- a/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-103646630)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL public byte[] data { get; set; } public string game_short_name { get; set; } - public void ComputeFlags() { flags = 0; flags = data != null ? (flags | 1) : (flags & ~1); flags = game_short_name != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -51,8 +44,6 @@ namespace TeleSharp.TL game_short_name = StringUtil.Deserialize(br); else game_short_name = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -68,7 +59,6 @@ namespace TeleSharp.TL BytesUtil.Serialize(data, bw); if ((flags & 2) != 0) StringUtil.Serialize(game_short_name, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateMessageID.cs b/TeleSharp.TL/TL/TLUpdateMessageID.cs index de547ef..2e0b4cc 100644 --- a/TeleSharp.TL/TL/TLUpdateMessageID.cs +++ b/TeleSharp.TL/TL/TLUpdateMessageID.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(random_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs index a0c223e..cf58135 100644 --- a/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(message, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs index 2b39183..92b2b11 100644 --- a/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(message, bw); bw.Write(qts); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateNewMessage.cs b/TeleSharp.TL/TL/TLUpdateNewMessage.cs index 3d316d1..7fcb4bd 100644 --- a/TeleSharp.TL/TL/TLUpdateNewMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(message, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs index 696c1ea..656b97c 100644 --- a/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs +++ b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateNotifySettings.cs b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs index 1854853..caa5ba6 100644 --- a/TeleSharp.TL/TL/TLUpdateNotifySettings.cs +++ b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(peer, bw); ObjectUtils.SerializeObject(notify_settings, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatePhoneCall.cs b/TeleSharp.TL/TL/TLUpdatePhoneCall.cs index c4c9311..752174e 100644 --- a/TeleSharp.TL/TL/TLUpdatePhoneCall.cs +++ b/TeleSharp.TL/TL/TLUpdatePhoneCall.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1425052898)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL public TLAbsPhoneCall phone_call { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { phone_call = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); ObjectUtils.SerializeObject(phone_call, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs b/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs index 0d97e72..7b3f1fe 100644 --- a/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs +++ b/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-657787251)] @@ -21,12 +16,10 @@ namespace TeleSharp.TL public int flags { get; set; } public TLVector order { get; set; } - public void ComputeFlags() { flags = 0; flags = order != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -36,8 +29,6 @@ namespace TeleSharp.TL order = (TLVector)ObjectUtils.DeserializeVector(br); else order = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -47,7 +38,6 @@ namespace TeleSharp.TL bw.Write(flags); if ((flags & 1) != 0) ObjectUtils.SerializeObject(order, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatePrivacy.cs b/TeleSharp.TL/TL/TLUpdatePrivacy.cs index 4380969..576b6b4 100644 --- a/TeleSharp.TL/TL/TLUpdatePrivacy.cs +++ b/TeleSharp.TL/TL/TLUpdatePrivacy.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(key, bw); ObjectUtils.SerializeObject(rules, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatePtsChanged.cs b/TeleSharp.TL/TL/TLUpdatePtsChanged.cs index 13f231d..9c3acdc 100644 --- a/TeleSharp.TL/TL/TLUpdatePtsChanged.cs +++ b/TeleSharp.TL/TL/TLUpdatePtsChanged.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(861169551)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs index 4b11282..e98e3df 100644 --- a/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(channel_id); bw.Write(max_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs index 4949f84..232616c 100644 --- a/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(channel_id); bw.Write(max_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs b/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs index fdbec1e..2ca171f 100644 --- a/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs +++ b/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1461528386)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs index c57c3cf..1c9ead3 100644 --- a/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL max_id = br.ReadInt32(); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(max_id); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs index e614d8b..844a29d 100644 --- a/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL max_id = br.ReadInt32(); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(max_id); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs index 6dbdf87..bcadf4d 100644 --- a/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs +++ b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL messages = (TLVector)ObjectUtils.DeserializeVector(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(messages, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateRecentStickers.cs b/TeleSharp.TL/TL/TLUpdateRecentStickers.cs index d3abb3d..e006cf7 100644 --- a/TeleSharp.TL/TL/TLUpdateRecentStickers.cs +++ b/TeleSharp.TL/TL/TLUpdateRecentStickers.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-1706939360)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateSavedGifs.cs b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs index a8d322b..ae40421 100644 --- a/TeleSharp.TL/TL/TLUpdateSavedGifs.cs +++ b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateServiceNotification.cs b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs index a832b8e..0d0575c 100644 --- a/TeleSharp.TL/TL/TLUpdateServiceNotification.cs +++ b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-337352679)] @@ -26,13 +21,11 @@ namespace TeleSharp.TL public TLAbsMessageMedia media { get; set; } public TLVector entities { get; set; } - public void ComputeFlags() { flags = 0; flags = popup ? (flags | 1) : (flags & ~1); flags = inbox_date != null ? (flags | 2) : (flags & ~2); - } public override void DeserializeBody(BinaryReader br) @@ -48,7 +41,6 @@ namespace TeleSharp.TL message = StringUtil.Deserialize(br); media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); entities = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -63,7 +55,6 @@ namespace TeleSharp.TL StringUtil.Serialize(message, bw); ObjectUtils.SerializeObject(media, bw); ObjectUtils.SerializeObject(entities, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateShort.cs b/TeleSharp.TL/TL/TLUpdateShort.cs index 40d2c05..bf5bf2c 100644 --- a/TeleSharp.TL/TL/TLUpdateShort.cs +++ b/TeleSharp.TL/TL/TLUpdateShort.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); ObjectUtils.SerializeObject(update, bw); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs index 1f17397..545616d 100644 --- a/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -35,7 +30,6 @@ namespace TeleSharp.TL public int? reply_to_msg_id { get; set; } public TLVector entities { get; set; } - public void ComputeFlags() { flags = 0; @@ -47,7 +41,6 @@ namespace TeleSharp.TL 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) @@ -83,8 +76,6 @@ namespace TeleSharp.TL entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -93,9 +84,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - bw.Write(id); bw.Write(from_id); bw.Write(chat_id); @@ -111,7 +99,6 @@ namespace TeleSharp.TL bw.Write(reply_to_msg_id.Value); if ((flags & 128) != 0) ObjectUtils.SerializeObject(entities, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateShortMessage.cs b/TeleSharp.TL/TL/TLUpdateShortMessage.cs index 9173575..e982c7d 100644 --- a/TeleSharp.TL/TL/TLUpdateShortMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -34,7 +29,6 @@ namespace TeleSharp.TL public int? reply_to_msg_id { get; set; } public TLVector entities { get; set; } - public void ComputeFlags() { flags = 0; @@ -46,7 +40,6 @@ namespace TeleSharp.TL 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) @@ -81,8 +74,6 @@ namespace TeleSharp.TL entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -91,9 +82,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - bw.Write(id); bw.Write(user_id); StringUtil.Serialize(message, bw); @@ -108,7 +96,6 @@ namespace TeleSharp.TL bw.Write(reply_to_msg_id.Value); if ((flags & 128) != 0) ObjectUtils.SerializeObject(entities, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs index d960d9d..aeeef8a 100644 --- a/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -27,14 +22,12 @@ namespace TeleSharp.TL 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) @@ -54,8 +47,6 @@ namespace TeleSharp.TL entities = (TLVector)ObjectUtils.DeserializeVector(br); else entities = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -72,7 +63,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(media, bw); if ((flags & 128) != 0) ObjectUtils.SerializeObject(entities, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateStickerSets.cs b/TeleSharp.TL/TL/TLUpdateStickerSets.cs index e476fef..6e5669a 100644 --- a/TeleSharp.TL/TL/TLUpdateStickerSets.cs +++ b/TeleSharp.TL/TL/TLUpdateStickerSets.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs index f57e49a..578b690 100644 --- a/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs +++ b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(196268545)] @@ -22,12 +17,10 @@ namespace TeleSharp.TL public bool masks { get; set; } public TLVector order { get; set; } - public void ComputeFlags() { flags = 0; flags = masks ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL flags = br.ReadInt32(); masks = (flags & 1) != 0; order = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(flags); ObjectUtils.SerializeObject(order, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserBlocked.cs b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs index 9fae7a0..121a625 100644 --- a/TeleSharp.TL/TL/TLUpdateUserBlocked.cs +++ b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); BoolUtil.Serialize(blocked, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserName.cs b/TeleSharp.TL/TL/TLUpdateUserName.cs index bce5b79..6ee2b35 100644 --- a/TeleSharp.TL/TL/TLUpdateUserName.cs +++ b/TeleSharp.TL/TL/TLUpdateUserName.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public string last_name { get; set; } public string username { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL first_name = StringUtil.Deserialize(br); last_name = StringUtil.Deserialize(br); username = StringUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(first_name, bw); StringUtil.Serialize(last_name, bw); StringUtil.Serialize(username, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserPhone.cs b/TeleSharp.TL/TL/TLUpdateUserPhone.cs index 65a229d..c4edd86 100644 --- a/TeleSharp.TL/TL/TLUpdateUserPhone.cs +++ b/TeleSharp.TL/TL/TLUpdateUserPhone.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); StringUtil.Serialize(phone, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserPhoto.cs b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs index 134f435..27a6e5e 100644 --- a/TeleSharp.TL/TL/TLUpdateUserPhoto.cs +++ b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public TLAbsUserProfilePhoto photo { get; set; } public bool previous { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); previous = BoolUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL bw.Write(date); ObjectUtils.SerializeObject(photo, bw); BoolUtil.Serialize(previous, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserStatus.cs b/TeleSharp.TL/TL/TLUpdateUserStatus.cs index 5d67401..7a1af8a 100644 --- a/TeleSharp.TL/TL/TLUpdateUserStatus.cs +++ b/TeleSharp.TL/TL/TLUpdateUserStatus.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); ObjectUtils.SerializeObject(status, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateUserTyping.cs b/TeleSharp.TL/TL/TLUpdateUserTyping.cs index 0f952b9..053f1d6 100644 --- a/TeleSharp.TL/TL/TLUpdateUserTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateUserTyping.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(user_id); ObjectUtils.SerializeObject(action, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdateWebPage.cs b/TeleSharp.TL/TL/TLUpdateWebPage.cs index 691332b..f53d986 100644 --- a/TeleSharp.TL/TL/TLUpdateWebPage.cs +++ b/TeleSharp.TL/TL/TLUpdateWebPage.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public int pts { get; set; } public int pts_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); pts_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(webpage, bw); bw.Write(pts); bw.Write(pts_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdates.cs b/TeleSharp.TL/TL/TLUpdates.cs index d61d766..165b62e 100644 --- a/TeleSharp.TL/TL/TLUpdates.cs +++ b/TeleSharp.TL/TL/TLUpdates.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL public int date { get; set; } public int seq { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL chats = (TLVector)ObjectUtils.DeserializeVector(br); date = br.ReadInt32(); seq = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(chats, bw); bw.Write(date); bw.Write(seq); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatesCombined.cs b/TeleSharp.TL/TL/TLUpdatesCombined.cs index b45a5e3..ef464de 100644 --- a/TeleSharp.TL/TL/TLUpdatesCombined.cs +++ b/TeleSharp.TL/TL/TLUpdatesCombined.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public int seq_start { get; set; } public int seq { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL date = br.ReadInt32(); seq_start = br.ReadInt32(); seq = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL bw.Write(date); bw.Write(seq_start); bw.Write(seq); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUpdatesTooLong.cs b/TeleSharp.TL/TL/TLUpdatesTooLong.cs index 201a1b5..25aff40 100644 --- a/TeleSharp.TL/TL/TLUpdatesTooLong.cs +++ b/TeleSharp.TL/TL/TLUpdatesTooLong.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUser.cs b/TeleSharp.TL/TL/TLUser.cs index dba90e5..862dc34 100644 --- a/TeleSharp.TL/TL/TLUser.cs +++ b/TeleSharp.TL/TL/TLUser.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(773059779)] @@ -43,7 +38,6 @@ namespace TeleSharp.TL public string bot_inline_placeholder { get; set; } public string lang_code { get; set; } - public void ComputeFlags() { flags = 0; @@ -69,7 +63,6 @@ namespace TeleSharp.TL flags = restriction_reason != null ? (flags | 262144) : (flags & ~262144); flags = bot_inline_placeholder != null ? (flags | 524288) : (flags & ~524288); flags = lang_code != null ? (flags | 4194304) : (flags & ~4194304); - } public override void DeserializeBody(BinaryReader br) @@ -141,8 +134,6 @@ namespace TeleSharp.TL lang_code = StringUtil.Deserialize(br); else lang_code = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -151,16 +142,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - - - - - - - - - bw.Write(id); if ((flags & 1) != 0) bw.Write(access_hash.Value); @@ -184,7 +165,6 @@ namespace TeleSharp.TL StringUtil.Serialize(bot_inline_placeholder, bw); if ((flags & 4194304) != 0) StringUtil.Serialize(lang_code, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserEmpty.cs b/TeleSharp.TL/TL/TLUserEmpty.cs index 8647b47..5efcfbd 100644 --- a/TeleSharp.TL/TL/TLUserEmpty.cs +++ b/TeleSharp.TL/TL/TLUserEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserFull.cs b/TeleSharp.TL/TL/TLUserFull.cs index 4286259..3abc102 100644 --- a/TeleSharp.TL/TL/TLUserFull.cs +++ b/TeleSharp.TL/TL/TLUserFull.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(253890367)] @@ -30,7 +25,6 @@ namespace TeleSharp.TL public TLBotInfo bot_info { get; set; } public int common_chats_count { get; set; } - public void ComputeFlags() { flags = 0; @@ -40,7 +34,6 @@ namespace TeleSharp.TL 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) @@ -68,7 +61,6 @@ namespace TeleSharp.TL bot_info = null; common_chats_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -77,8 +69,6 @@ namespace TeleSharp.TL ComputeFlags(); bw.Write(flags); - - ObjectUtils.SerializeObject(user, bw); if ((flags & 2) != 0) StringUtil.Serialize(about, bw); @@ -89,7 +79,6 @@ namespace TeleSharp.TL if ((flags & 8) != 0) ObjectUtils.SerializeObject(bot_info, bw); bw.Write(common_chats_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserProfilePhoto.cs b/TeleSharp.TL/TL/TLUserProfilePhoto.cs index 243ef45..321e044 100644 --- a/TeleSharp.TL/TL/TLUserProfilePhoto.cs +++ b/TeleSharp.TL/TL/TLUserProfilePhoto.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL public TLAbsFileLocation photo_small { get; set; } public TLAbsFileLocation photo_big { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL photo_id = br.ReadInt64(); photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL bw.Write(photo_id); ObjectUtils.SerializeObject(photo_small, bw); ObjectUtils.SerializeObject(photo_big, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs index 0390b73..1d866fe 100644 --- a/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusEmpty.cs b/TeleSharp.TL/TL/TLUserStatusEmpty.cs index bad421d..687a366 100644 --- a/TeleSharp.TL/TL/TLUserStatusEmpty.cs +++ b/TeleSharp.TL/TL/TLUserStatusEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusLastMonth.cs b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs index 7739d58..724727e 100644 --- a/TeleSharp.TL/TL/TLUserStatusLastMonth.cs +++ b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusLastWeek.cs b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs index bda3071..b91f616 100644 --- a/TeleSharp.TL/TL/TLUserStatusLastWeek.cs +++ b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusOffline.cs b/TeleSharp.TL/TL/TLUserStatusOffline.cs index bbcdd7b..0807317 100644 --- a/TeleSharp.TL/TL/TLUserStatusOffline.cs +++ b/TeleSharp.TL/TL/TLUserStatusOffline.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusOnline.cs b/TeleSharp.TL/TL/TLUserStatusOnline.cs index 7c77dce..4a98964 100644 --- a/TeleSharp.TL/TL/TLUserStatusOnline.cs +++ b/TeleSharp.TL/TL/TLUserStatusOnline.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLUserStatusRecently.cs b/TeleSharp.TL/TL/TLUserStatusRecently.cs index 5c17377..c819f47 100644 --- a/TeleSharp.TL/TL/TLUserStatusRecently.cs +++ b/TeleSharp.TL/TL/TLUserStatusRecently.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWallPaper.cs b/TeleSharp.TL/TL/TLWallPaper.cs index e224823..90ba6bb 100644 --- a/TeleSharp.TL/TL/TLWallPaper.cs +++ b/TeleSharp.TL/TL/TLWallPaper.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public TLVector sizes { get; set; } public int color { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL title = StringUtil.Deserialize(br); sizes = (TLVector)ObjectUtils.DeserializeVector(br); color = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(title, bw); ObjectUtils.SerializeObject(sizes, bw); bw.Write(color); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWallPaperSolid.cs b/TeleSharp.TL/TL/TLWallPaperSolid.cs index 31a942a..0c3a4b6 100644 --- a/TeleSharp.TL/TL/TLWallPaperSolid.cs +++ b/TeleSharp.TL/TL/TLWallPaperSolid.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL public int bg_color { get; set; } public int color { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL title = StringUtil.Deserialize(br); bg_color = br.ReadInt32(); color = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL StringUtil.Serialize(title, bw); bw.Write(bg_color); bw.Write(color); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWebDocument.cs b/TeleSharp.TL/TL/TLWebDocument.cs index dbbb39d..261159c 100644 --- a/TeleSharp.TL/TL/TLWebDocument.cs +++ b/TeleSharp.TL/TL/TLWebDocument.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-971322408)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL public TLVector attributes { get; set; } public int dc_id { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL mime_type = StringUtil.Deserialize(br); attributes = (TLVector)ObjectUtils.DeserializeVector(br); dc_id = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL StringUtil.Serialize(mime_type, bw); ObjectUtils.SerializeObject(attributes, bw); bw.Write(dc_id); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWebPage.cs b/TeleSharp.TL/TL/TLWebPage.cs index 695ea72..4c04cb6 100644 --- a/TeleSharp.TL/TL/TLWebPage.cs +++ b/TeleSharp.TL/TL/TLWebPage.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(1594340540)] @@ -37,7 +32,6 @@ namespace TeleSharp.TL public TLAbsDocument document { get; set; } public TLAbsPage cached_page { get; set; } - public void ComputeFlags() { flags = 0; @@ -54,7 +48,6 @@ namespace TeleSharp.TL flags = author != null ? (flags | 256) : (flags & ~256); flags = document != null ? (flags | 512) : (flags & ~512); flags = cached_page != null ? (flags | 1024) : (flags & ~1024); - } public override void DeserializeBody(BinaryReader br) @@ -128,8 +121,6 @@ namespace TeleSharp.TL cached_page = (TLAbsPage)ObjectUtils.DeserializeObject(br); else cached_page = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -167,7 +158,6 @@ namespace TeleSharp.TL ObjectUtils.SerializeObject(document, bw); if ((flags & 1024) != 0) ObjectUtils.SerializeObject(cached_page, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWebPageEmpty.cs b/TeleSharp.TL/TL/TLWebPageEmpty.cs index f99777a..e913055 100644 --- a/TeleSharp.TL/TL/TLWebPageEmpty.cs +++ b/TeleSharp.TL/TL/TLWebPageEmpty.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWebPageNotModified.cs b/TeleSharp.TL/TL/TLWebPageNotModified.cs index 724b6b0..f06cb56 100644 --- a/TeleSharp.TL/TL/TLWebPageNotModified.cs +++ b/TeleSharp.TL/TL/TLWebPageNotModified.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; + namespace TeleSharp.TL { [TLObject(-2054908813)] @@ -18,22 +13,17 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/TLWebPagePending.cs b/TeleSharp.TL/TL/TLWebPagePending.cs index 0a0371b..82b6d32 100644 --- a/TeleSharp.TL/TL/TLWebPagePending.cs +++ b/TeleSharp.TL/TL/TLWebPagePending.cs @@ -1,10 +1,5 @@ -using System; -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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL bw.Write(Constructor); bw.Write(id); bw.Write(date); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs index ca3c10a..ff64c0b 100644 --- a/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLAbsChannelDifference.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLAbsDifference.cs b/TeleSharp.TL/TL/Updates/TLAbsDifference.cs index 10807ea..359954c 100644 --- a/TeleSharp.TL/TL/Updates/TLAbsDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLAbsDifference.cs @@ -1,13 +1,6 @@ -using 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 { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs index 1eb96fb..230463d 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs @@ -1,10 +1,5 @@ -using 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)] @@ -27,13 +22,11 @@ namespace TeleSharp.TL.Updates 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) @@ -50,7 +43,6 @@ namespace TeleSharp.TL.Updates other_updates = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -66,7 +58,6 @@ namespace TeleSharp.TL.Updates ObjectUtils.SerializeObject(other_updates, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs index bfbfee1..9392cf8 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,13 +18,11 @@ namespace TeleSharp.TL.Updates 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) @@ -41,8 +34,6 @@ namespace TeleSharp.TL.Updates timeout = br.ReadInt32(); else timeout = null; - - } public override void SerializeBody(BinaryWriter bw) @@ -54,7 +45,6 @@ namespace TeleSharp.TL.Updates bw.Write(pts); if ((flags & 2) != 0) bw.Write(timeout.Value); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs index 8377ecc..1425e7f 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs @@ -1,10 +1,5 @@ -using 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)] @@ -30,13 +25,11 @@ namespace TeleSharp.TL.Updates 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) @@ -56,7 +49,6 @@ namespace TeleSharp.TL.Updates messages = (TLVector)ObjectUtils.DeserializeVector(br); chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); - } public override void SerializeBody(BinaryWriter bw) @@ -75,7 +67,6 @@ namespace TeleSharp.TL.Updates ObjectUtils.SerializeObject(messages, bw); ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLDifference.cs b/TeleSharp.TL/TL/Updates/TLDifference.cs index 4770781..0e99b7c 100644 --- a/TeleSharp.TL/TL/Updates/TLDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLDifference.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL.Updates public TLVector users { get; set; } public Updates.TLState state { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL.Updates chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); state = (Updates.TLState)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL.Updates ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); ObjectUtils.SerializeObject(state, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs index 91927aa..5915135 100644 --- a/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs +++ b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,17 +16,14 @@ namespace TeleSharp.TL.Updates 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) @@ -39,7 +31,6 @@ namespace TeleSharp.TL.Updates bw.Write(Constructor); bw.Write(date); bw.Write(seq); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs index 4eaf6cf..676c7c7 100644 --- a/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs +++ b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs @@ -1,10 +1,5 @@ -using 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)] @@ -25,10 +20,8 @@ namespace TeleSharp.TL.Updates public TLVector users { get; set; } public Updates.TLState intermediate_state { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -39,7 +32,6 @@ namespace TeleSharp.TL.Updates chats = (TLVector)ObjectUtils.DeserializeVector(br); users = (TLVector)ObjectUtils.DeserializeVector(br); intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br); - } public override void SerializeBody(BinaryWriter bw) @@ -51,7 +43,6 @@ namespace TeleSharp.TL.Updates ObjectUtils.SerializeObject(chats, bw); ObjectUtils.SerializeObject(users, bw); ObjectUtils.SerializeObject(intermediate_state, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs b/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs index 989c0bb..cf4b39f 100644 --- a/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs +++ b/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs @@ -1,10 +1,5 @@ -using 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(1258196845)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Updates public int pts { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { pts = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); bw.Write(pts); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs index 9104d77..cbed4b6 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs @@ -1,10 +1,5 @@ -using 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(51854712)] @@ -26,12 +21,10 @@ namespace TeleSharp.TL.Updates public int limit { get; set; } public Updates.TLAbsChannelDifference Response { get; set; } - public void ComputeFlags() { flags = 0; flags = force ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -42,7 +35,6 @@ namespace TeleSharp.TL.Updates filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br); pts = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -55,12 +47,11 @@ namespace TeleSharp.TL.Updates ObjectUtils.SerializeObject(filter, bw); bw.Write(pts); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs index db48aef..087abf7 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs @@ -1,10 +1,5 @@ -using 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(630429265)] @@ -25,12 +20,10 @@ namespace TeleSharp.TL.Updates public int qts { get; set; } public Updates.TLAbsDifference Response { get; set; } - public void ComputeFlags() { flags = 0; flags = pts_total_limit != null ? (flags | 1) : (flags & ~1); - } public override void DeserializeBody(BinaryReader br) @@ -44,7 +37,6 @@ namespace TeleSharp.TL.Updates date = br.ReadInt32(); qts = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -57,12 +49,11 @@ namespace TeleSharp.TL.Updates bw.Write(pts_total_limit.Value); bw.Write(date); bw.Write(qts); - } + public override void deserializeResponse(BinaryReader br) { Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetState.cs b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs index b612359..d99cc9d 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetState.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs @@ -1,10 +1,5 @@ -using 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)] @@ -20,26 +15,22 @@ namespace TeleSharp.TL.Updates 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Updates/TLState.cs b/TeleSharp.TL/TL/Updates/TLState.cs index 750937f..77bfaee 100644 --- a/TeleSharp.TL/TL/Updates/TLState.cs +++ b/TeleSharp.TL/TL/Updates/TLState.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Updates public int seq { get; set; } public int unread_count { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Updates date = br.ReadInt32(); seq = br.ReadInt32(); unread_count = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL.Updates bw.Write(date); bw.Write(seq); bw.Write(unread_count); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs b/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs index e2ffe61..f67ba61 100644 --- a/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs +++ b/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs @@ -1,13 +1,6 @@ -using 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 { public abstract class TLAbsCdnFile : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLAbsFile.cs b/TeleSharp.TL/TL/Upload/TLAbsFile.cs index 14db55f..956408f 100644 --- a/TeleSharp.TL/TL/Upload/TLAbsFile.cs +++ b/TeleSharp.TL/TL/Upload/TLAbsFile.cs @@ -1,13 +1,6 @@ -using 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 { public abstract class TLAbsFile : TLObject { } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLCdnFile.cs b/TeleSharp.TL/TL/Upload/TLCdnFile.cs index f742fcd..b7cd293 100644 --- a/TeleSharp.TL/TL/Upload/TLCdnFile.cs +++ b/TeleSharp.TL/TL/Upload/TLCdnFile.cs @@ -1,10 +1,5 @@ -using 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(-1449145777)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Upload public byte[] bytes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs b/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs index f960d58..e2744a6 100644 --- a/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs +++ b/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs @@ -1,10 +1,5 @@ -using 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(-290921362)] @@ -20,23 +15,19 @@ namespace TeleSharp.TL.Upload public byte[] request_token { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { request_token = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); BytesUtil.Serialize(request_token, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLFile.cs b/TeleSharp.TL/TL/Upload/TLFile.cs index 322d8fe..a016fe1 100644 --- a/TeleSharp.TL/TL/Upload/TLFile.cs +++ b/TeleSharp.TL/TL/Upload/TLFile.cs @@ -1,10 +1,5 @@ -using 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)] @@ -22,10 +17,8 @@ namespace TeleSharp.TL.Upload public int mtime { get; set; } public byte[] bytes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -33,7 +26,6 @@ namespace TeleSharp.TL.Upload type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br); mtime = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -42,7 +34,6 @@ namespace TeleSharp.TL.Upload ObjectUtils.SerializeObject(type, bw); bw.Write(mtime); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs b/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs index 8fe0091..9771928 100644 --- a/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs +++ b/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs @@ -1,10 +1,5 @@ -using 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(352864346)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Upload public byte[] encryption_key { get; set; } public byte[] encryption_iv { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -35,7 +28,6 @@ namespace TeleSharp.TL.Upload file_token = BytesUtil.Deserialize(br); encryption_key = BytesUtil.Deserialize(br); encryption_iv = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -45,7 +37,6 @@ namespace TeleSharp.TL.Upload BytesUtil.Serialize(file_token, bw); BytesUtil.Serialize(encryption_key, bw); BytesUtil.Serialize(encryption_iv, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs index e9eda73..d004710 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs @@ -1,10 +1,5 @@ -using 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(536919235)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Upload public int limit { get; set; } public Upload.TLAbsCdnFile Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Upload file_token = BytesUtil.Deserialize(br); offset = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Upload BytesUtil.Serialize(file_token, bw); bw.Write(offset); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Upload.TLAbsCdnFile)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs index c8937ef..5e66425 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Upload public int limit { get; set; } public Upload.TLAbsFile Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Upload location = (TLAbsInputFileLocation)ObjectUtils.DeserializeObject(br); offset = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Upload ObjectUtils.SerializeObject(location, bw); bw.Write(offset); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Upload.TLAbsFile)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs index 1874950..dbe461b 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs @@ -1,10 +1,5 @@ -using 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(619086221)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Upload public int limit { get; set; } public Upload.TLWebFile Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Upload location = (TLInputWebFileLocation)ObjectUtils.DeserializeObject(br); offset = br.ReadInt32(); limit = br.ReadInt32(); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Upload ObjectUtils.SerializeObject(location, bw); bw.Write(offset); bw.Write(limit); - } + public override void deserializeResponse(BinaryReader br) { Response = (Upload.TLWebFile)ObjectUtils.DeserializeObject(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs b/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs index 786848f..5a7a3a7 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs @@ -1,10 +1,5 @@ -using 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(779755552)] @@ -22,17 +17,14 @@ namespace TeleSharp.TL.Upload public byte[] request_token { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) { file_token = BytesUtil.Deserialize(br); request_token = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -40,12 +32,11 @@ namespace TeleSharp.TL.Upload bw.Write(Constructor); BytesUtil.Serialize(file_token, bw); BytesUtil.Serialize(request_token, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs index 4545674..553fd46 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs @@ -1,10 +1,5 @@ -using 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)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Upload public byte[] bytes { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -36,7 +29,6 @@ namespace TeleSharp.TL.Upload file_part = br.ReadInt32(); file_total_parts = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -46,12 +38,11 @@ namespace TeleSharp.TL.Upload bw.Write(file_part); bw.Write(file_total_parts); BytesUtil.Serialize(bytes, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs index 40af142..a5f71fa 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs @@ -1,10 +1,5 @@ -using 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)] @@ -23,10 +18,8 @@ namespace TeleSharp.TL.Upload public byte[] bytes { get; set; } public bool Response { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -34,7 +27,6 @@ namespace TeleSharp.TL.Upload file_id = br.ReadInt64(); file_part = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -43,12 +35,11 @@ namespace TeleSharp.TL.Upload bw.Write(file_id); bw.Write(file_part); BytesUtil.Serialize(bytes, bw); - } + public override void deserializeResponse(BinaryReader br) { Response = BoolUtil.Deserialize(br); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Upload/TLWebFile.cs b/TeleSharp.TL/TL/Upload/TLWebFile.cs index 147b427..c33aaf8 100644 --- a/TeleSharp.TL/TL/Upload/TLWebFile.cs +++ b/TeleSharp.TL/TL/Upload/TLWebFile.cs @@ -1,10 +1,5 @@ -using 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(568808380)] @@ -24,10 +19,8 @@ namespace TeleSharp.TL.Upload public int mtime { get; set; } public byte[] bytes { get; set; } - public void ComputeFlags() { - } public override void DeserializeBody(BinaryReader br) @@ -37,7 +30,6 @@ namespace TeleSharp.TL.Upload file_type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br); mtime = br.ReadInt32(); bytes = BytesUtil.Deserialize(br); - } public override void SerializeBody(BinaryWriter bw) @@ -48,7 +40,6 @@ namespace TeleSharp.TL.Upload ObjectUtils.SerializeObject(file_type, bw); bw.Write(mtime); BytesUtil.Serialize(bytes, bw); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs index 9372649..4884256 100644 --- a/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs +++ b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Users 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs index 0ece8c4..46123bf 100644 --- a/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs +++ b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs @@ -1,10 +1,5 @@ -using 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)] @@ -21,28 +16,24 @@ namespace TeleSharp.TL.Users 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); - } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TLContext.cs b/TeleSharp.TL/TLContext.cs index db686aa..ed96292 100644 --- a/TeleSharp.TL/TLContext.cs +++ b/TeleSharp.TL/TLContext.cs @@ -2,10 +2,7 @@ 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 @@ -22,9 +19,10 @@ namespace TeleSharp.TL 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]; } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TLMethod.cs b/TeleSharp.TL/TLMethod.cs index 7a44933..1878ed3 100644 --- a/TeleSharp.TL/TLMethod.cs +++ b/TeleSharp.TL/TLMethod.cs @@ -1,18 +1,14 @@ using 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; } @@ -40,7 +36,7 @@ namespace TeleSharp.TL return Dirty || (Confirmed && !ConfirmReceived && DateTime.Now - SendTime > TimeSpan.FromSeconds(3)); } } - #endregion + #endregion MTPROTO } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TLObject.cs b/TeleSharp.TL/TLObject.cs index 3bc1476..2ac0930 100644 --- a/TeleSharp.TL/TLObject.cs +++ b/TeleSharp.TL/TLObject.cs @@ -1,17 +1,12 @@ using 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; @@ -21,8 +16,11 @@ namespace TeleSharp.TL 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()) @@ -34,11 +32,13 @@ namespace TeleSharp.TL return m.GetBuffer(); } } + public void Serialize(BinaryWriter writer) { writer.Write(Constructor); SerializeBody(writer); } + public void Deserialize(BinaryReader reader) { int constructorId = reader.ReadInt32(); @@ -47,4 +47,4 @@ namespace TeleSharp.TL DeserializeBody(reader); } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TLUtils.cs b/TeleSharp.TL/TLUtils.cs index f4c285b..4aa9edf 100644 --- a/TeleSharp.TL/TLUtils.cs +++ b/TeleSharp.TL/TLUtils.cs @@ -1,27 +1,22 @@ -using BigMath; -using BigMath.Utils; -using System; -using System.Collections.Generic; +using System; using System.IO; -using System.Linq; using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; namespace TeleSharp.TL { - public class IntegerUtil + public class IntegerUtil { public static int Deserialize(BinaryReader reader) { return reader.ReadInt32(); } - public static void Serialize(int src,BinaryWriter writer) + public static void Serialize(int src, BinaryWriter writer) { writer.Write(src); } } + public class BytesUtil { private static byte[] read(BinaryReader binaryReader) @@ -33,7 +28,8 @@ namespace TeleSharp.TL len = binaryReader.ReadByte() | (binaryReader.ReadByte() << 8) | (binaryReader.ReadByte() << 16); padding = len % 4; } - else { + else + { len = firstByte; padding = (len + 1) % 4; } @@ -62,7 +58,8 @@ namespace TeleSharp.TL binaryWriter.Write((byte)data.Length); binaryWriter.Write(data); } - else { + else + { padding = (data.Length) % 4; if (padding != 0) { @@ -76,7 +73,6 @@ namespace TeleSharp.TL binaryWriter.Write(data); } - for (int i = 0; i < padding; i++) { binaryWriter.Write((byte)0); @@ -84,6 +80,7 @@ namespace TeleSharp.TL return binaryWriter; } + public static byte[] Deserialize(BinaryReader reader) { return read(reader); @@ -91,9 +88,10 @@ namespace TeleSharp.TL public static void Serialize(byte[] src, BinaryWriter writer) { - write(writer,src); + write(writer, src); } } + public class StringUtil { public static string Deserialize(BinaryReader reader) @@ -101,11 +99,13 @@ namespace TeleSharp.TL byte[] data = BytesUtil.Deserialize(reader); return Encoding.UTF8.GetString(data, 0, data.Length); } - public static void Serialize(string src,BinaryWriter writer) + + public static void Serialize(string src, BinaryWriter writer) { BytesUtil.Serialize(Encoding.UTF8.GetBytes(src), writer); } } + public class BoolUtil { public static bool Deserialize(BinaryReader reader) @@ -117,65 +117,77 @@ namespace TeleSharp.TL 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); + 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 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); + 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)); } } -} +} \ No newline at end of file diff --git a/TeleSharp.TL/TLVector.cs b/TeleSharp.TL/TLVector.cs index 08e8ae5..bcc106d 100644 --- a/TeleSharp.TL/TLVector.cs +++ b/TeleSharp.TL/TLVector.cs @@ -2,8 +2,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace TeleSharp.TL { @@ -11,6 +9,7 @@ namespace TeleSharp.TL { [TLObject(481674261)] public List lists = new List(); + public override int Constructor { get @@ -87,4 +86,4 @@ namespace TeleSharp.TL } } } -} +} \ No newline at end of file