From 133b9fdf6c3aa636ddc3fa8fa28276ed4b2f7b74 Mon Sep 17 00:00:00 2001 From: Afshin Arani Date: Thu, 20 Jul 2017 06:37:24 +0430 Subject: [PATCH] TL-Layer: Update To Layer 66 (#519) * TL-Layer: Update To Layer 66 --- README.md | 2 +- TLSharp.Core/TelegramClient.cs | 2 +- TeleSharp.TL/TL/Account/TLAuthorizations.cs | 16 +- TeleSharp.TL/TL/Account/TLNoPassword.cs | 22 +- TeleSharp.TL/TL/Account/TLPassword.cs | 40 +-- .../TL/Account/TLPasswordInputSettings.cs | 80 +++--- TeleSharp.TL/TL/Account/TLPasswordSettings.cs | 16 +- TeleSharp.TL/TL/Account/TLPrivacyRules.cs | 22 +- .../TL/Account/TLRequestChangePhone.cs | 38 +-- .../TL/Account/TLRequestCheckUsername.cs | 26 +- .../TL/Account/TLRequestConfirmPhone.cs | 32 +-- .../TL/Account/TLRequestDeleteAccount.cs | 26 +- .../TL/Account/TLRequestGetAccountTTL.cs | 28 +- .../TL/Account/TLRequestGetAuthorizations.cs | 28 +- .../TL/Account/TLRequestGetNotifySettings.cs | 26 +- .../TL/Account/TLRequestGetPassword.cs | 28 +- .../Account/TLRequestGetPasswordSettings.cs | 26 +- .../TL/Account/TLRequestGetPrivacy.cs | 26 +- .../TL/Account/TLRequestGetTmpPassword.cs | 51 ++++ .../TL/Account/TLRequestGetWallPapers.cs | 28 +- .../TL/Account/TLRequestRegisterDevice.cs | 30 +- .../TL/Account/TLRequestReportPeer.cs | 32 +-- .../TL/Account/TLRequestResetAuthorization.cs | 24 +- .../Account/TLRequestResetNotifySettings.cs | 28 +- .../Account/TLRequestSendChangePhoneCode.cs | 54 ++-- .../Account/TLRequestSendConfirmPhoneCode.cs | 54 ++-- .../TL/Account/TLRequestSetAccountTTL.cs | 26 +- .../TL/Account/TLRequestSetPrivacy.cs | 32 +-- .../TL/Account/TLRequestUnregisterDevice.cs | 30 +- .../TL/Account/TLRequestUpdateDeviceLocked.cs | 24 +- .../Account/TLRequestUpdateNotifySettings.cs | 32 +-- .../TLRequestUpdatePasswordSettings.cs | 32 +-- .../TL/Account/TLRequestUpdateProfile.cs | 74 ++--- .../TL/Account/TLRequestUpdateStatus.cs | 26 +- .../TL/Account/TLRequestUpdateUsername.cs | 26 +- TeleSharp.TL/TL/Account/TLTmpPassword.cs | 45 +++ TeleSharp.TL/TL/Auth/TLAuthorization.cs | 38 +-- TeleSharp.TL/TL/Auth/TLCheckedPhone.cs | 16 +- TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs | 18 +- TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs | 18 +- TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs | 18 +- .../TL/Auth/TLExportedAuthorization.cs | 20 +- TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs | 16 +- .../TL/Auth/TLRequestBindTempAuthKey.cs | 42 +-- TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs | 32 +-- .../TL/Auth/TLRequestCheckPassword.cs | 26 +- TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs | 26 +- .../TL/Auth/TLRequestDropTempAuthKeys.cs | 26 +- .../TL/Auth/TLRequestExportAuthorization.cs | 24 +- .../TL/Auth/TLRequestImportAuthorization.cs | 30 +- .../Auth/TLRequestImportBotAuthorization.cs | 44 +-- TeleSharp.TL/TL/Auth/TLRequestLogOut.cs | 28 +- .../TL/Auth/TLRequestRecoverPassword.cs | 26 +- .../Auth/TLRequestRequestPasswordRecovery.cs | 28 +- TeleSharp.TL/TL/Auth/TLRequestResendCode.cs | 32 +-- .../TL/Auth/TLRequestResetAuthorizations.cs | 28 +- TeleSharp.TL/TL/Auth/TLRequestSendCode.cs | 66 ++--- TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs | 32 +-- TeleSharp.TL/TL/Auth/TLRequestSignIn.cs | 38 +-- TeleSharp.TL/TL/Auth/TLRequestSignUp.cs | 50 ++-- TeleSharp.TL/TL/Auth/TLSentCode.cs | 66 ++--- TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs | 14 +- TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs | 14 +- .../TL/Auth/TLSentCodeTypeFlashCall.cs | 16 +- TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs | 14 +- .../Bots/TLRequestAnswerWebhookJSONQuery.cs | 51 ++++ .../TL/Bots/TLRequestSendCustomRequest.cs | 51 ++++ .../TL/Channels/TLChannelParticipant.cs | 22 +- .../TL/Channels/TLChannelParticipants.cs | 26 +- .../TL/Channels/TLRequestCheckUsername.cs | 32 +-- .../TL/Channels/TLRequestCreateChannel.cs | 50 ++-- .../TL/Channels/TLRequestDeleteChannel.cs | 26 +- .../TL/Channels/TLRequestDeleteMessages.cs | 32 +-- .../TL/Channels/TLRequestDeleteUserHistory.cs | 32 +-- .../TL/Channels/TLRequestEditAbout.cs | 32 +-- .../TL/Channels/TLRequestEditAdmin.cs | 38 +-- .../TL/Channels/TLRequestEditPhoto.cs | 32 +-- .../TL/Channels/TLRequestEditTitle.cs | 32 +-- .../TL/Channels/TLRequestExportInvite.cs | 26 +- .../TL/Channels/TLRequestExportMessageLink.cs | 32 +-- .../TLRequestGetAdminedPublicChannels.cs | 28 +- .../TL/Channels/TLRequestGetChannels.cs | 26 +- .../TL/Channels/TLRequestGetFullChannel.cs | 26 +- .../TL/Channels/TLRequestGetMessages.cs | 32 +-- .../TL/Channels/TLRequestGetParticipant.cs | 32 +-- .../TL/Channels/TLRequestGetParticipants.cs | 44 +-- .../TL/Channels/TLRequestInviteToChannel.cs | 32 +-- .../TL/Channels/TLRequestJoinChannel.cs | 26 +- .../TL/Channels/TLRequestKickFromChannel.cs | 38 +-- .../TL/Channels/TLRequestLeaveChannel.cs | 26 +- .../TL/Channels/TLRequestReadHistory.cs | 32 +-- .../TL/Channels/TLRequestReportSpam.cs | 38 +-- .../TL/Channels/TLRequestToggleInvites.cs | 32 +-- .../TL/Channels/TLRequestToggleSignatures.cs | 32 +-- .../Channels/TLRequestUpdatePinnedMessage.cs | 44 +-- .../TL/Channels/TLRequestUpdateUsername.cs | 32 +-- TeleSharp.TL/TL/Contacts/TLBlocked.cs | 22 +- TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs | 26 +- TeleSharp.TL/TL/Contacts/TLContacts.cs | 22 +- .../TL/Contacts/TLContactsNotModified.cs | 18 +- TeleSharp.TL/TL/Contacts/TLFound.cs | 28 +- .../TL/Contacts/TLImportedContacts.cs | 28 +- TeleSharp.TL/TL/Contacts/TLLink.cs | 28 +- TeleSharp.TL/TL/Contacts/TLRequestBlock.cs | 26 +- .../TL/Contacts/TLRequestDeleteContact.cs | 26 +- .../TL/Contacts/TLRequestDeleteContacts.cs | 26 +- .../TL/Contacts/TLRequestExportCard.cs | 28 +- .../TL/Contacts/TLRequestGetBlocked.cs | 30 +- .../TL/Contacts/TLRequestGetContacts.cs | 26 +- .../TL/Contacts/TLRequestGetStatuses.cs | 28 +- .../TL/Contacts/TLRequestGetTopPeers.cs | 78 +++--- .../TL/Contacts/TLRequestImportCard.cs | 26 +- .../TL/Contacts/TLRequestImportContacts.cs | 32 +-- .../Contacts/TLRequestResetTopPeerRating.cs | 32 +-- .../TL/Contacts/TLRequestResolveUsername.cs | 26 +- TeleSharp.TL/TL/Contacts/TLRequestSearch.cs | 32 +-- TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs | 26 +- TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs | 28 +- TeleSharp.TL/TL/Contacts/TLTopPeers.cs | 28 +- .../TL/Contacts/TLTopPeersNotModified.cs | 18 +- TeleSharp.TL/TL/Help/TLAppUpdate.cs | 32 +-- TeleSharp.TL/TL/Help/TLInviteText.cs | 16 +- TeleSharp.TL/TL/Help/TLNoAppUpdate.cs | 18 +- .../TL/Help/TLRequestGetAppChangelog.cs | 33 ++- TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs | 28 +- TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs | 45 +++ TeleSharp.TL/TL/Help/TLRequestGetConfig.cs | 28 +- .../TL/Help/TLRequestGetInviteText.cs | 28 +- TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs | 28 +- TeleSharp.TL/TL/Help/TLRequestGetSupport.cs | 28 +- .../TL/Help/TLRequestGetTermsOfService.cs | 28 +- TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs | 26 +- .../TL/Help/TLRequestSetBotUpdatesStatus.cs | 51 ++++ TeleSharp.TL/TL/Help/TLSupport.cs | 22 +- TeleSharp.TL/TL/Help/TLTermsOfService.cs | 16 +- .../TLAbsChats.cs} | 4 +- TeleSharp.TL/TL/Messages/TLAffectedHistory.cs | 26 +- .../TL/Messages/TLAffectedMessages.cs | 20 +- TeleSharp.TL/TL/Messages/TLAllStickers.cs | 20 +- .../TL/Messages/TLAllStickersNotModified.cs | 18 +- .../TL/Messages/TLArchivedStickers.cs | 20 +- .../TL/Messages/TLBotCallbackAnswer.cs | 65 ++--- TeleSharp.TL/TL/Messages/TLBotResults.cs | 71 ++--- TeleSharp.TL/TL/Messages/TLChannelMessages.cs | 46 ++-- TeleSharp.TL/TL/Messages/TLChatFull.cs | 28 +- TeleSharp.TL/TL/Messages/TLChats.cs | 18 +- TeleSharp.TL/TL/Messages/TLChatsSlice.cs | 45 +++ TeleSharp.TL/TL/Messages/TLDhConfig.cs | 32 +-- .../TL/Messages/TLDhConfigNotModified.cs | 16 +- TeleSharp.TL/TL/Messages/TLDialogs.cs | 34 +-- TeleSharp.TL/TL/Messages/TLDialogsSlice.cs | 38 +-- .../TL/Messages/TLFeaturedStickers.cs | 26 +- .../Messages/TLFeaturedStickersNotModified.cs | 18 +- TeleSharp.TL/TL/Messages/TLFoundGifs.cs | 20 +- TeleSharp.TL/TL/Messages/TLHighScores.cs | 22 +- TeleSharp.TL/TL/Messages/TLMessageEditData.cs | 22 +- TeleSharp.TL/TL/Messages/TLMessages.cs | 28 +- TeleSharp.TL/TL/Messages/TLMessagesSlice.cs | 32 +-- TeleSharp.TL/TL/Messages/TLPeerDialogs.cs | 40 +-- TeleSharp.TL/TL/Messages/TLRecentStickers.cs | 20 +- .../Messages/TLRecentStickersNotModified.cs | 18 +- .../TL/Messages/TLRequestAcceptEncryption.cs | 38 +-- .../TL/Messages/TLRequestAddChatUser.cs | 36 +-- .../TL/Messages/TLRequestCheckChatInvite.cs | 26 +- .../Messages/TLRequestClearRecentStickers.cs | 32 +-- .../TL/Messages/TLRequestCreateChat.cs | 32 +-- .../TL/Messages/TLRequestDeleteChatUser.cs | 30 +- .../TL/Messages/TLRequestDeleteHistory.cs | 44 +-- .../TL/Messages/TLRequestDeleteMessages.cs | 37 ++- .../TL/Messages/TLRequestDiscardEncryption.cs | 24 +- .../TL/Messages/TLRequestEditChatAdmin.cs | 36 +-- .../TL/Messages/TLRequestEditChatPhoto.cs | 30 +- .../TL/Messages/TLRequestEditChatTitle.cs | 30 +- .../Messages/TLRequestEditInlineBotMessage.cs | 86 +++--- .../TL/Messages/TLRequestEditMessage.cs | 92 +++---- .../TL/Messages/TLRequestExportChatInvite.cs | 24 +- .../TL/Messages/TLRequestForwardMessage.cs | 38 +-- .../TL/Messages/TLRequestForwardMessages.cs | 68 ++--- .../TL/Messages/TLRequestGetAllChats.cs | 48 ++++ .../TL/Messages/TLRequestGetAllDrafts.cs | 28 +- .../TL/Messages/TLRequestGetAllStickers.cs | 24 +- .../Messages/TLRequestGetArchivedStickers.cs | 44 +-- .../Messages/TLRequestGetAttachedStickers.cs | 26 +- .../Messages/TLRequestGetBotCallbackAnswer.cs | 60 ++-- TeleSharp.TL/TL/Messages/TLRequestGetChats.cs | 26 +- .../TL/Messages/TLRequestGetCommonChats.cs | 54 ++++ .../TL/Messages/TLRequestGetDhConfig.cs | 30 +- .../TL/Messages/TLRequestGetDialogs.cs | 53 ++-- .../TL/Messages/TLRequestGetDocumentByHash.cs | 38 +-- .../Messages/TLRequestGetFeaturedStickers.cs | 24 +- .../TL/Messages/TLRequestGetFullChat.cs | 24 +- .../TL/Messages/TLRequestGetGameHighScores.cs | 38 +-- .../TL/Messages/TLRequestGetHistory.cs | 62 ++--- .../Messages/TLRequestGetInlineBotResults.cs | 66 ++--- .../TLRequestGetInlineGameHighScores.cs | 32 +-- .../TL/Messages/TLRequestGetMaskStickers.cs | 24 +- .../Messages/TLRequestGetMessageEditData.cs | 32 +-- .../TL/Messages/TLRequestGetMessages.cs | 26 +- .../TL/Messages/TLRequestGetMessagesViews.cs | 38 +-- .../TL/Messages/TLRequestGetPeerDialogs.cs | 26 +- .../TL/Messages/TLRequestGetPeerSettings.cs | 26 +- .../TL/Messages/TLRequestGetPinnedDialogs.cs | 45 +++ .../TL/Messages/TLRequestGetRecentStickers.cs | 38 +-- .../TL/Messages/TLRequestGetSavedGifs.cs | 24 +- .../TL/Messages/TLRequestGetStickerSet.cs | 26 +- .../TL/Messages/TLRequestGetWebPage.cs | 51 ++++ .../TL/Messages/TLRequestGetWebPagePreview.cs | 26 +- .../TL/Messages/TLRequestHideReportSpam.cs | 26 +- .../TL/Messages/TLRequestImportChatInvite.cs | 26 +- .../TL/Messages/TLRequestInstallStickerSet.cs | 32 +-- .../TL/Messages/TLRequestMigrateChat.cs | 24 +- .../Messages/TLRequestReadEncryptedHistory.cs | 32 +-- .../Messages/TLRequestReadFeaturedStickers.cs | 26 +- .../TL/Messages/TLRequestReadHistory.cs | 32 +-- .../Messages/TLRequestReadMessageContents.cs | 26 +- .../TL/Messages/TLRequestReceivedMessages.cs | 24 +- .../TL/Messages/TLRequestReceivedQueue.cs | 24 +- .../Messages/TLRequestReorderPinnedDialogs.cs | 57 ++++ .../Messages/TLRequestReorderStickerSets.cs | 38 +-- .../Messages/TLRequestReportEncryptedSpam.cs | 48 ++++ .../TL/Messages/TLRequestReportSpam.cs | 26 +- .../TL/Messages/TLRequestRequestEncryption.cs | 38 +-- .../TL/Messages/TLRequestSaveDraft.cs | 76 ++--- TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs | 32 +-- .../TL/Messages/TLRequestSaveRecentSticker.cs | 44 +-- TeleSharp.TL/TL/Messages/TLRequestSearch.cs | 74 ++--- .../TL/Messages/TLRequestSearchGifs.cs | 32 +-- .../TL/Messages/TLRequestSearchGlobal.cs | 50 ++-- .../TL/Messages/TLRequestSendEncrypted.cs | 38 +-- .../TL/Messages/TLRequestSendEncryptedFile.cs | 44 +-- .../Messages/TLRequestSendEncryptedService.cs | 38 +-- .../Messages/TLRequestSendInlineBotResult.cs | 84 +++--- .../TL/Messages/TLRequestSendMedia.cs | 94 +++---- .../TL/Messages/TLRequestSendMessage.cs | 116 ++++---- .../Messages/TLRequestSetBotCallbackAnswer.cs | 75 ++--- .../TLRequestSetBotPrecheckoutResults.cs | 66 +++++ .../TLRequestSetBotShippingResults.cs | 71 +++++ .../Messages/TLRequestSetEncryptedTyping.cs | 32 +-- .../TL/Messages/TLRequestSetGameScore.cs | 60 ++-- .../Messages/TLRequestSetInlineBotResults.cs | 88 +++--- .../Messages/TLRequestSetInlineGameScore.cs | 54 ++-- .../TL/Messages/TLRequestSetTyping.cs | 32 +-- TeleSharp.TL/TL/Messages/TLRequestStartBot.cs | 44 +-- .../TL/Messages/TLRequestToggleChatAdmins.cs | 30 +- .../TL/Messages/TLRequestToggleDialogPin.cs | 57 ++++ .../Messages/TLRequestUninstallStickerSet.cs | 26 +- .../TL/Messages/TLRequestUploadMedia.cs | 51 ++++ TeleSharp.TL/TL/Messages/TLSavedGifs.cs | 20 +- .../TL/Messages/TLSavedGifsNotModified.cs | 18 +- .../TL/Messages/TLSentEncryptedFile.cs | 20 +- .../TL/Messages/TLSentEncryptedMessage.cs | 14 +- TeleSharp.TL/TL/Messages/TLStickerSet.cs | 28 +- .../TLStickerSetInstallResultArchive.cs | 16 +- .../TLStickerSetInstallResultSuccess.cs | 18 +- TeleSharp.TL/TL/Messages/TLStickers.cs | 22 +- .../TL/Messages/TLStickersNotModified.cs | 18 +- .../TL/Payments/TLAbsPaymentResult.cs | 13 + TeleSharp.TL/TL/Payments/TLPaymentForm.cs | 103 +++++++ TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs | 86 ++++++ TeleSharp.TL/TL/Payments/TLPaymentResult.cs | 42 +++ .../TL/Payments/TLPaymentVerficationNeeded.cs | 42 +++ .../TL/Payments/TLRequestClearSavedInfo.cs | 58 ++++ .../TL/Payments/TLRequestGetPaymentForm.cs | 48 ++++ .../TL/Payments/TLRequestGetPaymentReceipt.cs | 48 ++++ .../TL/Payments/TLRequestGetSavedInfo.cs | 45 +++ .../TL/Payments/TLRequestSendPaymentForm.cs | 74 +++++ .../TLRequestValidateRequestedInfo.cs | 60 ++++ TeleSharp.TL/TL/Payments/TLSavedInfo.cs | 57 ++++ .../TL/Payments/TLValidatedRequestedInfo.cs | 62 +++++ TeleSharp.TL/TL/Phone/TLPhoneCall.cs | 45 +++ TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs | 54 ++++ TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs | 57 ++++ TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs | 57 ++++ .../TL/Phone/TLRequestGetCallConfig.cs | 45 +++ .../TL/Phone/TLRequestReceivedCall.cs | 48 ++++ TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs | 57 ++++ .../TL/Phone/TLRequestSaveCallDebug.cs | 51 ++++ .../TL/Phone/TLRequestSetCallRating.cs | 54 ++++ TeleSharp.TL/TL/Photos/TLPhoto.cs | 22 +- TeleSharp.TL/TL/Photos/TLPhotos.cs | 22 +- TeleSharp.TL/TL/Photos/TLPhotosSlice.cs | 26 +- .../TL/Photos/TLRequestDeletePhotos.cs | 26 +- .../TL/Photos/TLRequestGetUserPhotos.cs | 44 +-- .../TL/Photos/TLRequestUpdateProfilePhoto.cs | 26 +- .../TL/Photos/TLRequestUploadProfilePhoto.cs | 26 +- .../TL/Stickers/TLRequestAddStickerToSet.cs | 51 ++++ .../TLRequestChangeStickerPosition.cs | 51 ++++ .../TL/Stickers/TLRequestCreateStickerSet.cs | 66 +++++ .../Stickers/TLRequestRemoveStickerFromSet.cs | 48 ++++ TeleSharp.TL/TL/Storage/TLFileGif.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileJpeg.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileMov.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileMp3.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileMp4.cs | 18 +- TeleSharp.TL/TL/Storage/TLFilePartial.cs | 18 +- TeleSharp.TL/TL/Storage/TLFilePdf.cs | 18 +- TeleSharp.TL/TL/Storage/TLFilePng.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileUnknown.cs | 18 +- TeleSharp.TL/TL/Storage/TLFileWebp.cs | 18 +- .../TL/TLAbsInputPaymentCredentials.cs | 13 + TeleSharp.TL/TL/TLAbsPage.cs | 13 + TeleSharp.TL/TL/TLAbsPageBlock.cs | 13 + TeleSharp.TL/TL/TLAbsPhoneCall.cs | 13 + .../TL/TLAbsPhoneCallDiscardReason.cs | 13 + TeleSharp.TL/TL/TLAbsRichText.cs | 13 + TeleSharp.TL/TL/TLAccountDaysTTL.cs | 14 +- TeleSharp.TL/TL/TLAuthorization.cs | 88 +++--- TeleSharp.TL/TL/TLBoolFalse.cs | 18 +- TeleSharp.TL/TL/TLBoolTrue.cs | 18 +- TeleSharp.TL/TL/TLBotCommand.cs | 22 +- TeleSharp.TL/TL/TLBotInfo.cs | 26 +- TeleSharp.TL/TL/TLBotInlineMediaResult.cs | 98 +++---- .../TL/TLBotInlineMessageMediaAuto.cs | 38 +-- .../TL/TLBotInlineMessageMediaContact.cs | 50 ++-- TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs | 38 +-- .../TL/TLBotInlineMessageMediaVenue.cs | 62 ++--- TeleSharp.TL/TL/TLBotInlineMessageText.cs | 60 ++-- TeleSharp.TL/TL/TLBotInlineResult.cs | 178 ++++++------ TeleSharp.TL/TL/TLCdnConfig.cs | 42 +++ TeleSharp.TL/TL/TLCdnPublicKey.cs | 45 +++ TeleSharp.TL/TL/TLChannel.cs | 166 +++++------ TeleSharp.TL/TL/TLChannelForbidden.cs | 46 ++-- TeleSharp.TL/TL/TLChannelFull.cs | 178 ++++++------ TeleSharp.TL/TL/TLChannelMessagesFilter.cs | 28 +- .../TL/TLChannelMessagesFilterEmpty.cs | 18 +- TeleSharp.TL/TL/TLChannelParticipant.cs | 20 +- .../TL/TLChannelParticipantCreator.cs | 14 +- TeleSharp.TL/TL/TLChannelParticipantEditor.cs | 26 +- TeleSharp.TL/TL/TLChannelParticipantKicked.cs | 26 +- .../TL/TLChannelParticipantModerator.cs | 26 +- TeleSharp.TL/TL/TLChannelParticipantSelf.cs | 26 +- .../TL/TLChannelParticipantsAdmins.cs | 18 +- TeleSharp.TL/TL/TLChannelParticipantsBots.cs | 18 +- .../TL/TLChannelParticipantsKicked.cs | 18 +- .../TL/TLChannelParticipantsRecent.cs | 18 +- TeleSharp.TL/TL/TLChannelRoleEditor.cs | 18 +- TeleSharp.TL/TL/TLChannelRoleEmpty.cs | 18 +- TeleSharp.TL/TL/TLChannelRoleModerator.cs | 18 +- TeleSharp.TL/TL/TLChat.cs | 104 +++---- TeleSharp.TL/TL/TLChatEmpty.cs | 14 +- TeleSharp.TL/TL/TLChatForbidden.cs | 20 +- TeleSharp.TL/TL/TLChatFull.cs | 44 +-- TeleSharp.TL/TL/TLChatInvite.cs | 74 ++--- TeleSharp.TL/TL/TLChatInviteAlready.cs | 16 +- TeleSharp.TL/TL/TLChatInviteEmpty.cs | 18 +- TeleSharp.TL/TL/TLChatInviteExported.cs | 16 +- TeleSharp.TL/TL/TLChatParticipant.cs | 26 +- TeleSharp.TL/TL/TLChatParticipantAdmin.cs | 26 +- TeleSharp.TL/TL/TLChatParticipantCreator.cs | 14 +- TeleSharp.TL/TL/TLChatParticipants.cs | 26 +- .../TL/TLChatParticipantsForbidden.cs | 38 +-- TeleSharp.TL/TL/TLChatPhoto.cs | 22 +- TeleSharp.TL/TL/TLChatPhotoEmpty.cs | 18 +- TeleSharp.TL/TL/TLConfig.cs | 188 +++++++------ TeleSharp.TL/TL/TLContact.cs | 20 +- TeleSharp.TL/TL/TLContactBlocked.cs | 20 +- TeleSharp.TL/TL/TLContactLinkContact.cs | 18 +- TeleSharp.TL/TL/TLContactLinkHasPhone.cs | 18 +- TeleSharp.TL/TL/TLContactLinkNone.cs | 18 +- TeleSharp.TL/TL/TLContactLinkUnknown.cs | 18 +- TeleSharp.TL/TL/TLContactStatus.cs | 20 +- TeleSharp.TL/TL/TLDataJSON.cs | 42 +++ TeleSharp.TL/TL/TLDcOption.cs | 56 ++-- TeleSharp.TL/TL/TLDialog.cs | 88 +++--- TeleSharp.TL/TL/TLDisabledFeature.cs | 22 +- TeleSharp.TL/TL/TLDocument.cs | 62 ++--- .../TL/TLDocumentAttributeAnimated.cs | 18 +- TeleSharp.TL/TL/TLDocumentAttributeAudio.cs | 76 ++--- .../TL/TLDocumentAttributeFilename.cs | 16 +- .../TL/TLDocumentAttributeHasStickers.cs | 18 +- .../TL/TLDocumentAttributeImageSize.cs | 20 +- TeleSharp.TL/TL/TLDocumentAttributeSticker.cs | 50 ++-- TeleSharp.TL/TL/TLDocumentAttributeVideo.cs | 37 ++- TeleSharp.TL/TL/TLDocumentEmpty.cs | 14 +- TeleSharp.TL/TL/TLDraftMessage.cs | 66 ++--- TeleSharp.TL/TL/TLDraftMessageEmpty.cs | 18 +- TeleSharp.TL/TL/TLEncryptedChat.cs | 50 ++-- TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs | 14 +- TeleSharp.TL/TL/TLEncryptedChatEmpty.cs | 14 +- TeleSharp.TL/TL/TLEncryptedChatRequested.cs | 44 +-- TeleSharp.TL/TL/TLEncryptedChatWaiting.cs | 38 +-- TeleSharp.TL/TL/TLEncryptedFile.cs | 38 +-- TeleSharp.TL/TL/TLEncryptedFileEmpty.cs | 18 +- TeleSharp.TL/TL/TLEncryptedMessage.cs | 38 +-- TeleSharp.TL/TL/TLEncryptedMessageService.cs | 32 +-- TeleSharp.TL/TL/TLError.cs | 20 +- TeleSharp.TL/TL/TLExportedMessageLink.cs | 16 +- TeleSharp.TL/TL/TLFileLocation.cs | 32 +-- TeleSharp.TL/TL/TLFileLocationUnavailable.cs | 26 +- TeleSharp.TL/TL/TLFoundGif.cs | 46 ++-- TeleSharp.TL/TL/TLFoundGifCached.cs | 28 +- TeleSharp.TL/TL/TLGame.cs | 68 ++--- TeleSharp.TL/TL/TLGeoPoint.cs | 20 +- TeleSharp.TL/TL/TLGeoPointEmpty.cs | 18 +- TeleSharp.TL/TL/TLHighScore.cs | 26 +- TeleSharp.TL/TL/TLImportedContact.cs | 20 +- TeleSharp.TL/TL/TLInlineBotSwitchPM.cs | 22 +- TeleSharp.TL/TL/TLInputAppEvent.cs | 32 +-- .../TL/TLInputBotInlineMessageGame.cs | 32 +-- TeleSharp.TL/TL/TLInputBotInlineMessageID.cs | 26 +- .../TL/TLInputBotInlineMessageMediaAuto.cs | 38 +-- .../TL/TLInputBotInlineMessageMediaContact.cs | 50 ++-- .../TL/TLInputBotInlineMessageMediaGeo.cs | 38 +-- .../TL/TLInputBotInlineMessageMediaVenue.cs | 62 ++--- .../TL/TLInputBotInlineMessageText.cs | 60 ++-- TeleSharp.TL/TL/TLInputBotInlineResult.cs | 178 ++++++------ .../TL/TLInputBotInlineResultDocument.cs | 72 ++--- TeleSharp.TL/TL/TLInputBotInlineResultGame.cs | 28 +- .../TL/TLInputBotInlineResultPhoto.cs | 34 +-- TeleSharp.TL/TL/TLInputChannel.cs | 20 +- TeleSharp.TL/TL/TLInputChannelEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputChatPhoto.cs | 16 +- TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs | 16 +- TeleSharp.TL/TL/TLInputDocument.cs | 20 +- TeleSharp.TL/TL/TLInputDocumentEmpty.cs | 18 +- .../TL/TLInputDocumentFileLocation.cs | 26 +- TeleSharp.TL/TL/TLInputEncryptedChat.cs | 20 +- TeleSharp.TL/TL/TLInputEncryptedFile.cs | 20 +- .../TL/TLInputEncryptedFileBigUploaded.cs | 26 +- TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs | 18 +- .../TL/TLInputEncryptedFileLocation.cs | 20 +- .../TL/TLInputEncryptedFileUploaded.cs | 32 +-- TeleSharp.TL/TL/TLInputFile.cs | 32 +-- TeleSharp.TL/TL/TLInputFileBig.cs | 26 +- TeleSharp.TL/TL/TLInputFileLocation.cs | 26 +- TeleSharp.TL/TL/TLInputGameID.cs | 20 +- TeleSharp.TL/TL/TLInputGameShortName.cs | 22 +- TeleSharp.TL/TL/TLInputGeoPoint.cs | 20 +- TeleSharp.TL/TL/TLInputGeoPointEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputMediaContact.cs | 28 +- TeleSharp.TL/TL/TLInputMediaDocument.cs | 22 +- .../TL/TLInputMediaDocumentExternal.cs | 22 +- TeleSharp.TL/TL/TLInputMediaEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputMediaGame.cs | 16 +- TeleSharp.TL/TL/TLInputMediaGeoPoint.cs | 16 +- TeleSharp.TL/TL/TLInputMediaGifExternal.cs | 22 +- TeleSharp.TL/TL/TLInputMediaInvoice.cs | 71 +++++ TeleSharp.TL/TL/TLInputMediaPhoto.cs | 22 +- TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs | 22 +- .../TL/TLInputMediaUploadedDocument.cs | 56 ++-- TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs | 44 +-- .../TL/TLInputMediaUploadedThumbDocument.cs | 62 ++--- TeleSharp.TL/TL/TLInputMediaVenue.cs | 40 +-- .../TL/TLInputMessageEntityMentionName.cs | 26 +- .../TL/TLInputMessagesFilterChatPhotos.cs | 18 +- .../TL/TLInputMessagesFilterDocument.cs | 18 +- TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputMessagesFilterGif.cs | 18 +- TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs | 18 +- .../TL/TLInputMessagesFilterPhoneCalls.cs | 48 ++++ .../TL/TLInputMessagesFilterPhotoVideo.cs | 18 +- ...LInputMessagesFilterPhotoVideoDocuments.cs | 18 +- .../TL/TLInputMessagesFilterPhotos.cs | 18 +- .../TL/TLInputMessagesFilterRoundVideo.cs | 39 +++ .../TL/TLInputMessagesFilterRoundVoice.cs | 39 +++ TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs | 18 +- TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs | 18 +- TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs | 18 +- TeleSharp.TL/TL/TLInputNotifyAll.cs | 18 +- TeleSharp.TL/TL/TLInputNotifyChats.cs | 18 +- TeleSharp.TL/TL/TLInputNotifyPeer.cs | 16 +- TeleSharp.TL/TL/TLInputNotifyUsers.cs | 18 +- TeleSharp.TL/TL/TLInputPaymentCredentials.cs | 51 ++++ .../TL/TLInputPaymentCredentialsSaved.cs | 45 +++ TeleSharp.TL/TL/TLInputPeerChannel.cs | 20 +- TeleSharp.TL/TL/TLInputPeerChat.cs | 14 +- TeleSharp.TL/TL/TLInputPeerEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs | 18 +- .../TL/TLInputPeerNotifyEventsEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputPeerNotifySettings.cs | 40 +-- TeleSharp.TL/TL/TLInputPeerSelf.cs | 18 +- TeleSharp.TL/TL/TLInputPeerUser.cs | 20 +- TeleSharp.TL/TL/TLInputPhoneCall.cs | 45 +++ TeleSharp.TL/TL/TLInputPhoneContact.cs | 32 +-- TeleSharp.TL/TL/TLInputPhoto.cs | 20 +- TeleSharp.TL/TL/TLInputPhotoEmpty.cs | 18 +- .../TL/TLInputPrivacyKeyChatInvite.cs | 18 +- ...Empty.cs => TLInputPrivacyKeyPhoneCall.cs} | 24 +- .../TL/TLInputPrivacyKeyStatusTimestamp.cs | 18 +- .../TL/TLInputPrivacyValueAllowAll.cs | 18 +- .../TL/TLInputPrivacyValueAllowContacts.cs | 18 +- .../TL/TLInputPrivacyValueAllowUsers.cs | 16 +- .../TL/TLInputPrivacyValueDisallowAll.cs | 18 +- .../TL/TLInputPrivacyValueDisallowContacts.cs | 18 +- .../TL/TLInputPrivacyValueDisallowUsers.cs | 16 +- TeleSharp.TL/TL/TLInputReportReasonOther.cs | 16 +- .../TL/TLInputReportReasonPornography.cs | 18 +- TeleSharp.TL/TL/TLInputReportReasonSpam.cs | 18 +- .../TL/TLInputReportReasonViolence.cs | 18 +- TeleSharp.TL/TL/TLInputStickerSetEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputStickerSetID.cs | 20 +- TeleSharp.TL/TL/TLInputStickerSetItem.cs | 59 ++++ TeleSharp.TL/TL/TLInputStickerSetShortName.cs | 16 +- .../TL/TLInputStickeredMediaDocument.cs | 16 +- TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs | 16 +- TeleSharp.TL/TL/TLInputUser.cs | 20 +- TeleSharp.TL/TL/TLInputUserEmpty.cs | 18 +- TeleSharp.TL/TL/TLInputUserSelf.cs | 18 +- TeleSharp.TL/TL/TLInputWebDocument.cs | 51 ++++ TeleSharp.TL/TL/TLInputWebFileLocation.cs | 45 +++ TeleSharp.TL/TL/TLInvoice.cs | 74 +++++ TeleSharp.TL/TL/TLKeyboardButton.cs | 16 +- TeleSharp.TL/TL/TLKeyboardButtonBuy.cs | 42 +++ TeleSharp.TL/TL/TLKeyboardButtonCallback.cs | 22 +- TeleSharp.TL/TL/TLKeyboardButtonGame.cs | 16 +- .../TL/TLKeyboardButtonRequestGeoLocation.cs | 16 +- .../TL/TLKeyboardButtonRequestPhone.cs | 16 +- TeleSharp.TL/TL/TLKeyboardButtonRow.cs | 16 +- .../TL/TLKeyboardButtonSwitchInline.cs | 34 +-- TeleSharp.TL/TL/TLKeyboardButtonUrl.cs | 22 +- TeleSharp.TL/TL/TLLabeledPrice.cs | 45 +++ TeleSharp.TL/TL/TLMaskCoords.cs | 32 +-- TeleSharp.TL/TL/TLMessage.cs | 214 +++++++-------- .../TL/TLMessageActionChannelCreate.cs | 16 +- .../TL/TLMessageActionChannelMigrateFrom.cs | 22 +- TeleSharp.TL/TL/TLMessageActionChatAddUser.cs | 16 +- TeleSharp.TL/TL/TLMessageActionChatCreate.cs | 22 +- .../TL/TLMessageActionChatDeletePhoto.cs | 18 +- .../TL/TLMessageActionChatDeleteUser.cs | 14 +- .../TL/TLMessageActionChatEditPhoto.cs | 16 +- .../TL/TLMessageActionChatEditTitle.cs | 16 +- .../TL/TLMessageActionChatJoinedByLink.cs | 14 +- .../TL/TLMessageActionChatMigrateTo.cs | 14 +- TeleSharp.TL/TL/TLMessageActionEmpty.cs | 18 +- TeleSharp.TL/TL/TLMessageActionGameScore.cs | 20 +- .../TL/TLMessageActionHistoryClear.cs | 18 +- TeleSharp.TL/TL/TLMessageActionPaymentSent.cs | 45 +++ .../TL/TLMessageActionPaymentSentMe.cs | 74 +++++ TeleSharp.TL/TL/TLMessageActionPhoneCall.cs | 65 +++++ TeleSharp.TL/TL/TLMessageActionPinMessage.cs | 18 +- TeleSharp.TL/TL/TLMessageEmpty.cs | 14 +- TeleSharp.TL/TL/TLMessageEntityBold.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityBotCommand.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityCode.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityEmail.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityHashtag.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityItalic.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityMention.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityMentionName.cs | 26 +- TeleSharp.TL/TL/TLMessageEntityPre.cs | 26 +- TeleSharp.TL/TL/TLMessageEntityTextUrl.cs | 26 +- TeleSharp.TL/TL/TLMessageEntityUnknown.cs | 20 +- TeleSharp.TL/TL/TLMessageEntityUrl.cs | 20 +- TeleSharp.TL/TL/TLMessageFwdHeader.cs | 70 ++--- TeleSharp.TL/TL/TLMessageMediaContact.cs | 34 +-- TeleSharp.TL/TL/TLMessageMediaDocument.cs | 22 +- TeleSharp.TL/TL/TLMessageMediaEmpty.cs | 18 +- TeleSharp.TL/TL/TLMessageMediaGame.cs | 16 +- TeleSharp.TL/TL/TLMessageMediaGeo.cs | 16 +- TeleSharp.TL/TL/TLMessageMediaInvoice.cs | 85 ++++++ TeleSharp.TL/TL/TLMessageMediaPhoto.cs | 22 +- TeleSharp.TL/TL/TLMessageMediaUnsupported.cs | 18 +- TeleSharp.TL/TL/TLMessageMediaVenue.cs | 40 +-- TeleSharp.TL/TL/TLMessageMediaWebPage.cs | 16 +- TeleSharp.TL/TL/TLMessageRange.cs | 20 +- TeleSharp.TL/TL/TLMessageService.cs | 102 +++---- TeleSharp.TL/TL/TLNearestDc.cs | 28 +- TeleSharp.TL/TL/TLNotifyAll.cs | 18 +- TeleSharp.TL/TL/TLNotifyChats.cs | 18 +- TeleSharp.TL/TL/TLNotifyPeer.cs | 16 +- TeleSharp.TL/TL/TLNotifyUsers.cs | 18 +- TeleSharp.TL/TL/TLNull.cs | 18 +- TeleSharp.TL/TL/TLPageBlockAnchor.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockAuthorDate.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockBlockquote.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockChannel.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockCollage.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockCover.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockDivider.cs | 39 +++ TeleSharp.TL/TL/TLPageBlockEmbed.cs | 88 ++++++ TeleSharp.TL/TL/TLPageBlockEmbedPost.cs | 60 ++++ TeleSharp.TL/TL/TLPageBlockFooter.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockHeader.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockList.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockParagraph.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockPhoto.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockPreformatted.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockPullquote.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockSlideshow.cs | 45 +++ TeleSharp.TL/TL/TLPageBlockSubheader.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockSubtitle.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockTitle.cs | 42 +++ TeleSharp.TL/TL/TLPageBlockUnsupported.cs | 39 +++ TeleSharp.TL/TL/TLPageBlockVideo.cs | 58 ++++ TeleSharp.TL/TL/TLPageFull.cs | 48 ++++ TeleSharp.TL/TL/TLPagePart.cs | 48 ++++ TeleSharp.TL/TL/TLPaymentCharge.cs | 45 +++ TeleSharp.TL/TL/TLPaymentRequestedInfo.cs | 80 ++++++ .../TL/TLPaymentSavedCredentialsCard.cs | 45 +++ TeleSharp.TL/TL/TLPeerChannel.cs | 14 +- TeleSharp.TL/TL/TLPeerChat.cs | 14 +- TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs | 18 +- TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs | 18 +- TeleSharp.TL/TL/TLPeerNotifySettings.cs | 40 +-- TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs | 18 +- TeleSharp.TL/TL/TLPeerSettings.cs | 22 +- TeleSharp.TL/TL/TLPeerUser.cs | 14 +- TeleSharp.TL/TL/TLPhoneCall.cs | 72 +++++ TeleSharp.TL/TL/TLPhoneCallAccepted.cs | 60 ++++ .../TL/TLPhoneCallDiscardReasonBusy.cs | 39 +++ .../TL/TLPhoneCallDiscardReasonDisconnect.cs | 39 +++ .../TL/TLPhoneCallDiscardReasonHangup.cs | 39 +++ .../TL/TLPhoneCallDiscardReasonMissed.cs | 39 +++ TeleSharp.TL/TL/TLPhoneCallDiscarded.cs | 73 +++++ TeleSharp.TL/TL/TLPhoneCallEmpty.cs | 42 +++ TeleSharp.TL/TL/TLPhoneCallProtocol.cs | 58 ++++ TeleSharp.TL/TL/TLPhoneCallRequested.cs | 60 ++++ TeleSharp.TL/TL/TLPhoneCallWaiting.cs | 71 +++++ TeleSharp.TL/TL/TLPhoneConnection.cs | 54 ++++ TeleSharp.TL/TL/TLPhoto.cs | 46 ++-- TeleSharp.TL/TL/TLPhotoCachedSize.cs | 40 +-- TeleSharp.TL/TL/TLPhotoEmpty.cs | 14 +- TeleSharp.TL/TL/TLPhotoSize.cs | 40 +-- TeleSharp.TL/TL/TLPhotoSizeEmpty.cs | 16 +- TeleSharp.TL/TL/TLPostAddress.cs | 57 ++++ TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs | 18 +- TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs | 39 +++ .../TL/TLPrivacyKeyStatusTimestamp.cs | 18 +- TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs | 18 +- .../TL/TLPrivacyValueAllowContacts.cs | 18 +- TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs | 16 +- TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs | 18 +- .../TL/TLPrivacyValueDisallowContacts.cs | 18 +- .../TL/TLPrivacyValueDisallowUsers.cs | 16 +- TeleSharp.TL/TL/TLReceivedNotifyMessage.cs | 22 +- TeleSharp.TL/TL/TLReplyInlineMarkup.cs | 16 +- TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs | 28 +- TeleSharp.TL/TL/TLReplyKeyboardHide.cs | 22 +- TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs | 40 +-- TeleSharp.TL/TL/TLRequestInitConnection.cs | 54 ++-- TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs | 30 +- TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs | 32 +-- TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs | 30 +- .../TL/TLRequestInvokeWithoutUpdates.cs | 26 +- TeleSharp.TL/TL/TLSendMessageCancelAction.cs | 18 +- .../TL/TLSendMessageChooseContactAction.cs | 18 +- .../TL/TLSendMessageGamePlayAction.cs | 18 +- .../TL/TLSendMessageGeoLocationAction.cs | 18 +- .../TL/TLSendMessageRecordAudioAction.cs | 18 +- .../TL/TLSendMessageRecordRoundAction.cs | 39 +++ .../TL/TLSendMessageRecordVideoAction.cs | 18 +- TeleSharp.TL/TL/TLSendMessageTypingAction.cs | 18 +- .../TL/TLSendMessageUploadAudioAction.cs | 14 +- .../TL/TLSendMessageUploadDocumentAction.cs | 14 +- .../TL/TLSendMessageUploadPhotoAction.cs | 14 +- .../TL/TLSendMessageUploadRoundAction.cs | 42 +++ .../TL/TLSendMessageUploadVideoAction.cs | 14 +- TeleSharp.TL/TL/TLShippingOption.cs | 48 ++++ TeleSharp.TL/TL/TLStickerPack.cs | 22 +- TeleSharp.TL/TL/TLStickerSet.cs | 76 ++--- TeleSharp.TL/TL/TLStickerSetCovered.cs | 22 +- TeleSharp.TL/TL/TLStickerSetMultiCovered.cs | 22 +- TeleSharp.TL/TL/TLTextBold.cs | 42 +++ TeleSharp.TL/TL/TLTextConcat.cs | 42 +++ TeleSharp.TL/TL/TLTextEmail.cs | 45 +++ TeleSharp.TL/TL/TLTextEmpty.cs | 39 +++ TeleSharp.TL/TL/TLTextFixed.cs | 42 +++ TeleSharp.TL/TL/TLTextItalic.cs | 42 +++ .../TLAppChangelog.cs => TLTextPlain.cs} | 22 +- TeleSharp.TL/TL/TLTextStrike.cs | 42 +++ TeleSharp.TL/TL/TLTextUnderline.cs | 42 +++ TeleSharp.TL/TL/TLTextUrl.cs | 48 ++++ TeleSharp.TL/TL/TLTopPeer.cs | 22 +- .../TL/TLTopPeerCategoryBotsInline.cs | 18 +- TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs | 18 +- TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs | 18 +- .../TL/TLTopPeerCategoryCorrespondents.cs | 18 +- TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs | 18 +- TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs | 28 +- TeleSharp.TL/TL/TLTrue.cs | 18 +- TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs | 78 +++--- TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs | 56 ++-- TeleSharp.TL/TL/TLUpdateBotInlineSend.cs | 66 ++--- .../TL/TLUpdateBotPrecheckoutQuery.cs | 77 ++++++ TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs | 51 ++++ TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs | 42 +++ .../TL/TLUpdateBotWebhookJSONQuery.cs | 48 ++++ TeleSharp.TL/TL/TLUpdateChannel.cs | 14 +- .../TL/TLUpdateChannelMessageViews.cs | 26 +- .../TL/TLUpdateChannelPinnedMessage.cs | 20 +- TeleSharp.TL/TL/TLUpdateChannelTooLong.cs | 38 +-- TeleSharp.TL/TL/TLUpdateChannelWebPage.cs | 51 ++++ TeleSharp.TL/TL/TLUpdateChatAdmins.cs | 26 +- TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs | 38 +-- .../TL/TLUpdateChatParticipantAdmin.cs | 32 +-- .../TL/TLUpdateChatParticipantDelete.cs | 26 +- TeleSharp.TL/TL/TLUpdateChatParticipants.cs | 16 +- TeleSharp.TL/TL/TLUpdateChatUserTyping.cs | 26 +- TeleSharp.TL/TL/TLUpdateConfig.cs | 18 +- TeleSharp.TL/TL/TLUpdateContactLink.cs | 26 +- TeleSharp.TL/TL/TLUpdateContactRegistered.cs | 20 +- TeleSharp.TL/TL/TLUpdateDcOptions.cs | 16 +- .../TL/TLUpdateDeleteChannelMessages.cs | 32 +-- TeleSharp.TL/TL/TLUpdateDeleteMessages.cs | 28 +- TeleSharp.TL/TL/TLUpdateDialogPinned.cs | 51 ++++ TeleSharp.TL/TL/TLUpdateDraftMessage.cs | 22 +- TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs | 28 +- TeleSharp.TL/TL/TLUpdateEditMessage.cs | 28 +- .../TL/TLUpdateEncryptedChatTyping.cs | 14 +- .../TL/TLUpdateEncryptedMessagesRead.cs | 26 +- TeleSharp.TL/TL/TLUpdateEncryption.cs | 22 +- .../TL/TLUpdateInlineBotCallbackQuery.cs | 72 ++--- TeleSharp.TL/TL/TLUpdateMessageID.cs | 20 +- TeleSharp.TL/TL/TLUpdateNewAuthorization.cs | 51 ---- TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs | 28 +- .../TL/TLUpdateNewEncryptedMessage.cs | 22 +- TeleSharp.TL/TL/TLUpdateNewMessage.cs | 28 +- TeleSharp.TL/TL/TLUpdateNewStickerSet.cs | 16 +- TeleSharp.TL/TL/TLUpdateNotifySettings.cs | 22 +- TeleSharp.TL/TL/TLUpdatePhoneCall.cs | 42 +++ TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs | 53 ++++ TeleSharp.TL/TL/TLUpdatePrivacy.cs | 22 +- TeleSharp.TL/TL/TLUpdatePtsChanged.cs | 18 +- TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs | 20 +- TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs | 20 +- .../TL/TLUpdateReadFeaturedStickers.cs | 18 +- TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs | 34 +-- TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs | 34 +-- .../TL/TLUpdateReadMessagesContents.cs | 28 +- TeleSharp.TL/TL/TLUpdateRecentStickers.cs | 18 +- TeleSharp.TL/TL/TLUpdateSavedGifs.cs | 18 +- .../TL/TLUpdateServiceNotification.cs | 54 ++-- TeleSharp.TL/TL/TLUpdateShort.cs | 22 +- TeleSharp.TL/TL/TLUpdateShortChatMessage.cs | 146 +++++----- TeleSharp.TL/TL/TLUpdateShortMessage.cs | 140 +++++----- TeleSharp.TL/TL/TLUpdateShortSentMessage.cs | 78 +++--- TeleSharp.TL/TL/TLUpdateStickerSets.cs | 18 +- TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs | 28 +- TeleSharp.TL/TL/TLUpdateUserBlocked.cs | 20 +- TeleSharp.TL/TL/TLUpdateUserName.cs | 32 +-- TeleSharp.TL/TL/TLUpdateUserPhone.cs | 20 +- TeleSharp.TL/TL/TLUpdateUserPhoto.cs | 32 +-- TeleSharp.TL/TL/TLUpdateUserStatus.cs | 20 +- TeleSharp.TL/TL/TLUpdateUserTyping.cs | 20 +- TeleSharp.TL/TL/TLUpdateWebPage.cs | 28 +- TeleSharp.TL/TL/TLUpdates.cs | 40 +-- TeleSharp.TL/TL/TLUpdatesCombined.cs | 46 ++-- TeleSharp.TL/TL/TLUpdatesTooLong.cs | 18 +- TeleSharp.TL/TL/TLUser.cs | 259 +++++++++--------- TeleSharp.TL/TL/TLUserEmpty.cs | 14 +- TeleSharp.TL/TL/TLUserFull.cs | 101 ++++--- TeleSharp.TL/TL/TLUserProfilePhoto.cs | 26 +- TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs | 18 +- TeleSharp.TL/TL/TLUserStatusEmpty.cs | 18 +- TeleSharp.TL/TL/TLUserStatusLastMonth.cs | 18 +- TeleSharp.TL/TL/TLUserStatusLastWeek.cs | 18 +- TeleSharp.TL/TL/TLUserStatusOffline.cs | 14 +- TeleSharp.TL/TL/TLUserStatusOnline.cs | 14 +- TeleSharp.TL/TL/TLUserStatusRecently.cs | 18 +- TeleSharp.TL/TL/TLWallPaper.cs | 32 +-- TeleSharp.TL/TL/TLWallPaperSolid.cs | 32 +-- TeleSharp.TL/TL/TLWebDocument.cs | 57 ++++ TeleSharp.TL/TL/TLWebPage.cs | 240 ++++++++-------- TeleSharp.TL/TL/TLWebPageEmpty.cs | 14 +- TeleSharp.TL/TL/TLWebPageNotModified.cs | 39 +++ TeleSharp.TL/TL/TLWebPagePending.cs | 20 +- .../TL/Updates/TLChannelDifference.cs | 68 ++--- .../TL/Updates/TLChannelDifferenceEmpty.cs | 44 +-- .../TL/Updates/TLChannelDifferenceTooLong.cs | 86 +++--- TeleSharp.TL/TL/Updates/TLDifference.cs | 46 ++-- TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs | 20 +- TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs | 46 ++-- .../TL/Updates/TLDifferenceTooLong.cs | 42 +++ .../Updates/TLRequestGetChannelDifference.cs | 55 ++-- .../TL/Updates/TLRequestGetDifference.cs | 52 ++-- TeleSharp.TL/TL/Updates/TLRequestGetState.cs | 28 +- TeleSharp.TL/TL/Updates/TLState.cs | 38 +-- TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs | 13 + TeleSharp.TL/TL/Upload/TLAbsFile.cs | 13 + TeleSharp.TL/TL/Upload/TLCdnFile.cs | 42 +++ .../TL/Upload/TLCdnFileReuploadNeeded.cs | 42 +++ TeleSharp.TL/TL/Upload/TLFile.cs | 30 +- TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs | 51 ++++ TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs | 54 ++++ TeleSharp.TL/TL/Upload/TLRequestGetFile.cs | 38 +-- TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs | 54 ++++ .../TL/Upload/TLRequestReuploadCdnFile.cs | 51 ++++ .../TL/Upload/TLRequestSaveBigFilePart.cs | 42 +-- .../TL/Upload/TLRequestSaveFilePart.cs | 36 +-- TeleSharp.TL/TL/Upload/TLWebFile.cs | 54 ++++ TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs | 26 +- TeleSharp.TL/TL/Users/TLRequestGetUsers.cs | 26 +- TeleSharp.TL/TeleSharp.TL.csproj | 149 +++++++++- 784 files changed, 17201 insertions(+), 10048 deletions(-) create mode 100644 TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs create mode 100644 TeleSharp.TL/TL/Account/TLTmpPassword.cs create mode 100644 TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs create mode 100644 TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs create mode 100644 TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs rename TeleSharp.TL/TL/{Help/TLAbsAppChangelog.cs => Messages/TLAbsChats.cs} (67%) create mode 100644 TeleSharp.TL/TL/Messages/TLChatsSlice.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs create mode 100644 TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs create mode 100644 TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs create mode 100644 TeleSharp.TL/TL/Payments/TLPaymentForm.cs create mode 100644 TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs create mode 100644 TeleSharp.TL/TL/Payments/TLPaymentResult.cs create mode 100644 TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs create mode 100644 TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs create mode 100644 TeleSharp.TL/TL/Payments/TLSavedInfo.cs create mode 100644 TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs create mode 100644 TeleSharp.TL/TL/Phone/TLPhoneCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs create mode 100644 TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs create mode 100644 TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs create mode 100644 TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs create mode 100644 TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs create mode 100644 TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs create mode 100644 TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs create mode 100644 TeleSharp.TL/TL/TLAbsPage.cs create mode 100644 TeleSharp.TL/TL/TLAbsPageBlock.cs create mode 100644 TeleSharp.TL/TL/TLAbsPhoneCall.cs create mode 100644 TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs create mode 100644 TeleSharp.TL/TL/TLAbsRichText.cs create mode 100644 TeleSharp.TL/TL/TLCdnConfig.cs create mode 100644 TeleSharp.TL/TL/TLCdnPublicKey.cs create mode 100644 TeleSharp.TL/TL/TLDataJSON.cs create mode 100644 TeleSharp.TL/TL/TLInputMediaInvoice.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs create mode 100644 TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs create mode 100644 TeleSharp.TL/TL/TLInputPaymentCredentials.cs create mode 100644 TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs create mode 100644 TeleSharp.TL/TL/TLInputPhoneCall.cs rename TeleSharp.TL/TL/{Help/TLAppChangelogEmpty.cs => TLInputPrivacyKeyPhoneCall.cs} (63%) create mode 100644 TeleSharp.TL/TL/TLInputStickerSetItem.cs create mode 100644 TeleSharp.TL/TL/TLInputWebDocument.cs create mode 100644 TeleSharp.TL/TL/TLInputWebFileLocation.cs create mode 100644 TeleSharp.TL/TL/TLInvoice.cs create mode 100644 TeleSharp.TL/TL/TLKeyboardButtonBuy.cs create mode 100644 TeleSharp.TL/TL/TLLabeledPrice.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionPaymentSent.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs create mode 100644 TeleSharp.TL/TL/TLMessageActionPhoneCall.cs create mode 100644 TeleSharp.TL/TL/TLMessageMediaInvoice.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockAnchor.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockAuthorDate.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockBlockquote.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockChannel.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockCollage.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockCover.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockDivider.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockEmbed.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockEmbedPost.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockFooter.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockHeader.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockList.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockParagraph.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockPhoto.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockPreformatted.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockPullquote.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockSlideshow.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockSubheader.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockSubtitle.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockTitle.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockUnsupported.cs create mode 100644 TeleSharp.TL/TL/TLPageBlockVideo.cs create mode 100644 TeleSharp.TL/TL/TLPageFull.cs create mode 100644 TeleSharp.TL/TL/TLPagePart.cs create mode 100644 TeleSharp.TL/TL/TLPaymentCharge.cs create mode 100644 TeleSharp.TL/TL/TLPaymentRequestedInfo.cs create mode 100644 TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCall.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallAccepted.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallDiscarded.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallEmpty.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallProtocol.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallRequested.cs create mode 100644 TeleSharp.TL/TL/TLPhoneCallWaiting.cs create mode 100644 TeleSharp.TL/TL/TLPhoneConnection.cs create mode 100644 TeleSharp.TL/TL/TLPostAddress.cs create mode 100644 TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs create mode 100644 TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs create mode 100644 TeleSharp.TL/TL/TLShippingOption.cs create mode 100644 TeleSharp.TL/TL/TLTextBold.cs create mode 100644 TeleSharp.TL/TL/TLTextConcat.cs create mode 100644 TeleSharp.TL/TL/TLTextEmail.cs create mode 100644 TeleSharp.TL/TL/TLTextEmpty.cs create mode 100644 TeleSharp.TL/TL/TLTextFixed.cs create mode 100644 TeleSharp.TL/TL/TLTextItalic.cs rename TeleSharp.TL/TL/{Help/TLAppChangelog.cs => TLTextPlain.cs} (61%) create mode 100644 TeleSharp.TL/TL/TLTextStrike.cs create mode 100644 TeleSharp.TL/TL/TLTextUnderline.cs create mode 100644 TeleSharp.TL/TL/TLTextUrl.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs create mode 100644 TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs create mode 100644 TeleSharp.TL/TL/TLUpdateChannelWebPage.cs create mode 100644 TeleSharp.TL/TL/TLUpdateDialogPinned.cs delete mode 100644 TeleSharp.TL/TL/TLUpdateNewAuthorization.cs create mode 100644 TeleSharp.TL/TL/TLUpdatePhoneCall.cs create mode 100644 TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs create mode 100644 TeleSharp.TL/TL/TLWebDocument.cs create mode 100644 TeleSharp.TL/TL/TLWebPageNotModified.cs create mode 100644 TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs create mode 100644 TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLAbsFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLCdnFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs create mode 100644 TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs create mode 100644 TeleSharp.TL/TL/Upload/TLWebFile.cs diff --git a/README.md b/README.md index d8b833d..1f6f727 100644 --- a/README.md +++ b/README.md @@ -218,7 +218,7 @@ Contributing is highly appreciated! Donations required authorizations {get;set;} + public TLVector authorizations { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(authorizations,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(authorizations, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLNoPassword.cs b/TeleSharp.TL/TL/Account/TLNoPassword.cs index 23d604d..db0443a 100644 --- a/TeleSharp.TL/TL/Account/TLNoPassword.cs +++ b/TeleSharp.TL/TL/Account/TLNoPassword.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-1764049896)] + [TLObject(-1764049896)] public class TLNoPassword : TLAbsPassword { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account } } - public byte[] new_salt {get;set;} - public string email_unconfirmed_pattern {get;set;} + public byte[] new_salt { get; set; } + public string email_unconfirmed_pattern { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { new_salt = BytesUtil.Deserialize(br); -email_unconfirmed_pattern = StringUtil.Deserialize(br); + email_unconfirmed_pattern = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(new_salt,bw); -StringUtil.Serialize(email_unconfirmed_pattern,bw); + bw.Write(Constructor); + BytesUtil.Serialize(new_salt, bw); + StringUtil.Serialize(email_unconfirmed_pattern, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLPassword.cs b/TeleSharp.TL/TL/Account/TLPassword.cs index 1fc6dc0..31660f6 100644 --- a/TeleSharp.TL/TL/Account/TLPassword.cs +++ b/TeleSharp.TL/TL/Account/TLPassword.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(2081952796)] + [TLObject(2081952796)] public class TLPassword : TLAbsPassword { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL.Account } } - public byte[] current_salt {get;set;} - public byte[] new_salt {get;set;} - public string hint {get;set;} - public bool has_recovery {get;set;} - public string email_unconfirmed_pattern {get;set;} + public byte[] current_salt { get; set; } + public byte[] new_salt { get; set; } + public string hint { get; set; } + public bool has_recovery { get; set; } + public string email_unconfirmed_pattern { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { current_salt = BytesUtil.Deserialize(br); -new_salt = BytesUtil.Deserialize(br); -hint = StringUtil.Deserialize(br); -has_recovery = BoolUtil.Deserialize(br); -email_unconfirmed_pattern = StringUtil.Deserialize(br); + new_salt = BytesUtil.Deserialize(br); + hint = StringUtil.Deserialize(br); + has_recovery = BoolUtil.Deserialize(br); + email_unconfirmed_pattern = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(current_salt,bw); -BytesUtil.Serialize(new_salt,bw); -StringUtil.Serialize(hint,bw); -BoolUtil.Serialize(has_recovery,bw); -StringUtil.Serialize(email_unconfirmed_pattern,bw); + bw.Write(Constructor); + BytesUtil.Serialize(current_salt, bw); + BytesUtil.Serialize(new_salt, bw); + StringUtil.Serialize(hint, bw); + BoolUtil.Serialize(has_recovery, bw); + StringUtil.Serialize(email_unconfirmed_pattern, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs index e581108..646b2de 100644 --- a/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs +++ b/TeleSharp.TL/TL/Account/TLPasswordInputSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-2037289493)] + [TLObject(-2037289493)] public class TLPasswordInputSettings : TLObject { public override int Constructor @@ -18,62 +18,62 @@ namespace TeleSharp.TL.Account } } - public int flags {get;set;} - public byte[] new_salt {get;set;} - public byte[] new_password_hash {get;set;} - public string hint {get;set;} - public string email {get;set;} + public int flags { get; set; } + public byte[] new_salt { get; set; } + public byte[] new_password_hash { get; set; } + public string hint { get; set; } + public string email { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = new_salt != null ? (flags | 1) : (flags & ~1); -flags = new_password_hash != null ? (flags | 1) : (flags & ~1); -flags = hint != null ? (flags | 1) : (flags & ~1); -flags = email != null ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = new_salt != null ? (flags | 1) : (flags & ~1); + flags = new_password_hash != null ? (flags | 1) : (flags & ~1); + flags = hint != null ? (flags | 1) : (flags & ~1); + flags = email != null ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -if ((flags & 1) != 0) -new_salt = BytesUtil.Deserialize(br); -else -new_salt = null; + if ((flags & 1) != 0) + new_salt = BytesUtil.Deserialize(br); + else + new_salt = null; -if ((flags & 1) != 0) -new_password_hash = BytesUtil.Deserialize(br); -else -new_password_hash = null; + if ((flags & 1) != 0) + new_password_hash = BytesUtil.Deserialize(br); + else + new_password_hash = null; -if ((flags & 1) != 0) -hint = StringUtil.Deserialize(br); -else -hint = null; + if ((flags & 1) != 0) + hint = StringUtil.Deserialize(br); + else + hint = null; -if ((flags & 2) != 0) -email = StringUtil.Deserialize(br); -else -email = null; + if ((flags & 2) != 0) + email = StringUtil.Deserialize(br); + else + email = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -if ((flags & 1) != 0) -BytesUtil.Serialize(new_salt,bw); -if ((flags & 1) != 0) -BytesUtil.Serialize(new_password_hash,bw); -if ((flags & 1) != 0) -StringUtil.Serialize(hint,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(email,bw); + bw.Write(flags); + if ((flags & 1) != 0) + BytesUtil.Serialize(new_salt, bw); + if ((flags & 1) != 0) + BytesUtil.Serialize(new_password_hash, bw); + if ((flags & 1) != 0) + StringUtil.Serialize(hint, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(email, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs index bb8c1f4..1a56870 100644 --- a/TeleSharp.TL/TL/Account/TLPasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLPasswordSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-1212732749)] + [TLObject(-1212732749)] public class TLPasswordSettings : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Account } } - public string email {get;set;} + public string email { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(email,bw); + bw.Write(Constructor); + StringUtil.Serialize(email, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLPrivacyRules.cs b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs index 6ede6a3..b5e011e 100644 --- a/TeleSharp.TL/TL/Account/TLPrivacyRules.cs +++ b/TeleSharp.TL/TL/Account/TLPrivacyRules.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1430961007)] + [TLObject(1430961007)] public class TLPrivacyRules : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account } } - public TLVector rules {get;set;} - public TLVector users {get;set;} + public TLVector rules { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { rules = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(rules,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(rules, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs index c386a1a..151211c 100644 --- a/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs +++ b/TeleSharp.TL/TL/Account/TLRequestChangePhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1891839707)] + [TLObject(1891839707)] public class TLRequestChangePhone : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Account } } - public string phone_number {get;set;} - public string phone_code_hash {get;set;} - public string phone_code {get;set;} - public TLAbsUser Response{ get; set;} + public string phone_number { get; set; } + public string phone_code_hash { get; set; } + public string phone_code { get; set; } + public TLAbsUser Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -phone_code_hash = StringUtil.Deserialize(br); -phone_code = StringUtil.Deserialize(br); + phone_code_hash = StringUtil.Deserialize(br); + phone_code = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(phone_code_hash,bw); -StringUtil.Serialize(phone_code,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(phone_code_hash, bw); + StringUtil.Serialize(phone_code, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs index 87c4382..9d7d869 100644 --- a/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs +++ b/TeleSharp.TL/TL/Account/TLRequestCheckUsername.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(655677548)] + [TLObject(655677548)] public class TLRequestCheckUsername : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public string username {get;set;} - public bool Response{ get; set;} + public string username { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(username,bw); + bw.Write(Constructor); + StringUtil.Serialize(username, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs b/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs index 9613505..2e61e50 100644 --- a/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs +++ b/TeleSharp.TL/TL/Account/TLRequestConfirmPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1596029123)] + [TLObject(1596029123)] public class TLRequestConfirmPhone : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public string phone_code_hash {get;set;} - public string phone_code {get;set;} - public bool Response{ get; set;} + public string phone_code_hash { get; set; } + public string phone_code { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_code_hash = StringUtil.Deserialize(br); -phone_code = StringUtil.Deserialize(br); + phone_code = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_code_hash,bw); -StringUtil.Serialize(phone_code,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_code_hash, bw); + StringUtil.Serialize(phone_code, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs index 749d620..c4fa8fd 100644 --- a/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs +++ b/TeleSharp.TL/TL/Account/TLRequestDeleteAccount.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1099779595)] + [TLObject(1099779595)] public class TLRequestDeleteAccount : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public string reason {get;set;} - public bool Response{ get; set;} + public string reason { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(reason,bw); + bw.Write(Constructor); + StringUtil.Serialize(reason, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs index 36c8c88..50c0799 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetAccountTTL.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(150761757)] + [TLObject(150761757)] public class TLRequestGetAccountTTL : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account } } - public TLAccountDaysTTL Response{ get; set;} + public TLAccountDaysTTL Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs index 3c4891f..da2a722 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetAuthorizations.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-484392616)] + [TLObject(-484392616)] public class TLRequestGetAuthorizations : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account } } - public Account.TLAuthorizations Response{ get; set;} + public Account.TLAuthorizations Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs index bf56b9a..4224d57 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(313765169)] + [TLObject(313765169)] public class TLRequestGetNotifySettings : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public TLAbsInputNotifyPeer peer {get;set;} - public TLAbsPeerNotifySettings Response{ get; set;} + public TLAbsInputNotifyPeer peer { get; set; } + public TLAbsPeerNotifySettings Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs index 5b4a494..c9dcb56 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPassword.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1418342645)] + [TLObject(1418342645)] public class TLRequestGetPassword : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account } } - public Account.TLAbsPassword Response{ get; set;} + public Account.TLAbsPassword Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs index 79d46c0..29c6b85 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPasswordSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-1131605573)] + [TLObject(-1131605573)] public class TLRequestGetPasswordSettings : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public byte[] current_password_hash {get;set;} - public Account.TLPasswordSettings Response{ get; set;} + public byte[] current_password_hash { get; set; } + public Account.TLPasswordSettings Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(current_password_hash,bw); + bw.Write(Constructor); + BytesUtil.Serialize(current_password_hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs index 7672a74..b54e501 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetPrivacy.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-623130288)] + [TLObject(-623130288)] public class TLRequestGetPrivacy : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public TLAbsInputPrivacyKey key {get;set;} - public Account.TLPrivacyRules Response{ get; set;} + public TLAbsInputPrivacyKey key { get; set; } + public Account.TLPrivacyRules Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(key,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(key, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs b/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs new file mode 100644 index 0000000..0fc8c00 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(1250046590)] + public class TLRequestGetTmpPassword : TLMethod + { + public override int Constructor + { + get + { + return 1250046590; + } + } + + public byte[] password_hash { get; set; } + 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) + { + bw.Write(Constructor); + BytesUtil.Serialize(password_hash, bw); + bw.Write(period); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs index 6d148c7..df2e4d6 100644 --- a/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs +++ b/TeleSharp.TL/TL/Account/TLRequestGetWallPapers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-1068696894)] + [TLObject(-1068696894)] public class TLRequestGetWallPapers : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account } } - public TLVector Response{ get; set;} + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs index 06e4f9c..a5bb3f6 100644 --- a/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs +++ b/TeleSharp.TL/TL/Account/TLRequestRegisterDevice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1669245048)] + [TLObject(1669245048)] public class TLRequestRegisterDevice : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public int token_type {get;set;} - public string token {get;set;} - public bool Response{ get; set;} + public int token_type { get; set; } + public string token { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { token_type = br.ReadInt32(); -token = StringUtil.Deserialize(br); + token = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(token_type); -StringUtil.Serialize(token,bw); + StringUtil.Serialize(token, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs index 21e7d47..e29ff0c 100644 --- a/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs +++ b/TeleSharp.TL/TL/Account/TLRequestReportPeer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-1374118561)] + [TLObject(-1374118561)] public class TLRequestReportPeer : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public TLAbsInputPeer peer {get;set;} - public TLAbsReportReason reason {get;set;} - public bool Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public TLAbsReportReason reason { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br); + reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(reason,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(reason, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs index db2abbd..53ae259 100644 --- a/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs +++ b/TeleSharp.TL/TL/Account/TLRequestResetAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-545786948)] + [TLObject(-545786948)] public class TLRequestResetAuthorization : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public long hash {get;set;} - public bool Response{ get; set;} + public long hash { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs index 863f0ae..7451499 100644 --- a/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestResetNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-612493497)] + [TLObject(-612493497)] public class TLRequestResetNotifySettings : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account } } - public bool Response{ get; set;} + public bool Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs index 1cb46d9..4f5f9ea 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSendChangePhoneCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(149257707)] + [TLObject(149257707)] public class TLRequestSendChangePhoneCode : TLMethod { public override int Constructor @@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account } } - public int flags {get;set;} - public bool allow_flashcall {get;set;} - public string phone_number {get;set;} - public bool? current_number {get;set;} - public Auth.TLSentCode Response{ get; set;} + public int flags { get; set; } + public bool allow_flashcall { get; set; } + public string phone_number { get; set; } + public bool? current_number { get; set; } + public Auth.TLSentCode Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = allow_flashcall ? (flags | 1) : (flags & ~1); -flags = current_number != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = allow_flashcall ? (flags | 1) : (flags & ~1); + flags = current_number != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -allow_flashcall = (flags & 1) != 0; -phone_number = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -current_number = BoolUtil.Deserialize(br); -else -current_number = null; + allow_flashcall = (flags & 1) != 0; + phone_number = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + current_number = BoolUtil.Deserialize(br); + else + current_number = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(phone_number,bw); -if ((flags & 1) != 0) -BoolUtil.Serialize(current_number.Value,bw); + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs b/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs index 5abe7be..f1b4824 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSendConfirmPhoneCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(353818557)] + [TLObject(353818557)] public class TLRequestSendConfirmPhoneCode : TLMethod { public override int Constructor @@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account } } - public int flags {get;set;} - public bool allow_flashcall {get;set;} - public string hash {get;set;} - public bool? current_number {get;set;} - public Auth.TLSentCode Response{ get; set;} + public int flags { get; set; } + public bool allow_flashcall { get; set; } + public string hash { get; set; } + public bool? current_number { get; set; } + public Auth.TLSentCode Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = allow_flashcall ? (flags | 1) : (flags & ~1); -flags = current_number != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = allow_flashcall ? (flags | 1) : (flags & ~1); + flags = current_number != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -allow_flashcall = (flags & 1) != 0; -hash = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -current_number = BoolUtil.Deserialize(br); -else -current_number = null; + allow_flashcall = (flags & 1) != 0; + hash = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + current_number = BoolUtil.Deserialize(br); + else + current_number = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(hash,bw); -if ((flags & 1) != 0) -BoolUtil.Serialize(current_number.Value,bw); + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs index 64b6cb7..c76328e 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSetAccountTTL.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(608323678)] + [TLObject(608323678)] public class TLRequestSetAccountTTL : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public TLAccountDaysTTL ttl {get;set;} - public bool Response{ get; set;} + public TLAccountDaysTTL ttl { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(ttl,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(ttl, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs index 25d6f4a..3349bef 100644 --- a/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs +++ b/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-906486552)] + [TLObject(-906486552)] public class TLRequestSetPrivacy : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public TLAbsInputPrivacyKey key {get;set;} - public TLVector rules {get;set;} - public Account.TLPrivacyRules Response{ get; set;} + public TLAbsInputPrivacyKey key { get; set; } + public TLVector rules { get; set; } + public Account.TLPrivacyRules Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br); -rules = (TLVector)ObjectUtils.DeserializeVector(br); + rules = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(key,bw); -ObjectUtils.SerializeObject(rules,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(key, bw); + ObjectUtils.SerializeObject(rules, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs index f805f78..32c7d5a 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUnregisterDevice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1707432768)] + [TLObject(1707432768)] public class TLRequestUnregisterDevice : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public int token_type {get;set;} - public string token {get;set;} - public bool Response{ get; set;} + public int token_type { get; set; } + public string token { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { token_type = br.ReadInt32(); -token = StringUtil.Deserialize(br); + token = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(token_type); -StringUtil.Serialize(token,bw); + StringUtil.Serialize(token, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs index 40b70f7..949ce63 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateDeviceLocked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(954152242)] + [TLObject(954152242)] public class TLRequestUpdateDeviceLocked : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public int period {get;set;} - public bool Response{ get; set;} + public int period { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(period); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs index 75ca0eb..f8e7fef 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-2067899501)] + [TLObject(-2067899501)] public class TLRequestUpdateNotifySettings : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public TLAbsInputNotifyPeer peer {get;set;} - public TLInputPeerNotifySettings settings {get;set;} - public bool Response{ get; set;} + public TLAbsInputNotifyPeer peer { get; set; } + public TLInputPeerNotifySettings settings { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br); -settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br); + settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(settings,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(settings, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs index 74892e1..84f7cd5 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdatePasswordSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(-92517498)] + [TLObject(-92517498)] public class TLRequestUpdatePasswordSettings : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account } } - public byte[] current_password_hash {get;set;} - public Account.TLPasswordInputSettings new_settings {get;set;} - public bool Response{ get; set;} + public byte[] current_password_hash { get; set; } + public Account.TLPasswordInputSettings new_settings { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { current_password_hash = BytesUtil.Deserialize(br); -new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br); + new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(current_password_hash,bw); -ObjectUtils.SerializeObject(new_settings,bw); + bw.Write(Constructor); + BytesUtil.Serialize(current_password_hash, bw); + ObjectUtils.SerializeObject(new_settings, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs index 2d4333b..067357d 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateProfile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(2018596725)] + [TLObject(2018596725)] public class TLRequestUpdateProfile : TLMethod { public override int Constructor @@ -18,60 +18,60 @@ namespace TeleSharp.TL.Account } } - public int flags {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public string about {get;set;} - public TLAbsUser Response{ get; set;} + public int flags { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public string about { get; set; } + public TLAbsUser Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = first_name != null ? (flags | 1) : (flags & ~1); -flags = last_name != null ? (flags | 2) : (flags & ~2); -flags = about != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = first_name != null ? (flags | 1) : (flags & ~1); + flags = last_name != null ? (flags | 2) : (flags & ~2); + flags = about != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -if ((flags & 1) != 0) -first_name = StringUtil.Deserialize(br); -else -first_name = null; + if ((flags & 1) != 0) + first_name = StringUtil.Deserialize(br); + else + first_name = null; -if ((flags & 2) != 0) -last_name = StringUtil.Deserialize(br); -else -last_name = null; + if ((flags & 2) != 0) + last_name = StringUtil.Deserialize(br); + else + last_name = null; -if ((flags & 4) != 0) -about = StringUtil.Deserialize(br); -else -about = null; + if ((flags & 4) != 0) + about = StringUtil.Deserialize(br); + else + about = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -if ((flags & 1) != 0) -StringUtil.Serialize(first_name,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(last_name,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(about,bw); + bw.Write(flags); + if ((flags & 1) != 0) + StringUtil.Serialize(first_name, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(last_name, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(about, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs index 5a70bc0..9855eae 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateStatus.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1713919532)] + [TLObject(1713919532)] public class TLRequestUpdateStatus : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public bool offline {get;set;} - public bool Response{ get; set;} + public bool offline { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BoolUtil.Serialize(offline,bw); + bw.Write(Constructor); + BoolUtil.Serialize(offline, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs index 97cf21e..724546c 100644 --- a/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs +++ b/TeleSharp.TL/TL/Account/TLRequestUpdateUsername.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Account { - [TLObject(1040964988)] + [TLObject(1040964988)] public class TLRequestUpdateUsername : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account } } - public string username {get;set;} - public TLAbsUser Response{ get; set;} + public string username { get; set; } + public TLAbsUser Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(username,bw); + bw.Write(Constructor); + StringUtil.Serialize(username, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Account/TLTmpPassword.cs b/TeleSharp.TL/TL/Account/TLTmpPassword.cs new file mode 100644 index 0000000..97afa55 --- /dev/null +++ b/TeleSharp.TL/TL/Account/TLTmpPassword.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Account +{ + [TLObject(-614138572)] + public class TLTmpPassword : TLObject + { + public override int Constructor + { + get + { + return -614138572; + } + } + + 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) + { + bw.Write(Constructor); + BytesUtil.Serialize(tmp_password, bw); + bw.Write(valid_until); + + } + } +} diff --git a/TeleSharp.TL/TL/Auth/TLAuthorization.cs b/TeleSharp.TL/TL/Auth/TLAuthorization.cs index 8060687..c174acd 100644 --- a/TeleSharp.TL/TL/Auth/TLAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-855308010)] + [TLObject(-855308010)] public class TLAuthorization : TLObject { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL.Auth } } - public int flags {get;set;} - public int? tmp_sessions {get;set;} - public TLAbsUser user {get;set;} + public int flags { get; set; } + 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 void ComputeFlags() + { + flags = 0; + flags = tmp_sessions != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -if ((flags & 1) != 0) -tmp_sessions = br.ReadInt32(); -else -tmp_sessions = null; + if ((flags & 1) != 0) + tmp_sessions = br.ReadInt32(); + else + tmp_sessions = null; -user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + user = (TLAbsUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -if ((flags & 1) != 0) -bw.Write(tmp_sessions.Value); -ObjectUtils.SerializeObject(user,bw); + bw.Write(flags); + if ((flags & 1) != 0) + bw.Write(tmp_sessions.Value); + ObjectUtils.SerializeObject(user, bw); } } diff --git a/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs index 6bcc3b2..2a13764 100644 --- a/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs +++ b/TeleSharp.TL/TL/Auth/TLCheckedPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-2128698738)] + [TLObject(-2128698738)] public class TLCheckedPhone : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public bool phone_registered {get;set;} + public bool phone_registered { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BoolUtil.Serialize(phone_registered,bw); + bw.Write(Constructor); + BoolUtil.Serialize(phone_registered, bw); } } diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs index 7e8110a..2c7e702 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeCall.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1948046307)] + [TLObject(1948046307)] public class TLCodeTypeCall : TLAbsCodeType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs index 01f3dca..8a08af4 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeFlashCall.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(577556219)] + [TLObject(577556219)] public class TLCodeTypeFlashCall : TLAbsCodeType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs index c7ff712..c7279cd 100644 --- a/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs +++ b/TeleSharp.TL/TL/Auth/TLCodeTypeSms.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1923290508)] + [TLObject(1923290508)] public class TLCodeTypeSms : TLAbsCodeType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs index 7a2b924..3ea43ca 100644 --- a/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLExportedAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-543777747)] + [TLObject(-543777747)] public class TLExportedAuthorization : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Auth } } - public int id {get;set;} - public byte[] bytes {get;set;} + public int id { get; set; } + public byte[] bytes { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -BytesUtil.Serialize(bytes,bw); + BytesUtil.Serialize(bytes, bw); } } diff --git a/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs index 75fdbb9..ea805f6 100644 --- a/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs +++ b/TeleSharp.TL/TL/Auth/TLPasswordRecovery.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(326715557)] + [TLObject(326715557)] public class TLPasswordRecovery : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public string email_pattern {get;set;} + public string email_pattern { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(email_pattern,bw); + bw.Write(Constructor); + StringUtil.Serialize(email_pattern, bw); } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs index eb72bfd..227ab01 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestBindTempAuthKey.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-841733627)] + [TLObject(-841733627)] public class TLRequestBindTempAuthKey : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Auth } } - public long perm_auth_key_id {get;set;} - public long nonce {get;set;} - public int expires_at {get;set;} - public byte[] encrypted_message {get;set;} - public bool Response{ get; set;} + public long perm_auth_key_id { get; set; } + public long nonce { get; set; } + public int expires_at { get; set; } + public byte[] encrypted_message { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { perm_auth_key_id = br.ReadInt64(); -nonce = br.ReadInt64(); -expires_at = br.ReadInt32(); -encrypted_message = BytesUtil.Deserialize(br); + nonce = br.ReadInt64(); + expires_at = br.ReadInt32(); + encrypted_message = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(perm_auth_key_id); -bw.Write(nonce); -bw.Write(expires_at); -BytesUtil.Serialize(encrypted_message,bw); + bw.Write(nonce); + bw.Write(expires_at); + BytesUtil.Serialize(encrypted_message, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs index 0c7f61d..8f567ae 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCancelCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(520357240)] + [TLObject(520357240)] public class TLRequestCancelCode : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth } } - public string phone_number {get;set;} - public string phone_code_hash {get;set;} - public bool Response{ get; set;} + public string phone_number { get; set; } + public string phone_code_hash { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -phone_code_hash = StringUtil.Deserialize(br); + phone_code_hash = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(phone_code_hash,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(phone_code_hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs index 4b28ef0..b728dec 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPassword.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(174260510)] + [TLObject(174260510)] public class TLRequestCheckPassword : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth } } - public byte[] password_hash {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public byte[] password_hash { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(password_hash,bw); + bw.Write(Constructor); + BytesUtil.Serialize(password_hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs index 2930bfe..b29e89e 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestCheckPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1877286395)] + [TLObject(1877286395)] public class TLRequestCheckPhone : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth } } - public string phone_number {get;set;} - public Auth.TLCheckedPhone Response{ get; set;} + public string phone_number { get; set; } + public Auth.TLCheckedPhone Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs b/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs index d88431f..a9e7bca 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestDropTempAuthKeys.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-1907842680)] + [TLObject(-1907842680)] public class TLRequestDropTempAuthKeys : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth } } - public TLVector except_auth_keys {get;set;} - public bool Response{ get; set;} + public TLVector except_auth_keys { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(except_auth_keys,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(except_auth_keys, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs index 065e81a..b629c81 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestExportAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-440401971)] + [TLObject(-440401971)] public class TLRequestExportAuthorization : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth } } - public int dc_id {get;set;} - public Auth.TLExportedAuthorization Response{ get; set;} + public int dc_id { get; set; } + public Auth.TLExportedAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(dc_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs index d77e720..d0718a4 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestImportAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-470837741)] + [TLObject(-470837741)] public class TLRequestImportAuthorization : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth } } - public int id {get;set;} - public byte[] bytes {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public int id { get; set; } + public byte[] bytes { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -BytesUtil.Serialize(bytes,bw); + BytesUtil.Serialize(bytes, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs index a6d6e05..1ad936e 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestImportBotAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1738800940)] + [TLObject(1738800940)] public class TLRequestImportBotAuthorization : TLMethod { public override int Constructor @@ -18,42 +18,42 @@ namespace TeleSharp.TL.Auth } } - public int flags {get;set;} - public int api_id {get;set;} - public string api_hash {get;set;} - public string bot_auth_token {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public int flags { get; set; } + public int api_id { get; set; } + public string api_hash { get; set; } + public string bot_auth_token { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - flags = 0; + public void ComputeFlags() + { + flags = 0; - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -api_id = br.ReadInt32(); -api_hash = StringUtil.Deserialize(br); -bot_auth_token = StringUtil.Deserialize(br); + api_id = br.ReadInt32(); + api_hash = StringUtil.Deserialize(br); + bot_auth_token = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(api_id); -StringUtil.Serialize(api_hash,bw); -StringUtil.Serialize(bot_auth_token,bw); + bw.Write(flags); + bw.Write(api_id); + StringUtil.Serialize(api_hash, bw); + StringUtil.Serialize(bot_auth_token, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs index bad6f1c..7a885f5 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestLogOut.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1461180992)] + [TLObject(1461180992)] public class TLRequestLogOut : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth } } - public bool Response{ get; set;} + public bool Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs index 1172549..4a2aa4f 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestRecoverPassword.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1319464594)] + [TLObject(1319464594)] public class TLRequestRecoverPassword : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth } } - public string code {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public string code { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(code,bw); + bw.Write(Constructor); + StringUtil.Serialize(code, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs index bf6660c..c4679da 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestRequestPasswordRecovery.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-661144474)] + [TLObject(-661144474)] public class TLRequestRequestPasswordRecovery : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth } } - public Auth.TLPasswordRecovery Response{ get; set;} + public Auth.TLPasswordRecovery Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs index 88fa179..221e937 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestResendCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1056025023)] + [TLObject(1056025023)] public class TLRequestResendCode : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth } } - public string phone_number {get;set;} - public string phone_code_hash {get;set;} - public Auth.TLSentCode Response{ get; set;} + public string phone_number { get; set; } + public string phone_code_hash { get; set; } + public Auth.TLSentCode Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -phone_code_hash = StringUtil.Deserialize(br); + phone_code_hash = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(phone_code_hash,bw); + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs index c6d9a51..aee5013 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestResetAuthorizations.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-1616179942)] + [TLObject(-1616179942)] public class TLRequestResetAuthorizations : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth } } - public bool Response{ get; set;} + public bool Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs index ddb8efe..bb956ef 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSendCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-2035355412)] + [TLObject(-2035355412)] public class TLRequestSendCode : TLMethod { public override int Constructor @@ -18,55 +18,55 @@ namespace TeleSharp.TL.Auth } } - public int flags {get;set;} - public bool allow_flashcall {get;set;} - public string phone_number {get;set;} - public bool? current_number {get;set;} - public int api_id {get;set;} - public string api_hash {get;set;} - public Auth.TLSentCode Response{ get; set;} + public int flags { get; set; } + public bool allow_flashcall { get; set; } + public string phone_number { get; set; } + public bool? current_number { get; set; } + public int api_id { get; set; } + public string api_hash { get; set; } + public Auth.TLSentCode Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = allow_flashcall ? (flags | 1) : (flags & ~1); -flags = current_number != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = allow_flashcall ? (flags | 1) : (flags & ~1); + flags = current_number != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -allow_flashcall = (flags & 1) != 0; -phone_number = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -current_number = BoolUtil.Deserialize(br); -else -current_number = null; + allow_flashcall = (flags & 1) != 0; + phone_number = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + current_number = BoolUtil.Deserialize(br); + else + current_number = null; -api_id = br.ReadInt32(); -api_hash = StringUtil.Deserialize(br); + api_id = br.ReadInt32(); + api_hash = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(phone_number,bw); -if ((flags & 1) != 0) -BoolUtil.Serialize(current_number.Value,bw); -bw.Write(api_id); -StringUtil.Serialize(api_hash,bw); + StringUtil.Serialize(phone_number, bw); + if ((flags & 1) != 0) + BoolUtil.Serialize(current_number.Value, bw); + bw.Write(api_id); + StringUtil.Serialize(api_hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs index eae4082..420509b 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSendInvites.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1998331287)] + [TLObject(1998331287)] public class TLRequestSendInvites : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth } } - public TLVector phone_numbers {get;set;} - public string message {get;set;} - public bool Response{ get; set;} + public TLVector phone_numbers { get; set; } + public string message { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_numbers = (TLVector)ObjectUtils.DeserializeVector(br); -message = StringUtil.Deserialize(br); + message = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(phone_numbers,bw); -StringUtil.Serialize(message,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(phone_numbers, bw); + StringUtil.Serialize(message, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs index e6ab344..0dc2184 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSignIn.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-1126886015)] + [TLObject(-1126886015)] public class TLRequestSignIn : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Auth } } - public string phone_number {get;set;} - public string phone_code_hash {get;set;} - public string phone_code {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public string phone_number { get; set; } + public string phone_code_hash { get; set; } + public string phone_code { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -phone_code_hash = StringUtil.Deserialize(br); -phone_code = StringUtil.Deserialize(br); + phone_code_hash = StringUtil.Deserialize(br); + phone_code = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(phone_code_hash,bw); -StringUtil.Serialize(phone_code,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(phone_code_hash, bw); + StringUtil.Serialize(phone_code, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs index de55845..0fd17db 100644 --- a/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs +++ b/TeleSharp.TL/TL/Auth/TLRequestSignUp.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(453408308)] + [TLObject(453408308)] public class TLRequestSignUp : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Auth } } - public string phone_number {get;set;} - public string phone_code_hash {get;set;} - public string phone_code {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public Auth.TLAuthorization Response{ get; set;} + public string phone_number { get; set; } + public string phone_code_hash { get; set; } + public string phone_code { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public Auth.TLAuthorization Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -phone_code_hash = StringUtil.Deserialize(br); -phone_code = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); + phone_code_hash = StringUtil.Deserialize(br); + phone_code = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(phone_code_hash,bw); -StringUtil.Serialize(phone_code,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(phone_code_hash, bw); + StringUtil.Serialize(phone_code, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Auth/TLSentCode.cs b/TeleSharp.TL/TL/Auth/TLSentCode.cs index fd33414..610d964 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCode.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1577067778)] + [TLObject(1577067778)] public class TLSentCode : TLObject { public override int Constructor @@ -18,54 +18,54 @@ namespace TeleSharp.TL.Auth } } - public int flags {get;set;} - public bool phone_registered {get;set;} - public Auth.TLAbsSentCodeType type {get;set;} - public string phone_code_hash {get;set;} - public Auth.TLAbsCodeType next_type {get;set;} - public int? timeout {get;set;} + public int flags { get; set; } + public bool phone_registered { get; set; } + public Auth.TLAbsSentCodeType type { get; set; } + public string phone_code_hash { get; set; } + public Auth.TLAbsCodeType next_type { get; set; } + public int? timeout { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = phone_registered ? (flags | 1) : (flags & ~1); -flags = next_type != null ? (flags | 2) : (flags & ~2); -flags = timeout != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = phone_registered ? (flags | 1) : (flags & ~1); + flags = next_type != null ? (flags | 2) : (flags & ~2); + flags = timeout != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -phone_registered = (flags & 1) != 0; -type = (Auth.TLAbsSentCodeType)ObjectUtils.DeserializeObject(br); -phone_code_hash = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -next_type = (Auth.TLAbsCodeType)ObjectUtils.DeserializeObject(br); -else -next_type = null; + phone_registered = (flags & 1) != 0; + type = (Auth.TLAbsSentCodeType)ObjectUtils.DeserializeObject(br); + phone_code_hash = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + next_type = (Auth.TLAbsCodeType)ObjectUtils.DeserializeObject(br); + else + next_type = null; -if ((flags & 4) != 0) -timeout = br.ReadInt32(); -else -timeout = null; + if ((flags & 4) != 0) + timeout = br.ReadInt32(); + else + timeout = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(type,bw); -StringUtil.Serialize(phone_code_hash,bw); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(next_type,bw); -if ((flags & 4) != 0) -bw.Write(timeout.Value); + ObjectUtils.SerializeObject(type, bw); + StringUtil.Serialize(phone_code_hash, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(next_type, bw); + if ((flags & 4) != 0) + bw.Write(timeout.Value); } } diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs index 42511bf..5a487c3 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeApp.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1035688326)] + [TLObject(1035688326)] public class TLSentCodeTypeApp : TLAbsSentCodeType { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public int length {get;set;} + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(length); } diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs index a470688..920ae40 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeCall.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(1398007207)] + [TLObject(1398007207)] public class TLSentCodeTypeCall : TLAbsSentCodeType { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public int length {get;set;} + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(length); } diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs index 8f25207..47bdbc5 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeFlashCall.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-1425815847)] + [TLObject(-1425815847)] public class TLSentCodeTypeFlashCall : TLAbsSentCodeType { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public string pattern {get;set;} + public string pattern { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(pattern,bw); + bw.Write(Constructor); + StringUtil.Serialize(pattern, bw); } } diff --git a/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs index af9aa39..2af8d3f 100644 --- a/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs +++ b/TeleSharp.TL/TL/Auth/TLSentCodeTypeSms.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Auth { - [TLObject(-1073693790)] + [TLObject(-1073693790)] public class TLSentCodeTypeSms : TLAbsSentCodeType { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth } } - public int length {get;set;} + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(length); } diff --git a/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs b/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs new file mode 100644 index 0000000..9ba080c --- /dev/null +++ b/TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Bots +{ + [TLObject(-434028723)] + public class TLRequestAnswerWebhookJSONQuery : TLMethod + { + public override int Constructor + { + get + { + return -434028723; + } + } + + public long query_id { get; set; } + 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) + { + bw.Write(Constructor); + bw.Write(query_id); + ObjectUtils.SerializeObject(data, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs b/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs new file mode 100644 index 0000000..af13b0a --- /dev/null +++ b/TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Bots +{ + [TLObject(-1440257555)] + public class TLRequestSendCustomRequest : TLMethod + { + public override int Constructor + { + get + { + return -1440257555; + } + } + + public string custom_method { get; set; } + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(custom_method, bw); + ObjectUtils.SerializeObject(@params, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLDataJSON)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs index 4e4f9ca..543b4fe 100644 --- a/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipant.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-791039645)] + [TLObject(-791039645)] public class TLChannelParticipant : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Channels } } - public TLAbsChannelParticipant participant {get;set;} - public TLVector users {get;set;} + public TLAbsChannelParticipant participant { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { participant = (TLAbsChannelParticipant)ObjectUtils.DeserializeObject(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(participant,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(participant, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs index 2e0e203..127e352 100644 --- a/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs +++ b/TeleSharp.TL/TL/Channels/TLChannelParticipants.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-177282392)] + [TLObject(-177282392)] public class TLChannelParticipants : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Channels } } - public int count {get;set;} - public TLVector participants {get;set;} - public TLVector users {get;set;} + public int count { get; set; } + public TLVector participants { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -participants = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + participants = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(participants,bw); -ObjectUtils.SerializeObject(users,bw); + ObjectUtils.SerializeObject(participants, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs index c5350b0..d22f195 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestCheckUsername.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(283557164)] + [TLObject(283557164)] public class TLRequestCheckUsername : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public string username {get;set;} - public bool Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public string username { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -username = StringUtil.Deserialize(br); + username = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -StringUtil.Serialize(username,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + StringUtil.Serialize(username, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs index beba3e5..4d47168 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestCreateChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-192332417)] + [TLObject(-192332417)] public class TLRequestCreateChannel : TLMethod { public override int Constructor @@ -18,47 +18,47 @@ namespace TeleSharp.TL.Channels } } - public int flags {get;set;} - public bool broadcast {get;set;} - public bool megagroup {get;set;} - public string title {get;set;} - public string about {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool broadcast { get; set; } + public bool megagroup { get; set; } + public string title { get; set; } + public string about { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = broadcast ? (flags | 1) : (flags & ~1); -flags = megagroup ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = broadcast ? (flags | 1) : (flags & ~1); + flags = megagroup ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -broadcast = (flags & 1) != 0; -megagroup = (flags & 2) != 0; -title = StringUtil.Deserialize(br); -about = StringUtil.Deserialize(br); + broadcast = (flags & 1) != 0; + megagroup = (flags & 2) != 0; + title = StringUtil.Deserialize(br); + about = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(about,bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(about, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs index 2176f54..b713f99 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-1072619549)] + [TLObject(-1072619549)] public class TLRequestDeleteChannel : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs index 6b71f67..2b62cac 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-2067661490)] + [TLObject(-2067661490)] public class TLRequestDeleteMessages : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLVector id {get;set;} - public Messages.TLAffectedMessages Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLVector id { get; set; } + public Messages.TLAffectedMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -id = (TLVector)ObjectUtils.DeserializeVector(br); + id = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs index 6c9ed68..2f6c476 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestDeleteUserHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-787622117)] + [TLObject(-787622117)] public class TLRequestDeleteUserHistory : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputUser user_id {get;set;} - public Messages.TLAffectedHistory Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputUser user_id { get; set; } + public Messages.TLAffectedHistory Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(user_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(user_id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs index 73deacb..9a188b5 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAbout.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(333610782)] + [TLObject(333610782)] public class TLRequestEditAbout : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public string about {get;set;} - public bool Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public string about { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -about = StringUtil.Deserialize(br); + about = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -StringUtil.Serialize(about,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + StringUtil.Serialize(about, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs index 8f622bb..6f4e265 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditAdmin.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-344583728)] + [TLObject(-344583728)] public class TLRequestEditAdmin : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputUser user_id {get;set;} - public TLAbsChannelParticipantRole role {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputUser user_id { get; set; } + public TLAbsChannelParticipantRole role { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(user_id,bw); -ObjectUtils.SerializeObject(role,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(user_id, bw); + ObjectUtils.SerializeObject(role, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs index a368863..fe472ce 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-248621111)] + [TLObject(-248621111)] public class TLRequestEditPhoto : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputChatPhoto photo {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputChatPhoto photo { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); + photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(photo,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(photo, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs index a56cf8f..5b8dfcd 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestEditTitle.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(1450044624)] + [TLObject(1450044624)] public class TLRequestEditTitle : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public string title {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public string title { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -title = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -StringUtil.Serialize(title,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + StringUtil.Serialize(title, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs index e0ba434..76a3b28 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestExportInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-950663035)] + [TLObject(-950663035)] public class TLRequestExportInvite : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsExportedChatInvite Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsExportedChatInvite Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs index fec91eb..216add2 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestExportMessageLink.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-934882771)] + [TLObject(-934882771)] public class TLRequestExportMessageLink : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public int id {get;set;} - public TLExportedMessageLink Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public int id { get; set; } + public TLExportedMessageLink Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); + id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -bw.Write(id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + bw.Write(id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs b/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs index a419020..0d771b5 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetAdminedPublicChannels.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-1920105769)] + [TLObject(-1920105769)] public class TLRequestGetAdminedPublicChannels : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Channels } } - public Messages.TLChats Response{ get; set;} + public Messages.TLAbsChats Response { get; set; } - public void ComputeFlags() - { - - } + 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.TLChats)ObjectUtils.DeserializeObject(br); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs index 8f74dc9..cbbbb61 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetChannels.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(176122811)] + [TLObject(176122811)] public class TLRequestGetChannels : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLVector id {get;set;} - public Messages.TLChats Response{ get; set;} + public TLVector id { get; set; } + public Messages.TLAbsChats Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs index 9320d29..db5a4d1 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetFullChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(141781513)] + [TLObject(141781513)] public class TLRequestGetFullChannel : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public Messages.TLChatFull Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public Messages.TLChatFull Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs index fafda4e..2eafe53 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-1814580409)] + [TLObject(-1814580409)] public class TLRequestGetMessages : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLVector id {get;set;} - public Messages.TLAbsMessages Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLVector id { get; set; } + public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -id = (TLVector)ObjectUtils.DeserializeVector(br); + id = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs index 762a058..96ef93b 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipant.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(1416484774)] + [TLObject(1416484774)] public class TLRequestGetParticipant : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputUser user_id {get;set;} - public Channels.TLChannelParticipant Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputUser user_id { get; set; } + public Channels.TLChannelParticipant Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(user_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(user_id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs index bff796d..b2099b0 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestGetParticipants.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(618237842)] + [TLObject(618237842)] public class TLRequestGetParticipants : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsChannelParticipantsFilter filter {get;set;} - public int offset {get;set;} - public int limit {get;set;} - public Channels.TLChannelParticipants Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsChannelParticipantsFilter filter { get; set; } + public int offset { get; set; } + public int limit { get; set; } + public Channels.TLChannelParticipants Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br); -offset = br.ReadInt32(); -limit = br.ReadInt32(); + filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br); + offset = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(filter,bw); -bw.Write(offset); -bw.Write(limit); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(filter, bw); + bw.Write(offset); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs index c753f4a..2f2b8ae 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestInviteToChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(429865580)] + [TLObject(429865580)] public class TLRequestInviteToChannel : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLVector users {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLVector users { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(users, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs index 0192b98..2fd7439 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestJoinChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(615851205)] + [TLObject(615851205)] public class TLRequestJoinChannel : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs index 25830ac..5b5bc58 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestKickFromChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-1502421484)] + [TLObject(-1502421484)] public class TLRequestKickFromChannel : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputUser user_id {get;set;} - public bool kicked {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputUser user_id { get; set; } + public bool kicked { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -kicked = BoolUtil.Deserialize(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + kicked = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(user_id,bw); -BoolUtil.Serialize(kicked,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(user_id, bw); + BoolUtil.Serialize(kicked, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs index 8a8964a..c62dd0a 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestLeaveChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-130635115)] + [TLObject(-130635115)] public class TLRequestLeaveChannel : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs index 6f96159..7837b31 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestReadHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-871347913)] + [TLObject(-871347913)] public class TLRequestReadHistory : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public int max_id {get;set;} - public bool Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public int max_id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -max_id = br.ReadInt32(); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -bw.Write(max_id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + bw.Write(max_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs index b383a08..ea78032 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestReportSpam.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-32999408)] + [TLObject(-32999408)] public class TLRequestReportSpam : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public TLAbsInputUser user_id {get;set;} - public TLVector id {get;set;} - public bool Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public TLAbsInputUser user_id { get; set; } + public TLVector id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -id = (TLVector)ObjectUtils.DeserializeVector(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + id = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(user_id,bw); -ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(user_id, bw); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs index 38d757c..e0401e8 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleInvites.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(1231065863)] + [TLObject(1231065863)] public class TLRequestToggleInvites : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public bool enabled {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public bool enabled { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -enabled = BoolUtil.Deserialize(br); + enabled = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -BoolUtil.Serialize(enabled,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + BoolUtil.Serialize(enabled, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs index 25c2540..f215360 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestToggleSignatures.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(527021574)] + [TLObject(527021574)] public class TLRequestToggleSignatures : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public bool enabled {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public bool enabled { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -enabled = BoolUtil.Deserialize(br); + enabled = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -BoolUtil.Serialize(enabled,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + BoolUtil.Serialize(enabled, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs index 195d6f5..8c0724a 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdatePinnedMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(-1490162350)] + [TLObject(-1490162350)] public class TLRequestUpdatePinnedMessage : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Channels } } - public int flags {get;set;} - public bool silent {get;set;} - public TLAbsInputChannel channel {get;set;} - public int id {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool silent { get; set; } + public TLAbsInputChannel channel { get; set; } + public int id { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = silent ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = silent ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -silent = (flags & 1) != 0; -channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); + silent = (flags & 1) != 0; + channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(channel,bw); -bw.Write(id); + ObjectUtils.SerializeObject(channel, bw); + bw.Write(id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs index 0942575..012e52d 100644 --- a/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs +++ b/TeleSharp.TL/TL/Channels/TLRequestUpdateUsername.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Channels { - [TLObject(890549214)] + [TLObject(890549214)] public class TLRequestUpdateUsername : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels } } - public TLAbsInputChannel channel {get;set;} - public string username {get;set;} - public bool Response{ get; set;} + public TLAbsInputChannel channel { get; set; } + public string username { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -username = StringUtil.Deserialize(br); + username = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -StringUtil.Serialize(username,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(channel, bw); + StringUtil.Serialize(username, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLBlocked.cs b/TeleSharp.TL/TL/Contacts/TLBlocked.cs index 72971f8..4599bef 100644 --- a/TeleSharp.TL/TL/Contacts/TLBlocked.cs +++ b/TeleSharp.TL/TL/Contacts/TLBlocked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(471043349)] + [TLObject(471043349)] public class TLBlocked : TLAbsBlocked { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Contacts } } - public TLVector blocked {get;set;} - public TLVector users {get;set;} + public TLVector blocked { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { blocked = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(blocked,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(blocked, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs index 98b197e..1e6799c 100644 --- a/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs +++ b/TeleSharp.TL/TL/Contacts/TLBlockedSlice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-1878523231)] + [TLObject(-1878523231)] public class TLBlockedSlice : TLAbsBlocked { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public int count {get;set;} - public TLVector blocked {get;set;} - public TLVector users {get;set;} + public int count { get; set; } + public TLVector blocked { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -blocked = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + blocked = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(blocked,bw); -ObjectUtils.SerializeObject(users,bw); + ObjectUtils.SerializeObject(blocked, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLContacts.cs b/TeleSharp.TL/TL/Contacts/TLContacts.cs index 7bd09df..de8ee75 100644 --- a/TeleSharp.TL/TL/Contacts/TLContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(1871416498)] + [TLObject(1871416498)] public class TLContacts : TLAbsContacts { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Contacts } } - public TLVector contacts {get;set;} - public TLVector users {get;set;} + public TLVector contacts { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { contacts = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(contacts,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(contacts, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs index 338e001..ef9f2bc 100644 --- a/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs +++ b/TeleSharp.TL/TL/Contacts/TLContactsNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-1219778094)] + [TLObject(-1219778094)] public class TLContactsNotModified : TLAbsContacts { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Contacts } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLFound.cs b/TeleSharp.TL/TL/Contacts/TLFound.cs index e223945..5bb1057 100644 --- a/TeleSharp.TL/TL/Contacts/TLFound.cs +++ b/TeleSharp.TL/TL/Contacts/TLFound.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(446822276)] + [TLObject(446822276)] public class TLFound : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public TLVector results {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLVector results { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { results = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(results,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(results, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs index 7e23ad6..1825722 100644 --- a/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-1387117803)] + [TLObject(-1387117803)] public class TLImportedContacts : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public TLVector imported {get;set;} - public TLVector retry_contacts {get;set;} - public TLVector users {get;set;} + public TLVector imported { get; set; } + public TLVector retry_contacts { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { imported = (TLVector)ObjectUtils.DeserializeVector(br); -retry_contacts = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + retry_contacts = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(imported,bw); -ObjectUtils.SerializeObject(retry_contacts,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(imported, bw); + ObjectUtils.SerializeObject(retry_contacts, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLLink.cs b/TeleSharp.TL/TL/Contacts/TLLink.cs index 34924ca..59c1e93 100644 --- a/TeleSharp.TL/TL/Contacts/TLLink.cs +++ b/TeleSharp.TL/TL/Contacts/TLLink.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(986597452)] + [TLObject(986597452)] public class TLLink : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsContactLink my_link {get;set;} - public TLAbsContactLink foreign_link {get;set;} - public TLAbsUser user {get;set;} + public TLAbsContactLink my_link { get; set; } + public TLAbsContactLink foreign_link { get; set; } + public TLAbsUser user { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); -foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); -user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); + user = (TLAbsUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(my_link,bw); -ObjectUtils.SerializeObject(foreign_link,bw); -ObjectUtils.SerializeObject(user,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(my_link, bw); + ObjectUtils.SerializeObject(foreign_link, bw); + ObjectUtils.SerializeObject(user, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs index ae9ce8f..b2934d9 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(858475004)] + [TLObject(858475004)] public class TLRequestBlock : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsInputUser id {get;set;} - public bool Response{ get; set;} + public TLAbsInputUser id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs index a2c5406..3920cf2 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-1902823612)] + [TLObject(-1902823612)] public class TLRequestDeleteContact : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsInputUser id {get;set;} - public Contacts.TLLink Response{ get; set;} + public TLAbsInputUser id { get; set; } + public Contacts.TLLink Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs index 8eb56a1..9691678 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestDeleteContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(1504393374)] + [TLObject(1504393374)] public class TLRequestDeleteContacts : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public TLVector id {get;set;} - public bool Response{ get; set;} + public TLVector id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs index 6b639ef..cafdaee 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestExportCard.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-2065352905)] + [TLObject(-2065352905)] public class TLRequestExportCard : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Contacts } } - public TLVector Response{ get; set;} + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs index e4babd3..466b2bd 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetBlocked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-176409329)] + [TLObject(-176409329)] public class TLRequestGetBlocked : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Contacts } } - public int offset {get;set;} - public int limit {get;set;} - public Contacts.TLAbsBlocked Response{ get; set;} + public int offset { get; set; } + public int limit { get; set; } + public Contacts.TLAbsBlocked Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -limit = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(limit); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsBlocked)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs index 924edc1..1d5a242 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(583445000)] + [TLObject(583445000)] public class TLRequestGetContacts : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public string hash {get;set;} - public Contacts.TLAbsContacts Response{ get; set;} + public string hash { get; set; } + public Contacts.TLAbsContacts Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(hash,bw); + bw.Write(Constructor); + StringUtil.Serialize(hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsContacts)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs index 6773589..aff110f 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetStatuses.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-995929106)] + [TLObject(-995929106)] public class TLRequestGetStatuses : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Contacts } } - public TLVector Response{ get; set;} + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); + + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs index d6ce936..7419a63 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestGetTopPeers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-728224331)] + [TLObject(-728224331)] public class TLRequestGetTopPeers : TLMethod { public override int Constructor @@ -18,62 +18,66 @@ namespace TeleSharp.TL.Contacts } } - public int flags {get;set;} - public bool correspondents {get;set;} - public bool bots_pm {get;set;} - public bool bots_inline {get;set;} - public bool groups {get;set;} - public bool channels {get;set;} - public int offset {get;set;} - public int limit {get;set;} - public int hash {get;set;} - public Contacts.TLAbsTopPeers Response{ get; set;} + public int flags { get; set; } + public bool correspondents { get; set; } + public bool bots_pm { get; set; } + public bool bots_inline { get; set; } + public bool phone_calls { get; set; } + public bool groups { get; set; } + public bool channels { get; set; } + public int offset { get; set; } + public int limit { get; set; } + public int hash { get; set; } + public Contacts.TLAbsTopPeers Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = correspondents ? (flags | 1) : (flags & ~1); -flags = bots_pm ? (flags | 2) : (flags & ~2); -flags = bots_inline ? (flags | 4) : (flags & ~4); -flags = groups ? (flags | 1024) : (flags & ~1024); -flags = channels ? (flags | 32768) : (flags & ~32768); + public void ComputeFlags() + { + flags = 0; + flags = correspondents ? (flags | 1) : (flags & ~1); + flags = bots_pm ? (flags | 2) : (flags & ~2); + flags = bots_inline ? (flags | 4) : (flags & ~4); + flags = phone_calls ? (flags | 8) : (flags & ~8); + flags = groups ? (flags | 1024) : (flags & ~1024); + flags = channels ? (flags | 32768) : (flags & ~32768); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -correspondents = (flags & 1) != 0; -bots_pm = (flags & 2) != 0; -bots_inline = (flags & 4) != 0; -groups = (flags & 1024) != 0; -channels = (flags & 32768) != 0; -offset = br.ReadInt32(); -limit = br.ReadInt32(); -hash = br.ReadInt32(); + correspondents = (flags & 1) != 0; + bots_pm = (flags & 2) != 0; + bots_inline = (flags & 4) != 0; + phone_calls = (flags & 8) != 0; + groups = (flags & 1024) != 0; + channels = (flags & 32768) != 0; + offset = br.ReadInt32(); + limit = br.ReadInt32(); + hash = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(offset); -bw.Write(limit); -bw.Write(hash); + + bw.Write(offset); + bw.Write(limit); + bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLAbsTopPeers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs index f22efbf..1347969 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportCard.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(1340184318)] + [TLObject(1340184318)] public class TLRequestImportCard : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public TLVector export_card {get;set;} - public TLAbsUser Response{ get; set;} + public TLVector export_card { get; set; } + public TLAbsUser Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(export_card,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(export_card, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUser)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs index c42497d..19b0cc3 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestImportContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-634342611)] + [TLObject(-634342611)] public class TLRequestImportContacts : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Contacts } } - public TLVector contacts {get;set;} - public bool replace {get;set;} - public Contacts.TLImportedContacts Response{ get; set;} + public TLVector contacts { get; set; } + public bool replace { get; set; } + public Contacts.TLImportedContacts Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { contacts = (TLVector)ObjectUtils.DeserializeVector(br); -replace = BoolUtil.Deserialize(br); + replace = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(contacts,bw); -BoolUtil.Serialize(replace,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(contacts, bw); + BoolUtil.Serialize(replace, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLImportedContacts)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs index 45ffb0f..58f3435 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestResetTopPeerRating.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(451113900)] + [TLObject(451113900)] public class TLRequestResetTopPeerRating : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsTopPeerCategory category {get;set;} - public TLAbsInputPeer peer {get;set;} - public bool Response{ get; set;} + public TLAbsTopPeerCategory category { get; set; } + public TLAbsInputPeer peer { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br); -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(category,bw); -ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(category, bw); + ObjectUtils.SerializeObject(peer, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs index 9a014f1..ef6e22a 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestResolveUsername.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-113456221)] + [TLObject(-113456221)] public class TLRequestResolveUsername : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public string username {get;set;} - public Contacts.TLResolvedPeer Response{ get; set;} + public string username { get; set; } + public Contacts.TLResolvedPeer Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(username,bw); + bw.Write(Constructor); + StringUtil.Serialize(username, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLResolvedPeer)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs index 4b74eb2..59133fe 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestSearch.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(301470424)] + [TLObject(301470424)] public class TLRequestSearch : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Contacts } } - public string q {get;set;} - public int limit {get;set;} - public Contacts.TLFound Response{ get; set;} + public string q { get; set; } + public int limit { get; set; } + public Contacts.TLFound Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { q = StringUtil.Deserialize(br); -limit = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(q,bw); -bw.Write(limit); + bw.Write(Constructor); + StringUtil.Serialize(q, bw); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Contacts.TLFound)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs index c9f23a7..8457ce1 100644 --- a/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs +++ b/TeleSharp.TL/TL/Contacts/TLRequestUnblock.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-448724803)] + [TLObject(-448724803)] public class TLRequestUnblock : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsInputUser id {get;set;} - public bool Response{ get; set;} + public TLAbsInputUser id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Contacts public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs index 8b7bf6a..ddff6e0 100644 --- a/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs +++ b/TeleSharp.TL/TL/Contacts/TLResolvedPeer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(2131196633)] + [TLObject(2131196633)] public class TLResolvedPeer : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public TLAbsPeer peer {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLAbsPeer peer { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeers.cs b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs index 56a37c3..fbe48f5 100644 --- a/TeleSharp.TL/TL/Contacts/TLTopPeers.cs +++ b/TeleSharp.TL/TL/Contacts/TLTopPeers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(1891070632)] + [TLObject(1891070632)] public class TLTopPeers : TLAbsTopPeers { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts } } - public TLVector categories {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLVector categories { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { categories = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(categories,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(categories, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs index b84f3f7..792627b 100644 --- a/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs +++ b/TeleSharp.TL/TL/Contacts/TLTopPeersNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Contacts { - [TLObject(-567906571)] + [TLObject(-567906571)] public class TLTopPeersNotModified : TLAbsTopPeers { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Contacts } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Help/TLAppUpdate.cs b/TeleSharp.TL/TL/Help/TLAppUpdate.cs index 3eb811a..299e15a 100644 --- a/TeleSharp.TL/TL/Help/TLAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLAppUpdate.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-1987579119)] + [TLObject(-1987579119)] public class TLAppUpdate : TLAbsAppUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL.Help } } - public int id {get;set;} - public bool critical {get;set;} - public string url {get;set;} - public string text {get;set;} + public int id { get; set; } + public bool critical { get; set; } + public string url { get; set; } + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -critical = BoolUtil.Deserialize(br); -url = StringUtil.Deserialize(br); -text = StringUtil.Deserialize(br); + critical = BoolUtil.Deserialize(br); + url = StringUtil.Deserialize(br); + text = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -BoolUtil.Serialize(critical,bw); -StringUtil.Serialize(url,bw); -StringUtil.Serialize(text,bw); + BoolUtil.Serialize(critical, bw); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/Help/TLInviteText.cs b/TeleSharp.TL/TL/Help/TLInviteText.cs index 178843b..4b76e71 100644 --- a/TeleSharp.TL/TL/Help/TLInviteText.cs +++ b/TeleSharp.TL/TL/Help/TLInviteText.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(415997816)] + [TLObject(415997816)] public class TLInviteText : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Help } } - public string message {get;set;} + public string message { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Help public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(message,bw); + bw.Write(Constructor); + StringUtil.Serialize(message, bw); } } diff --git a/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs index b0302d3..ad0619f 100644 --- a/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLNoAppUpdate.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-1000708810)] + [TLObject(-1000708810)] public class TLNoAppUpdate : TLAbsAppUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Help } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs index 0e2016d..25b73b9 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppChangelog.cs @@ -7,39 +7,42 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-1189013126)] + [TLObject(-1877938321)] public class TLRequestGetAppChangelog : TLMethod { public override int Constructor { get { - return -1189013126; + return -1877938321; } } - public Help.TLAbsAppChangelog Response{ get; set;} + public string prev_app_version { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + prev_app_version = StringUtil.Deserialize(br); + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - - } - public override void deserializeResponse(BinaryReader br) - { - Response = (Help.TLAbsAppChangelog)ObjectUtils.DeserializeObject(br); + bw.Write(Constructor); + StringUtil.Serialize(prev_app_version, bw); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs index 5ef4294..bd489ba 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetAppUpdate.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-1372724842)] + [TLObject(-1372724842)] public class TLRequestGetAppUpdate : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public Help.TLAbsAppUpdate Response{ get; set;} + public Help.TLAbsAppUpdate Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLAbsAppUpdate)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs b/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs new file mode 100644 index 0000000..858e937 --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(1375900482)] + public class TLRequestGetCdnConfig : TLMethod + { + public override int Constructor + { + get + { + return 1375900482; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs index 287cc59..f202dc5 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetConfig.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-990308245)] + [TLObject(-990308245)] public class TLRequestGetConfig : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public TLConfig Response{ get; set;} + public TLConfig Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLConfig)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs index 5265114..9e38248 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetInviteText.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(1295590211)] + [TLObject(1295590211)] public class TLRequestGetInviteText : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public Help.TLInviteText Response{ get; set;} + public Help.TLInviteText Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLInviteText)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs index 85122d4..49185c3 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetNearestDc.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(531836966)] + [TLObject(531836966)] public class TLRequestGetNearestDc : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public TLNearestDc Response{ get; set;} + public TLNearestDc Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLNearestDc)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs index c0861ec..7bd4530 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetSupport.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-1663104819)] + [TLObject(-1663104819)] public class TLRequestGetSupport : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public Help.TLSupport Response{ get; set;} + public Help.TLSupport Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLSupport)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs index 01e46eb..2b692f2 100644 --- a/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs +++ b/TeleSharp.TL/TL/Help/TLRequestGetTermsOfService.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(889286899)] + [TLObject(889286899)] public class TLRequestGetTermsOfService : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Help } } - public Help.TLTermsOfService Response{ get; set;} + public Help.TLTermsOfService Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Help.TLTermsOfService)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs index 85739c5..b39eeb1 100644 --- a/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs +++ b/TeleSharp.TL/TL/Help/TLRequestSaveAppLog.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(1862465352)] + [TLObject(1862465352)] public class TLRequestSaveAppLog : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Help } } - public TLVector events {get;set;} - public bool Response{ get; set;} + public TLVector events { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Help public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(events,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(events, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs b/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs new file mode 100644 index 0000000..8d20aba --- /dev/null +++ b/TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Help +{ + [TLObject(-333262899)] + public class TLRequestSetBotUpdatesStatus : TLMethod + { + public override int Constructor + { + get + { + return -333262899; + } + } + + public int pending_updates_count { get; set; } + 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) + { + bw.Write(Constructor); + bw.Write(pending_updates_count); + StringUtil.Serialize(message, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLSupport.cs b/TeleSharp.TL/TL/Help/TLSupport.cs index 5c29fdd..7166a81 100644 --- a/TeleSharp.TL/TL/Help/TLSupport.cs +++ b/TeleSharp.TL/TL/Help/TLSupport.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(398898678)] + [TLObject(398898678)] public class TLSupport : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Help } } - public string phone_number {get;set;} - public TLAbsUser user {get;set;} + public string phone_number { get; set; } + public TLAbsUser user { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + user = (TLAbsUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -ObjectUtils.SerializeObject(user,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + ObjectUtils.SerializeObject(user, bw); } } diff --git a/TeleSharp.TL/TL/Help/TLTermsOfService.cs b/TeleSharp.TL/TL/Help/TLTermsOfService.cs index bd476c3..2d20496 100644 --- a/TeleSharp.TL/TL/Help/TLTermsOfService.cs +++ b/TeleSharp.TL/TL/Help/TLTermsOfService.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Help { - [TLObject(-236044656)] + [TLObject(-236044656)] public class TLTermsOfService : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Help } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Help public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs b/TeleSharp.TL/TL/Messages/TLAbsChats.cs similarity index 67% rename from TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs rename to TeleSharp.TL/TL/Messages/TLAbsChats.cs index ee86c4f..06a5553 100644 --- a/TeleSharp.TL/TL/Help/TLAbsAppChangelog.cs +++ b/TeleSharp.TL/TL/Messages/TLAbsChats.cs @@ -5,9 +5,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; -namespace TeleSharp.TL.Help +namespace TeleSharp.TL.Messages { - public abstract class TLAbsAppChangelog : TLObject + public abstract class TLAbsChats : TLObject { } } diff --git a/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs index feab37e..e185393 100644 --- a/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLAffectedHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1269012015)] + [TLObject(-1269012015)] public class TLAffectedHistory : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages } } - public int pts {get;set;} - public int pts_count {get;set;} - public int offset {get;set;} + public int pts { get; set; } + public int pts_count { get; set; } + public int offset { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { pts = br.ReadInt32(); -pts_count = br.ReadInt32(); -offset = br.ReadInt32(); + pts_count = br.ReadInt32(); + offset = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(pts); -bw.Write(pts_count); -bw.Write(offset); + bw.Write(pts_count); + bw.Write(offset); } } diff --git a/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs index 3c14ba4..20448f1 100644 --- a/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLAffectedMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-2066640507)] + [TLObject(-2066640507)] public class TLAffectedMessages : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int pts {get;set;} - public int pts_count {get;set;} + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(pts); -bw.Write(pts_count); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/Messages/TLAllStickers.cs b/TeleSharp.TL/TL/Messages/TLAllStickers.cs index 4538c7b..f4b679d 100644 --- a/TeleSharp.TL/TL/Messages/TLAllStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLAllStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-302170017)] + [TLObject(-302170017)] public class TLAllStickers : TLAbsAllStickers { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public TLVector sets {get;set;} + public int hash { get; set; } + public TLVector sets { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt32(); -sets = (TLVector)ObjectUtils.DeserializeVector(br); + sets = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); -ObjectUtils.SerializeObject(sets,bw); + ObjectUtils.SerializeObject(sets, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs index 465b0c1..2df94dc 100644 --- a/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLAllStickersNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-395967805)] + [TLObject(-395967805)] public class TLAllStickersNotModified : TLAbsAllStickers { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs b/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs index 3323a85..44d543e 100644 --- a/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLArchivedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1338747336)] + [TLObject(1338747336)] public class TLArchivedStickers : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int count {get;set;} - public TLVector sets {get;set;} + public int count { get; set; } + public TLVector sets { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -sets = (TLVector)ObjectUtils.DeserializeVector(br); + sets = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(sets,bw); + ObjectUtils.SerializeObject(sets, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs index 36bc164..d6b8d2f 100644 --- a/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLBotCallbackAnswer.cs @@ -7,63 +7,66 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1324486149)] + [TLObject(911761060)] public class TLBotCallbackAnswer : TLObject { public override int Constructor { get { - return -1324486149; + return 911761060; } } - public int flags {get;set;} - public bool alert {get;set;} - public bool has_url {get;set;} - public string message {get;set;} - public string url {get;set;} + public int flags { get; set; } + public bool alert { get; set; } + public bool has_url { get; set; } + public string message { get; set; } + public string url { get; set; } + public int cache_time { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = alert ? (flags | 2) : (flags & ~2); -flags = has_url ? (flags | 8) : (flags & ~8); -flags = message != null ? (flags | 1) : (flags & ~1); -flags = url != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = alert ? (flags | 2) : (flags & ~2); + 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) { flags = br.ReadInt32(); -alert = (flags & 2) != 0; -has_url = (flags & 8) != 0; -if ((flags & 1) != 0) -message = StringUtil.Deserialize(br); -else -message = null; + alert = (flags & 2) != 0; + has_url = (flags & 8) != 0; + if ((flags & 1) != 0) + message = StringUtil.Deserialize(br); + else + message = null; -if ((flags & 4) != 0) -url = StringUtil.Deserialize(br); -else -url = null; + if ((flags & 4) != 0) + url = StringUtil.Deserialize(br); + else + url = null; + cache_time = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -if ((flags & 1) != 0) -StringUtil.Serialize(message,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(url,bw); + if ((flags & 1) != 0) + StringUtil.Serialize(message, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(url, bw); + bw.Write(cache_time); } } diff --git a/TeleSharp.TL/TL/Messages/TLBotResults.cs b/TeleSharp.TL/TL/Messages/TLBotResults.cs index 47bbdd1..976c8f4 100644 --- a/TeleSharp.TL/TL/Messages/TLBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLBotResults.cs @@ -7,65 +7,68 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(627509670)] + [TLObject(-858565059)] public class TLBotResults : TLObject { public override int Constructor { get { - return 627509670; + return -858565059; } } - public int flags {get;set;} - public bool gallery {get;set;} - public long query_id {get;set;} - public string next_offset {get;set;} - public TLInlineBotSwitchPM switch_pm {get;set;} - public TLVector results {get;set;} + public int flags { get; set; } + public bool gallery { get; set; } + public long query_id { get; set; } + public string next_offset { get; set; } + public TLInlineBotSwitchPM switch_pm { get; set; } + public TLVector results { get; set; } + public 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 void ComputeFlags() + { + flags = 0; + flags = gallery ? (flags | 1) : (flags & ~1); + flags = next_offset != null ? (flags | 2) : (flags & ~2); + flags = switch_pm != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -gallery = (flags & 1) != 0; -query_id = br.ReadInt64(); -if ((flags & 2) != 0) -next_offset = StringUtil.Deserialize(br); -else -next_offset = null; + gallery = (flags & 1) != 0; + query_id = br.ReadInt64(); + if ((flags & 2) != 0) + next_offset = StringUtil.Deserialize(br); + else + next_offset = null; -if ((flags & 4) != 0) -switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); -else -switch_pm = null; + if ((flags & 4) != 0) + switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); + else + switch_pm = null; -results = (TLVector)ObjectUtils.DeserializeVector(br); + results = (TLVector)ObjectUtils.DeserializeVector(br); + cache_time = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(query_id); -if ((flags & 2) != 0) -StringUtil.Serialize(next_offset,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(switch_pm,bw); -ObjectUtils.SerializeObject(results,bw); + bw.Write(query_id); + if ((flags & 2) != 0) + StringUtil.Serialize(next_offset, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(switch_pm, bw); + ObjectUtils.SerializeObject(results, bw); + bw.Write(cache_time); } } diff --git a/TeleSharp.TL/TL/Messages/TLChannelMessages.cs b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs index 8245c35..c3330a7 100644 --- a/TeleSharp.TL/TL/Messages/TLChannelMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLChannelMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1725551049)] + [TLObject(-1725551049)] public class TLChannelMessages : TLAbsMessages { public override int Constructor @@ -18,41 +18,41 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public int pts {get;set;} - public int count {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public int flags { get; set; } + public int pts { get; set; } + public int count { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - flags = 0; + public void ComputeFlags() + { + flags = 0; - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -pts = br.ReadInt32(); -count = br.ReadInt32(); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + pts = br.ReadInt32(); + count = br.ReadInt32(); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(pts); -bw.Write(count); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(flags); + bw.Write(pts); + bw.Write(count); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLChatFull.cs b/TeleSharp.TL/TL/Messages/TLChatFull.cs index cc33086..60f65d4 100644 --- a/TeleSharp.TL/TL/Messages/TLChatFull.cs +++ b/TeleSharp.TL/TL/Messages/TLChatFull.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-438840932)] + [TLObject(-438840932)] public class TLChatFull : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages } } - public TLAbsChatFull full_chat {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLAbsChatFull full_chat { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { full_chat = (TLAbsChatFull)ObjectUtils.DeserializeObject(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(full_chat,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(full_chat, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLChats.cs b/TeleSharp.TL/TL/Messages/TLChats.cs index 5b9580e..9740ca9 100644 --- a/TeleSharp.TL/TL/Messages/TLChats.cs +++ b/TeleSharp.TL/TL/Messages/TLChats.cs @@ -7,8 +7,8 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1694474197)] - public class TLChats : TLObject + [TLObject(1694474197)] + public class TLChats : TLAbsChats { public override int Constructor { @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages } } - public TLVector chats {get;set;} + public TLVector chats { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(chats,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(chats, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLChatsSlice.cs b/TeleSharp.TL/TL/Messages/TLChatsSlice.cs new file mode 100644 index 0000000..ea804a8 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLChatsSlice.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1663561404)] + public class TLChatsSlice : TLAbsChats + { + public override int Constructor + { + get + { + return -1663561404; + } + } + + 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) + { + bw.Write(Constructor); + bw.Write(count); + ObjectUtils.SerializeObject(chats, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLDhConfig.cs b/TeleSharp.TL/TL/Messages/TLDhConfig.cs index 8eecfa3..7c8ccd7 100644 --- a/TeleSharp.TL/TL/Messages/TLDhConfig.cs +++ b/TeleSharp.TL/TL/Messages/TLDhConfig.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(740433629)] + [TLObject(740433629)] public class TLDhConfig : TLAbsDhConfig { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages } } - public int g {get;set;} - public byte[] p {get;set;} - public int version {get;set;} - public byte[] random {get;set;} + public int g { get; set; } + public byte[] p { get; set; } + public int version { get; set; } + public byte[] random { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { g = br.ReadInt32(); -p = BytesUtil.Deserialize(br); -version = br.ReadInt32(); -random = BytesUtil.Deserialize(br); + p = BytesUtil.Deserialize(br); + version = br.ReadInt32(); + random = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(g); -BytesUtil.Serialize(p,bw); -bw.Write(version); -BytesUtil.Serialize(random,bw); + BytesUtil.Serialize(p, bw); + bw.Write(version); + BytesUtil.Serialize(random, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs index e866617..1df1c4d 100644 --- a/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLDhConfigNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1058912715)] + [TLObject(-1058912715)] public class TLDhConfigNotModified : TLAbsDhConfig { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages } } - public byte[] random {get;set;} + public byte[] random { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(random,bw); + bw.Write(Constructor); + BytesUtil.Serialize(random, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLDialogs.cs b/TeleSharp.TL/TL/Messages/TLDialogs.cs index 03ba3dc..1984165 100644 --- a/TeleSharp.TL/TL/Messages/TLDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLDialogs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(364538944)] + [TLObject(364538944)] public class TLDialogs : TLAbsDialogs { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages } } - public TLVector dialogs {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLVector dialogs { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { dialogs = (TLVector)ObjectUtils.DeserializeVector(br); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(dialogs,bw); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(dialogs, bw); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs index a91aacc..4fbb86c 100644 --- a/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs +++ b/TeleSharp.TL/TL/Messages/TLDialogsSlice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1910543603)] + [TLObject(1910543603)] public class TLDialogsSlice : TLAbsDialogs { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL.Messages } } - public int count {get;set;} - public TLVector dialogs {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public int count { get; set; } + public TLVector dialogs { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -dialogs = (TLVector)ObjectUtils.DeserializeVector(br); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + dialogs = (TLVector)ObjectUtils.DeserializeVector(br); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(dialogs,bw); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + ObjectUtils.SerializeObject(dialogs, bw); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs index de86954..f2ccdc6 100644 --- a/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLFeaturedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-123893531)] + [TLObject(-123893531)] public class TLFeaturedStickers : TLAbsFeaturedStickers { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public TLVector sets {get;set;} - public TLVector unread {get;set;} + public int hash { get; set; } + public TLVector sets { get; set; } + public TLVector unread { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt32(); -sets = (TLVector)ObjectUtils.DeserializeVector(br); -unread = (TLVector)ObjectUtils.DeserializeVector(br); + sets = (TLVector)ObjectUtils.DeserializeVector(br); + unread = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); -ObjectUtils.SerializeObject(sets,bw); -ObjectUtils.SerializeObject(unread,bw); + ObjectUtils.SerializeObject(sets, bw); + ObjectUtils.SerializeObject(unread, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs index 9d55e9e..d7f5113 100644 --- a/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLFeaturedStickersNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(82699215)] + [TLObject(82699215)] public class TLFeaturedStickersNotModified : TLAbsFeaturedStickers { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Messages/TLFoundGifs.cs b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs index 75dd79c..b67e0a9 100644 --- a/TeleSharp.TL/TL/Messages/TLFoundGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLFoundGifs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1158290442)] + [TLObject(1158290442)] public class TLFoundGifs : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int next_offset {get;set;} - public TLVector results {get;set;} + public int next_offset { get; set; } + public TLVector results { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { next_offset = br.ReadInt32(); -results = (TLVector)ObjectUtils.DeserializeVector(br); + results = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(next_offset); -ObjectUtils.SerializeObject(results,bw); + ObjectUtils.SerializeObject(results, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLHighScores.cs b/TeleSharp.TL/TL/Messages/TLHighScores.cs index c355734..57c272f 100644 --- a/TeleSharp.TL/TL/Messages/TLHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLHighScores.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1707344487)] + [TLObject(-1707344487)] public class TLHighScores : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public TLVector scores {get;set;} - public TLVector users {get;set;} + public TLVector scores { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { scores = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(scores,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(scores, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs index fb31914..c9e3e8d 100644 --- a/TeleSharp.TL/TL/Messages/TLMessageEditData.cs +++ b/TeleSharp.TL/TL/Messages/TLMessageEditData.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(649453030)] + [TLObject(649453030)] public class TLMessageEditData : TLObject { public override int Constructor @@ -18,29 +18,29 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool caption {get;set;} + public int flags { get; set; } + public bool caption { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = caption ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = caption ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -caption = (flags & 1) != 0; + caption = (flags & 1) != 0; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); } diff --git a/TeleSharp.TL/TL/Messages/TLMessages.cs b/TeleSharp.TL/TL/Messages/TLMessages.cs index 3a24c7e..44d039b 100644 --- a/TeleSharp.TL/TL/Messages/TLMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1938715001)] + [TLObject(-1938715001)] public class TLMessages : TLAbsMessages { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages } } - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs index 7f3bb07..adf83c0 100644 --- a/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs +++ b/TeleSharp.TL/TL/Messages/TLMessagesSlice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(189033187)] + [TLObject(189033187)] public class TLMessagesSlice : TLAbsMessages { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages } } - public int count {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public int count { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs index 346ca83..72252cc 100644 --- a/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLPeerDialogs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(863093588)] + [TLObject(863093588)] public class TLPeerDialogs : TLObject { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL.Messages } } - public TLVector dialogs {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} - public Updates.TLState state {get;set;} + public TLVector dialogs { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } + public Updates.TLState state { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { dialogs = (TLVector)ObjectUtils.DeserializeVector(br); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); -state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); + state = (Updates.TLState)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(dialogs,bw); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); -ObjectUtils.SerializeObject(state,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(dialogs, bw); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); + ObjectUtils.SerializeObject(state, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRecentStickers.cs index a380db5..8917b62 100644 --- a/TeleSharp.TL/TL/Messages/TLRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRecentStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1558317424)] + [TLObject(1558317424)] public class TLRecentStickers : TLAbsRecentStickers { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public TLVector stickers {get;set;} + public int hash { get; set; } + public TLVector stickers { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt32(); -stickers = (TLVector)ObjectUtils.DeserializeVector(br); + stickers = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); -ObjectUtils.SerializeObject(stickers,bw); + ObjectUtils.SerializeObject(stickers, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs index 6cc8064..06493b7 100644 --- a/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLRecentStickersNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(186120336)] + [TLObject(186120336)] public class TLRecentStickersNotModified : TLAbsRecentStickers { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs index c85fc89..84e73e1 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestAcceptEncryption.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1035731989)] + [TLObject(1035731989)] public class TLRequestAcceptEncryption : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public byte[] g_b {get;set;} - public long key_fingerprint {get;set;} - public TLAbsEncryptedChat Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public byte[] g_b { get; set; } + public long key_fingerprint { get; set; } + public TLAbsEncryptedChat Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -g_b = BytesUtil.Deserialize(br); -key_fingerprint = br.ReadInt64(); + g_b = BytesUtil.Deserialize(br); + key_fingerprint = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -BytesUtil.Serialize(g_b,bw); -bw.Write(key_fingerprint); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + BytesUtil.Serialize(g_b, bw); + bw.Write(key_fingerprint); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs index 0611477..4a5fe93 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestAddChatUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-106911223)] + [TLObject(-106911223)] public class TLRequestAddChatUser : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsInputUser user_id {get;set;} - public int fwd_limit {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public TLAbsInputUser user_id { get; set; } + public int fwd_limit { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -fwd_limit = br.ReadInt32(); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + fwd_limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -ObjectUtils.SerializeObject(user_id,bw); -bw.Write(fwd_limit); + ObjectUtils.SerializeObject(user_id, bw); + bw.Write(fwd_limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs index 03322af..12ca662 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestCheckChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1051570619)] + [TLObject(1051570619)] public class TLRequestCheckChatInvite : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public string hash {get;set;} - public TLAbsChatInvite Response{ get; set;} + public string hash { get; set; } + public TLAbsChatInvite Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(hash,bw); + bw.Write(Constructor); + StringUtil.Serialize(hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs index d4feda9..b82cfa3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestClearRecentStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1986437075)] + [TLObject(-1986437075)] public class TLRequestClearRecentStickers : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool attached {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool attached { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = attached ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = attached ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -attached = (flags & 1) != 0; + attached = (flags & 1) != 0; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs index 0fa9aad..d376c40 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestCreateChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(164303470)] + [TLObject(164303470)] public class TLRequestCreateChat : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLVector users {get;set;} - public string title {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLVector users { get; set; } + public string title { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { users = (TLVector)ObjectUtils.DeserializeVector(br); -title = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); -StringUtil.Serialize(title,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); + StringUtil.Serialize(title, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs index 4ee9960..2245e31 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteChatUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-530505962)] + [TLObject(-530505962)] public class TLRequestDeleteChatUser : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsInputUser user_id {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public TLAbsInputUser user_id { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -ObjectUtils.SerializeObject(user_id,bw); + ObjectUtils.SerializeObject(user_id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs index 8be7935..380aa8b 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(469850889)] + [TLObject(469850889)] public class TLRequestDeleteHistory : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool just_clear {get;set;} - public TLAbsInputPeer peer {get;set;} - public int max_id {get;set;} - public Messages.TLAffectedHistory Response{ get; set;} + public int flags { get; set; } + public bool just_clear { get; set; } + public TLAbsInputPeer peer { get; set; } + public int max_id { get; set; } + public Messages.TLAffectedHistory Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = just_clear ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = just_clear ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -just_clear = (flags & 1) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -max_id = br.ReadInt32(); + just_clear = (flags & 1) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(max_id); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(max_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs index 26c11ed..eab25bd 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDeleteMessages.cs @@ -7,42 +7,51 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1510897371)] + [TLObject(-443640366)] public class TLRequestDeleteMessages : TLMethod { public override int Constructor { get { - return -1510897371; + return -443640366; } } - public TLVector id {get;set;} - public Messages.TLAffectedMessages Response{ get; set;} + public int flags { get; set; } + public bool revoke { get; set; } + public TLVector id { get; set; } + public Messages.TLAffectedMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + flags = 0; + flags = revoke ? (flags | 1) : (flags & ~1); + + } public override void DeserializeBody(BinaryReader br) { + flags = br.ReadInt32(); + revoke = (flags & 1) != 0; id = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs index 49e9cdb..4ca5cb2 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestDiscardEncryption.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-304536635)] + [TLObject(-304536635)] public class TLRequestDiscardEncryption : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public bool Response{ get; set;} + public int chat_id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs index f82faaf..04019ed 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatAdmin.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1444503762)] + [TLObject(-1444503762)] public class TLRequestEditChatAdmin : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsInputUser user_id {get;set;} - public bool is_admin {get;set;} - public bool Response{ get; set;} + public int chat_id { get; set; } + public TLAbsInputUser user_id { get; set; } + public bool is_admin { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -is_admin = BoolUtil.Deserialize(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + is_admin = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -ObjectUtils.SerializeObject(user_id,bw); -BoolUtil.Serialize(is_admin,bw); + ObjectUtils.SerializeObject(user_id, bw); + BoolUtil.Serialize(is_admin, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs index bacaec9..fc28401 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-900957736)] + [TLObject(-900957736)] public class TLRequestEditChatPhoto : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsInputChatPhoto photo {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public TLAbsInputChatPhoto photo { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); + photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -ObjectUtils.SerializeObject(photo,bw); + ObjectUtils.SerializeObject(photo, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs index 3acbed0..93938d3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditChatTitle.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-599447467)] + [TLObject(-599447467)] public class TLRequestEditChatTitle : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public string title {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public string title { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -title = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -StringUtil.Serialize(title,bw); + StringUtil.Serialize(title, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs index 415ca82..e20cc28 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditInlineBotMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(319564933)] + [TLObject(319564933)] public class TLRequestEditInlineBotMessage : TLMethod { public override int Constructor @@ -18,67 +18,67 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public TLInputBotInlineMessageID id {get;set;} - public string message {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} - public TLVector entities {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public TLInputBotInlineMessageID id { get; set; } + public string message { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } + public TLVector entities { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 2) : (flags & ~2); -flags = message != null ? (flags | 2048) : (flags & ~2048); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); -flags = entities != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 2) : (flags & ~2); + flags = message != null ? (flags | 2048) : (flags & ~2048); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); + flags = entities != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 2) != 0; -id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); -if ((flags & 2048) != 0) -message = StringUtil.Deserialize(br); -else -message = null; + no_webpage = (flags & 2) != 0; + id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); + if ((flags & 2048) != 0) + message = StringUtil.Deserialize(br); + else + message = null; -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; -if ((flags & 8) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 8) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(id,bw); -if ((flags & 2048) != 0) -StringUtil.Serialize(message,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(entities,bw); + ObjectUtils.SerializeObject(id, bw); + if ((flags & 2048) != 0) + StringUtil.Serialize(message, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(entities, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs index 2ad157c..2d46b7f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestEditMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-829299510)] + [TLObject(-829299510)] public class TLRequestEditMessage : TLMethod { public override int Constructor @@ -18,70 +18,70 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public TLAbsInputPeer peer {get;set;} - public int id {get;set;} - public string message {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} - public TLVector entities {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public TLAbsInputPeer peer { get; set; } + public int id { get; set; } + public string message { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } + public TLVector entities { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 2) : (flags & ~2); -flags = message != null ? (flags | 2048) : (flags & ~2048); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); -flags = entities != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 2) : (flags & ~2); + flags = message != null ? (flags | 2048) : (flags & ~2048); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); + flags = entities != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 2) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); -if ((flags & 2048) != 0) -message = StringUtil.Deserialize(br); -else -message = null; + no_webpage = (flags & 2) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + id = br.ReadInt32(); + if ((flags & 2048) != 0) + message = StringUtil.Deserialize(br); + else + message = null; -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; -if ((flags & 8) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 8) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(id); -if ((flags & 2048) != 0) -StringUtil.Serialize(message,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(entities,bw); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(id); + if ((flags & 2048) != 0) + StringUtil.Serialize(message, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(entities, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs index 2eafe01..8f91889 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestExportChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(2106086025)] + [TLObject(2106086025)] public class TLRequestExportChatInvite : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsExportedChatInvite Response{ get; set;} + public int chat_id { get; set; } + public TLAbsExportedChatInvite Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs index 7bb988d..47d9adf 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(865483769)] + [TLObject(865483769)] public class TLRequestForwardMessage : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public int id {get;set;} - public long random_id {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public int id { get; set; } + public long random_id { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); -random_id = br.ReadInt64(); + id = br.ReadInt32(); + random_id = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(id); -bw.Write(random_id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(id); + bw.Write(random_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs index 06c469c..cdc9b99 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestForwardMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1888354709)] + [TLObject(1888354709)] public class TLRequestForwardMessages : TLMethod { public override int Constructor @@ -18,57 +18,57 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool silent {get;set;} - public bool background {get;set;} - public bool with_my_score {get;set;} - public TLAbsInputPeer from_peer {get;set;} - public TLVector id {get;set;} - public TLVector random_id {get;set;} - public TLAbsInputPeer to_peer {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool silent { get; set; } + public bool background { get; set; } + public bool with_my_score { get; set; } + public TLAbsInputPeer from_peer { get; set; } + public TLVector id { get; set; } + public TLVector random_id { get; set; } + public TLAbsInputPeer to_peer { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = silent ? (flags | 32) : (flags & ~32); -flags = background ? (flags | 64) : (flags & ~64); -flags = with_my_score ? (flags | 256) : (flags & ~256); + 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) { flags = br.ReadInt32(); -silent = (flags & 32) != 0; -background = (flags & 64) != 0; -with_my_score = (flags & 256) != 0; -from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = (TLVector)ObjectUtils.DeserializeVector(br); -random_id = (TLVector)ObjectUtils.DeserializeVector(br); -to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + silent = (flags & 32) != 0; + background = (flags & 64) != 0; + with_my_score = (flags & 256) != 0; + from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + id = (TLVector)ObjectUtils.DeserializeVector(br); + random_id = (TLVector)ObjectUtils.DeserializeVector(br); + to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(from_peer,bw); -ObjectUtils.SerializeObject(id,bw); -ObjectUtils.SerializeObject(random_id,bw); -ObjectUtils.SerializeObject(to_peer,bw); + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs new file mode 100644 index 0000000..c54d495 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-341307408)] + public class TLRequestGetAllChats : TLMethod + { + public override int Constructor + { + get + { + return -341307408; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs index 8d268c8..322419e 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllDrafts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1782549861)] + [TLObject(1782549861)] public class TLRequestGetAllDrafts : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Messages } } - public TLAbsUpdates Response{ get; set;} + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs index 68c31e0..63cfb2f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAllStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(479598769)] + [TLObject(479598769)] public class TLRequestGetAllStickers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public Messages.TLAbsAllStickers Response{ get; set;} + public int hash { get; set; } + public Messages.TLAbsAllStickers Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs index 3b53dc0..ae0a646 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetArchivedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1475442322)] + [TLObject(1475442322)] public class TLRequestGetArchivedStickers : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool masks {get;set;} - public long offset_id {get;set;} - public int limit {get;set;} - public Messages.TLArchivedStickers Response{ get; set;} + public int flags { get; set; } + public bool masks { get; set; } + public long offset_id { get; set; } + public int limit { get; set; } + public Messages.TLArchivedStickers Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = masks ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = masks ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -masks = (flags & 1) != 0; -offset_id = br.ReadInt64(); -limit = br.ReadInt32(); + masks = (flags & 1) != 0; + offset_id = br.ReadInt64(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(offset_id); -bw.Write(limit); + bw.Write(offset_id); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLArchivedStickers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLArchivedStickers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs index 4af7e75..6c22cd3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetAttachedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-866424884)] + [TLObject(-866424884)] public class TLRequestGetAttachedStickers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputStickeredMedia media {get;set;} - public TLVector Response{ get; set;} + public TLAbsInputStickeredMedia media { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(media,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(media, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs index 2ebe083..5fa3344 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetBotCallbackAnswer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-2130010132)] + [TLObject(-2130010132)] public class TLRequestGetBotCallbackAnswer : TLMethod { public override int Constructor @@ -18,52 +18,52 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool game {get;set;} - public TLAbsInputPeer peer {get;set;} - public int msg_id {get;set;} - public byte[] data {get;set;} - public Messages.TLBotCallbackAnswer Response{ get; set;} + public int flags { get; set; } + public bool game { get; set; } + public TLAbsInputPeer peer { get; set; } + public int msg_id { get; set; } + public byte[] data { get; set; } + public Messages.TLBotCallbackAnswer Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = game ? (flags | 2) : (flags & ~2); -flags = data != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = game ? (flags | 2) : (flags & ~2); + flags = data != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -game = (flags & 2) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -msg_id = br.ReadInt32(); -if ((flags & 1) != 0) -data = BytesUtil.Deserialize(br); -else -data = null; + game = (flags & 2) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + msg_id = br.ReadInt32(); + if ((flags & 1) != 0) + data = BytesUtil.Deserialize(br); + else + data = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(msg_id); -if ((flags & 1) != 0) -BytesUtil.Serialize(data,bw); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(msg_id); + if ((flags & 1) != 0) + BytesUtil.Serialize(data, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs index b9635c4..c0fc6c0 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetChats.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1013621127)] + [TLObject(1013621127)] public class TLRequestGetChats : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLVector id {get;set;} - public Messages.TLChats Response{ get; set;} + public TLVector id { get; set; } + public Messages.TLAbsChats Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs b/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs new file mode 100644 index 0000000..6c796ad --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(218777796)] + public class TLRequestGetCommonChats : TLMethod + { + public override int Constructor + { + get + { + return 218777796; + } + } + + public TLAbsInputUser user_id { get; set; } + public int max_id { get; set; } + public int limit { get; set; } + public Messages.TLAbsChats Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + max_id = br.ReadInt32(); + limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id, bw); + bw.Write(max_id); + bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs index 9a5a71d..8fd09f0 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDhConfig.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(651135312)] + [TLObject(651135312)] public class TLRequestGetDhConfig : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public int version {get;set;} - public int random_length {get;set;} - public Messages.TLAbsDhConfig Response{ get; set;} + public int version { get; set; } + public int random_length { get; set; } + public Messages.TLAbsDhConfig Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { version = br.ReadInt32(); -random_length = br.ReadInt32(); + random_length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(version); -bw.Write(random_length); + bw.Write(random_length); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs index 219e7ac..d600140 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDialogs.cs @@ -7,51 +7,60 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1799878989)] + [TLObject(421243333)] public class TLRequestGetDialogs : TLMethod { public override int Constructor { get { - return 1799878989; + return 421243333; } } - public int offset_date {get;set;} - public int offset_id {get;set;} - public TLAbsInputPeer offset_peer {get;set;} - public int limit {get;set;} - public Messages.TLAbsDialogs Response{ get; set;} + public int flags { get; set; } + public bool exclude_pinned { get; set; } + public int offset_date { get; set; } + public int offset_id { get; set; } + public TLAbsInputPeer offset_peer { get; set; } + public int limit { get; set; } + public Messages.TLAbsDialogs Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + flags = 0; + flags = exclude_pinned ? (flags | 1) : (flags & ~1); + + } public override void DeserializeBody(BinaryReader br) { + flags = br.ReadInt32(); + exclude_pinned = (flags & 1) != 0; offset_date = br.ReadInt32(); -offset_id = br.ReadInt32(); -offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -limit = br.ReadInt32(); + offset_id = br.ReadInt32(); + offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(offset_date); -bw.Write(offset_id); -ObjectUtils.SerializeObject(offset_peer,bw); -bw.Write(limit); + bw.Write(offset_id); + ObjectUtils.SerializeObject(offset_peer, bw); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs index ee2678b..cbfe986 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetDocumentByHash.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(864953444)] + [TLObject(864953444)] public class TLRequestGetDocumentByHash : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public byte[] sha256 {get;set;} - public int size {get;set;} - public string mime_type {get;set;} - public TLAbsDocument Response{ get; set;} + public byte[] sha256 { get; set; } + public int size { get; set; } + public string mime_type { get; set; } + public TLAbsDocument Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { sha256 = BytesUtil.Deserialize(br); -size = br.ReadInt32(); -mime_type = StringUtil.Deserialize(br); + size = br.ReadInt32(); + mime_type = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - BytesUtil.Serialize(sha256,bw); -bw.Write(size); -StringUtil.Serialize(mime_type,bw); + bw.Write(Constructor); + BytesUtil.Serialize(sha256, bw); + bw.Write(size); + StringUtil.Serialize(mime_type, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs index 1b5c873..10f3971 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetFeaturedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(766298703)] + [TLObject(766298703)] public class TLRequestGetFeaturedStickers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public Messages.TLAbsFeaturedStickers Response{ get; set;} + public int hash { get; set; } + public Messages.TLAbsFeaturedStickers Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsFeaturedStickers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsFeaturedStickers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs index 134254f..4265497 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetFullChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(998448230)] + [TLObject(998448230)] public class TLRequestGetFullChat : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public Messages.TLChatFull Response{ get; set;} + public int chat_id { get; set; } + public Messages.TLChatFull Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs b/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs index 90efa41..eed9d7b 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetGameHighScores.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-400399203)] + [TLObject(-400399203)] public class TLRequestGetGameHighScores : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public int id {get;set;} - public TLAbsInputUser user_id {get;set;} - public Messages.TLHighScores Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public int id { get; set; } + public TLAbsInputUser user_id { get; set; } + public Messages.TLHighScores Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + id = br.ReadInt32(); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(id); -ObjectUtils.SerializeObject(user_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(id); + ObjectUtils.SerializeObject(user_id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs index b0fddcd..175f257 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1347868602)] + [TLObject(-1347868602)] public class TLRequestGetHistory : TLMethod { public override int Constructor @@ -18,49 +18,49 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public int offset_id {get;set;} - public int offset_date {get;set;} - public int add_offset {get;set;} - public int limit {get;set;} - public int max_id {get;set;} - public int min_id {get;set;} - public Messages.TLAbsMessages Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public int offset_id { get; set; } + public int offset_date { get; set; } + public int add_offset { get; set; } + public int limit { get; set; } + public int max_id { get; set; } + public int min_id { get; set; } + public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -offset_id = br.ReadInt32(); -offset_date = br.ReadInt32(); -add_offset = br.ReadInt32(); -limit = br.ReadInt32(); -max_id = br.ReadInt32(); -min_id = br.ReadInt32(); + offset_id = br.ReadInt32(); + offset_date = br.ReadInt32(); + add_offset = br.ReadInt32(); + limit = br.ReadInt32(); + max_id = br.ReadInt32(); + min_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(offset_id); -bw.Write(offset_date); -bw.Write(add_offset); -bw.Write(limit); -bw.Write(max_id); -bw.Write(min_id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(offset_id); + bw.Write(offset_date); + bw.Write(add_offset); + bw.Write(limit); + bw.Write(max_id); + bw.Write(min_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs index e9e9dc5..9aca3ed 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetInlineBotResults.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1364105629)] + [TLObject(1364105629)] public class TLRequestGetInlineBotResults : TLMethod { public override int Constructor @@ -18,54 +18,54 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public TLAbsInputUser bot {get;set;} - public TLAbsInputPeer peer {get;set;} - public TLAbsInputGeoPoint geo_point {get;set;} - public string query {get;set;} - public string offset {get;set;} - public Messages.TLBotResults Response{ get; set;} + public int flags { get; set; } + public TLAbsInputUser bot { get; set; } + public TLAbsInputPeer peer { get; set; } + public TLAbsInputGeoPoint geo_point { get; set; } + public string query { get; set; } + public string offset { get; set; } + public Messages.TLBotResults Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = geo_point != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = geo_point != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); -else -geo_point = null; + bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); + else + geo_point = null; -query = StringUtil.Deserialize(br); -offset = StringUtil.Deserialize(br); + query = StringUtil.Deserialize(br); + offset = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(bot,bw); -ObjectUtils.SerializeObject(peer,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(geo_point,bw); -StringUtil.Serialize(query,bw); -StringUtil.Serialize(offset,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(bot, bw); + ObjectUtils.SerializeObject(peer, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(geo_point, bw); + StringUtil.Serialize(query, bw); + StringUtil.Serialize(offset, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLBotResults)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLBotResults)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs b/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs index 2762014..a3cd7c0 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetInlineGameHighScores.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(258170395)] + [TLObject(258170395)] public class TLRequestGetInlineGameHighScores : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLInputBotInlineMessageID id {get;set;} - public TLAbsInputUser user_id {get;set;} - public Messages.TLHighScores Response{ get; set;} + public TLInputBotInlineMessageID id { get; set; } + public TLAbsInputUser user_id { get; set; } + public Messages.TLHighScores Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); -ObjectUtils.SerializeObject(user_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); + ObjectUtils.SerializeObject(user_id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs index 0449515..620e0fc 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMaskStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1706608543)] + [TLObject(1706608543)] public class TLRequestGetMaskStickers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public Messages.TLAbsAllStickers Response{ get; set;} + public int hash { get; set; } + public Messages.TLAbsAllStickers Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs index 33c22cf..523d085 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessageEditData.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-39416522)] + [TLObject(-39416522)] public class TLRequestGetMessageEditData : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public int id {get;set;} - public Messages.TLMessageEditData Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public int id { get; set; } + public Messages.TLMessageEditData Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); + id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs index 62b8b78..b98d3b6 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1109588596)] + [TLObject(1109588596)] public class TLRequestGetMessages : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLVector id {get;set;} - public Messages.TLAbsMessages Response{ get; set;} + public TLVector id { get; set; } + public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs index 33cf44e..2316aff 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetMessagesViews.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-993483427)] + [TLObject(-993483427)] public class TLRequestGetMessagesViews : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public TLVector id {get;set;} - public bool increment {get;set;} - public TLVector Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public TLVector id { get; set; } + public bool increment { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = (TLVector)ObjectUtils.DeserializeVector(br); -increment = BoolUtil.Deserialize(br); + id = (TLVector)ObjectUtils.DeserializeVector(br); + increment = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(id,bw); -BoolUtil.Serialize(increment,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(id, bw); + BoolUtil.Serialize(increment, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs index 22cada7..a721f8c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerDialogs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(764901049)] + [TLObject(764901049)] public class TLRequestGetPeerDialogs : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLVector peers {get;set;} - public Messages.TLPeerDialogs Response{ get; set;} + public TLVector peers { get; set; } + public Messages.TLPeerDialogs Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peers,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peers, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs index 6425006..4d0cd19 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPeerSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(913498268)] + [TLObject(913498268)] public class TLRequestGetPeerSettings : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public TLPeerSettings Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public TLPeerSettings Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLPeerSettings)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLPeerSettings)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs new file mode 100644 index 0000000..f1968bc --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-497756594)] + public class TLRequestGetPinnedDialogs : TLMethod + { + public override int Constructor + { + get + { + return -497756594; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs index bb45759..89d1cad 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetRecentStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1587647177)] + [TLObject(1587647177)] public class TLRequestGetRecentStickers : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool attached {get;set;} - public int hash {get;set;} - public Messages.TLAbsRecentStickers Response{ get; set;} + public int flags { get; set; } + public bool attached { get; set; } + public int hash { get; set; } + public Messages.TLAbsRecentStickers Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = attached ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = attached ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -attached = (flags & 1) != 0; -hash = br.ReadInt32(); + attached = (flags & 1) != 0; + hash = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(hash); + bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsRecentStickers)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsRecentStickers)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs index e53008e..063f180 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetSavedGifs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-2084618926)] + [TLObject(-2084618926)] public class TLRequestGetSavedGifs : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public Messages.TLAbsSavedGifs Response{ get; set;} + public int hash { get; set; } + public Messages.TLAbsSavedGifs Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsSavedGifs)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSavedGifs)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs index 1de03bd..04ad989 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(639215886)] + [TLObject(639215886)] public class TLRequestGetStickerSet : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputStickerSet stickerset {get;set;} - public Messages.TLStickerSet Response{ get; set;} + public TLAbsInputStickerSet stickerset { get; set; } + public Messages.TLStickerSet Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(stickerset,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs b/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs new file mode 100644 index 0000000..3cd060f --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(852135825)] + public class TLRequestGetWebPage : TLMethod + { + public override int Constructor + { + get + { + return 852135825; + } + } + + public string url { get; set; } + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + bw.Write(hash); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs index 67e486c..871483c 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestGetWebPagePreview.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(623001124)] + [TLObject(623001124)] public class TLRequestGetWebPagePreview : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public string message {get;set;} - public TLAbsMessageMedia Response{ get; set;} + public string message { get; set; } + public TLAbsMessageMedia Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(message,bw); + bw.Write(Constructor); + StringUtil.Serialize(message, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs index 391d74a..380802d 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestHideReportSpam.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1460572005)] + [TLObject(-1460572005)] public class TLRequestHideReportSpam : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public bool Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs index 4d4bea4..d4c3a36 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestImportChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1817183516)] + [TLObject(1817183516)] public class TLRequestImportChatInvite : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public string hash {get;set;} - public TLAbsUpdates Response{ get; set;} + public string hash { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(hash,bw); + bw.Write(Constructor); + StringUtil.Serialize(hash, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs index 795c80b..24e5101 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestInstallStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-946871200)] + [TLObject(-946871200)] public class TLRequestInstallStickerSet : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputStickerSet stickerset {get;set;} - public bool archived {get;set;} - public Messages.TLAbsStickerSetInstallResult Response{ get; set;} + public TLAbsInputStickerSet stickerset { get; set; } + public bool archived { get; set; } + public Messages.TLAbsStickerSetInstallResult Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); -archived = BoolUtil.Deserialize(br); + archived = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(stickerset,bw); -BoolUtil.Serialize(archived,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset, bw); + BoolUtil.Serialize(archived, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsStickerSetInstallResult)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsStickerSetInstallResult)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs index c3d81ad..ceb3cd9 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestMigrateChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(363051235)] + [TLObject(363051235)] public class TLRequestMigrateChat : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs index 9a1c4c1..3433f6f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadEncryptedHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(2135648522)] + [TLObject(2135648522)] public class TLRequestReadEncryptedHistory : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public int max_date {get;set;} - public bool Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public int max_date { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -max_date = br.ReadInt32(); + max_date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(max_date); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(max_date); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs b/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs index aee4675..a9330b4 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadFeaturedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1527873830)] + [TLObject(1527873830)] public class TLRequestReadFeaturedStickers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLVector id {get;set;} - public bool Response{ get; set;} + public TLVector id { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs index ff67d2f..e0fa08a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadHistory.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(238054714)] + [TLObject(238054714)] public class TLRequestReadHistory : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public int max_id {get;set;} - public Messages.TLAffectedMessages Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public int max_id { get; set; } + public Messages.TLAffectedMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -max_id = br.ReadInt32(); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(max_id); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(max_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs index 920691a..17777c6 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReadMessageContents.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(916930423)] + [TLObject(916930423)] public class TLRequestReadMessageContents : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLVector id {get;set;} - public Messages.TLAffectedMessages Response{ get; set;} + public TLVector id { get; set; } + public Messages.TLAffectedMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs index 1ea2056..6bb2692 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(94983360)] + [TLObject(94983360)] public class TLRequestReceivedMessages : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int max_id {get;set;} - public TLVector Response{ get; set;} + public int max_id { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(max_id); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs index 24b4f64..1ac2dcf 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReceivedQueue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1436924774)] + [TLObject(1436924774)] public class TLRequestReceivedQueue : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public int max_qts {get;set;} - public TLVector Response{ get; set;} + public int max_qts { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(max_qts); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs b/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs new file mode 100644 index 0000000..04f8397 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-1784678844)] + public class TLRequestReorderPinnedDialogs : TLMethod + { + public override int Constructor + { + get + { + return -1784678844; + } + } + + public int flags { get; set; } + public bool force { get; set; } + 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) + { + flags = br.ReadInt32(); + force = (flags & 1) != 0; + order = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(order, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs index 1162560..4debd3a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReorderStickerSets.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(2016638777)] + [TLObject(2016638777)] public class TLRequestReorderStickerSets : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool masks {get;set;} - public TLVector order {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool masks { get; set; } + public TLVector order { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = masks ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = masks ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -masks = (flags & 1) != 0; -order = (TLVector)ObjectUtils.DeserializeVector(br); + masks = (flags & 1) != 0; + order = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(order,bw); + ObjectUtils.SerializeObject(order, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs new file mode 100644 index 0000000..1e7ac33 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1259113487)] + public class TLRequestReportEncryptedSpam : TLMethod + { + public override int Constructor + { + get + { + return 1259113487; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs index 2543daf..3a0cf83 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestReportSpam.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-820669733)] + [TLObject(-820669733)] public class TLRequestReportSpam : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public bool Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs index e5ff54a..5199e64 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestRequestEncryption.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-162681021)] + [TLObject(-162681021)] public class TLRequestRequestEncryption : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputUser user_id {get;set;} - public int random_id {get;set;} - public byte[] g_a {get;set;} - public TLAbsEncryptedChat Response{ get; set;} + public TLAbsInputUser user_id { get; set; } + public int random_id { get; set; } + public byte[] g_a { get; set; } + public TLAbsEncryptedChat Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt32(); -g_a = BytesUtil.Deserialize(br); + random_id = br.ReadInt32(); + g_a = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(user_id,bw); -bw.Write(random_id); -BytesUtil.Serialize(g_a,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id, bw); + bw.Write(random_id); + BytesUtil.Serialize(g_a, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs index 54a3fe1..c1aa315 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveDraft.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1137057461)] + [TLObject(-1137057461)] public class TLRequestSaveDraft : TLMethod { public override int Constructor @@ -18,61 +18,61 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public int? reply_to_msg_id {get;set;} - public TLAbsInputPeer peer {get;set;} - public string message {get;set;} - public TLVector entities {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public int? reply_to_msg_id { get; set; } + public TLAbsInputPeer peer { get; set; } + public string message { get; set; } + public TLVector entities { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 2) : (flags & ~2); -flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); -flags = entities != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 2) : (flags & ~2); + flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + flags = entities != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 2) != 0; -if ((flags & 1) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + no_webpage = (flags & 2) != 0; + if ((flags & 1) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -message = StringUtil.Deserialize(br); -if ((flags & 8) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + message = StringUtil.Deserialize(br); + if ((flags & 8) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -if ((flags & 1) != 0) -bw.Write(reply_to_msg_id.Value); -ObjectUtils.SerializeObject(peer,bw); -StringUtil.Serialize(message,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(entities,bw); + if ((flags & 1) != 0) + bw.Write(reply_to_msg_id.Value); + ObjectUtils.SerializeObject(peer, bw); + StringUtil.Serialize(message, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(entities, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs index ae0bb17..569f1b4 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveGif.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(846868683)] + [TLObject(846868683)] public class TLRequestSaveGif : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputDocument id {get;set;} - public bool unsave {get;set;} - public bool Response{ get; set;} + public TLAbsInputDocument id { get; set; } + public bool unsave { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); -unsave = BoolUtil.Deserialize(br); + unsave = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); -BoolUtil.Serialize(unsave,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); + BoolUtil.Serialize(unsave, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs b/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs index 189d49a..3f653cc 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSaveRecentSticker.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(958863608)] + [TLObject(958863608)] public class TLRequestSaveRecentSticker : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool attached {get;set;} - public TLAbsInputDocument id {get;set;} - public bool unsave {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool attached { get; set; } + public TLAbsInputDocument id { get; set; } + public bool unsave { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = attached ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = attached ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -attached = (flags & 1) != 0; -id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); -unsave = BoolUtil.Deserialize(br); + attached = (flags & 1) != 0; + id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); + unsave = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(id,bw); -BoolUtil.Serialize(unsave,bw); + ObjectUtils.SerializeObject(id, bw); + BoolUtil.Serialize(unsave, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearch.cs b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs index 7e7aff1..56d10c0 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearch.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearch.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-732523960)] + [TLObject(-732523960)] public class TLRequestSearch : TLMethod { public override int Constructor @@ -18,57 +18,57 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public TLAbsInputPeer peer {get;set;} - public string q {get;set;} - public TLAbsMessagesFilter filter {get;set;} - public int min_date {get;set;} - public int max_date {get;set;} - public int offset {get;set;} - public int max_id {get;set;} - public int limit {get;set;} - public Messages.TLAbsMessages Response{ get; set;} + public int flags { get; set; } + public TLAbsInputPeer peer { get; set; } + public string q { get; set; } + public TLAbsMessagesFilter filter { get; set; } + public int min_date { get; set; } + public int max_date { get; set; } + public int offset { get; set; } + public int max_id { get; set; } + public int limit { get; set; } + public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() - { - flags = 0; + public void ComputeFlags() + { + flags = 0; - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -q = StringUtil.Deserialize(br); -filter = (TLAbsMessagesFilter)ObjectUtils.DeserializeObject(br); -min_date = br.ReadInt32(); -max_date = br.ReadInt32(); -offset = br.ReadInt32(); -max_id = br.ReadInt32(); -limit = br.ReadInt32(); + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + q = StringUtil.Deserialize(br); + filter = (TLAbsMessagesFilter)ObjectUtils.DeserializeObject(br); + min_date = br.ReadInt32(); + max_date = br.ReadInt32(); + offset = br.ReadInt32(); + max_id = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -StringUtil.Serialize(q,bw); -ObjectUtils.SerializeObject(filter,bw); -bw.Write(min_date); -bw.Write(max_date); -bw.Write(offset); -bw.Write(max_id); -bw.Write(limit); + bw.Write(flags); + ObjectUtils.SerializeObject(peer, bw); + StringUtil.Serialize(q, bw); + ObjectUtils.SerializeObject(filter, bw); + bw.Write(min_date); + bw.Write(max_date); + bw.Write(offset); + bw.Write(max_id); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs index db8b15d..363f4c7 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGifs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1080395925)] + [TLObject(-1080395925)] public class TLRequestSearchGifs : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public string q {get;set;} - public int offset {get;set;} - public Messages.TLFoundGifs Response{ get; set;} + public string q { get; set; } + public int offset { get; set; } + public Messages.TLFoundGifs Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { q = StringUtil.Deserialize(br); -offset = br.ReadInt32(); + offset = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(q,bw); -bw.Write(offset); + bw.Write(Constructor); + StringUtil.Serialize(q, bw); + bw.Write(offset); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs index 99e85e1..8974f6f 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSearchGlobal.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1640190800)] + [TLObject(-1640190800)] public class TLRequestSearchGlobal : TLMethod { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages } } - public string q {get;set;} - public int offset_date {get;set;} - public TLAbsInputPeer offset_peer {get;set;} - public int offset_id {get;set;} - public int limit {get;set;} - public Messages.TLAbsMessages Response{ get; set;} + public string q { get; set; } + public int offset_date { get; set; } + public TLAbsInputPeer offset_peer { get; set; } + public int offset_id { get; set; } + public int limit { get; set; } + public Messages.TLAbsMessages Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { q = StringUtil.Deserialize(br); -offset_date = br.ReadInt32(); -offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -offset_id = br.ReadInt32(); -limit = br.ReadInt32(); + offset_date = br.ReadInt32(); + offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + offset_id = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(q,bw); -bw.Write(offset_date); -ObjectUtils.SerializeObject(offset_peer,bw); -bw.Write(offset_id); -bw.Write(limit); + bw.Write(Constructor); + StringUtil.Serialize(q, bw); + bw.Write(offset_date); + ObjectUtils.SerializeObject(offset_peer, bw); + bw.Write(offset_id); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs index c8da3f0..77e54b5 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncrypted.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1451792525)] + [TLObject(-1451792525)] public class TLRequestSendEncrypted : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public long random_id {get;set;} - public byte[] data {get;set;} - public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public long random_id { get; set; } + public byte[] data { get; set; } + public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt64(); -data = BytesUtil.Deserialize(br); + random_id = br.ReadInt64(); + data = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(random_id); -BytesUtil.Serialize(data,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(random_id); + BytesUtil.Serialize(data, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs index 626fa17..6719bd3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1701831834)] + [TLObject(-1701831834)] public class TLRequestSendEncryptedFile : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public long random_id {get;set;} - public byte[] data {get;set;} - public TLAbsInputEncryptedFile file {get;set;} - public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public long random_id { get; set; } + public byte[] data { get; set; } + public TLAbsInputEncryptedFile file { get; set; } + public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt64(); -data = BytesUtil.Deserialize(br); -file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br); + random_id = br.ReadInt64(); + data = BytesUtil.Deserialize(br); + file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(random_id); -BytesUtil.Serialize(data,bw); -ObjectUtils.SerializeObject(file,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(random_id); + BytesUtil.Serialize(data, bw); + ObjectUtils.SerializeObject(file, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs index da6cf18..d67815a 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendEncryptedService.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(852769188)] + [TLObject(852769188)] public class TLRequestSendEncryptedService : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public long random_id {get;set;} - public byte[] data {get;set;} - public Messages.TLAbsSentEncryptedMessage Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public long random_id { get; set; } + public byte[] data { get; set; } + public Messages.TLAbsSentEncryptedMessage Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt64(); -data = BytesUtil.Deserialize(br); + random_id = br.ReadInt64(); + data = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(random_id); -BytesUtil.Serialize(data,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(random_id); + BytesUtil.Serialize(data, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs index 2d928c3..b66c714 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendInlineBotResult.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1318189314)] + [TLObject(-1318189314)] public class TLRequestSendInlineBotResult : TLMethod { public override int Constructor @@ -18,66 +18,66 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool silent {get;set;} - public bool background {get;set;} - public bool clear_draft {get;set;} - public TLAbsInputPeer peer {get;set;} - public int? reply_to_msg_id {get;set;} - public long random_id {get;set;} - public long query_id {get;set;} - public string id {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool silent { get; set; } + public bool background { get; set; } + public bool clear_draft { get; set; } + public TLAbsInputPeer peer { get; set; } + public int? reply_to_msg_id { get; set; } + public long random_id { get; set; } + public long query_id { get; set; } + public string id { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = silent ? (flags | 32) : (flags & ~32); -flags = background ? (flags | 64) : (flags & ~64); -flags = clear_draft ? (flags | 128) : (flags & ~128); -flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = silent ? (flags | 32) : (flags & ~32); + flags = background ? (flags | 64) : (flags & ~64); + flags = clear_draft ? (flags | 128) : (flags & ~128); + flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -silent = (flags & 32) != 0; -background = (flags & 64) != 0; -clear_draft = (flags & 128) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + silent = (flags & 32) != 0; + background = (flags & 64) != 0; + clear_draft = (flags & 128) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -random_id = br.ReadInt64(); -query_id = br.ReadInt64(); -id = StringUtil.Deserialize(br); + random_id = br.ReadInt64(); + query_id = br.ReadInt64(); + id = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + 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); + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs index 1158c33..f4948de 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMedia.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-923703407)] + [TLObject(-923703407)] public class TLRequestSendMedia : TLMethod { public override int Constructor @@ -18,72 +18,72 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool silent {get;set;} - public bool background {get;set;} - public bool clear_draft {get;set;} - public TLAbsInputPeer peer {get;set;} - public int? reply_to_msg_id {get;set;} - public TLAbsInputMedia media {get;set;} - public long random_id {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool silent { get; set; } + public bool background { get; set; } + public bool clear_draft { get; set; } + public TLAbsInputPeer peer { get; set; } + public int? reply_to_msg_id { get; set; } + public TLAbsInputMedia media { get; set; } + public long random_id { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = silent ? (flags | 32) : (flags & ~32); -flags = background ? (flags | 64) : (flags & ~64); -flags = clear_draft ? (flags | 128) : (flags & ~128); -flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = silent ? (flags | 32) : (flags & ~32); + flags = background ? (flags | 64) : (flags & ~64); + flags = clear_draft ? (flags | 128) : (flags & ~128); + flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -silent = (flags & 32) != 0; -background = (flags & 64) != 0; -clear_draft = (flags & 128) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + silent = (flags & 32) != 0; + background = (flags & 64) != 0; + clear_draft = (flags & 128) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt64(); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br); + random_id = br.ReadInt64(); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -if ((flags & 1) != 0) -bw.Write(reply_to_msg_id.Value); -ObjectUtils.SerializeObject(media,bw); -bw.Write(random_id); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + ObjectUtils.SerializeObject(peer, bw); + if ((flags & 1) != 0) + bw.Write(reply_to_msg_id.Value); + ObjectUtils.SerializeObject(media, bw); + bw.Write(random_id); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs index d9188a5..200f910 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSendMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-91733382)] + [TLObject(-91733382)] public class TLRequestSendMessage : TLMethod { public override int Constructor @@ -18,85 +18,85 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public bool silent {get;set;} - public bool background {get;set;} - public bool clear_draft {get;set;} - public TLAbsInputPeer peer {get;set;} - public int? reply_to_msg_id {get;set;} - public string message {get;set;} - public long random_id {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} - public TLVector entities {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public bool silent { get; set; } + public bool background { get; set; } + public bool clear_draft { get; set; } + public TLAbsInputPeer peer { get; set; } + public int? reply_to_msg_id { get; set; } + public string message { get; set; } + public long random_id { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } + public TLVector entities { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 2) : (flags & ~2); -flags = silent ? (flags | 32) : (flags & ~32); -flags = background ? (flags | 64) : (flags & ~64); -flags = clear_draft ? (flags | 128) : (flags & ~128); -flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); -flags = entities != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 2) : (flags & ~2); + flags = silent ? (flags | 32) : (flags & ~32); + flags = background ? (flags | 64) : (flags & ~64); + flags = clear_draft ? (flags | 128) : (flags & ~128); + flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); + flags = entities != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 2) != 0; -silent = (flags & 32) != 0; -background = (flags & 64) != 0; -clear_draft = (flags & 128) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + no_webpage = (flags & 2) != 0; + silent = (flags & 32) != 0; + background = (flags & 64) != 0; + clear_draft = (flags & 128) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -message = StringUtil.Deserialize(br); -random_id = br.ReadInt64(); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + message = StringUtil.Deserialize(br); + random_id = br.ReadInt64(); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; -if ((flags & 8) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 8) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -if ((flags & 1) != 0) -bw.Write(reply_to_msg_id.Value); -StringUtil.Serialize(message,bw); -bw.Write(random_id); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(entities,bw); + ObjectUtils.SerializeObject(peer, bw); + if ((flags & 1) != 0) + bw.Write(reply_to_msg_id.Value); + StringUtil.Serialize(message, bw); + bw.Write(random_id); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(entities, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs index 71b8e6b..4b7e354 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotCallbackAnswer.cs @@ -7,69 +7,72 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-920136629)] + [TLObject(-712043766)] public class TLRequestSetBotCallbackAnswer : TLMethod { public override int Constructor { get { - return -920136629; + return -712043766; } } - public int flags {get;set;} - public bool alert {get;set;} - public long query_id {get;set;} - public string message {get;set;} - public string url {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool alert { get; set; } + public long query_id { get; set; } + public string message { get; set; } + public string url { get; set; } + 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 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) { flags = br.ReadInt32(); -alert = (flags & 2) != 0; -query_id = br.ReadInt64(); -if ((flags & 1) != 0) -message = StringUtil.Deserialize(br); -else -message = null; + alert = (flags & 2) != 0; + query_id = br.ReadInt64(); + if ((flags & 1) != 0) + message = StringUtil.Deserialize(br); + else + message = null; -if ((flags & 4) != 0) -url = StringUtil.Deserialize(br); -else -url = null; + if ((flags & 4) != 0) + url = StringUtil.Deserialize(br); + else + url = null; + cache_time = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(query_id); -if ((flags & 1) != 0) -StringUtil.Serialize(message,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(url,bw); + bw.Write(query_id); + if ((flags & 1) != 0) + StringUtil.Serialize(message, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(url, bw); + bw.Write(cache_time); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs new file mode 100644 index 0000000..7e8fa88 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotPrecheckoutResults.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(163765653)] + public class TLRequestSetBotPrecheckoutResults : TLMethod + { + public override int Constructor + { + get + { + return 163765653; + } + } + + public int flags { get; set; } + public bool success { get; set; } + public long query_id { get; set; } + 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) + { + flags = br.ReadInt32(); + success = (flags & 2) != 0; + query_id = br.ReadInt64(); + if ((flags & 1) != 0) + error = StringUtil.Deserialize(br); + else + error = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + bw.Write(query_id); + if ((flags & 1) != 0) + StringUtil.Serialize(error, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs new file mode 100644 index 0000000..21c32a9 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(-436833542)] + public class TLRequestSetBotShippingResults : TLMethod + { + public override int Constructor + { + get + { + return -436833542; + } + } + + public int flags { get; set; } + public long query_id { get; set; } + public string error { get; set; } + 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) + { + flags = br.ReadInt32(); + query_id = br.ReadInt64(); + if ((flags & 1) != 0) + error = StringUtil.Deserialize(br); + else + error = null; + + if ((flags & 2) != 0) + shipping_options = (TLVector)ObjectUtils.DeserializeVector(br); + else + shipping_options = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(query_id); + if ((flags & 1) != 0) + StringUtil.Serialize(error, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(shipping_options, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs index 0904104..e8a40f7 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetEncryptedTyping.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(2031374829)] + [TLObject(2031374829)] public class TLRequestSetEncryptedTyping : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLInputEncryptedChat peer {get;set;} - public bool typing {get;set;} - public bool Response{ get; set;} + public TLInputEncryptedChat peer { get; set; } + public bool typing { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br); -typing = BoolUtil.Deserialize(br); + typing = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -BoolUtil.Serialize(typing,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + BoolUtil.Serialize(typing, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs b/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs index 423efdd..b2459c3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetGameScore.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1896289088)] + [TLObject(-1896289088)] public class TLRequestSetGameScore : TLMethod { public override int Constructor @@ -18,49 +18,53 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool edit_message {get;set;} - public TLAbsInputPeer peer {get;set;} - public int id {get;set;} - public TLAbsInputUser user_id {get;set;} - public int score {get;set;} - public TLAbsUpdates Response{ get; set;} + public int flags { get; set; } + public bool edit_message { get; set; } + public bool force { get; set; } + public TLAbsInputPeer peer { get; set; } + public int id { get; set; } + public TLAbsInputUser user_id { get; set; } + public int score { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = edit_message ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = edit_message ? (flags | 1) : (flags & ~1); + flags = force ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -edit_message = (flags & 1) != 0; -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -id = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -score = br.ReadInt32(); + edit_message = (flags & 1) != 0; + force = (flags & 2) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + id = br.ReadInt32(); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + score = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(id); -ObjectUtils.SerializeObject(user_id,bw); -bw.Write(score); + + 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); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs index 8f835b9..152f9b9 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetInlineBotResults.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-346119674)] + [TLObject(-346119674)] public class TLRequestSetInlineBotResults : TLMethod { public override int Constructor @@ -18,68 +18,68 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool gallery {get;set;} - public bool @private {get;set;} - public long query_id {get;set;} - public TLVector results {get;set;} - public int cache_time {get;set;} - public string next_offset {get;set;} - public TLInlineBotSwitchPM switch_pm {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool gallery { get; set; } + public bool @private { get; set; } + public long query_id { get; set; } + public TLVector results { get; set; } + public int cache_time { get; set; } + public string next_offset { get; set; } + public TLInlineBotSwitchPM switch_pm { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = gallery ? (flags | 1) : (flags & ~1); -flags = @private ? (flags | 2) : (flags & ~2); -flags = next_offset != null ? (flags | 4) : (flags & ~4); -flags = switch_pm != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = gallery ? (flags | 1) : (flags & ~1); + flags = @private ? (flags | 2) : (flags & ~2); + flags = next_offset != null ? (flags | 4) : (flags & ~4); + flags = switch_pm != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -gallery = (flags & 1) != 0; -@private = (flags & 2) != 0; -query_id = br.ReadInt64(); -results = (TLVector)ObjectUtils.DeserializeVector(br); -cache_time = br.ReadInt32(); -if ((flags & 4) != 0) -next_offset = StringUtil.Deserialize(br); -else -next_offset = null; + gallery = (flags & 1) != 0; + @private = (flags & 2) != 0; + query_id = br.ReadInt64(); + results = (TLVector)ObjectUtils.DeserializeVector(br); + cache_time = br.ReadInt32(); + if ((flags & 4) != 0) + next_offset = StringUtil.Deserialize(br); + else + next_offset = null; -if ((flags & 8) != 0) -switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); -else -switch_pm = null; + if ((flags & 8) != 0) + switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br); + else + switch_pm = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(query_id); -ObjectUtils.SerializeObject(results,bw); -bw.Write(cache_time); -if ((flags & 4) != 0) -StringUtil.Serialize(next_offset,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(switch_pm,bw); + bw.Write(query_id); + ObjectUtils.SerializeObject(results, bw); + bw.Write(cache_time); + if ((flags & 4) != 0) + StringUtil.Serialize(next_offset, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(switch_pm, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs b/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs index d3efa0b..98043f6 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetInlineGameScore.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(363700068)] + [TLObject(363700068)] public class TLRequestSetInlineGameScore : TLMethod { public override int Constructor @@ -18,46 +18,50 @@ namespace TeleSharp.TL.Messages } } - public int flags {get;set;} - public bool edit_message {get;set;} - public TLInputBotInlineMessageID id {get;set;} - public TLAbsInputUser user_id {get;set;} - public int score {get;set;} - public bool Response{ get; set;} + public int flags { get; set; } + public bool edit_message { get; set; } + public bool force { get; set; } + public TLInputBotInlineMessageID id { get; set; } + public TLAbsInputUser user_id { get; set; } + public int score { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = edit_message ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = edit_message ? (flags | 1) : (flags & ~1); + flags = force ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -edit_message = (flags & 1) != 0; -id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -score = br.ReadInt32(); + edit_message = (flags & 1) != 0; + force = (flags & 2) != 0; + id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + score = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(id,bw); -ObjectUtils.SerializeObject(user_id,bw); -bw.Write(score); + + ObjectUtils.SerializeObject(id, bw); + ObjectUtils.SerializeObject(user_id, bw); + bw.Write(score); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs index c8a09bc..590c872 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestSetTyping.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1551737264)] + [TLObject(-1551737264)] public class TLRequestSetTyping : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputPeer peer {get;set;} - public TLAbsSendMessageAction action {get;set;} - public bool Response{ get; set;} + public TLAbsInputPeer peer { get; set; } + public TLAbsSendMessageAction action { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(action,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(action, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs index ef96a70..eec3478 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestStartBot.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-421563528)] + [TLObject(-421563528)] public class TLRequestStartBot : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputUser bot {get;set;} - public TLAbsInputPeer peer {get;set;} - public long random_id {get;set;} - public string start_param {get;set;} - public TLAbsUpdates Response{ get; set;} + public TLAbsInputUser bot { get; set; } + public TLAbsInputPeer peer { get; set; } + public long random_id { get; set; } + public string start_param { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); -random_id = br.ReadInt64(); -start_param = StringUtil.Deserialize(br); + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + random_id = br.ReadInt64(); + start_param = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(bot,bw); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(random_id); -StringUtil.Serialize(start_param,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(bot, bw); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(random_id); + StringUtil.Serialize(start_param, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs index 53ac0a2..0b003b3 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestToggleChatAdmins.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-326379039)] + [TLObject(-326379039)] public class TLRequestToggleChatAdmins : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages } } - public int chat_id {get;set;} - public bool enabled {get;set;} - public TLAbsUpdates Response{ get; set;} + public int chat_id { get; set; } + public bool enabled { get; set; } + public TLAbsUpdates Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -enabled = BoolUtil.Deserialize(br); + enabled = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -BoolUtil.Serialize(enabled,bw); + BoolUtil.Serialize(enabled, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs b/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs new file mode 100644 index 0000000..b2247f3 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(847887978)] + public class TLRequestToggleDialogPin : TLMethod + { + public override int Constructor + { + get + { + return 847887978; + } + } + + public int flags { get; set; } + public bool pinned { get; set; } + 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) + { + flags = br.ReadInt32(); + pinned = (flags & 1) != 0; + peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(peer, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs index db4a7ab..a364d5b 100644 --- a/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLRequestUninstallStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-110209570)] + [TLObject(-110209570)] public class TLRequestUninstallStickerSet : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages } } - public TLAbsInputStickerSet stickerset {get;set;} - public bool Response{ get; set;} + public TLAbsInputStickerSet stickerset { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(stickerset,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs b/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs new file mode 100644 index 0000000..a61d844 --- /dev/null +++ b/TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Messages +{ + [TLObject(1369162417)] + public class TLRequestUploadMedia : TLMethod + { + public override int Constructor + { + get + { + return 1369162417; + } + } + + public TLAbsInputPeer peer { get; set; } + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(media, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifs.cs b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs index db34e4b..ae83608 100644 --- a/TeleSharp.TL/TL/Messages/TLSavedGifs.cs +++ b/TeleSharp.TL/TL/Messages/TLSavedGifs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(772213157)] + [TLObject(772213157)] public class TLSavedGifs : TLAbsSavedGifs { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int hash {get;set;} - public TLVector gifs {get;set;} + public int hash { get; set; } + public TLVector gifs { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt32(); -gifs = (TLVector)ObjectUtils.DeserializeVector(br); + gifs = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(hash); -ObjectUtils.SerializeObject(gifs,bw); + ObjectUtils.SerializeObject(gifs, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs index 538d1e9..b0d0b70 100644 --- a/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLSavedGifsNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-402498398)] + [TLObject(-402498398)] public class TLSavedGifsNotModified : TLAbsSavedGifs { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs index 911c4d2..be91cdc 100644 --- a/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1802240206)] + [TLObject(-1802240206)] public class TLSentEncryptedFile : TLAbsSentEncryptedMessage { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public int date {get;set;} - public TLAbsEncryptedFile file {get;set;} + public int date { get; set; } + public TLAbsEncryptedFile file { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { date = br.ReadInt32(); -file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); + file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(date); -ObjectUtils.SerializeObject(file,bw); + ObjectUtils.SerializeObject(file, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs index 351d7b1..8a94a79 100644 --- a/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs +++ b/TeleSharp.TL/TL/Messages/TLSentEncryptedMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(1443858741)] + [TLObject(1443858741)] public class TLSentEncryptedMessage : TLAbsSentEncryptedMessage { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages } } - public int date {get;set;} + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(date); } diff --git a/TeleSharp.TL/TL/Messages/TLStickerSet.cs b/TeleSharp.TL/TL/Messages/TLStickerSet.cs index 8bbb9ba..d32cd01 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSet.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1240849242)] + [TLObject(-1240849242)] public class TLStickerSet : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages } } - public TLStickerSet @set {get;set;} - public TLVector packs {get;set;} - public TLVector documents {get;set;} + public TLStickerSet @set { get; set; } + public TLVector packs { get; set; } + public TLVector documents { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); -packs = (TLVector)ObjectUtils.DeserializeVector(br); -documents = (TLVector)ObjectUtils.DeserializeVector(br); + packs = (TLVector)ObjectUtils.DeserializeVector(br); + documents = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(@set,bw); -ObjectUtils.SerializeObject(packs,bw); -ObjectUtils.SerializeObject(documents,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(@set, bw); + ObjectUtils.SerializeObject(packs, bw); + ObjectUtils.SerializeObject(documents, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs index 509f830..40afbfc 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultArchive.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(904138920)] + [TLObject(904138920)] public class TLStickerSetInstallResultArchive : TLAbsStickerSetInstallResult { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages } } - public TLVector sets {get;set;} + public TLVector sets { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Messages public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(sets,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(sets, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs index 667bfdd..ec926c6 100644 --- a/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs +++ b/TeleSharp.TL/TL/Messages/TLStickerSetInstallResultSuccess.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(946083368)] + [TLObject(946083368)] public class TLStickerSetInstallResultSuccess : TLAbsStickerSetInstallResult { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Messages/TLStickers.cs b/TeleSharp.TL/TL/Messages/TLStickers.cs index 258db29..128e1a1 100644 --- a/TeleSharp.TL/TL/Messages/TLStickers.cs +++ b/TeleSharp.TL/TL/Messages/TLStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-1970352846)] + [TLObject(-1970352846)] public class TLStickers : TLAbsStickers { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages } } - public string hash {get;set;} - public TLVector stickers {get;set;} + public string hash { get; set; } + public TLVector stickers { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { hash = StringUtil.Deserialize(br); -stickers = (TLVector)ObjectUtils.DeserializeVector(br); + stickers = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(hash,bw); -ObjectUtils.SerializeObject(stickers,bw); + bw.Write(Constructor); + StringUtil.Serialize(hash, bw); + ObjectUtils.SerializeObject(stickers, bw); } } diff --git a/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs index 31471f1..be90b51 100644 --- a/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs +++ b/TeleSharp.TL/TL/Messages/TLStickersNotModified.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Messages { - [TLObject(-244016606)] + [TLObject(-244016606)] public class TLStickersNotModified : TLAbsStickers { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs b/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs new file mode 100644 index 0000000..5099caa --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + public abstract class TLAbsPaymentResult : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Payments/TLPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLPaymentForm.cs new file mode 100644 index 0000000..ac674ba --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLPaymentForm.cs @@ -0,0 +1,103 @@ +using 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)] + public class TLPaymentForm : TLObject + { + public override int Constructor + { + get + { + return 1062645411; + } + } + + public int flags { get; set; } + public bool can_save_credentials { get; set; } + public bool password_missing { get; set; } + public int bot_id { get; set; } + public TLInvoice invoice { get; set; } + public int provider_id { get; set; } + public string url { get; set; } + public string native_provider { get; set; } + public TLDataJSON native_params { get; set; } + public TLPaymentRequestedInfo saved_info { get; set; } + public TLPaymentSavedCredentialsCard saved_credentials { get; set; } + public TLVector users { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = can_save_credentials ? (flags | 4) : (flags & ~4); + flags = password_missing ? (flags | 8) : (flags & ~8); + flags = native_provider != null ? (flags | 16) : (flags & ~16); + 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) + { + flags = br.ReadInt32(); + can_save_credentials = (flags & 4) != 0; + password_missing = (flags & 8) != 0; + bot_id = br.ReadInt32(); + invoice = (TLInvoice)ObjectUtils.DeserializeObject(br); + provider_id = br.ReadInt32(); + url = StringUtil.Deserialize(br); + if ((flags & 16) != 0) + native_provider = StringUtil.Deserialize(br); + else + native_provider = null; + + if ((flags & 16) != 0) + native_params = (TLDataJSON)ObjectUtils.DeserializeObject(br); + else + native_params = null; + + if ((flags & 1) != 0) + saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + else + saved_info = null; + + if ((flags & 2) != 0) + saved_credentials = (TLPaymentSavedCredentialsCard)ObjectUtils.DeserializeObject(br); + else + saved_credentials = null; + + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + bw.Write(bot_id); + ObjectUtils.SerializeObject(invoice, bw); + bw.Write(provider_id); + StringUtil.Serialize(url, bw); + if ((flags & 16) != 0) + StringUtil.Serialize(native_provider, bw); + if ((flags & 16) != 0) + ObjectUtils.SerializeObject(native_params, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(saved_info, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(saved_credentials, bw); + ObjectUtils.SerializeObject(users, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs b/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs new file mode 100644 index 0000000..ca10f21 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs @@ -0,0 +1,86 @@ +using 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)] + public class TLPaymentReceipt : TLObject + { + public override int Constructor + { + get + { + return 1342771681; + } + } + + public int flags { get; set; } + public int date { get; set; } + public int bot_id { get; set; } + public TLInvoice invoice { get; set; } + public int provider_id { get; set; } + public TLPaymentRequestedInfo info { get; set; } + public TLShippingOption shipping { get; set; } + public string currency { get; set; } + public long total_amount { get; set; } + 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) + { + flags = br.ReadInt32(); + date = br.ReadInt32(); + bot_id = br.ReadInt32(); + invoice = (TLInvoice)ObjectUtils.DeserializeObject(br); + provider_id = br.ReadInt32(); + if ((flags & 1) != 0) + info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + else + info = null; + + if ((flags & 2) != 0) + shipping = (TLShippingOption)ObjectUtils.DeserializeObject(br); + else + shipping = null; + + currency = StringUtil.Deserialize(br); + total_amount = br.ReadInt64(); + credentials_title = StringUtil.Deserialize(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(date); + bw.Write(bot_id); + ObjectUtils.SerializeObject(invoice, bw); + bw.Write(provider_id); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(info, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(shipping, bw); + StringUtil.Serialize(currency, bw); + bw.Write(total_amount); + StringUtil.Serialize(credentials_title, bw); + ObjectUtils.SerializeObject(users, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLPaymentResult.cs b/TeleSharp.TL/TL/Payments/TLPaymentResult.cs new file mode 100644 index 0000000..57f2897 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLPaymentResult.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(1314881805)] + public class TLPaymentResult : TLAbsPaymentResult + { + public override int Constructor + { + get + { + return 1314881805; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs b/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs new file mode 100644 index 0000000..ed61477 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(1800845601)] + public class TLPaymentVerficationNeeded : TLAbsPaymentResult + { + public override int Constructor + { + get + { + return 1800845601; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs new file mode 100644 index 0000000..3073969 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(-667062079)] + public class TLRequestClearSavedInfo : TLMethod + { + public override int Constructor + { + get + { + return -667062079; + } + } + + public int flags { get; set; } + public bool credentials { get; set; } + 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) + { + flags = br.ReadInt32(); + credentials = (flags & 1) != 0; + info = (flags & 2) != 0; + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs new file mode 100644 index 0000000..6a4586b --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(-1712285883)] + public class TLRequestGetPaymentForm : TLMethod + { + public override int Constructor + { + get + { + return -1712285883; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs new file mode 100644 index 0000000..76f6b01 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(-1601001088)] + public class TLRequestGetPaymentReceipt : TLMethod + { + public override int Constructor + { + get + { + return -1601001088; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs new file mode 100644 index 0000000..c0316fc --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(578650699)] + public class TLRequestGetSavedInfo : TLMethod + { + public override int Constructor + { + get + { + return 578650699; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs b/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs new file mode 100644 index 0000000..f3557a4 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(730364339)] + public class TLRequestSendPaymentForm : TLMethod + { + public override int Constructor + { + get + { + return 730364339; + } + } + + public int flags { get; set; } + public int msg_id { get; set; } + public string requested_info_id { get; set; } + public string shipping_option_id { get; set; } + 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) + { + flags = br.ReadInt32(); + msg_id = br.ReadInt32(); + if ((flags & 1) != 0) + requested_info_id = StringUtil.Deserialize(br); + else + requested_info_id = null; + + if ((flags & 2) != 0) + shipping_option_id = StringUtil.Deserialize(br); + else + shipping_option_id = null; + + credentials = (TLAbsInputPaymentCredentials)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(msg_id); + if ((flags & 1) != 0) + StringUtil.Serialize(requested_info_id, bw); + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs b/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs new file mode 100644 index 0000000..e4cba01 --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(1997180532)] + public class TLRequestValidateRequestedInfo : TLMethod + { + public override int Constructor + { + get + { + return 1997180532; + } + } + + public int flags { get; set; } + public bool save { get; set; } + public int msg_id { get; set; } + 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) + { + flags = br.ReadInt32(); + save = (flags & 1) != 0; + msg_id = br.ReadInt32(); + info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + bw.Write(msg_id); + ObjectUtils.SerializeObject(info, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Payments.TLValidatedRequestedInfo)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLSavedInfo.cs b/TeleSharp.TL/TL/Payments/TLSavedInfo.cs new file mode 100644 index 0000000..8a9172e --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLSavedInfo.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(-74456004)] + public class TLSavedInfo : TLObject + { + public override int Constructor + { + get + { + return -74456004; + } + } + + public int flags { get; set; } + 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) + { + flags = br.ReadInt32(); + has_saved_credentials = (flags & 2) != 0; + if ((flags & 1) != 0) + saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + else + saved_info = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(saved_info, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs b/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs new file mode 100644 index 0000000..46a9d5e --- /dev/null +++ b/TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Payments +{ + [TLObject(-784000893)] + public class TLValidatedRequestedInfo : TLObject + { + public override int Constructor + { + get + { + return -784000893; + } + } + + public int flags { get; set; } + 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) + { + flags = br.ReadInt32(); + if ((flags & 1) != 0) + id = StringUtil.Deserialize(br); + else + id = null; + + if ((flags & 2) != 0) + shipping_options = (TLVector)ObjectUtils.DeserializeVector(br); + else + shipping_options = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + if ((flags & 1) != 0) + StringUtil.Serialize(id, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(shipping_options, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLPhoneCall.cs b/TeleSharp.TL/TL/Phone/TLPhoneCall.cs new file mode 100644 index 0000000..2f7441e --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLPhoneCall.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(-326966976)] + public class TLPhoneCall : TLObject + { + public override int Constructor + { + get + { + return -326966976; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(phone_call, bw); + ObjectUtils.SerializeObject(users, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs b/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs new file mode 100644 index 0000000..86293e0 --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(1003664544)] + public class TLRequestAcceptCall : TLMethod + { + public override int Constructor + { + get + { + return 1003664544; + } + } + + public TLInputPhoneCall peer { get; set; } + public byte[] g_b { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + public Phone.TLPhoneCall Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); + g_b = BytesUtil.Deserialize(br); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs b/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs new file mode 100644 index 0000000..03a8891 --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(788404002)] + public class TLRequestConfirmCall : TLMethod + { + public override int Constructor + { + get + { + return 788404002; + } + } + + public TLInputPhoneCall peer { get; set; } + public byte[] g_a { get; set; } + public long key_fingerprint { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + public Phone.TLPhoneCall Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); + g_a = BytesUtil.Deserialize(br); + key_fingerprint = br.ReadInt64(); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs b/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs new file mode 100644 index 0000000..e55827a --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(2027164582)] + public class TLRequestDiscardCall : TLMethod + { + public override int Constructor + { + get + { + return 2027164582; + } + } + + public TLInputPhoneCall peer { get; set; } + public int duration { get; set; } + public TLAbsPhoneCallDiscardReason reason { get; set; } + public long connection_id { get; set; } + public TLAbsUpdates Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); + duration = br.ReadInt32(); + reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br); + connection_id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(duration); + ObjectUtils.SerializeObject(reason, bw); + bw.Write(connection_id); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs b/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs new file mode 100644 index 0000000..ac1432a --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(1430593449)] + public class TLRequestGetCallConfig : TLMethod + { + public override int Constructor + { + get + { + return 1430593449; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs b/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs new file mode 100644 index 0000000..1415657 --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(399855457)] + public class TLRequestReceivedCall : TLMethod + { + public override int Constructor + { + get + { + return 399855457; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs b/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs new file mode 100644 index 0000000..fbcf7a5 --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(1536537556)] + public class TLRequestRequestCall : TLMethod + { + public override int Constructor + { + get + { + return 1536537556; + } + } + + public TLAbsInputUser user_id { get; set; } + public int random_id { get; set; } + public byte[] g_a_hash { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + public Phone.TLPhoneCall Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + random_id = br.ReadInt32(); + g_a_hash = BytesUtil.Deserialize(br); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id, bw); + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs b/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs new file mode 100644 index 0000000..8abcaaa --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(662363518)] + public class TLRequestSaveCallDebug : TLMethod + { + public override int Constructor + { + get + { + return 662363518; + } + } + + public TLInputPhoneCall peer { get; set; } + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(debug, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs b/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs new file mode 100644 index 0000000..124a7c8 --- /dev/null +++ b/TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Phone +{ + [TLObject(475228724)] + public class TLRequestSetCallRating : TLMethod + { + public override int Constructor + { + get + { + return 475228724; + } + } + + public TLInputPhoneCall peer { get; set; } + public int rating { get; set; } + public string comment { get; set; } + public TLAbsUpdates Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br); + rating = br.ReadInt32(); + comment = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(rating); + StringUtil.Serialize(comment, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Photos/TLPhoto.cs b/TeleSharp.TL/TL/Photos/TLPhoto.cs index 4a76a07..22eabda 100644 --- a/TeleSharp.TL/TL/Photos/TLPhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(539045032)] + [TLObject(539045032)] public class TLPhoto : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Photos } } - public TLAbsPhoto photo {get;set;} - public TLVector users {get;set;} + public TLAbsPhoto photo { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(photo,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Photos/TLPhotos.cs b/TeleSharp.TL/TL/Photos/TLPhotos.cs index a3374db..8cc7d45 100644 --- a/TeleSharp.TL/TL/Photos/TLPhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLPhotos.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(-1916114267)] + [TLObject(-1916114267)] public class TLPhotos : TLAbsPhotos { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Photos } } - public TLVector photos {get;set;} - public TLVector users {get;set;} + public TLVector photos { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { photos = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(photos,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(photos, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs index 4587848..c476908 100644 --- a/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs +++ b/TeleSharp.TL/TL/Photos/TLPhotosSlice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(352657236)] + [TLObject(352657236)] public class TLPhotosSlice : TLAbsPhotos { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Photos } } - public int count {get;set;} - public TLVector photos {get;set;} - public TLVector users {get;set;} + public int count { get; set; } + public TLVector photos { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { count = br.ReadInt32(); -photos = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + photos = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(count); -ObjectUtils.SerializeObject(photos,bw); -ObjectUtils.SerializeObject(users,bw); + ObjectUtils.SerializeObject(photos, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs index 08420e0..045b0dc 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestDeletePhotos.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(-2016444625)] + [TLObject(-2016444625)] public class TLRequestDeletePhotos : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Photos } } - public TLVector id {get;set;} - public TLVector Response{ get; set;} + public TLVector id { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Photos public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs index af8f46d..18f5724 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestGetUserPhotos.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(-1848823128)] + [TLObject(-1848823128)] public class TLRequestGetUserPhotos : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Photos } } - public TLAbsInputUser user_id {get;set;} - public int offset {get;set;} - public long max_id {get;set;} - public int limit {get;set;} - public Photos.TLAbsPhotos Response{ get; set;} + public TLAbsInputUser user_id { get; set; } + public int offset { get; set; } + public long max_id { get; set; } + public int limit { get; set; } + public Photos.TLAbsPhotos Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -offset = br.ReadInt32(); -max_id = br.ReadInt64(); -limit = br.ReadInt32(); + offset = br.ReadInt32(); + max_id = br.ReadInt64(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(user_id,bw); -bw.Write(offset); -bw.Write(max_id); -bw.Write(limit); + bw.Write(Constructor); + ObjectUtils.SerializeObject(user_id, bw); + bw.Write(offset); + bw.Write(max_id); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs index 521d4e7..8a138ab 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestUpdateProfilePhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(-256159406)] + [TLObject(-256159406)] public class TLRequestUpdateProfilePhoto : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Photos } } - public TLAbsInputPhoto id {get;set;} - public TLAbsUserProfilePhoto Response{ get; set;} + public TLAbsInputPhoto id { get; set; } + public TLAbsUserProfilePhoto Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Photos public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs index 4693789..1a4a98a 100644 --- a/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs +++ b/TeleSharp.TL/TL/Photos/TLRequestUploadProfilePhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Photos { - [TLObject(1328726168)] + [TLObject(1328726168)] public class TLRequestUploadProfilePhoto : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Photos } } - public TLAbsInputFile file {get;set;} - public Photos.TLPhoto Response{ get; set;} + public TLAbsInputFile file { get; set; } + public Photos.TLPhoto Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Photos public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(file,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(file, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs new file mode 100644 index 0000000..35cf6c8 --- /dev/null +++ b/TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Stickers +{ + [TLObject(-2041315650)] + public class TLRequestAddStickerToSet : TLMethod + { + public override int Constructor + { + get + { + return -2041315650; + } + } + + public TLAbsInputStickerSet stickerset { get; set; } + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset, bw); + ObjectUtils.SerializeObject(sticker, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs b/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs new file mode 100644 index 0000000..0a4b102 --- /dev/null +++ b/TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Stickers +{ + [TLObject(1322714570)] + public class TLRequestChangeStickerPosition : TLMethod + { + public override int Constructor + { + get + { + return 1322714570; + } + } + + public TLAbsInputDocument sticker { get; set; } + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(sticker, bw); + bw.Write(position); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs new file mode 100644 index 0000000..20d9178 --- /dev/null +++ b/TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Stickers +{ + [TLObject(-1680314774)] + public class TLRequestCreateStickerSet : TLMethod + { + public override int Constructor + { + get + { + return -1680314774; + } + } + + public int flags { get; set; } + public bool masks { get; set; } + public TLAbsInputUser user_id { get; set; } + public string title { get; set; } + public string short_name { get; set; } + 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) + { + flags = br.ReadInt32(); + masks = (flags & 1) != 0; + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + title = StringUtil.Deserialize(br); + short_name = StringUtil.Deserialize(br); + stickers = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(user_id, bw); + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs b/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs new file mode 100644 index 0000000..b92bdd3 --- /dev/null +++ b/TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Stickers +{ + [TLObject(69556532)] + public class TLRequestRemoveStickerFromSet : TLMethod + { + public override int Constructor + { + get + { + return 69556532; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Storage/TLFileGif.cs b/TeleSharp.TL/TL/Storage/TLFileGif.cs index fdb3ca0..26960b3 100644 --- a/TeleSharp.TL/TL/Storage/TLFileGif.cs +++ b/TeleSharp.TL/TL/Storage/TLFileGif.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(-891180321)] + [TLObject(-891180321)] public class TLFileGif : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileJpeg.cs b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs index 8823b85..b6df7d4 100644 --- a/TeleSharp.TL/TL/Storage/TLFileJpeg.cs +++ b/TeleSharp.TL/TL/Storage/TLFileJpeg.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(8322574)] + [TLObject(8322574)] public class TLFileJpeg : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileMov.cs b/TeleSharp.TL/TL/Storage/TLFileMov.cs index 6a161ee..210f622 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMov.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMov.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(1258941372)] + [TLObject(1258941372)] public class TLFileMov : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileMp3.cs b/TeleSharp.TL/TL/Storage/TLFileMp3.cs index 8e735dd..89cf402 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMp3.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMp3.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(1384777335)] + [TLObject(1384777335)] public class TLFileMp3 : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileMp4.cs b/TeleSharp.TL/TL/Storage/TLFileMp4.cs index d556556..d4ee9f8 100644 --- a/TeleSharp.TL/TL/Storage/TLFileMp4.cs +++ b/TeleSharp.TL/TL/Storage/TLFileMp4.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(-1278304028)] + [TLObject(-1278304028)] public class TLFileMp4 : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFilePartial.cs b/TeleSharp.TL/TL/Storage/TLFilePartial.cs index 96a47b9..acfbe49 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePartial.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePartial.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(1086091090)] + [TLObject(1086091090)] public class TLFilePartial : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFilePdf.cs b/TeleSharp.TL/TL/Storage/TLFilePdf.cs index 64af009..ce26269 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePdf.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePdf.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(-1373745011)] + [TLObject(-1373745011)] public class TLFilePdf : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFilePng.cs b/TeleSharp.TL/TL/Storage/TLFilePng.cs index 9a1a57c..3587007 100644 --- a/TeleSharp.TL/TL/Storage/TLFilePng.cs +++ b/TeleSharp.TL/TL/Storage/TLFilePng.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(172975040)] + [TLObject(172975040)] public class TLFilePng : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileUnknown.cs b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs index 3cdf279..3656c9e 100644 --- a/TeleSharp.TL/TL/Storage/TLFileUnknown.cs +++ b/TeleSharp.TL/TL/Storage/TLFileUnknown.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(-1432995067)] + [TLObject(-1432995067)] public class TLFileUnknown : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Storage/TLFileWebp.cs b/TeleSharp.TL/TL/Storage/TLFileWebp.cs index df81b09..500bc24 100644 --- a/TeleSharp.TL/TL/Storage/TLFileWebp.cs +++ b/TeleSharp.TL/TL/Storage/TLFileWebp.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Storage { - [TLObject(276907596)] + [TLObject(276907596)] public class TLFileWebp : TLAbsFileType { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL.Storage } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs b/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs new file mode 100644 index 0000000..87a6b58 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsInputPaymentCredentials : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPage.cs b/TeleSharp.TL/TL/TLAbsPage.cs new file mode 100644 index 0000000..92ef907 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPage.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPage : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPageBlock.cs b/TeleSharp.TL/TL/TLAbsPageBlock.cs new file mode 100644 index 0000000..5928c6e --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPageBlock.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPageBlock : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPhoneCall.cs b/TeleSharp.TL/TL/TLAbsPhoneCall.cs new file mode 100644 index 0000000..46faf28 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPhoneCall.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPhoneCall : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs b/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs new file mode 100644 index 0000000..c6283d6 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsPhoneCallDiscardReason : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAbsRichText.cs b/TeleSharp.TL/TL/TLAbsRichText.cs new file mode 100644 index 0000000..5e84f35 --- /dev/null +++ b/TeleSharp.TL/TL/TLAbsRichText.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + public abstract class TLAbsRichText : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/TLAccountDaysTTL.cs b/TeleSharp.TL/TL/TLAccountDaysTTL.cs index 8ffd827..b7b03d6 100644 --- a/TeleSharp.TL/TL/TLAccountDaysTTL.cs +++ b/TeleSharp.TL/TL/TLAccountDaysTTL.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1194283041)] + [TLObject(-1194283041)] public class TLAccountDaysTTL : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int days {get;set;} + public int days { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(days); } diff --git a/TeleSharp.TL/TL/TLAuthorization.cs b/TeleSharp.TL/TL/TLAuthorization.cs index 2d47508..d88f80e 100644 --- a/TeleSharp.TL/TL/TLAuthorization.cs +++ b/TeleSharp.TL/TL/TLAuthorization.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2079516406)] + [TLObject(2079516406)] public class TLAuthorization : TLObject { public override int Constructor @@ -18,62 +18,62 @@ namespace TeleSharp.TL } } - public long hash {get;set;} - public int flags {get;set;} - public string device_model {get;set;} - public string platform {get;set;} - public string system_version {get;set;} - public int api_id {get;set;} - public string app_name {get;set;} - public string app_version {get;set;} - public int date_created {get;set;} - public int date_active {get;set;} - public string ip {get;set;} - public string country {get;set;} - public string region {get;set;} + public long hash { get; set; } + public int flags { get; set; } + public string device_model { get; set; } + public string platform { get; set; } + public string system_version { get; set; } + public int api_id { get; set; } + public string app_name { get; set; } + public string app_version { get; set; } + public int date_created { get; set; } + public int date_active { get; set; } + public string ip { get; set; } + public string country { get; set; } + public string region { get; set; } - public void ComputeFlags() - { - flags = 0; + public void ComputeFlags() + { + flags = 0; - } + } public override void DeserializeBody(BinaryReader br) { hash = br.ReadInt64(); -flags = br.ReadInt32(); -device_model = StringUtil.Deserialize(br); -platform = StringUtil.Deserialize(br); -system_version = StringUtil.Deserialize(br); -api_id = br.ReadInt32(); -app_name = StringUtil.Deserialize(br); -app_version = StringUtil.Deserialize(br); -date_created = br.ReadInt32(); -date_active = br.ReadInt32(); -ip = StringUtil.Deserialize(br); -country = StringUtil.Deserialize(br); -region = StringUtil.Deserialize(br); + flags = br.ReadInt32(); + device_model = StringUtil.Deserialize(br); + platform = StringUtil.Deserialize(br); + system_version = StringUtil.Deserialize(br); + api_id = br.ReadInt32(); + app_name = StringUtil.Deserialize(br); + app_version = StringUtil.Deserialize(br); + date_created = br.ReadInt32(); + date_active = br.ReadInt32(); + ip = StringUtil.Deserialize(br); + country = StringUtil.Deserialize(br); + region = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(hash); -StringUtil.Serialize(device_model,bw); -StringUtil.Serialize(platform,bw); -StringUtil.Serialize(system_version,bw); -bw.Write(api_id); -StringUtil.Serialize(app_name,bw); -StringUtil.Serialize(app_version,bw); -bw.Write(date_created); -bw.Write(date_active); -StringUtil.Serialize(ip,bw); -StringUtil.Serialize(country,bw); -StringUtil.Serialize(region,bw); + bw.Write(flags); + bw.Write(hash); + StringUtil.Serialize(device_model, bw); + StringUtil.Serialize(platform, bw); + StringUtil.Serialize(system_version, bw); + bw.Write(api_id); + StringUtil.Serialize(app_name, bw); + StringUtil.Serialize(app_version, bw); + bw.Write(date_created); + bw.Write(date_active); + StringUtil.Serialize(ip, bw); + StringUtil.Serialize(country, bw); + StringUtil.Serialize(region, bw); } } diff --git a/TeleSharp.TL/TL/TLBoolFalse.cs b/TeleSharp.TL/TL/TLBoolFalse.cs index 2799fea..7282348 100644 --- a/TeleSharp.TL/TL/TLBoolFalse.cs +++ b/TeleSharp.TL/TL/TLBoolFalse.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1132882121)] + [TLObject(-1132882121)] public class TLBoolFalse : TLAbsBool { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLBoolTrue.cs b/TeleSharp.TL/TL/TLBoolTrue.cs index 221d3ef..a96c279 100644 --- a/TeleSharp.TL/TL/TLBoolTrue.cs +++ b/TeleSharp.TL/TL/TLBoolTrue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1720552011)] + [TLObject(-1720552011)] public class TLBoolTrue : TLAbsBool { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLBotCommand.cs b/TeleSharp.TL/TL/TLBotCommand.cs index b68d75e..9fdba40 100644 --- a/TeleSharp.TL/TL/TLBotCommand.cs +++ b/TeleSharp.TL/TL/TLBotCommand.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1032140601)] + [TLObject(-1032140601)] public class TLBotCommand : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string command {get;set;} - public string description {get;set;} + public string command { get; set; } + public string description { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { command = StringUtil.Deserialize(br); -description = StringUtil.Deserialize(br); + description = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(command,bw); -StringUtil.Serialize(description,bw); + bw.Write(Constructor); + StringUtil.Serialize(command, bw); + StringUtil.Serialize(description, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInfo.cs b/TeleSharp.TL/TL/TLBotInfo.cs index 4b0836e..6d1eea6 100644 --- a/TeleSharp.TL/TL/TLBotInfo.cs +++ b/TeleSharp.TL/TL/TLBotInfo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1729618630)] + [TLObject(-1729618630)] public class TLBotInfo : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public string description {get;set;} - public TLVector commands {get;set;} + public int user_id { get; set; } + public string description { get; set; } + public TLVector commands { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -description = StringUtil.Deserialize(br); -commands = (TLVector)ObjectUtils.DeserializeVector(br); + description = StringUtil.Deserialize(br); + commands = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -StringUtil.Serialize(description,bw); -ObjectUtils.SerializeObject(commands,bw); + StringUtil.Serialize(description, bw); + ObjectUtils.SerializeObject(commands, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMediaResult.cs b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs index 530fd04..8341d75 100644 --- a/TeleSharp.TL/TL/TLBotInlineMediaResult.cs +++ b/TeleSharp.TL/TL/TLBotInlineMediaResult.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(400266251)] + [TLObject(400266251)] public class TLBotInlineMediaResult : TLAbsBotInlineResult { public override int Constructor @@ -18,71 +18,71 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string id {get;set;} - public string type {get;set;} - public TLAbsPhoto photo {get;set;} - public TLAbsDocument document {get;set;} - public string title {get;set;} - public string description {get;set;} - public TLAbsBotInlineMessage send_message {get;set;} + public int flags { get; set; } + public string id { get; set; } + public string type { get; set; } + public TLAbsPhoto photo { get; set; } + public TLAbsDocument document { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLAbsBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = photo != null ? (flags | 1) : (flags & ~1); -flags = document != null ? (flags | 2) : (flags & ~2); -flags = title != null ? (flags | 4) : (flags & ~4); -flags = description != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = photo != null ? (flags | 1) : (flags & ~1); + flags = document != null ? (flags | 2) : (flags & ~2); + flags = title != null ? (flags | 4) : (flags & ~4); + flags = description != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = StringUtil.Deserialize(br); -type = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -else -photo = null; + id = StringUtil.Deserialize(br); + type = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + else + photo = null; -if ((flags & 2) != 0) -document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); -else -document = null; + if ((flags & 2) != 0) + document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + else + document = null; -if ((flags & 4) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + if ((flags & 4) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 8) != 0) -description = StringUtil.Deserialize(br); -else -description = null; + if ((flags & 8) != 0) + description = StringUtil.Deserialize(br); + else + description = null; -send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); + send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(id,bw); -StringUtil.Serialize(type,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(photo,bw); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(document,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 8) != 0) -StringUtil.Serialize(description,bw); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(flags); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(type, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(photo, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(document, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 8) != 0) + StringUtil.Serialize(description, bw); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs index fbf782e..69eb0c2 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaAuto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(175419739)] + [TLObject(175419739)] public class TLBotInlineMessageMediaAuto : TLAbsBotInlineMessage { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string caption {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public string caption { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -caption = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + caption = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(caption,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + StringUtil.Serialize(caption, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs index b7a8fcd..3786db1 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(904770772)] + [TLObject(904770772)] public class TLBotInlineMessageMediaContact : TLAbsBotInlineMessage { public override int Constructor @@ -18,44 +18,44 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string phone_number {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public string phone_number { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -phone_number = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + phone_number = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs index f8408ca..40140e3 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaGeo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(982505656)] + [TLObject(982505656)] public class TLBotInlineMessageMediaGeo : TLAbsBotInlineMessage { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsGeoPoint geo {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public TLAbsGeoPoint geo { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(geo,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(geo, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs index 413efae..1fc56f7 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageMediaVenue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1130767150)] + [TLObject(1130767150)] public class TLBotInlineMessageMediaVenue : TLAbsBotInlineMessage { public override int Constructor @@ -18,50 +18,50 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsGeoPoint geo {get;set;} - public string title {get;set;} - public string address {get;set;} - public string provider {get;set;} - public string venue_id {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public TLAbsGeoPoint geo { get; set; } + public string title { get; set; } + public string address { get; set; } + public string provider { get; set; } + public string venue_id { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); -title = StringUtil.Deserialize(br); -address = StringUtil.Deserialize(br); -provider = StringUtil.Deserialize(br); -venue_id = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); + title = StringUtil.Deserialize(br); + address = StringUtil.Deserialize(br); + provider = StringUtil.Deserialize(br); + venue_id = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(geo,bw); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(address,bw); -StringUtil.Serialize(provider,bw); -StringUtil.Serialize(venue_id,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(geo, bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(address, bw); + StringUtil.Serialize(provider, bw); + StringUtil.Serialize(venue_id, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineMessageText.cs b/TeleSharp.TL/TL/TLBotInlineMessageText.cs index c9ba8ca..aa24123 100644 --- a/TeleSharp.TL/TL/TLBotInlineMessageText.cs +++ b/TeleSharp.TL/TL/TLBotInlineMessageText.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1937807902)] + [TLObject(-1937807902)] public class TLBotInlineMessageText : TLAbsBotInlineMessage { public override int Constructor @@ -18,51 +18,51 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public string message {get;set;} - public TLVector entities {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public string message { get; set; } + public TLVector entities { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 1) : (flags & ~1); -flags = entities != null ? (flags | 2) : (flags & ~2); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 1) : (flags & ~1); + flags = entities != null ? (flags | 2) : (flags & ~2); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 1) != 0; -message = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + no_webpage = (flags & 1) != 0; + message = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(message,bw); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(entities,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + StringUtil.Serialize(message, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(entities, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLBotInlineResult.cs b/TeleSharp.TL/TL/TLBotInlineResult.cs index 5634f1a..a755165 100644 --- a/TeleSharp.TL/TL/TLBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLBotInlineResult.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1679053127)] + [TLObject(-1679053127)] public class TLBotInlineResult : TLAbsBotInlineResult { public override int Constructor @@ -18,116 +18,116 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string id {get;set;} - public string type {get;set;} - public string title {get;set;} - public string description {get;set;} - public string url {get;set;} - public string thumb_url {get;set;} - public string content_url {get;set;} - public string content_type {get;set;} - public int? w {get;set;} - public int? h {get;set;} - public int? duration {get;set;} - public TLAbsBotInlineMessage send_message {get;set;} + public int flags { get; set; } + public string id { get; set; } + public string type { get; set; } + public string title { get; set; } + public string description { get; set; } + public string url { get; set; } + public string thumb_url { get; set; } + public string content_url { get; set; } + public string content_type { get; set; } + public int? w { get; set; } + public int? h { get; set; } + public int? duration { get; set; } + public TLAbsBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = title != null ? (flags | 2) : (flags & ~2); -flags = description != null ? (flags | 4) : (flags & ~4); -flags = url != null ? (flags | 8) : (flags & ~8); -flags = thumb_url != null ? (flags | 16) : (flags & ~16); -flags = content_url != null ? (flags | 32) : (flags & ~32); -flags = content_type != null ? (flags | 32) : (flags & ~32); -flags = w != null ? (flags | 64) : (flags & ~64); -flags = h != null ? (flags | 64) : (flags & ~64); -flags = duration != null ? (flags | 128) : (flags & ~128); + public void ComputeFlags() + { + flags = 0; + flags = title != null ? (flags | 2) : (flags & ~2); + flags = description != null ? (flags | 4) : (flags & ~4); + flags = url != null ? (flags | 8) : (flags & ~8); + flags = thumb_url != null ? (flags | 16) : (flags & ~16); + flags = content_url != null ? (flags | 32) : (flags & ~32); + flags = content_type != null ? (flags | 32) : (flags & ~32); + flags = w != null ? (flags | 64) : (flags & ~64); + flags = h != null ? (flags | 64) : (flags & ~64); + flags = duration != null ? (flags | 128) : (flags & ~128); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = StringUtil.Deserialize(br); -type = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + id = StringUtil.Deserialize(br); + type = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 4) != 0) -description = StringUtil.Deserialize(br); -else -description = null; + if ((flags & 4) != 0) + description = StringUtil.Deserialize(br); + else + description = null; -if ((flags & 8) != 0) -url = StringUtil.Deserialize(br); -else -url = null; + if ((flags & 8) != 0) + url = StringUtil.Deserialize(br); + else + url = null; -if ((flags & 16) != 0) -thumb_url = StringUtil.Deserialize(br); -else -thumb_url = null; + if ((flags & 16) != 0) + thumb_url = StringUtil.Deserialize(br); + else + thumb_url = null; -if ((flags & 32) != 0) -content_url = StringUtil.Deserialize(br); -else -content_url = null; + if ((flags & 32) != 0) + content_url = StringUtil.Deserialize(br); + else + content_url = null; -if ((flags & 32) != 0) -content_type = StringUtil.Deserialize(br); -else -content_type = null; + if ((flags & 32) != 0) + content_type = StringUtil.Deserialize(br); + else + content_type = null; -if ((flags & 64) != 0) -w = br.ReadInt32(); -else -w = null; + if ((flags & 64) != 0) + w = br.ReadInt32(); + else + w = null; -if ((flags & 64) != 0) -h = br.ReadInt32(); -else -h = null; + if ((flags & 64) != 0) + h = br.ReadInt32(); + else + h = null; -if ((flags & 128) != 0) -duration = br.ReadInt32(); -else -duration = null; + if ((flags & 128) != 0) + duration = br.ReadInt32(); + else + duration = null; -send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); + send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(id,bw); -StringUtil.Serialize(type,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(description,bw); -if ((flags & 8) != 0) -StringUtil.Serialize(url,bw); -if ((flags & 16) != 0) -StringUtil.Serialize(thumb_url,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(content_url,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(content_type,bw); -if ((flags & 64) != 0) -bw.Write(w.Value); -if ((flags & 64) != 0) -bw.Write(h.Value); -if ((flags & 128) != 0) -bw.Write(duration.Value); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(flags); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(type, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(description, bw); + if ((flags & 8) != 0) + StringUtil.Serialize(url, bw); + if ((flags & 16) != 0) + StringUtil.Serialize(thumb_url, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(content_url, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(content_type, bw); + if ((flags & 64) != 0) + bw.Write(w.Value); + if ((flags & 64) != 0) + bw.Write(h.Value); + if ((flags & 128) != 0) + bw.Write(duration.Value); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLCdnConfig.cs b/TeleSharp.TL/TL/TLCdnConfig.cs new file mode 100644 index 0000000..a72d63c --- /dev/null +++ b/TeleSharp.TL/TL/TLCdnConfig.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1462101002)] + public class TLCdnConfig : TLObject + { + public override int Constructor + { + get + { + return 1462101002; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLCdnPublicKey.cs b/TeleSharp.TL/TL/TLCdnPublicKey.cs new file mode 100644 index 0000000..2053c43 --- /dev/null +++ b/TeleSharp.TL/TL/TLCdnPublicKey.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-914167110)] + public class TLCdnPublicKey : TLObject + { + public override int Constructor + { + get + { + return -914167110; + } + } + + 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) + { + bw.Write(Constructor); + bw.Write(dc_id); + StringUtil.Serialize(public_key, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLChannel.cs b/TeleSharp.TL/TL/TLChannel.cs index 63774d4..591f3ec 100644 --- a/TeleSharp.TL/TL/TLChannel.cs +++ b/TeleSharp.TL/TL/TLChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1588737454)] + [TLObject(-1588737454)] public class TLChannel : TLAbsChat { public override int Constructor @@ -18,93 +18,93 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool creator {get;set;} - public bool kicked {get;set;} - public bool left {get;set;} - public bool editor {get;set;} - public bool moderator {get;set;} - public bool broadcast {get;set;} - public bool verified {get;set;} - public bool megagroup {get;set;} - public bool restricted {get;set;} - public bool democracy {get;set;} - public bool signatures {get;set;} - public bool min {get;set;} - public int id {get;set;} - public long? access_hash {get;set;} - public string title {get;set;} - public string username {get;set;} - public TLAbsChatPhoto photo {get;set;} - public int date {get;set;} - public int version {get;set;} - public string restriction_reason {get;set;} + public int flags { get; set; } + public bool creator { get; set; } + public bool kicked { get; set; } + public bool left { get; set; } + public bool editor { get; set; } + public bool moderator { get; set; } + public bool broadcast { get; set; } + public bool verified { get; set; } + public bool megagroup { get; set; } + public bool restricted { get; set; } + public bool democracy { get; set; } + public bool signatures { get; set; } + public bool min { get; set; } + public int id { get; set; } + public long? access_hash { get; set; } + public string title { get; set; } + public string username { get; set; } + public TLAbsChatPhoto photo { get; set; } + public int date { get; set; } + public int version { get; set; } + public string restriction_reason { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = creator ? (flags | 1) : (flags & ~1); -flags = kicked ? (flags | 2) : (flags & ~2); -flags = left ? (flags | 4) : (flags & ~4); -flags = editor ? (flags | 8) : (flags & ~8); -flags = moderator ? (flags | 16) : (flags & ~16); -flags = broadcast ? (flags | 32) : (flags & ~32); -flags = verified ? (flags | 128) : (flags & ~128); -flags = megagroup ? (flags | 256) : (flags & ~256); -flags = restricted ? (flags | 512) : (flags & ~512); -flags = democracy ? (flags | 1024) : (flags & ~1024); -flags = signatures ? (flags | 2048) : (flags & ~2048); -flags = min ? (flags | 4096) : (flags & ~4096); -flags = access_hash != null ? (flags | 8192) : (flags & ~8192); -flags = username != null ? (flags | 64) : (flags & ~64); -flags = restriction_reason != null ? (flags | 512) : (flags & ~512); + public void ComputeFlags() + { + flags = 0; + flags = creator ? (flags | 1) : (flags & ~1); + flags = kicked ? (flags | 2) : (flags & ~2); + flags = left ? (flags | 4) : (flags & ~4); + flags = editor ? (flags | 8) : (flags & ~8); + flags = moderator ? (flags | 16) : (flags & ~16); + flags = broadcast ? (flags | 32) : (flags & ~32); + flags = verified ? (flags | 128) : (flags & ~128); + flags = megagroup ? (flags | 256) : (flags & ~256); + flags = restricted ? (flags | 512) : (flags & ~512); + flags = democracy ? (flags | 1024) : (flags & ~1024); + flags = signatures ? (flags | 2048) : (flags & ~2048); + flags = min ? (flags | 4096) : (flags & ~4096); + flags = access_hash != null ? (flags | 8192) : (flags & ~8192); + flags = username != null ? (flags | 64) : (flags & ~64); + flags = restriction_reason != null ? (flags | 512) : (flags & ~512); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -creator = (flags & 1) != 0; -kicked = (flags & 2) != 0; -left = (flags & 4) != 0; -editor = (flags & 8) != 0; -moderator = (flags & 16) != 0; -broadcast = (flags & 32) != 0; -verified = (flags & 128) != 0; -megagroup = (flags & 256) != 0; -restricted = (flags & 512) != 0; -democracy = (flags & 1024) != 0; -signatures = (flags & 2048) != 0; -min = (flags & 4096) != 0; -id = br.ReadInt32(); -if ((flags & 8192) != 0) -access_hash = br.ReadInt64(); -else -access_hash = null; + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + editor = (flags & 8) != 0; + moderator = (flags & 16) != 0; + broadcast = (flags & 32) != 0; + verified = (flags & 128) != 0; + megagroup = (flags & 256) != 0; + restricted = (flags & 512) != 0; + democracy = (flags & 1024) != 0; + signatures = (flags & 2048) != 0; + min = (flags & 4096) != 0; + id = br.ReadInt32(); + if ((flags & 8192) != 0) + access_hash = br.ReadInt64(); + else + access_hash = null; -title = StringUtil.Deserialize(br); -if ((flags & 64) != 0) -username = StringUtil.Deserialize(br); -else -username = null; + title = StringUtil.Deserialize(br); + if ((flags & 64) != 0) + username = StringUtil.Deserialize(br); + else + username = null; -photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); -date = br.ReadInt32(); -version = br.ReadInt32(); -if ((flags & 512) != 0) -restriction_reason = StringUtil.Deserialize(br); -else -restriction_reason = null; + photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); + date = br.ReadInt32(); + version = br.ReadInt32(); + if ((flags & 512) != 0) + restriction_reason = StringUtil.Deserialize(br); + else + restriction_reason = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); @@ -117,17 +117,17 @@ bw.Write(flags); -bw.Write(id); -if ((flags & 8192) != 0) -bw.Write(access_hash.Value); -StringUtil.Serialize(title,bw); -if ((flags & 64) != 0) -StringUtil.Serialize(username,bw); -ObjectUtils.SerializeObject(photo,bw); -bw.Write(date); -bw.Write(version); -if ((flags & 512) != 0) -StringUtil.Serialize(restriction_reason,bw); + bw.Write(id); + if ((flags & 8192) != 0) + bw.Write(access_hash.Value); + StringUtil.Serialize(title, bw); + if ((flags & 64) != 0) + StringUtil.Serialize(username, bw); + ObjectUtils.SerializeObject(photo, bw); + bw.Write(date); + bw.Write(version); + if ((flags & 512) != 0) + StringUtil.Serialize(restriction_reason, bw); } } diff --git a/TeleSharp.TL/TL/TLChannelForbidden.cs b/TeleSharp.TL/TL/TLChannelForbidden.cs index 471a7f6..251e0de 100644 --- a/TeleSharp.TL/TL/TLChannelForbidden.cs +++ b/TeleSharp.TL/TL/TLChannelForbidden.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2059962289)] + [TLObject(-2059962289)] public class TLChannelForbidden : TLAbsChat { public override int Constructor @@ -18,43 +18,43 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool broadcast {get;set;} - public bool megagroup {get;set;} - public int id {get;set;} - public long access_hash {get;set;} - public string title {get;set;} + public int flags { get; set; } + public bool broadcast { get; set; } + public bool megagroup { get; set; } + public int id { get; set; } + public long access_hash { get; set; } + public string title { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = broadcast ? (flags | 32) : (flags & ~32); -flags = megagroup ? (flags | 256) : (flags & ~256); + public void ComputeFlags() + { + flags = 0; + flags = broadcast ? (flags | 32) : (flags & ~32); + flags = megagroup ? (flags | 256) : (flags & ~256); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -broadcast = (flags & 32) != 0; -megagroup = (flags & 256) != 0; -id = br.ReadInt32(); -access_hash = br.ReadInt64(); -title = StringUtil.Deserialize(br); + broadcast = (flags & 32) != 0; + megagroup = (flags & 256) != 0; + id = br.ReadInt32(); + access_hash = br.ReadInt64(); + title = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -bw.Write(access_hash); -StringUtil.Serialize(title,bw); + bw.Write(id); + bw.Write(access_hash); + StringUtil.Serialize(title, bw); } } diff --git a/TeleSharp.TL/TL/TLChannelFull.cs b/TeleSharp.TL/TL/TLChannelFull.cs index 6559bea..9103d6f 100644 --- a/TeleSharp.TL/TL/TLChannelFull.cs +++ b/TeleSharp.TL/TL/TLChannelFull.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1009430225)] + [TLObject(-1009430225)] public class TLChannelFull : TLAbsChatFull { public override int Constructor @@ -18,115 +18,115 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool can_view_participants {get;set;} - public bool can_set_username {get;set;} - public int id {get;set;} - public string about {get;set;} - public int? participants_count {get;set;} - public int? admins_count {get;set;} - public int? kicked_count {get;set;} - public int read_inbox_max_id {get;set;} - public int read_outbox_max_id {get;set;} - public int unread_count {get;set;} - public TLAbsPhoto chat_photo {get;set;} - public TLAbsPeerNotifySettings notify_settings {get;set;} - public TLAbsExportedChatInvite exported_invite {get;set;} - public TLVector bot_info {get;set;} - public int? migrated_from_chat_id {get;set;} - public int? migrated_from_max_id {get;set;} - public int? pinned_msg_id {get;set;} + public int flags { get; set; } + public bool can_view_participants { get; set; } + public bool can_set_username { get; set; } + public int id { get; set; } + public string about { get; set; } + public int? participants_count { get; set; } + public int? admins_count { get; set; } + public int? kicked_count { get; set; } + public int read_inbox_max_id { get; set; } + public int read_outbox_max_id { get; set; } + public int unread_count { get; set; } + public TLAbsPhoto chat_photo { get; set; } + public TLAbsPeerNotifySettings notify_settings { get; set; } + public TLAbsExportedChatInvite exported_invite { get; set; } + public TLVector bot_info { get; set; } + public int? migrated_from_chat_id { get; set; } + public int? migrated_from_max_id { get; set; } + public int? pinned_msg_id { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = can_view_participants ? (flags | 8) : (flags & ~8); -flags = can_set_username ? (flags | 64) : (flags & ~64); -flags = participants_count != null ? (flags | 1) : (flags & ~1); -flags = admins_count != null ? (flags | 2) : (flags & ~2); -flags = kicked_count != null ? (flags | 4) : (flags & ~4); -flags = migrated_from_chat_id != null ? (flags | 16) : (flags & ~16); -flags = migrated_from_max_id != null ? (flags | 16) : (flags & ~16); -flags = pinned_msg_id != null ? (flags | 32) : (flags & ~32); + public void ComputeFlags() + { + flags = 0; + flags = can_view_participants ? (flags | 8) : (flags & ~8); + flags = can_set_username ? (flags | 64) : (flags & ~64); + flags = participants_count != null ? (flags | 1) : (flags & ~1); + flags = admins_count != null ? (flags | 2) : (flags & ~2); + flags = kicked_count != null ? (flags | 4) : (flags & ~4); + flags = migrated_from_chat_id != null ? (flags | 16) : (flags & ~16); + flags = migrated_from_max_id != null ? (flags | 16) : (flags & ~16); + flags = pinned_msg_id != null ? (flags | 32) : (flags & ~32); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -can_view_participants = (flags & 8) != 0; -can_set_username = (flags & 64) != 0; -id = br.ReadInt32(); -about = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -participants_count = br.ReadInt32(); -else -participants_count = null; + can_view_participants = (flags & 8) != 0; + can_set_username = (flags & 64) != 0; + id = br.ReadInt32(); + about = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + participants_count = br.ReadInt32(); + else + participants_count = null; -if ((flags & 2) != 0) -admins_count = br.ReadInt32(); -else -admins_count = null; + if ((flags & 2) != 0) + admins_count = br.ReadInt32(); + else + admins_count = null; -if ((flags & 4) != 0) -kicked_count = br.ReadInt32(); -else -kicked_count = null; + if ((flags & 4) != 0) + kicked_count = br.ReadInt32(); + else + kicked_count = null; -read_inbox_max_id = br.ReadInt32(); -read_outbox_max_id = br.ReadInt32(); -unread_count = br.ReadInt32(); -chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); -exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); -bot_info = (TLVector)ObjectUtils.DeserializeVector(br); -if ((flags & 16) != 0) -migrated_from_chat_id = br.ReadInt32(); -else -migrated_from_chat_id = null; + read_inbox_max_id = br.ReadInt32(); + read_outbox_max_id = br.ReadInt32(); + unread_count = br.ReadInt32(); + chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + bot_info = (TLVector)ObjectUtils.DeserializeVector(br); + if ((flags & 16) != 0) + migrated_from_chat_id = br.ReadInt32(); + else + migrated_from_chat_id = null; -if ((flags & 16) != 0) -migrated_from_max_id = br.ReadInt32(); -else -migrated_from_max_id = null; + if ((flags & 16) != 0) + migrated_from_max_id = br.ReadInt32(); + else + migrated_from_max_id = null; -if ((flags & 32) != 0) -pinned_msg_id = br.ReadInt32(); -else -pinned_msg_id = null; + if ((flags & 32) != 0) + pinned_msg_id = br.ReadInt32(); + else + pinned_msg_id = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -StringUtil.Serialize(about,bw); -if ((flags & 1) != 0) -bw.Write(participants_count.Value); -if ((flags & 2) != 0) -bw.Write(admins_count.Value); -if ((flags & 4) != 0) -bw.Write(kicked_count.Value); -bw.Write(read_inbox_max_id); -bw.Write(read_outbox_max_id); -bw.Write(unread_count); -ObjectUtils.SerializeObject(chat_photo,bw); -ObjectUtils.SerializeObject(notify_settings,bw); -ObjectUtils.SerializeObject(exported_invite,bw); -ObjectUtils.SerializeObject(bot_info,bw); -if ((flags & 16) != 0) -bw.Write(migrated_from_chat_id.Value); -if ((flags & 16) != 0) -bw.Write(migrated_from_max_id.Value); -if ((flags & 32) != 0) -bw.Write(pinned_msg_id.Value); + bw.Write(id); + StringUtil.Serialize(about, bw); + if ((flags & 1) != 0) + bw.Write(participants_count.Value); + if ((flags & 2) != 0) + bw.Write(admins_count.Value); + if ((flags & 4) != 0) + bw.Write(kicked_count.Value); + bw.Write(read_inbox_max_id); + bw.Write(read_outbox_max_id); + bw.Write(unread_count); + ObjectUtils.SerializeObject(chat_photo, bw); + ObjectUtils.SerializeObject(notify_settings, bw); + ObjectUtils.SerializeObject(exported_invite, bw); + ObjectUtils.SerializeObject(bot_info, bw); + if ((flags & 16) != 0) + bw.Write(migrated_from_chat_id.Value); + if ((flags & 16) != 0) + bw.Write(migrated_from_max_id.Value); + if ((flags & 32) != 0) + bw.Write(pinned_msg_id.Value); } } diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilter.cs b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs index 7460690..34de3ea 100644 --- a/TeleSharp.TL/TL/TLChannelMessagesFilter.cs +++ b/TeleSharp.TL/TL/TLChannelMessagesFilter.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-847783593)] + [TLObject(-847783593)] public class TLChannelMessagesFilter : TLAbsChannelMessagesFilter { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool exclude_new_messages {get;set;} - public TLVector ranges {get;set;} + public int flags { get; set; } + public bool exclude_new_messages { get; set; } + public TLVector ranges { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = exclude_new_messages ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = exclude_new_messages ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -exclude_new_messages = (flags & 2) != 0; -ranges = (TLVector)ObjectUtils.DeserializeVector(br); + exclude_new_messages = (flags & 2) != 0; + ranges = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(ranges,bw); + ObjectUtils.SerializeObject(ranges, bw); } } diff --git a/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs index 7e3aeb7..597e651 100644 --- a/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs +++ b/TeleSharp.TL/TL/TLChannelMessagesFilterEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1798033689)] + [TLObject(-1798033689)] public class TLChannelMessagesFilterEmpty : TLAbsChannelMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelParticipant.cs b/TeleSharp.TL/TL/TLChannelParticipant.cs index 1954404..a424eba 100644 --- a/TeleSharp.TL/TL/TLChannelParticipant.cs +++ b/TeleSharp.TL/TL/TLChannelParticipant.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(367766557)] + [TLObject(367766557)] public class TLChannelParticipant : TLAbsChannelParticipant { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(date); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantCreator.cs b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs index 0fd031b..b535637 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantCreator.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantCreator.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-471670279)] + [TLObject(-471670279)] public class TLChannelParticipantCreator : TLAbsChannelParticipant { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); } diff --git a/TeleSharp.TL/TL/TLChannelParticipantEditor.cs b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs index 589ba4d..14d2385 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantEditor.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantEditor.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1743180447)] + [TLObject(-1743180447)] public class TLChannelParticipantEditor : TLAbsChannelParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); + bw.Write(inviter_id); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs index f45f891..3ff3ecb 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantKicked.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantKicked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1933187430)] + [TLObject(-1933187430)] public class TLChannelParticipantKicked : TLAbsChannelParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int kicked_by {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int kicked_by { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -kicked_by = br.ReadInt32(); -date = br.ReadInt32(); + kicked_by = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(kicked_by); -bw.Write(date); + bw.Write(kicked_by); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantModerator.cs b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs index dd993e4..303d1e9 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantModerator.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantModerator.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1861910545)] + [TLObject(-1861910545)] public class TLChannelParticipantModerator : TLAbsChannelParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); + bw.Write(inviter_id); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantSelf.cs b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs index 29be1e5..5dddc45 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantSelf.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantSelf.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1557620115)] + [TLObject(-1557620115)] public class TLChannelParticipantSelf : TLAbsChannelParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); + bw.Write(inviter_id); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs index 7e40364..b880c87 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsAdmins.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1268741783)] + [TLObject(-1268741783)] public class TLChannelParticipantsAdmins : TLAbsChannelParticipantsFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantsBots.cs b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs index a874bd9..48b3bad 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsBots.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsBots.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1328445861)] + [TLObject(-1328445861)] public class TLChannelParticipantsBots : TLAbsChannelParticipantsFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs index e036ab6..5aa217d 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsKicked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1010285434)] + [TLObject(1010285434)] public class TLChannelParticipantsKicked : TLAbsChannelParticipantsFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs index a37c841..ed6b15f 100644 --- a/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs +++ b/TeleSharp.TL/TL/TLChannelParticipantsRecent.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-566281095)] + [TLObject(-566281095)] public class TLChannelParticipantsRecent : TLAbsChannelParticipantsFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelRoleEditor.cs b/TeleSharp.TL/TL/TLChannelRoleEditor.cs index ff75913..34c9db0 100644 --- a/TeleSharp.TL/TL/TLChannelRoleEditor.cs +++ b/TeleSharp.TL/TL/TLChannelRoleEditor.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2113143156)] + [TLObject(-2113143156)] public class TLChannelRoleEditor : TLAbsChannelParticipantRole { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelRoleEmpty.cs b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs index 4bc07ee..5382073 100644 --- a/TeleSharp.TL/TL/TLChannelRoleEmpty.cs +++ b/TeleSharp.TL/TL/TLChannelRoleEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1299865402)] + [TLObject(-1299865402)] public class TLChannelRoleEmpty : TLAbsChannelParticipantRole { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChannelRoleModerator.cs b/TeleSharp.TL/TL/TLChannelRoleModerator.cs index 94c4f47..4c83bab 100644 --- a/TeleSharp.TL/TL/TLChannelRoleModerator.cs +++ b/TeleSharp.TL/TL/TLChannelRoleModerator.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1776756363)] + [TLObject(-1776756363)] public class TLChannelRoleModerator : TLAbsChannelParticipantRole { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChat.cs b/TeleSharp.TL/TL/TLChat.cs index bf63f50..061456a 100644 --- a/TeleSharp.TL/TL/TLChat.cs +++ b/TeleSharp.TL/TL/TLChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-652419756)] + [TLObject(-652419756)] public class TLChat : TLAbsChat { public override int Constructor @@ -18,77 +18,77 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool creator {get;set;} - public bool kicked {get;set;} - public bool left {get;set;} - public bool admins_enabled {get;set;} - public bool admin {get;set;} - public bool deactivated {get;set;} - public int id {get;set;} - public string title {get;set;} - public TLAbsChatPhoto photo {get;set;} - public int participants_count {get;set;} - public int date {get;set;} - public int version {get;set;} - public TLAbsInputChannel migrated_to {get;set;} + public int flags { get; set; } + public bool creator { get; set; } + public bool kicked { get; set; } + public bool left { get; set; } + public bool admins_enabled { get; set; } + public bool admin { get; set; } + public bool deactivated { get; set; } + public int id { get; set; } + public string title { get; set; } + public TLAbsChatPhoto photo { get; set; } + public int participants_count { get; set; } + public int date { get; set; } + public int version { get; set; } + public TLAbsInputChannel migrated_to { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = creator ? (flags | 1) : (flags & ~1); -flags = kicked ? (flags | 2) : (flags & ~2); -flags = left ? (flags | 4) : (flags & ~4); -flags = admins_enabled ? (flags | 8) : (flags & ~8); -flags = admin ? (flags | 16) : (flags & ~16); -flags = deactivated ? (flags | 32) : (flags & ~32); -flags = migrated_to != null ? (flags | 64) : (flags & ~64); + public void ComputeFlags() + { + flags = 0; + flags = creator ? (flags | 1) : (flags & ~1); + flags = kicked ? (flags | 2) : (flags & ~2); + flags = left ? (flags | 4) : (flags & ~4); + flags = admins_enabled ? (flags | 8) : (flags & ~8); + flags = admin ? (flags | 16) : (flags & ~16); + flags = deactivated ? (flags | 32) : (flags & ~32); + flags = migrated_to != null ? (flags | 64) : (flags & ~64); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -creator = (flags & 1) != 0; -kicked = (flags & 2) != 0; -left = (flags & 4) != 0; -admins_enabled = (flags & 8) != 0; -admin = (flags & 16) != 0; -deactivated = (flags & 32) != 0; -id = br.ReadInt32(); -title = StringUtil.Deserialize(br); -photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); -participants_count = br.ReadInt32(); -date = br.ReadInt32(); -version = br.ReadInt32(); -if ((flags & 64) != 0) -migrated_to = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -else -migrated_to = null; + creator = (flags & 1) != 0; + kicked = (flags & 2) != 0; + left = (flags & 4) != 0; + admins_enabled = (flags & 8) != 0; + admin = (flags & 16) != 0; + deactivated = (flags & 32) != 0; + id = br.ReadInt32(); + title = StringUtil.Deserialize(br); + photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); + participants_count = br.ReadInt32(); + date = br.ReadInt32(); + version = br.ReadInt32(); + if ((flags & 64) != 0) + migrated_to = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); + else + migrated_to = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -StringUtil.Serialize(title,bw); -ObjectUtils.SerializeObject(photo,bw); -bw.Write(participants_count); -bw.Write(date); -bw.Write(version); -if ((flags & 64) != 0) -ObjectUtils.SerializeObject(migrated_to,bw); + bw.Write(id); + StringUtil.Serialize(title, bw); + ObjectUtils.SerializeObject(photo, bw); + bw.Write(participants_count); + bw.Write(date); + bw.Write(version); + if ((flags & 64) != 0) + ObjectUtils.SerializeObject(migrated_to, bw); } } diff --git a/TeleSharp.TL/TL/TLChatEmpty.cs b/TeleSharp.TL/TL/TLChatEmpty.cs index 0efc4a3..a7b0a3a 100644 --- a/TeleSharp.TL/TL/TLChatEmpty.cs +++ b/TeleSharp.TL/TL/TLChatEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1683826688)] + [TLObject(-1683826688)] public class TLChatEmpty : TLAbsChat { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int id {get;set;} + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLChatForbidden.cs b/TeleSharp.TL/TL/TLChatForbidden.cs index e2576b1..0ab907a 100644 --- a/TeleSharp.TL/TL/TLChatForbidden.cs +++ b/TeleSharp.TL/TL/TLChatForbidden.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(120753115)] + [TLObject(120753115)] public class TLChatForbidden : TLAbsChat { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public string title {get;set;} + public int id { get; set; } + public string title { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -title = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -StringUtil.Serialize(title,bw); + StringUtil.Serialize(title, bw); } } diff --git a/TeleSharp.TL/TL/TLChatFull.cs b/TeleSharp.TL/TL/TLChatFull.cs index 74809c8..7f718cf 100644 --- a/TeleSharp.TL/TL/TLChatFull.cs +++ b/TeleSharp.TL/TL/TLChatFull.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(771925524)] + [TLObject(771925524)] public class TLChatFull : TLAbsChatFull { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public TLAbsChatParticipants participants {get;set;} - public TLAbsPhoto chat_photo {get;set;} - public TLAbsPeerNotifySettings notify_settings {get;set;} - public TLAbsExportedChatInvite exported_invite {get;set;} - public TLVector bot_info {get;set;} + public int id { get; set; } + public TLAbsChatParticipants participants { get; set; } + public TLAbsPhoto chat_photo { get; set; } + public TLAbsPeerNotifySettings notify_settings { get; set; } + public TLAbsExportedChatInvite exported_invite { get; set; } + public TLVector bot_info { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -participants = (TLAbsChatParticipants)ObjectUtils.DeserializeObject(br); -chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); -exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); -bot_info = (TLVector)ObjectUtils.DeserializeVector(br); + participants = (TLAbsChatParticipants)ObjectUtils.DeserializeObject(br); + chat_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + exported_invite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); + bot_info = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -ObjectUtils.SerializeObject(participants,bw); -ObjectUtils.SerializeObject(chat_photo,bw); -ObjectUtils.SerializeObject(notify_settings,bw); -ObjectUtils.SerializeObject(exported_invite,bw); -ObjectUtils.SerializeObject(bot_info,bw); + ObjectUtils.SerializeObject(participants, bw); + ObjectUtils.SerializeObject(chat_photo, bw); + ObjectUtils.SerializeObject(notify_settings, bw); + ObjectUtils.SerializeObject(exported_invite, bw); + ObjectUtils.SerializeObject(bot_info, bw); } } diff --git a/TeleSharp.TL/TL/TLChatInvite.cs b/TeleSharp.TL/TL/TLChatInvite.cs index 9798a25..0383a60 100644 --- a/TeleSharp.TL/TL/TLChatInvite.cs +++ b/TeleSharp.TL/TL/TLChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-613092008)] + [TLObject(-613092008)] public class TLChatInvite : TLAbsChatInvite { public override int Constructor @@ -18,60 +18,60 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool channel {get;set;} - public bool broadcast {get;set;} - public bool @public {get;set;} - public bool megagroup {get;set;} - public string title {get;set;} - public TLAbsChatPhoto photo {get;set;} - public int participants_count {get;set;} - public TLVector participants {get;set;} + public int flags { get; set; } + public bool channel { get; set; } + public bool broadcast { get; set; } + public bool @public { get; set; } + public bool megagroup { get; set; } + public string title { get; set; } + public TLAbsChatPhoto photo { get; set; } + public int participants_count { get; set; } + public TLVector participants { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = channel ? (flags | 1) : (flags & ~1); -flags = broadcast ? (flags | 2) : (flags & ~2); -flags = @public ? (flags | 4) : (flags & ~4); -flags = megagroup ? (flags | 8) : (flags & ~8); -flags = participants != null ? (flags | 16) : (flags & ~16); + public void ComputeFlags() + { + flags = 0; + flags = channel ? (flags | 1) : (flags & ~1); + flags = broadcast ? (flags | 2) : (flags & ~2); + flags = @public ? (flags | 4) : (flags & ~4); + flags = megagroup ? (flags | 8) : (flags & ~8); + flags = participants != null ? (flags | 16) : (flags & ~16); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -channel = (flags & 1) != 0; -broadcast = (flags & 2) != 0; -@public = (flags & 4) != 0; -megagroup = (flags & 8) != 0; -title = StringUtil.Deserialize(br); -photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); -participants_count = br.ReadInt32(); -if ((flags & 16) != 0) -participants = (TLVector)ObjectUtils.DeserializeVector(br); -else -participants = null; + channel = (flags & 1) != 0; + broadcast = (flags & 2) != 0; + @public = (flags & 4) != 0; + megagroup = (flags & 8) != 0; + title = StringUtil.Deserialize(br); + photo = (TLAbsChatPhoto)ObjectUtils.DeserializeObject(br); + participants_count = br.ReadInt32(); + if ((flags & 16) != 0) + participants = (TLVector)ObjectUtils.DeserializeVector(br); + else + participants = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(title,bw); -ObjectUtils.SerializeObject(photo,bw); -bw.Write(participants_count); -if ((flags & 16) != 0) -ObjectUtils.SerializeObject(participants,bw); + StringUtil.Serialize(title, bw); + ObjectUtils.SerializeObject(photo, bw); + bw.Write(participants_count); + if ((flags & 16) != 0) + ObjectUtils.SerializeObject(participants, bw); } } diff --git a/TeleSharp.TL/TL/TLChatInviteAlready.cs b/TeleSharp.TL/TL/TLChatInviteAlready.cs index e78bca3..8526376 100644 --- a/TeleSharp.TL/TL/TLChatInviteAlready.cs +++ b/TeleSharp.TL/TL/TLChatInviteAlready.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1516793212)] + [TLObject(1516793212)] public class TLChatInviteAlready : TLAbsChatInvite { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsChat chat {get;set;} + public TLAbsChat chat { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(chat,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(chat, bw); } } diff --git a/TeleSharp.TL/TL/TLChatInviteEmpty.cs b/TeleSharp.TL/TL/TLChatInviteEmpty.cs index 59896d2..34b59f0 100644 --- a/TeleSharp.TL/TL/TLChatInviteEmpty.cs +++ b/TeleSharp.TL/TL/TLChatInviteEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1776236393)] + [TLObject(1776236393)] public class TLChatInviteEmpty : TLAbsExportedChatInvite { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLChatInviteExported.cs b/TeleSharp.TL/TL/TLChatInviteExported.cs index b8a9b61..619b2c2 100644 --- a/TeleSharp.TL/TL/TLChatInviteExported.cs +++ b/TeleSharp.TL/TL/TLChatInviteExported.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-64092740)] + [TLObject(-64092740)] public class TLChatInviteExported : TLAbsExportedChatInvite { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string link {get;set;} + public string link { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(link,bw); + bw.Write(Constructor); + StringUtil.Serialize(link, bw); } } diff --git a/TeleSharp.TL/TL/TLChatParticipant.cs b/TeleSharp.TL/TL/TLChatParticipant.cs index ea8df15..0f1fd23 100644 --- a/TeleSharp.TL/TL/TLChatParticipant.cs +++ b/TeleSharp.TL/TL/TLChatParticipant.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-925415106)] + [TLObject(-925415106)] public class TLChatParticipant : TLAbsChatParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); + bw.Write(inviter_id); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs index d964e28..09e5c8f 100644 --- a/TeleSharp.TL/TL/TLChatParticipantAdmin.cs +++ b/TeleSharp.TL/TL/TLChatParticipantAdmin.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-489233354)] + [TLObject(-489233354)] public class TLChatParticipantAdmin : TLAbsChatParticipant { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); + bw.Write(inviter_id); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLChatParticipantCreator.cs b/TeleSharp.TL/TL/TLChatParticipantCreator.cs index c1fabf7..7d88993 100644 --- a/TeleSharp.TL/TL/TLChatParticipantCreator.cs +++ b/TeleSharp.TL/TL/TLChatParticipantCreator.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-636267638)] + [TLObject(-636267638)] public class TLChatParticipantCreator : TLAbsChatParticipant { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); } diff --git a/TeleSharp.TL/TL/TLChatParticipants.cs b/TeleSharp.TL/TL/TLChatParticipants.cs index 6700490..f24b592 100644 --- a/TeleSharp.TL/TL/TLChatParticipants.cs +++ b/TeleSharp.TL/TL/TLChatParticipants.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1061556205)] + [TLObject(1061556205)] public class TLChatParticipants : TLAbsChatParticipants { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public TLVector participants {get;set;} - public int version {get;set;} + public int chat_id { get; set; } + public TLVector participants { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -participants = (TLVector)ObjectUtils.DeserializeVector(br); -version = br.ReadInt32(); + participants = (TLVector)ObjectUtils.DeserializeVector(br); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -ObjectUtils.SerializeObject(participants,bw); -bw.Write(version); + ObjectUtils.SerializeObject(participants, bw); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs index 7036c6e..a00b013 100644 --- a/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs +++ b/TeleSharp.TL/TL/TLChatParticipantsForbidden.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-57668565)] + [TLObject(-57668565)] public class TLChatParticipantsForbidden : TLAbsChatParticipants { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public int chat_id {get;set;} - public TLAbsChatParticipant self_participant {get;set;} + public int flags { get; set; } + public int chat_id { get; set; } + public TLAbsChatParticipant self_participant { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = self_participant != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = self_participant != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -chat_id = br.ReadInt32(); -if ((flags & 1) != 0) -self_participant = (TLAbsChatParticipant)ObjectUtils.DeserializeObject(br); -else -self_participant = null; + chat_id = br.ReadInt32(); + if ((flags & 1) != 0) + self_participant = (TLAbsChatParticipant)ObjectUtils.DeserializeObject(br); + else + self_participant = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(chat_id); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(self_participant,bw); + bw.Write(flags); + bw.Write(chat_id); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(self_participant, bw); } } diff --git a/TeleSharp.TL/TL/TLChatPhoto.cs b/TeleSharp.TL/TL/TLChatPhoto.cs index 93664fb..2c58635 100644 --- a/TeleSharp.TL/TL/TLChatPhoto.cs +++ b/TeleSharp.TL/TL/TLChatPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1632839530)] + [TLObject(1632839530)] public class TLChatPhoto : TLAbsChatPhoto { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsFileLocation photo_small {get;set;} - public TLAbsFileLocation photo_big {get;set;} + public TLAbsFileLocation photo_small { get; set; } + public TLAbsFileLocation photo_big { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); -photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(photo_small,bw); -ObjectUtils.SerializeObject(photo_big,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo_small, bw); + ObjectUtils.SerializeObject(photo_big, bw); } } diff --git a/TeleSharp.TL/TL/TLChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs index d8601e5..cea4e99 100644 --- a/TeleSharp.TL/TL/TLChatPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLChatPhotoEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(935395612)] + [TLObject(935395612)] public class TLChatPhotoEmpty : TLAbsChatPhoto { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLConfig.cs b/TeleSharp.TL/TL/TLConfig.cs index 92b8ee3..1285ef0 100644 --- a/TeleSharp.TL/TL/TLConfig.cs +++ b/TeleSharp.TL/TL/TLConfig.cs @@ -7,112 +7,134 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1704251862)] + [TLObject(-882895228)] public class TLConfig : TLObject { public override int Constructor { get { - return -1704251862; + return -882895228; } } - public int flags {get;set;} - public int date {get;set;} - public int expires {get;set;} - public bool test_mode {get;set;} - public int this_dc {get;set;} - public TLVector dc_options {get;set;} - public int chat_size_max {get;set;} - public int megagroup_size_max {get;set;} - public int forwarded_count_max {get;set;} - public int online_update_period_ms {get;set;} - public int offline_blur_timeout_ms {get;set;} - public int offline_idle_timeout_ms {get;set;} - public int online_cloud_timeout_ms {get;set;} - public int notify_cloud_delay_ms {get;set;} - public int notify_default_delay_ms {get;set;} - public int chat_big_size {get;set;} - public int push_chat_period_ms {get;set;} - public int push_chat_limit {get;set;} - public int saved_gifs_limit {get;set;} - public int edit_time_limit {get;set;} - public int rating_e_decay {get;set;} - public int stickers_recent_limit {get;set;} - public int? tmp_sessions {get;set;} - public TLVector disabled_features {get;set;} + public int flags { get; set; } + public bool phonecalls_enabled { get; set; } + public int date { get; set; } + public int expires { get; set; } + public bool test_mode { get; set; } + public int this_dc { get; set; } + public TLVector dc_options { get; set; } + public int chat_size_max { get; set; } + public int megagroup_size_max { get; set; } + public int forwarded_count_max { get; set; } + public int online_update_period_ms { get; set; } + public int offline_blur_timeout_ms { get; set; } + public int offline_idle_timeout_ms { get; set; } + public int online_cloud_timeout_ms { get; set; } + public int notify_cloud_delay_ms { get; set; } + public int notify_default_delay_ms { get; set; } + public int chat_big_size { get; set; } + public int push_chat_period_ms { get; set; } + public int push_chat_limit { get; set; } + public int saved_gifs_limit { get; set; } + public int edit_time_limit { get; set; } + public int rating_e_decay { get; set; } + public int stickers_recent_limit { get; set; } + public int? tmp_sessions { get; set; } + public int pinned_dialogs_count_max { get; set; } + public int call_receive_timeout_ms { get; set; } + public int call_ring_timeout_ms { get; set; } + public int call_connect_timeout_ms { get; set; } + public int call_packet_timeout_ms { get; set; } + public string me_url_prefix { get; set; } + public TLVector disabled_features { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = tmp_sessions != null ? (flags | 1) : (flags & ~1); + 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) { flags = br.ReadInt32(); -date = br.ReadInt32(); -expires = br.ReadInt32(); -test_mode = BoolUtil.Deserialize(br); -this_dc = br.ReadInt32(); -dc_options = (TLVector)ObjectUtils.DeserializeVector(br); -chat_size_max = br.ReadInt32(); -megagroup_size_max = br.ReadInt32(); -forwarded_count_max = br.ReadInt32(); -online_update_period_ms = br.ReadInt32(); -offline_blur_timeout_ms = br.ReadInt32(); -offline_idle_timeout_ms = br.ReadInt32(); -online_cloud_timeout_ms = br.ReadInt32(); -notify_cloud_delay_ms = br.ReadInt32(); -notify_default_delay_ms = br.ReadInt32(); -chat_big_size = br.ReadInt32(); -push_chat_period_ms = br.ReadInt32(); -push_chat_limit = br.ReadInt32(); -saved_gifs_limit = br.ReadInt32(); -edit_time_limit = br.ReadInt32(); -rating_e_decay = br.ReadInt32(); -stickers_recent_limit = br.ReadInt32(); -if ((flags & 1) != 0) -tmp_sessions = br.ReadInt32(); -else -tmp_sessions = null; + phonecalls_enabled = (flags & 2) != 0; + date = br.ReadInt32(); + expires = br.ReadInt32(); + test_mode = BoolUtil.Deserialize(br); + this_dc = br.ReadInt32(); + dc_options = (TLVector)ObjectUtils.DeserializeVector(br); + chat_size_max = br.ReadInt32(); + megagroup_size_max = br.ReadInt32(); + forwarded_count_max = br.ReadInt32(); + online_update_period_ms = br.ReadInt32(); + offline_blur_timeout_ms = br.ReadInt32(); + offline_idle_timeout_ms = br.ReadInt32(); + online_cloud_timeout_ms = br.ReadInt32(); + notify_cloud_delay_ms = br.ReadInt32(); + notify_default_delay_ms = br.ReadInt32(); + chat_big_size = br.ReadInt32(); + push_chat_period_ms = br.ReadInt32(); + push_chat_limit = br.ReadInt32(); + saved_gifs_limit = br.ReadInt32(); + edit_time_limit = br.ReadInt32(); + rating_e_decay = br.ReadInt32(); + stickers_recent_limit = br.ReadInt32(); + if ((flags & 1) != 0) + tmp_sessions = br.ReadInt32(); + else + tmp_sessions = null; -disabled_features = (TLVector)ObjectUtils.DeserializeVector(br); + pinned_dialogs_count_max = br.ReadInt32(); + call_receive_timeout_ms = br.ReadInt32(); + call_ring_timeout_ms = br.ReadInt32(); + call_connect_timeout_ms = br.ReadInt32(); + call_packet_timeout_ms = br.ReadInt32(); + me_url_prefix = StringUtil.Deserialize(br); + disabled_features = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(date); -bw.Write(expires); -BoolUtil.Serialize(test_mode,bw); -bw.Write(this_dc); -ObjectUtils.SerializeObject(dc_options,bw); -bw.Write(chat_size_max); -bw.Write(megagroup_size_max); -bw.Write(forwarded_count_max); -bw.Write(online_update_period_ms); -bw.Write(offline_blur_timeout_ms); -bw.Write(offline_idle_timeout_ms); -bw.Write(online_cloud_timeout_ms); -bw.Write(notify_cloud_delay_ms); -bw.Write(notify_default_delay_ms); -bw.Write(chat_big_size); -bw.Write(push_chat_period_ms); -bw.Write(push_chat_limit); -bw.Write(saved_gifs_limit); -bw.Write(edit_time_limit); -bw.Write(rating_e_decay); -bw.Write(stickers_recent_limit); -if ((flags & 1) != 0) -bw.Write(tmp_sessions.Value); -ObjectUtils.SerializeObject(disabled_features,bw); + bw.Write(flags); + + bw.Write(date); + bw.Write(expires); + BoolUtil.Serialize(test_mode, bw); + bw.Write(this_dc); + ObjectUtils.SerializeObject(dc_options, bw); + bw.Write(chat_size_max); + bw.Write(megagroup_size_max); + bw.Write(forwarded_count_max); + bw.Write(online_update_period_ms); + bw.Write(offline_blur_timeout_ms); + bw.Write(offline_idle_timeout_ms); + bw.Write(online_cloud_timeout_ms); + bw.Write(notify_cloud_delay_ms); + bw.Write(notify_default_delay_ms); + bw.Write(chat_big_size); + bw.Write(push_chat_period_ms); + bw.Write(push_chat_limit); + bw.Write(saved_gifs_limit); + bw.Write(edit_time_limit); + bw.Write(rating_e_decay); + bw.Write(stickers_recent_limit); + if ((flags & 1) != 0) + bw.Write(tmp_sessions.Value); + bw.Write(pinned_dialogs_count_max); + bw.Write(call_receive_timeout_ms); + bw.Write(call_ring_timeout_ms); + bw.Write(call_connect_timeout_ms); + bw.Write(call_packet_timeout_ms); + StringUtil.Serialize(me_url_prefix, bw); + ObjectUtils.SerializeObject(disabled_features, bw); } } diff --git a/TeleSharp.TL/TL/TLContact.cs b/TeleSharp.TL/TL/TLContact.cs index 70b5d85..010bb63 100644 --- a/TeleSharp.TL/TL/TLContact.cs +++ b/TeleSharp.TL/TL/TLContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-116274796)] + [TLObject(-116274796)] public class TLContact : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public bool mutual {get;set;} + public int user_id { get; set; } + public bool mutual { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -mutual = BoolUtil.Deserialize(br); + mutual = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -BoolUtil.Serialize(mutual,bw); + BoolUtil.Serialize(mutual, bw); } } diff --git a/TeleSharp.TL/TL/TLContactBlocked.cs b/TeleSharp.TL/TL/TLContactBlocked.cs index 75c0222..c54c457 100644 --- a/TeleSharp.TL/TL/TLContactBlocked.cs +++ b/TeleSharp.TL/TL/TLContactBlocked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1444661369)] + [TLObject(1444661369)] public class TLContactBlocked : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(date); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLContactLinkContact.cs b/TeleSharp.TL/TL/TLContactLinkContact.cs index 5b834a5..3c3b673 100644 --- a/TeleSharp.TL/TL/TLContactLinkContact.cs +++ b/TeleSharp.TL/TL/TLContactLinkContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-721239344)] + [TLObject(-721239344)] public class TLContactLinkContact : TLAbsContactLink { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLContactLinkHasPhone.cs b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs index 90cc2e1..6ac2fd4 100644 --- a/TeleSharp.TL/TL/TLContactLinkHasPhone.cs +++ b/TeleSharp.TL/TL/TLContactLinkHasPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(646922073)] + [TLObject(646922073)] public class TLContactLinkHasPhone : TLAbsContactLink { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLContactLinkNone.cs b/TeleSharp.TL/TL/TLContactLinkNone.cs index 21e0de7..66a0bd9 100644 --- a/TeleSharp.TL/TL/TLContactLinkNone.cs +++ b/TeleSharp.TL/TL/TLContactLinkNone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-17968211)] + [TLObject(-17968211)] public class TLContactLinkNone : TLAbsContactLink { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLContactLinkUnknown.cs b/TeleSharp.TL/TL/TLContactLinkUnknown.cs index 972a5a8..a4a4cd6 100644 --- a/TeleSharp.TL/TL/TLContactLinkUnknown.cs +++ b/TeleSharp.TL/TL/TLContactLinkUnknown.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1599050311)] + [TLObject(1599050311)] public class TLContactLinkUnknown : TLAbsContactLink { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLContactStatus.cs b/TeleSharp.TL/TL/TLContactStatus.cs index cfcc5b9..4d4dcbd 100644 --- a/TeleSharp.TL/TL/TLContactStatus.cs +++ b/TeleSharp.TL/TL/TLContactStatus.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-748155807)] + [TLObject(-748155807)] public class TLContactStatus : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public TLAbsUserStatus status {get;set;} + public int user_id { get; set; } + public TLAbsUserStatus status { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); + status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -ObjectUtils.SerializeObject(status,bw); + ObjectUtils.SerializeObject(status, bw); } } diff --git a/TeleSharp.TL/TL/TLDataJSON.cs b/TeleSharp.TL/TL/TLDataJSON.cs new file mode 100644 index 0000000..88fff40 --- /dev/null +++ b/TeleSharp.TL/TL/TLDataJSON.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2104790276)] + public class TLDataJSON : TLObject + { + public override int Constructor + { + get + { + return 2104790276; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLDcOption.cs b/TeleSharp.TL/TL/TLDcOption.cs index c5b3755..fc27d1a 100644 --- a/TeleSharp.TL/TL/TLDcOption.cs +++ b/TeleSharp.TL/TL/TLDcOption.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(98092748)] + [TLObject(98092748)] public class TLDcOption : TLObject { public override int Constructor @@ -18,47 +18,51 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool ipv6 {get;set;} - public bool media_only {get;set;} - public bool tcpo_only {get;set;} - public int id {get;set;} - public string ip_address {get;set;} - public int port {get;set;} + public int flags { get; set; } + public bool ipv6 { get; set; } + public bool media_only { get; set; } + public bool tcpo_only { get; set; } + public bool cdn { get; set; } + public int id { get; set; } + public string ip_address { get; set; } + public int port { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = ipv6 ? (flags | 1) : (flags & ~1); -flags = media_only ? (flags | 2) : (flags & ~2); -flags = tcpo_only ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = ipv6 ? (flags | 1) : (flags & ~1); + 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) { flags = br.ReadInt32(); -ipv6 = (flags & 1) != 0; -media_only = (flags & 2) != 0; -tcpo_only = (flags & 4) != 0; -id = br.ReadInt32(); -ip_address = StringUtil.Deserialize(br); -port = br.ReadInt32(); + ipv6 = (flags & 1) != 0; + media_only = (flags & 2) != 0; + tcpo_only = (flags & 4) != 0; + cdn = (flags & 8) != 0; + id = br.ReadInt32(); + ip_address = StringUtil.Deserialize(br); + port = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -StringUtil.Serialize(ip_address,bw); -bw.Write(port); + + bw.Write(id); + StringUtil.Serialize(ip_address, bw); + bw.Write(port); } } diff --git a/TeleSharp.TL/TL/TLDialog.cs b/TeleSharp.TL/TL/TLDialog.cs index 33578e6..53578c4 100644 --- a/TeleSharp.TL/TL/TLDialog.cs +++ b/TeleSharp.TL/TL/TLDialog.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1728035348)] + [TLObject(1728035348)] public class TLDialog : TLObject { public override int Constructor @@ -18,62 +18,66 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsPeer peer {get;set;} - public int top_message {get;set;} - public int read_inbox_max_id {get;set;} - public int read_outbox_max_id {get;set;} - public int unread_count {get;set;} - public TLAbsPeerNotifySettings notify_settings {get;set;} - public int? pts {get;set;} - public TLAbsDraftMessage draft {get;set;} + public int flags { get; set; } + public bool pinned { get; set; } + public TLAbsPeer peer { get; set; } + public int top_message { get; set; } + public int read_inbox_max_id { get; set; } + public int read_outbox_max_id { get; set; } + public int unread_count { get; set; } + public TLAbsPeerNotifySettings notify_settings { get; set; } + public int? pts { get; set; } + public TLAbsDraftMessage draft { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = pts != null ? (flags | 1) : (flags & ~1); -flags = draft != null ? (flags | 2) : (flags & ~2); + public 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) { flags = br.ReadInt32(); -peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -top_message = br.ReadInt32(); -read_inbox_max_id = br.ReadInt32(); -read_outbox_max_id = br.ReadInt32(); -unread_count = br.ReadInt32(); -notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -pts = br.ReadInt32(); -else -pts = null; + pinned = (flags & 4) != 0; + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + top_message = br.ReadInt32(); + read_inbox_max_id = br.ReadInt32(); + read_outbox_max_id = br.ReadInt32(); + unread_count = br.ReadInt32(); + notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + pts = br.ReadInt32(); + else + pts = null; -if ((flags & 2) != 0) -draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); -else -draft = null; + if ((flags & 2) != 0) + draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); + else + draft = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(top_message); -bw.Write(read_inbox_max_id); -bw.Write(read_outbox_max_id); -bw.Write(unread_count); -ObjectUtils.SerializeObject(notify_settings,bw); -if ((flags & 1) != 0) -bw.Write(pts.Value); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(draft,bw); + bw.Write(flags); + + ObjectUtils.SerializeObject(peer, bw); + bw.Write(top_message); + bw.Write(read_inbox_max_id); + bw.Write(read_outbox_max_id); + bw.Write(unread_count); + ObjectUtils.SerializeObject(notify_settings, bw); + if ((flags & 1) != 0) + bw.Write(pts.Value); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(draft, bw); } } diff --git a/TeleSharp.TL/TL/TLDisabledFeature.cs b/TeleSharp.TL/TL/TLDisabledFeature.cs index 6e35761..e5304a4 100644 --- a/TeleSharp.TL/TL/TLDisabledFeature.cs +++ b/TeleSharp.TL/TL/TLDisabledFeature.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1369215196)] + [TLObject(-1369215196)] public class TLDisabledFeature : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string feature {get;set;} - public string description {get;set;} + public string feature { get; set; } + public string description { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { feature = StringUtil.Deserialize(br); -description = StringUtil.Deserialize(br); + description = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(feature,bw); -StringUtil.Serialize(description,bw); + bw.Write(Constructor); + StringUtil.Serialize(feature, bw); + StringUtil.Serialize(description, bw); } } diff --git a/TeleSharp.TL/TL/TLDocument.cs b/TeleSharp.TL/TL/TLDocument.cs index fe64f1e..1fe6dde 100644 --- a/TeleSharp.TL/TL/TLDocument.cs +++ b/TeleSharp.TL/TL/TLDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2027738169)] + [TLObject(-2027738169)] public class TLDocument : TLAbsDocument { public override int Constructor @@ -18,48 +18,48 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} - public int date {get;set;} - public string mime_type {get;set;} - public int size {get;set;} - public TLAbsPhotoSize thumb {get;set;} - public int dc_id {get;set;} - public int version {get;set;} - public TLVector attributes {get;set;} + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public string mime_type { get; set; } + public int size { get; set; } + public TLAbsPhotoSize thumb { get; set; } + public int dc_id { get; set; } + public int version { get; set; } + public TLVector attributes { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); -date = br.ReadInt32(); -mime_type = StringUtil.Deserialize(br); -size = br.ReadInt32(); -thumb = (TLAbsPhotoSize)ObjectUtils.DeserializeObject(br); -dc_id = br.ReadInt32(); -version = br.ReadInt32(); -attributes = (TLVector)ObjectUtils.DeserializeVector(br); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + mime_type = StringUtil.Deserialize(br); + size = br.ReadInt32(); + thumb = (TLAbsPhotoSize)ObjectUtils.DeserializeObject(br); + dc_id = br.ReadInt32(); + version = br.ReadInt32(); + attributes = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(date); -StringUtil.Serialize(mime_type,bw); -bw.Write(size); -ObjectUtils.SerializeObject(thumb,bw); -bw.Write(dc_id); -bw.Write(version); -ObjectUtils.SerializeObject(attributes,bw); + bw.Write(access_hash); + bw.Write(date); + StringUtil.Serialize(mime_type, bw); + bw.Write(size); + ObjectUtils.SerializeObject(thumb, bw); + bw.Write(dc_id); + bw.Write(version); + ObjectUtils.SerializeObject(attributes, bw); } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs index 0d0159d..e090031 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeAnimated.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(297109817)] + [TLObject(297109817)] public class TLDocumentAttributeAnimated : TLAbsDocumentAttribute { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs index 7c6be47..cb98173 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeAudio.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1739392570)] + [TLObject(-1739392570)] public class TLDocumentAttributeAudio : TLAbsDocumentAttribute { public override int Constructor @@ -18,60 +18,60 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool voice {get;set;} - public int duration {get;set;} - public string title {get;set;} - public string performer {get;set;} - public byte[] waveform {get;set;} + public int flags { get; set; } + public bool voice { get; set; } + public int duration { get; set; } + public string title { get; set; } + public string performer { get; set; } + public byte[] waveform { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = voice ? (flags | 1024) : (flags & ~1024); -flags = title != null ? (flags | 1) : (flags & ~1); -flags = performer != null ? (flags | 2) : (flags & ~2); -flags = waveform != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = voice ? (flags | 1024) : (flags & ~1024); + flags = title != null ? (flags | 1) : (flags & ~1); + flags = performer != null ? (flags | 2) : (flags & ~2); + flags = waveform != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -voice = (flags & 1024) != 0; -duration = br.ReadInt32(); -if ((flags & 1) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + voice = (flags & 1024) != 0; + duration = br.ReadInt32(); + if ((flags & 1) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 2) != 0) -performer = StringUtil.Deserialize(br); -else -performer = null; + if ((flags & 2) != 0) + performer = StringUtil.Deserialize(br); + else + performer = null; -if ((flags & 4) != 0) -waveform = BytesUtil.Deserialize(br); -else -waveform = null; + if ((flags & 4) != 0) + waveform = BytesUtil.Deserialize(br); + else + waveform = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(duration); -if ((flags & 1) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(performer,bw); -if ((flags & 4) != 0) -BytesUtil.Serialize(waveform,bw); + bw.Write(duration); + if ((flags & 1) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(performer, bw); + if ((flags & 4) != 0) + BytesUtil.Serialize(waveform, bw); } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs index 5b41c66..86c21a1 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeFilename.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(358154344)] + [TLObject(358154344)] public class TLDocumentAttributeFilename : TLAbsDocumentAttribute { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string file_name {get;set;} + public string file_name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(file_name,bw); + bw.Write(Constructor); + StringUtil.Serialize(file_name, bw); } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs b/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs index 706cfaa..a31049f 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeHasStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1744710921)] + [TLObject(-1744710921)] public class TLDocumentAttributeHasStickers : TLAbsDocumentAttribute { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs index bba7e08..304e930 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeImageSize.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1815593308)] + [TLObject(1815593308)] public class TLDocumentAttributeImageSize : TLAbsDocumentAttribute { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int w {get;set;} - public int h {get;set;} + public int w { get; set; } + public int h { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { w = br.ReadInt32(); -h = br.ReadInt32(); + h = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(w); -bw.Write(h); + bw.Write(h); } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs index 3c784c8..46fa3e0 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeSticker.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1662637586)] + [TLObject(1662637586)] public class TLDocumentAttributeSticker : TLAbsDocumentAttribute { public override int Constructor @@ -18,45 +18,45 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool mask {get;set;} - public string alt {get;set;} - public TLAbsInputStickerSet stickerset {get;set;} - public TLMaskCoords mask_coords {get;set;} + public int flags { get; set; } + public bool mask { get; set; } + public string alt { get; set; } + 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 void ComputeFlags() + { + flags = 0; + flags = mask ? (flags | 2) : (flags & ~2); + flags = mask_coords != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -mask = (flags & 2) != 0; -alt = StringUtil.Deserialize(br); -stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br); -else -mask_coords = null; + mask = (flags & 2) != 0; + alt = StringUtil.Deserialize(br); + stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br); + else + mask_coords = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(alt,bw); -ObjectUtils.SerializeObject(stickerset,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(mask_coords,bw); + StringUtil.Serialize(alt, bw); + ObjectUtils.SerializeObject(stickerset, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(mask_coords, bw); } } diff --git a/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs index 899001e..ed3f842 100644 --- a/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs +++ b/TeleSharp.TL/TL/TLDocumentAttributeVideo.cs @@ -7,41 +7,50 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1494273227)] + [TLObject(250621158)] public class TLDocumentAttributeVideo : TLAbsDocumentAttribute { public override int Constructor { get { - return 1494273227; + return 250621158; } } - public int duration {get;set;} - public int w {get;set;} - public int h {get;set;} + public int flags { get; set; } + public bool round_message { get; set; } + public int duration { get; set; } + public int w { get; set; } + public int h { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + flags = 0; + flags = round_message ? (flags | 1) : (flags & ~1); + + } public override void DeserializeBody(BinaryReader br) { + flags = br.ReadInt32(); + round_message = (flags & 1) != 0; duration = br.ReadInt32(); -w = br.ReadInt32(); -h = br.ReadInt32(); + w = br.ReadInt32(); + h = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(duration); -bw.Write(w); -bw.Write(h); + bw.Write(w); + bw.Write(h); } } diff --git a/TeleSharp.TL/TL/TLDocumentEmpty.cs b/TeleSharp.TL/TL/TLDocumentEmpty.cs index 9b50832..30a0930 100644 --- a/TeleSharp.TL/TL/TLDocumentEmpty.cs +++ b/TeleSharp.TL/TL/TLDocumentEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(922273905)] + [TLObject(922273905)] public class TLDocumentEmpty : TLAbsDocument { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public long id {get;set;} + public long id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLDraftMessage.cs b/TeleSharp.TL/TL/TLDraftMessage.cs index 80ed9aa..6ab9751 100644 --- a/TeleSharp.TL/TL/TLDraftMessage.cs +++ b/TeleSharp.TL/TL/TLDraftMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-40996577)] + [TLObject(-40996577)] public class TLDraftMessage : TLAbsDraftMessage { public override int Constructor @@ -18,54 +18,54 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public int? reply_to_msg_id {get;set;} - public string message {get;set;} - public TLVector entities {get;set;} - public int date {get;set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public int? reply_to_msg_id { get; set; } + public string message { get; set; } + public TLVector entities { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 2) : (flags & ~2); -flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); -flags = entities != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 2) : (flags & ~2); + flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1); + flags = entities != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 2) != 0; -if ((flags & 1) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + no_webpage = (flags & 2) != 0; + if ((flags & 1) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -message = StringUtil.Deserialize(br); -if ((flags & 8) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + message = StringUtil.Deserialize(br); + if ((flags & 8) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -if ((flags & 1) != 0) -bw.Write(reply_to_msg_id.Value); -StringUtil.Serialize(message,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(entities,bw); -bw.Write(date); + if ((flags & 1) != 0) + bw.Write(reply_to_msg_id.Value); + StringUtil.Serialize(message, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(entities, bw); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLDraftMessageEmpty.cs b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs index 4c99e53..a5d31cf 100644 --- a/TeleSharp.TL/TL/TLDraftMessageEmpty.cs +++ b/TeleSharp.TL/TL/TLDraftMessageEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1169445179)] + [TLObject(-1169445179)] public class TLDraftMessageEmpty : TLAbsDraftMessage { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLEncryptedChat.cs b/TeleSharp.TL/TL/TLEncryptedChat.cs index 47a9821..ba71d7c 100644 --- a/TeleSharp.TL/TL/TLEncryptedChat.cs +++ b/TeleSharp.TL/TL/TLEncryptedChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-94974410)] + [TLObject(-94974410)] public class TLEncryptedChat : TLAbsEncryptedChat { public override int Constructor @@ -18,42 +18,42 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public long access_hash {get;set;} - public int date {get;set;} - public int admin_id {get;set;} - public int participant_id {get;set;} - public byte[] g_a_or_b {get;set;} - public long key_fingerprint {get;set;} + public int id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public byte[] g_a_or_b { get; set; } + public long key_fingerprint { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -access_hash = br.ReadInt64(); -date = br.ReadInt32(); -admin_id = br.ReadInt32(); -participant_id = br.ReadInt32(); -g_a_or_b = BytesUtil.Deserialize(br); -key_fingerprint = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + g_a_or_b = BytesUtil.Deserialize(br); + key_fingerprint = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(date); -bw.Write(admin_id); -bw.Write(participant_id); -BytesUtil.Serialize(g_a_or_b,bw); -bw.Write(key_fingerprint); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + BytesUtil.Serialize(g_a_or_b, bw); + bw.Write(key_fingerprint); } } diff --git a/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs index f77be4b..f6331e1 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatDiscarded.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(332848423)] + [TLObject(332848423)] public class TLEncryptedChatDiscarded : TLAbsEncryptedChat { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int id {get;set;} + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs index ade6345..9a0f353 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1417756512)] + [TLObject(-1417756512)] public class TLEncryptedChatEmpty : TLAbsEncryptedChat { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int id {get;set;} + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLEncryptedChatRequested.cs b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs index 3d6a10e..18f82c6 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatRequested.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatRequested.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-931638658)] + [TLObject(-931638658)] public class TLEncryptedChatRequested : TLAbsEncryptedChat { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public long access_hash {get;set;} - public int date {get;set;} - public int admin_id {get;set;} - public int participant_id {get;set;} - public byte[] g_a {get;set;} + public int id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public byte[] g_a { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -access_hash = br.ReadInt64(); -date = br.ReadInt32(); -admin_id = br.ReadInt32(); -participant_id = br.ReadInt32(); -g_a = BytesUtil.Deserialize(br); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + g_a = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(date); -bw.Write(admin_id); -bw.Write(participant_id); -BytesUtil.Serialize(g_a,bw); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + BytesUtil.Serialize(g_a, bw); } } diff --git a/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs index 7a1e308..1b8b20e 100644 --- a/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs +++ b/TeleSharp.TL/TL/TLEncryptedChatWaiting.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1006044124)] + [TLObject(1006044124)] public class TLEncryptedChatWaiting : TLAbsEncryptedChat { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public long access_hash {get;set;} - public int date {get;set;} - public int admin_id {get;set;} - public int participant_id {get;set;} + public int id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -access_hash = br.ReadInt64(); -date = br.ReadInt32(); -admin_id = br.ReadInt32(); -participant_id = br.ReadInt32(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(date); -bw.Write(admin_id); -bw.Write(participant_id); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); } } diff --git a/TeleSharp.TL/TL/TLEncryptedFile.cs b/TeleSharp.TL/TL/TLEncryptedFile.cs index fc6fd67..138b49a 100644 --- a/TeleSharp.TL/TL/TLEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLEncryptedFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1248893260)] + [TLObject(1248893260)] public class TLEncryptedFile : TLAbsEncryptedFile { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} - public int size {get;set;} - public int dc_id {get;set;} - public int key_fingerprint {get;set;} + public long id { get; set; } + public long access_hash { get; set; } + public int size { get; set; } + public int dc_id { get; set; } + public int key_fingerprint { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); -size = br.ReadInt32(); -dc_id = br.ReadInt32(); -key_fingerprint = br.ReadInt32(); + access_hash = br.ReadInt64(); + size = br.ReadInt32(); + dc_id = br.ReadInt32(); + key_fingerprint = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(size); -bw.Write(dc_id); -bw.Write(key_fingerprint); + bw.Write(access_hash); + bw.Write(size); + bw.Write(dc_id); + bw.Write(key_fingerprint); } } diff --git a/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs index 91b1fed..d1735f2 100644 --- a/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs +++ b/TeleSharp.TL/TL/TLEncryptedFileEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1038136962)] + [TLObject(-1038136962)] public class TLEncryptedFileEmpty : TLAbsEncryptedFile { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLEncryptedMessage.cs b/TeleSharp.TL/TL/TLEncryptedMessage.cs index 6b834a4..fde4d6c 100644 --- a/TeleSharp.TL/TL/TLEncryptedMessage.cs +++ b/TeleSharp.TL/TL/TLEncryptedMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-317144808)] + [TLObject(-317144808)] public class TLEncryptedMessage : TLAbsEncryptedMessage { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public long random_id {get;set;} - public int chat_id {get;set;} - public int date {get;set;} - public byte[] bytes {get;set;} - public TLAbsEncryptedFile file {get;set;} + public long random_id { get; set; } + public int chat_id { get; set; } + public int date { get; set; } + public byte[] bytes { get; set; } + public TLAbsEncryptedFile file { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { random_id = br.ReadInt64(); -chat_id = br.ReadInt32(); -date = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); -file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); + chat_id = br.ReadInt32(); + date = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); + file = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(random_id); -bw.Write(chat_id); -bw.Write(date); -BytesUtil.Serialize(bytes,bw); -ObjectUtils.SerializeObject(file,bw); + bw.Write(chat_id); + bw.Write(date); + BytesUtil.Serialize(bytes, bw); + ObjectUtils.SerializeObject(file, bw); } } diff --git a/TeleSharp.TL/TL/TLEncryptedMessageService.cs b/TeleSharp.TL/TL/TLEncryptedMessageService.cs index 643fd12..8b80e11 100644 --- a/TeleSharp.TL/TL/TLEncryptedMessageService.cs +++ b/TeleSharp.TL/TL/TLEncryptedMessageService.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(594758406)] + [TLObject(594758406)] public class TLEncryptedMessageService : TLAbsEncryptedMessage { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public long random_id {get;set;} - public int chat_id {get;set;} - public int date {get;set;} - public byte[] bytes {get;set;} + public long random_id { get; set; } + public int chat_id { get; set; } + public int date { get; set; } + public byte[] bytes { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { random_id = br.ReadInt64(); -chat_id = br.ReadInt32(); -date = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + chat_id = br.ReadInt32(); + date = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(random_id); -bw.Write(chat_id); -bw.Write(date); -BytesUtil.Serialize(bytes,bw); + bw.Write(chat_id); + bw.Write(date); + BytesUtil.Serialize(bytes, bw); } } diff --git a/TeleSharp.TL/TL/TLError.cs b/TeleSharp.TL/TL/TLError.cs index 73dab0a..808fb57 100644 --- a/TeleSharp.TL/TL/TLError.cs +++ b/TeleSharp.TL/TL/TLError.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-994444869)] + [TLObject(-994444869)] public class TLError : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int code {get;set;} - public string text {get;set;} + public int code { get; set; } + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { code = br.ReadInt32(); -text = StringUtil.Deserialize(br); + text = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(code); -StringUtil.Serialize(text,bw); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLExportedMessageLink.cs b/TeleSharp.TL/TL/TLExportedMessageLink.cs index 47df36c..f1aa71c 100644 --- a/TeleSharp.TL/TL/TLExportedMessageLink.cs +++ b/TeleSharp.TL/TL/TLExportedMessageLink.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(524838915)] + [TLObject(524838915)] public class TLExportedMessageLink : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string link {get;set;} + public string link { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(link,bw); + bw.Write(Constructor); + StringUtil.Serialize(link, bw); } } diff --git a/TeleSharp.TL/TL/TLFileLocation.cs b/TeleSharp.TL/TL/TLFileLocation.cs index 41b7c83..89815eb 100644 --- a/TeleSharp.TL/TL/TLFileLocation.cs +++ b/TeleSharp.TL/TL/TLFileLocation.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1406570614)] + [TLObject(1406570614)] public class TLFileLocation : TLAbsFileLocation { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int dc_id {get;set;} - public long volume_id {get;set;} - public int local_id {get;set;} - public long secret {get;set;} + public int dc_id { get; set; } + public long volume_id { get; set; } + public int local_id { get; set; } + public long secret { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { dc_id = br.ReadInt32(); -volume_id = br.ReadInt64(); -local_id = br.ReadInt32(); -secret = br.ReadInt64(); + volume_id = br.ReadInt64(); + local_id = br.ReadInt32(); + secret = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(dc_id); -bw.Write(volume_id); -bw.Write(local_id); -bw.Write(secret); + bw.Write(volume_id); + bw.Write(local_id); + bw.Write(secret); } } diff --git a/TeleSharp.TL/TL/TLFileLocationUnavailable.cs b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs index 0c848df..a11d98b 100644 --- a/TeleSharp.TL/TL/TLFileLocationUnavailable.cs +++ b/TeleSharp.TL/TL/TLFileLocationUnavailable.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2086234950)] + [TLObject(2086234950)] public class TLFileLocationUnavailable : TLAbsFileLocation { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long volume_id {get;set;} - public int local_id {get;set;} - public long secret {get;set;} + public long volume_id { get; set; } + public int local_id { get; set; } + public long secret { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { volume_id = br.ReadInt64(); -local_id = br.ReadInt32(); -secret = br.ReadInt64(); + local_id = br.ReadInt32(); + secret = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(volume_id); -bw.Write(local_id); -bw.Write(secret); + bw.Write(local_id); + bw.Write(secret); } } diff --git a/TeleSharp.TL/TL/TLFoundGif.cs b/TeleSharp.TL/TL/TLFoundGif.cs index d8b4c4d..80f4234 100644 --- a/TeleSharp.TL/TL/TLFoundGif.cs +++ b/TeleSharp.TL/TL/TLFoundGif.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(372165663)] + [TLObject(372165663)] public class TLFoundGif : TLAbsFoundGif { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL } } - public string url {get;set;} - public string thumb_url {get;set;} - public string content_url {get;set;} - public string content_type {get;set;} - public int w {get;set;} - public int h {get;set;} + public string url { get; set; } + public string thumb_url { get; set; } + public string content_url { get; set; } + public string content_type { get; set; } + public int w { get; set; } + public int h { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); -thumb_url = StringUtil.Deserialize(br); -content_url = StringUtil.Deserialize(br); -content_type = StringUtil.Deserialize(br); -w = br.ReadInt32(); -h = br.ReadInt32(); + thumb_url = StringUtil.Deserialize(br); + content_url = StringUtil.Deserialize(br); + content_type = StringUtil.Deserialize(br); + w = br.ReadInt32(); + h = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(url,bw); -StringUtil.Serialize(thumb_url,bw); -StringUtil.Serialize(content_url,bw); -StringUtil.Serialize(content_type,bw); -bw.Write(w); -bw.Write(h); + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(thumb_url, bw); + StringUtil.Serialize(content_url, bw); + StringUtil.Serialize(content_type, bw); + bw.Write(w); + bw.Write(h); } } diff --git a/TeleSharp.TL/TL/TLFoundGifCached.cs b/TeleSharp.TL/TL/TLFoundGifCached.cs index af1a4f1..aaf0d97 100644 --- a/TeleSharp.TL/TL/TLFoundGifCached.cs +++ b/TeleSharp.TL/TL/TLFoundGifCached.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1670052855)] + [TLObject(-1670052855)] public class TLFoundGifCached : TLAbsFoundGif { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public string url {get;set;} - public TLAbsPhoto photo {get;set;} - public TLAbsDocument document {get;set;} + public string url { get; set; } + public TLAbsPhoto photo { get; set; } + public TLAbsDocument document { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); -photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(url,bw); -ObjectUtils.SerializeObject(photo,bw); -ObjectUtils.SerializeObject(document,bw); + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + ObjectUtils.SerializeObject(photo, bw); + ObjectUtils.SerializeObject(document, bw); } } diff --git a/TeleSharp.TL/TL/TLGame.cs b/TeleSharp.TL/TL/TLGame.cs index 3ffebf3..1c39aec 100644 --- a/TeleSharp.TL/TL/TLGame.cs +++ b/TeleSharp.TL/TL/TLGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1107729093)] + [TLObject(-1107729093)] public class TLGame : TLObject { public override int Constructor @@ -18,53 +18,53 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public long id {get;set;} - public long access_hash {get;set;} - public string short_name {get;set;} - public string title {get;set;} - public string description {get;set;} - public TLAbsPhoto photo {get;set;} - public TLAbsDocument document {get;set;} + public int flags { get; set; } + public long id { get; set; } + public long access_hash { get; set; } + public string short_name { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLAbsPhoto photo { get; set; } + public TLAbsDocument document { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = document != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = document != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = br.ReadInt64(); -access_hash = br.ReadInt64(); -short_name = StringUtil.Deserialize(br); -title = StringUtil.Deserialize(br); -description = StringUtil.Deserialize(br); -photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -if ((flags & 1) != 0) -document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); -else -document = null; + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + short_name = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); + description = StringUtil.Deserialize(br); + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + else + document = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(id); -bw.Write(access_hash); -StringUtil.Serialize(short_name,bw); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(description,bw); -ObjectUtils.SerializeObject(photo,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(document,bw); + bw.Write(flags); + bw.Write(id); + bw.Write(access_hash); + StringUtil.Serialize(short_name, bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(description, bw); + ObjectUtils.SerializeObject(photo, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(document, bw); } } diff --git a/TeleSharp.TL/TL/TLGeoPoint.cs b/TeleSharp.TL/TL/TLGeoPoint.cs index a7a7478..5825c85 100644 --- a/TeleSharp.TL/TL/TLGeoPoint.cs +++ b/TeleSharp.TL/TL/TLGeoPoint.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(541710092)] + [TLObject(541710092)] public class TLGeoPoint : TLAbsGeoPoint { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public double @long {get;set;} - public double lat {get;set;} + public double @long { get; set; } + public double lat { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @long = br.ReadDouble(); -lat = br.ReadDouble(); + lat = br.ReadDouble(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(@long); -bw.Write(lat); + bw.Write(lat); } } diff --git a/TeleSharp.TL/TL/TLGeoPointEmpty.cs b/TeleSharp.TL/TL/TLGeoPointEmpty.cs index e3e7d7e..9caaffc 100644 --- a/TeleSharp.TL/TL/TLGeoPointEmpty.cs +++ b/TeleSharp.TL/TL/TLGeoPointEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(286776671)] + [TLObject(286776671)] public class TLGeoPointEmpty : TLAbsGeoPoint { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLHighScore.cs b/TeleSharp.TL/TL/TLHighScore.cs index d780248..344afc4 100644 --- a/TeleSharp.TL/TL/TLHighScore.cs +++ b/TeleSharp.TL/TL/TLHighScore.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1493171408)] + [TLObject(1493171408)] public class TLHighScore : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int pos {get;set;} - public int user_id {get;set;} - public int score {get;set;} + public int pos { get; set; } + public int user_id { get; set; } + public int score { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { pos = br.ReadInt32(); -user_id = br.ReadInt32(); -score = br.ReadInt32(); + user_id = br.ReadInt32(); + score = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(pos); -bw.Write(user_id); -bw.Write(score); + bw.Write(user_id); + bw.Write(score); } } diff --git a/TeleSharp.TL/TL/TLImportedContact.cs b/TeleSharp.TL/TL/TLImportedContact.cs index 0f4189d..e9472bd 100644 --- a/TeleSharp.TL/TL/TLImportedContact.cs +++ b/TeleSharp.TL/TL/TLImportedContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-805141448)] + [TLObject(-805141448)] public class TLImportedContact : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public long client_id {get;set;} + public int user_id { get; set; } + public long client_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -client_id = br.ReadInt64(); + client_id = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(client_id); + bw.Write(client_id); } } diff --git a/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs index 168d719..abe0402 100644 --- a/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs +++ b/TeleSharp.TL/TL/TLInlineBotSwitchPM.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1008755359)] + [TLObject(1008755359)] public class TLInlineBotSwitchPM : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string text {get;set;} - public string start_param {get;set;} + public string text { get; set; } + public string start_param { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { text = StringUtil.Deserialize(br); -start_param = StringUtil.Deserialize(br); + start_param = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); -StringUtil.Serialize(start_param,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); + StringUtil.Serialize(start_param, bw); } } diff --git a/TeleSharp.TL/TL/TLInputAppEvent.cs b/TeleSharp.TL/TL/TLInputAppEvent.cs index 0ce016a..c363fd3 100644 --- a/TeleSharp.TL/TL/TLInputAppEvent.cs +++ b/TeleSharp.TL/TL/TLInputAppEvent.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1996904104)] + [TLObject(1996904104)] public class TLInputAppEvent : TLObject { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public double time {get;set;} - public string type {get;set;} - public long peer {get;set;} - public string data {get;set;} + public double time { get; set; } + public string type { get; set; } + public long peer { get; set; } + public string data { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { time = br.ReadDouble(); -type = StringUtil.Deserialize(br); -peer = br.ReadInt64(); -data = StringUtil.Deserialize(br); + type = StringUtil.Deserialize(br); + peer = br.ReadInt64(); + data = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(time); -StringUtil.Serialize(type,bw); -bw.Write(peer); -StringUtil.Serialize(data,bw); + StringUtil.Serialize(type, bw); + bw.Write(peer); + StringUtil.Serialize(data, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs index 719f6f8..fb64d88 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1262639204)] + [TLObject(1262639204)] public class TLInputBotInlineMessageGame : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,35 +18,35 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + 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 void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs index 2942e1d..d6fbb90 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageID.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1995686519)] + [TLObject(-1995686519)] public class TLInputBotInlineMessageID : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int dc_id {get;set;} - public long id {get;set;} - public long access_hash {get;set;} + public int dc_id { get; set; } + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { dc_id = br.ReadInt32(); -id = br.ReadInt64(); -access_hash = br.ReadInt64(); + id = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(dc_id); -bw.Write(id); -bw.Write(access_hash); + bw.Write(id); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs index 6c872db..4f95b57 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaAuto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(691006739)] + [TLObject(691006739)] public class TLInputBotInlineMessageMediaAuto : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string caption {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public string caption { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -caption = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + caption = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(caption,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + StringUtil.Serialize(caption, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs index b7b8e8a..6cb03c1 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(766443943)] + [TLObject(766443943)] public class TLInputBotInlineMessageMediaContact : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,44 +18,44 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string phone_number {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public string phone_number { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -phone_number = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + phone_number = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs index fb5cf6d..4f1e0b4 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaGeo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-190472735)] + [TLObject(-190472735)] public class TLInputBotInlineMessageMediaGeo : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsInputGeoPoint geo_point {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public TLAbsInputGeoPoint geo_point { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(geo_point,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(geo_point, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs index bccde0f..bcdc206 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageMediaVenue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1431327288)] + [TLObject(-1431327288)] public class TLInputBotInlineMessageMediaVenue : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,50 +18,50 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsInputGeoPoint geo_point {get;set;} - public string title {get;set;} - public string address {get;set;} - public string provider {get;set;} - public string venue_id {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public TLAbsInputGeoPoint geo_point { get; set; } + public string title { get; set; } + public string address { get; set; } + public string provider { get; set; } + public string venue_id { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); -title = StringUtil.Deserialize(br); -address = StringUtil.Deserialize(br); -provider = StringUtil.Deserialize(br); -venue_id = StringUtil.Deserialize(br); -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); + title = StringUtil.Deserialize(br); + address = StringUtil.Deserialize(br); + provider = StringUtil.Deserialize(br); + venue_id = StringUtil.Deserialize(br); + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(geo_point,bw); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(address,bw); -StringUtil.Serialize(provider,bw); -StringUtil.Serialize(venue_id,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(geo_point, bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(address, bw); + StringUtil.Serialize(provider, bw); + StringUtil.Serialize(venue_id, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs index b2a3224..74c7e89 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineMessageText.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1036876423)] + [TLObject(1036876423)] public class TLInputBotInlineMessageText : TLAbsInputBotInlineMessage { public override int Constructor @@ -18,51 +18,51 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool no_webpage {get;set;} - public string message {get;set;} - public TLVector entities {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} + public int flags { get; set; } + public bool no_webpage { get; set; } + public string message { get; set; } + public TLVector entities { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = no_webpage ? (flags | 1) : (flags & ~1); -flags = entities != null ? (flags | 2) : (flags & ~2); -flags = reply_markup != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = no_webpage ? (flags | 1) : (flags & ~1); + flags = entities != null ? (flags | 2) : (flags & ~2); + flags = reply_markup != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -no_webpage = (flags & 1) != 0; -message = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + no_webpage = (flags & 1) != 0; + message = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; -if ((flags & 4) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 4) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(message,bw); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(entities,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); + StringUtil.Serialize(message, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(entities, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineResult.cs b/TeleSharp.TL/TL/TLInputBotInlineResult.cs index cc2d640..61cb634 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResult.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResult.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(750510426)] + [TLObject(750510426)] public class TLInputBotInlineResult : TLAbsInputBotInlineResult { public override int Constructor @@ -18,116 +18,116 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string id {get;set;} - public string type {get;set;} - public string title {get;set;} - public string description {get;set;} - public string url {get;set;} - public string thumb_url {get;set;} - public string content_url {get;set;} - public string content_type {get;set;} - public int? w {get;set;} - public int? h {get;set;} - public int? duration {get;set;} - public TLAbsInputBotInlineMessage send_message {get;set;} + public int flags { get; set; } + public string id { get; set; } + public string type { get; set; } + public string title { get; set; } + public string description { get; set; } + public string url { get; set; } + public string thumb_url { get; set; } + public string content_url { get; set; } + public string content_type { get; set; } + public int? w { get; set; } + public int? h { get; set; } + public int? duration { get; set; } + public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = title != null ? (flags | 2) : (flags & ~2); -flags = description != null ? (flags | 4) : (flags & ~4); -flags = url != null ? (flags | 8) : (flags & ~8); -flags = thumb_url != null ? (flags | 16) : (flags & ~16); -flags = content_url != null ? (flags | 32) : (flags & ~32); -flags = content_type != null ? (flags | 32) : (flags & ~32); -flags = w != null ? (flags | 64) : (flags & ~64); -flags = h != null ? (flags | 64) : (flags & ~64); -flags = duration != null ? (flags | 128) : (flags & ~128); + public void ComputeFlags() + { + flags = 0; + flags = title != null ? (flags | 2) : (flags & ~2); + flags = description != null ? (flags | 4) : (flags & ~4); + flags = url != null ? (flags | 8) : (flags & ~8); + flags = thumb_url != null ? (flags | 16) : (flags & ~16); + flags = content_url != null ? (flags | 32) : (flags & ~32); + flags = content_type != null ? (flags | 32) : (flags & ~32); + flags = w != null ? (flags | 64) : (flags & ~64); + flags = h != null ? (flags | 64) : (flags & ~64); + flags = duration != null ? (flags | 128) : (flags & ~128); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = StringUtil.Deserialize(br); -type = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + id = StringUtil.Deserialize(br); + type = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 4) != 0) -description = StringUtil.Deserialize(br); -else -description = null; + if ((flags & 4) != 0) + description = StringUtil.Deserialize(br); + else + description = null; -if ((flags & 8) != 0) -url = StringUtil.Deserialize(br); -else -url = null; + if ((flags & 8) != 0) + url = StringUtil.Deserialize(br); + else + url = null; -if ((flags & 16) != 0) -thumb_url = StringUtil.Deserialize(br); -else -thumb_url = null; + if ((flags & 16) != 0) + thumb_url = StringUtil.Deserialize(br); + else + thumb_url = null; -if ((flags & 32) != 0) -content_url = StringUtil.Deserialize(br); -else -content_url = null; + if ((flags & 32) != 0) + content_url = StringUtil.Deserialize(br); + else + content_url = null; -if ((flags & 32) != 0) -content_type = StringUtil.Deserialize(br); -else -content_type = null; + if ((flags & 32) != 0) + content_type = StringUtil.Deserialize(br); + else + content_type = null; -if ((flags & 64) != 0) -w = br.ReadInt32(); -else -w = null; + if ((flags & 64) != 0) + w = br.ReadInt32(); + else + w = null; -if ((flags & 64) != 0) -h = br.ReadInt32(); -else -h = null; + if ((flags & 64) != 0) + h = br.ReadInt32(); + else + h = null; -if ((flags & 128) != 0) -duration = br.ReadInt32(); -else -duration = null; + if ((flags & 128) != 0) + duration = br.ReadInt32(); + else + duration = null; -send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(id,bw); -StringUtil.Serialize(type,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(description,bw); -if ((flags & 8) != 0) -StringUtil.Serialize(url,bw); -if ((flags & 16) != 0) -StringUtil.Serialize(thumb_url,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(content_url,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(content_type,bw); -if ((flags & 64) != 0) -bw.Write(w.Value); -if ((flags & 64) != 0) -bw.Write(h.Value); -if ((flags & 128) != 0) -bw.Write(duration.Value); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(flags); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(type, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(description, bw); + if ((flags & 8) != 0) + StringUtil.Serialize(url, bw); + if ((flags & 16) != 0) + StringUtil.Serialize(thumb_url, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(content_url, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(content_type, bw); + if ((flags & 64) != 0) + bw.Write(w.Value); + if ((flags & 64) != 0) + bw.Write(h.Value); + if ((flags & 128) != 0) + bw.Write(duration.Value); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs index 8a66ef1..d6cbd34 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-459324)] + [TLObject(-459324)] public class TLInputBotInlineResultDocument : TLAbsInputBotInlineResult { public override int Constructor @@ -18,56 +18,56 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public string id {get;set;} - public string type {get;set;} - public string title {get;set;} - public string description {get;set;} - public TLAbsInputDocument document {get;set;} - public TLAbsInputBotInlineMessage send_message {get;set;} + public int flags { get; set; } + public string id { get; set; } + public string type { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLAbsInputDocument document { get; set; } + public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = title != null ? (flags | 2) : (flags & ~2); -flags = description != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = title != null ? (flags | 2) : (flags & ~2); + flags = description != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = StringUtil.Deserialize(br); -type = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + id = StringUtil.Deserialize(br); + type = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 4) != 0) -description = StringUtil.Deserialize(br); -else -description = null; + if ((flags & 4) != 0) + description = StringUtil.Deserialize(br); + else + description = null; -document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); -send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); + send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -StringUtil.Serialize(id,bw); -StringUtil.Serialize(type,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(description,bw); -ObjectUtils.SerializeObject(document,bw); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(flags); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(type, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(description, bw); + ObjectUtils.SerializeObject(document, bw); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs b/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs index acffa0c..332f5ba 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1336154098)] + [TLObject(1336154098)] public class TLInputBotInlineResultGame : TLAbsInputBotInlineResult { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public string id {get;set;} - public string short_name {get;set;} - public TLAbsInputBotInlineMessage send_message {get;set;} + public string id { get; set; } + public string short_name { get; set; } + public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = StringUtil.Deserialize(br); -short_name = StringUtil.Deserialize(br); -send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + short_name = StringUtil.Deserialize(br); + send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(id,bw); -StringUtil.Serialize(short_name,bw); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(short_name, bw); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs index 9eb347a..d1f5163 100644 --- a/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs +++ b/TeleSharp.TL/TL/TLInputBotInlineResultPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1462213465)] + [TLObject(-1462213465)] public class TLInputBotInlineResultPhoto : TLAbsInputBotInlineResult { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public string id {get;set;} - public string type {get;set;} - public TLAbsInputPhoto photo {get;set;} - public TLAbsInputBotInlineMessage send_message {get;set;} + public string id { get; set; } + public string type { get; set; } + public TLAbsInputPhoto photo { get; set; } + public TLAbsInputBotInlineMessage send_message { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = StringUtil.Deserialize(br); -type = StringUtil.Deserialize(br); -photo = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); -send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); + type = StringUtil.Deserialize(br); + photo = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); + send_message = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(id,bw); -StringUtil.Serialize(type,bw); -ObjectUtils.SerializeObject(photo,bw); -ObjectUtils.SerializeObject(send_message,bw); + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(type, bw); + ObjectUtils.SerializeObject(photo, bw); + ObjectUtils.SerializeObject(send_message, bw); } } diff --git a/TeleSharp.TL/TL/TLInputChannel.cs b/TeleSharp.TL/TL/TLInputChannel.cs index 85dddd5..1ddc7b6 100644 --- a/TeleSharp.TL/TL/TLInputChannel.cs +++ b/TeleSharp.TL/TL/TLInputChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1343524562)] + [TLObject(-1343524562)] public class TLInputChannel : TLAbsInputChannel { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public long access_hash {get;set;} + public int channel_id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputChannelEmpty.cs b/TeleSharp.TL/TL/TLInputChannelEmpty.cs index ca78ac3..886a76a 100644 --- a/TeleSharp.TL/TL/TLInputChannelEmpty.cs +++ b/TeleSharp.TL/TL/TLInputChannelEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-292807034)] + [TLObject(-292807034)] public class TLInputChannelEmpty : TLAbsInputChannel { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputChatPhoto.cs b/TeleSharp.TL/TL/TLInputChatPhoto.cs index 9fbf75f..b121571 100644 --- a/TeleSharp.TL/TL/TLInputChatPhoto.cs +++ b/TeleSharp.TL/TL/TLInputChatPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1991004873)] + [TLObject(-1991004873)] public class TLInputChatPhoto : TLAbsInputChatPhoto { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputPhoto id {get;set;} + public TLAbsInputPhoto id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs index 06a5a4c..38ef207 100644 --- a/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLInputChatPhotoEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(480546647)] + [TLObject(480546647)] public class TLInputChatPhotoEmpty : TLAbsInputChatPhoto { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs index 261abd1..1d39edb 100644 --- a/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs +++ b/TeleSharp.TL/TL/TLInputChatUploadedPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1837345356)] + [TLObject(-1837345356)] public class TLInputChatUploadedPhoto : TLAbsInputChatPhoto { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputFile file {get;set;} + public TLAbsInputFile file { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(file,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(file, bw); } } diff --git a/TeleSharp.TL/TL/TLInputDocument.cs b/TeleSharp.TL/TL/TLInputDocument.cs index 9eddc50..4a126e3 100644 --- a/TeleSharp.TL/TL/TLInputDocument.cs +++ b/TeleSharp.TL/TL/TLInputDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(410618194)] + [TLObject(410618194)] public class TLInputDocument : TLAbsInputDocument { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputDocumentEmpty.cs b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs index 633f184..b5fa786 100644 --- a/TeleSharp.TL/TL/TLInputDocumentEmpty.cs +++ b/TeleSharp.TL/TL/TLInputDocumentEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1928391342)] + [TLObject(1928391342)] public class TLInputDocumentEmpty : TLAbsInputDocument { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs index 7ea3962..9df5282 100644 --- a/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputDocumentFileLocation.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1125058340)] + [TLObject(1125058340)] public class TLInputDocumentFileLocation : TLAbsInputFileLocation { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} - public int version {get;set;} + public long id { get; set; } + public long access_hash { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); -version = br.ReadInt32(); + access_hash = br.ReadInt64(); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); -bw.Write(version); + bw.Write(access_hash); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedChat.cs b/TeleSharp.TL/TL/TLInputEncryptedChat.cs index 621c114..71e9ff1 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedChat.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-247351839)] + [TLObject(-247351839)] public class TLInputEncryptedChat : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public long access_hash {get;set;} + public int chat_id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedFile.cs b/TeleSharp.TL/TL/TLInputEncryptedFile.cs index bb97377..1c9ca5e 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFile.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1511503333)] + [TLObject(1511503333)] public class TLInputEncryptedFile : TLAbsInputEncryptedFile { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs index d4235b6..9b72184 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileBigUploaded.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(767652808)] + [TLObject(767652808)] public class TLInputEncryptedFileBigUploaded : TLAbsInputEncryptedFile { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public int parts {get;set;} - public int key_fingerprint {get;set;} + public long id { get; set; } + public int parts { get; set; } + public int key_fingerprint { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -parts = br.ReadInt32(); -key_fingerprint = br.ReadInt32(); + parts = br.ReadInt32(); + key_fingerprint = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(parts); -bw.Write(key_fingerprint); + bw.Write(parts); + bw.Write(key_fingerprint); } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs index 37c1002..0768ad0 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(406307684)] + [TLObject(406307684)] public class TLInputEncryptedFileEmpty : TLAbsInputEncryptedFile { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs index 533b621..dc995eb 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileLocation.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-182231723)] + [TLObject(-182231723)] public class TLInputEncryptedFileLocation : TLAbsInputFileLocation { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs index 6b34147..098c53c 100644 --- a/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs +++ b/TeleSharp.TL/TL/TLInputEncryptedFileUploaded.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1690108678)] + [TLObject(1690108678)] public class TLInputEncryptedFileUploaded : TLAbsInputEncryptedFile { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public int parts {get;set;} - public string md5_checksum {get;set;} - public int key_fingerprint {get;set;} + public long id { get; set; } + public int parts { get; set; } + public string md5_checksum { get; set; } + public int key_fingerprint { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -parts = br.ReadInt32(); -md5_checksum = StringUtil.Deserialize(br); -key_fingerprint = br.ReadInt32(); + parts = br.ReadInt32(); + md5_checksum = StringUtil.Deserialize(br); + key_fingerprint = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(parts); -StringUtil.Serialize(md5_checksum,bw); -bw.Write(key_fingerprint); + bw.Write(parts); + StringUtil.Serialize(md5_checksum, bw); + bw.Write(key_fingerprint); } } diff --git a/TeleSharp.TL/TL/TLInputFile.cs b/TeleSharp.TL/TL/TLInputFile.cs index 0238639..27bb35a 100644 --- a/TeleSharp.TL/TL/TLInputFile.cs +++ b/TeleSharp.TL/TL/TLInputFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-181407105)] + [TLObject(-181407105)] public class TLInputFile : TLAbsInputFile { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public int parts {get;set;} - public string name {get;set;} - public string md5_checksum {get;set;} + public long id { get; set; } + public int parts { get; set; } + public string name { get; set; } + public string md5_checksum { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -parts = br.ReadInt32(); -name = StringUtil.Deserialize(br); -md5_checksum = StringUtil.Deserialize(br); + parts = br.ReadInt32(); + name = StringUtil.Deserialize(br); + md5_checksum = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(parts); -StringUtil.Serialize(name,bw); -StringUtil.Serialize(md5_checksum,bw); + bw.Write(parts); + StringUtil.Serialize(name, bw); + StringUtil.Serialize(md5_checksum, bw); } } diff --git a/TeleSharp.TL/TL/TLInputFileBig.cs b/TeleSharp.TL/TL/TLInputFileBig.cs index 837d835..7ff2248 100644 --- a/TeleSharp.TL/TL/TLInputFileBig.cs +++ b/TeleSharp.TL/TL/TLInputFileBig.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-95482955)] + [TLObject(-95482955)] public class TLInputFileBig : TLAbsInputFile { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public int parts {get;set;} - public string name {get;set;} + public long id { get; set; } + public int parts { get; set; } + public string name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -parts = br.ReadInt32(); -name = StringUtil.Deserialize(br); + parts = br.ReadInt32(); + name = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(parts); -StringUtil.Serialize(name,bw); + bw.Write(parts); + StringUtil.Serialize(name, bw); } } diff --git a/TeleSharp.TL/TL/TLInputFileLocation.cs b/TeleSharp.TL/TL/TLInputFileLocation.cs index da5d20f..11af85d 100644 --- a/TeleSharp.TL/TL/TLInputFileLocation.cs +++ b/TeleSharp.TL/TL/TLInputFileLocation.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(342061462)] + [TLObject(342061462)] public class TLInputFileLocation : TLAbsInputFileLocation { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long volume_id {get;set;} - public int local_id {get;set;} - public long secret {get;set;} + public long volume_id { get; set; } + public int local_id { get; set; } + public long secret { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { volume_id = br.ReadInt64(); -local_id = br.ReadInt32(); -secret = br.ReadInt64(); + local_id = br.ReadInt32(); + secret = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(volume_id); -bw.Write(local_id); -bw.Write(secret); + bw.Write(local_id); + bw.Write(secret); } } diff --git a/TeleSharp.TL/TL/TLInputGameID.cs b/TeleSharp.TL/TL/TLInputGameID.cs index d397528..26963e2 100644 --- a/TeleSharp.TL/TL/TLInputGameID.cs +++ b/TeleSharp.TL/TL/TLInputGameID.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(53231223)] + [TLObject(53231223)] public class TLInputGameID : TLAbsInputGame { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputGameShortName.cs b/TeleSharp.TL/TL/TLInputGameShortName.cs index 0231027..1ec009e 100644 --- a/TeleSharp.TL/TL/TLInputGameShortName.cs +++ b/TeleSharp.TL/TL/TLInputGameShortName.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1020139510)] + [TLObject(-1020139510)] public class TLInputGameShortName : TLAbsInputGame { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsInputUser bot_id {get;set;} - public string short_name {get;set;} + public TLAbsInputUser bot_id { get; set; } + public string short_name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { bot_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); -short_name = StringUtil.Deserialize(br); + short_name = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(bot_id,bw); -StringUtil.Serialize(short_name,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(bot_id, bw); + StringUtil.Serialize(short_name, bw); } } diff --git a/TeleSharp.TL/TL/TLInputGeoPoint.cs b/TeleSharp.TL/TL/TLInputGeoPoint.cs index e67feb7..5afce57 100644 --- a/TeleSharp.TL/TL/TLInputGeoPoint.cs +++ b/TeleSharp.TL/TL/TLInputGeoPoint.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-206066487)] + [TLObject(-206066487)] public class TLInputGeoPoint : TLAbsInputGeoPoint { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public double lat {get;set;} - public double @long {get;set;} + public double lat { get; set; } + public double @long { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { lat = br.ReadDouble(); -@long = br.ReadDouble(); + @long = br.ReadDouble(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(lat); -bw.Write(@long); + bw.Write(@long); } } diff --git a/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs index 43bb442..765e72a 100644 --- a/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs +++ b/TeleSharp.TL/TL/TLInputGeoPointEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-457104426)] + [TLObject(-457104426)] public class TLInputGeoPointEmpty : TLAbsInputGeoPoint { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMediaContact.cs b/TeleSharp.TL/TL/TLInputMediaContact.cs index c363dfc..793114a 100644 --- a/TeleSharp.TL/TL/TLInputMediaContact.cs +++ b/TeleSharp.TL/TL/TLInputMediaContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1494984313)] + [TLObject(-1494984313)] public class TLInputMediaContact : TLAbsInputMedia { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public string phone_number {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} + public string phone_number { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaDocument.cs b/TeleSharp.TL/TL/TLInputMediaDocument.cs index 74e59fe..53d2925 100644 --- a/TeleSharp.TL/TL/TLInputMediaDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(444068508)] + [TLObject(444068508)] public class TLInputMediaDocument : TLAbsInputMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsInputDocument id {get;set;} - public string caption {get;set;} + public TLAbsInputDocument id { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs b/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs index e81ee17..622bcec 100644 --- a/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaDocumentExternal.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-437690244)] + [TLObject(-437690244)] public class TLInputMediaDocumentExternal : TLAbsInputMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string url {get;set;} - public string caption {get;set;} + public string url { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(url,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaEmpty.cs b/TeleSharp.TL/TL/TLInputMediaEmpty.cs index eb084d7..eb9e65f 100644 --- a/TeleSharp.TL/TL/TLInputMediaEmpty.cs +++ b/TeleSharp.TL/TL/TLInputMediaEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1771768449)] + [TLObject(-1771768449)] public class TLInputMediaEmpty : TLAbsInputMedia { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMediaGame.cs b/TeleSharp.TL/TL/TLInputMediaGame.cs index 55cda86..117c3bc 100644 --- a/TeleSharp.TL/TL/TLInputMediaGame.cs +++ b/TeleSharp.TL/TL/TLInputMediaGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-750828557)] + [TLObject(-750828557)] public class TLInputMediaGame : TLAbsInputMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputGame id {get;set;} + public TLAbsInputGame id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs index ef89518..37a7793 100644 --- a/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs +++ b/TeleSharp.TL/TL/TLInputMediaGeoPoint.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-104578748)] + [TLObject(-104578748)] public class TLInputMediaGeoPoint : TLAbsInputMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputGeoPoint geo_point {get;set;} + public TLAbsInputGeoPoint geo_point { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(geo_point,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo_point, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaGifExternal.cs b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs index f87b5a7..69b3d2b 100644 --- a/TeleSharp.TL/TL/TLInputMediaGifExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaGifExternal.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1212395773)] + [TLObject(1212395773)] public class TLInputMediaGifExternal : TLAbsInputMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string url {get;set;} - public string q {get;set;} + public string url { get; set; } + public string q { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); -q = StringUtil.Deserialize(br); + q = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(url,bw); -StringUtil.Serialize(q,bw); + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(q, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaInvoice.cs b/TeleSharp.TL/TL/TLInputMediaInvoice.cs new file mode 100644 index 0000000..7558df7 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMediaInvoice.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1844103547)] + public class TLInputMediaInvoice : TLAbsInputMedia + { + public override int Constructor + { + get + { + return -1844103547; + } + } + + public int flags { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLInputWebDocument photo { get; set; } + public TLInvoice invoice { get; set; } + public byte[] payload { get; set; } + 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) + { + flags = br.ReadInt32(); + title = StringUtil.Deserialize(br); + description = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + photo = (TLInputWebDocument)ObjectUtils.DeserializeObject(br); + else + photo = null; + + invoice = (TLInvoice)ObjectUtils.DeserializeObject(br); + payload = BytesUtil.Deserialize(br); + provider = StringUtil.Deserialize(br); + start_param = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(description, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(photo, bw); + ObjectUtils.SerializeObject(invoice, bw); + BytesUtil.Serialize(payload, bw); + StringUtil.Serialize(provider, bw); + StringUtil.Serialize(start_param, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMediaPhoto.cs b/TeleSharp.TL/TL/TLInputMediaPhoto.cs index fca67bf..21ac04f 100644 --- a/TeleSharp.TL/TL/TLInputMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLInputMediaPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-373312269)] + [TLObject(-373312269)] public class TLInputMediaPhoto : TLAbsInputMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsInputPhoto id {get;set;} - public string caption {get;set;} + public TLAbsInputPhoto id { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs b/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs index a252aab..f2e0621 100644 --- a/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs +++ b/TeleSharp.TL/TL/TLInputMediaPhotoExternal.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1252045032)] + [TLObject(-1252045032)] public class TLInputMediaPhotoExternal : TLAbsInputMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string url {get;set;} - public string caption {get;set;} + public string url { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(url,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs index 23a57a8..87d195a 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-797904407)] + [TLObject(-797904407)] public class TLInputMediaUploadedDocument : TLAbsInputMedia { public override int Constructor @@ -18,47 +18,47 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsInputFile file {get;set;} - public string mime_type {get;set;} - public TLVector attributes {get;set;} - public string caption {get;set;} - public TLVector stickers {get;set;} + public int flags { get; set; } + public TLAbsInputFile file { get; set; } + public string mime_type { get; set; } + public TLVector attributes { get; set; } + public string caption { get; set; } + public TLVector stickers { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = stickers != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = stickers != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); -mime_type = StringUtil.Deserialize(br); -attributes = (TLVector)ObjectUtils.DeserializeVector(br); -caption = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -stickers = (TLVector)ObjectUtils.DeserializeVector(br); -else -stickers = null; + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); + mime_type = StringUtil.Deserialize(br); + attributes = (TLVector)ObjectUtils.DeserializeVector(br); + caption = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + stickers = (TLVector)ObjectUtils.DeserializeVector(br); + else + stickers = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(file,bw); -StringUtil.Serialize(mime_type,bw); -ObjectUtils.SerializeObject(attributes,bw); -StringUtil.Serialize(caption,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(stickers,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(file, bw); + StringUtil.Serialize(mime_type, bw); + ObjectUtils.SerializeObject(attributes, bw); + StringUtil.Serialize(caption, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(stickers, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs index beb4050..491026d 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1661770481)] + [TLObject(1661770481)] public class TLInputMediaUploadedPhoto : TLAbsInputMedia { public override int Constructor @@ -18,41 +18,41 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsInputFile file {get;set;} - public string caption {get;set;} - public TLVector stickers {get;set;} + public int flags { get; set; } + public TLAbsInputFile file { get; set; } + public string caption { get; set; } + public TLVector stickers { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = stickers != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = stickers != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); -caption = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -stickers = (TLVector)ObjectUtils.DeserializeVector(br); -else -stickers = null; + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); + caption = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + stickers = (TLVector)ObjectUtils.DeserializeVector(br); + else + stickers = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(file,bw); -StringUtil.Serialize(caption,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(stickers,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(file, bw); + StringUtil.Serialize(caption, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(stickers, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs index 17b1c84..1376b6e 100644 --- a/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs +++ b/TeleSharp.TL/TL/TLInputMediaUploadedThumbDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1356369070)] + [TLObject(1356369070)] public class TLInputMediaUploadedThumbDocument : TLAbsInputMedia { public override int Constructor @@ -18,50 +18,50 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public TLAbsInputFile file {get;set;} - public TLAbsInputFile thumb {get;set;} - public string mime_type {get;set;} - public TLVector attributes {get;set;} - public string caption {get;set;} - public TLVector stickers {get;set;} + public int flags { get; set; } + public TLAbsInputFile file { get; set; } + public TLAbsInputFile thumb { get; set; } + public string mime_type { get; set; } + public TLVector attributes { get; set; } + public string caption { get; set; } + public TLVector stickers { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = stickers != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = stickers != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); -thumb = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); -mime_type = StringUtil.Deserialize(br); -attributes = (TLVector)ObjectUtils.DeserializeVector(br); -caption = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -stickers = (TLVector)ObjectUtils.DeserializeVector(br); -else -stickers = null; + file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); + thumb = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); + mime_type = StringUtil.Deserialize(br); + attributes = (TLVector)ObjectUtils.DeserializeVector(br); + caption = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + stickers = (TLVector)ObjectUtils.DeserializeVector(br); + else + stickers = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -ObjectUtils.SerializeObject(file,bw); -ObjectUtils.SerializeObject(thumb,bw); -StringUtil.Serialize(mime_type,bw); -ObjectUtils.SerializeObject(attributes,bw); -StringUtil.Serialize(caption,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(stickers,bw); + bw.Write(flags); + ObjectUtils.SerializeObject(file, bw); + ObjectUtils.SerializeObject(thumb, bw); + StringUtil.Serialize(mime_type, bw); + ObjectUtils.SerializeObject(attributes, bw); + StringUtil.Serialize(caption, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(stickers, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMediaVenue.cs b/TeleSharp.TL/TL/TLInputMediaVenue.cs index dc263e7..32ca4b4 100644 --- a/TeleSharp.TL/TL/TLInputMediaVenue.cs +++ b/TeleSharp.TL/TL/TLInputMediaVenue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(673687578)] + [TLObject(673687578)] public class TLInputMediaVenue : TLAbsInputMedia { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public TLAbsInputGeoPoint geo_point {get;set;} - public string title {get;set;} - public string address {get;set;} - public string provider {get;set;} - public string venue_id {get;set;} + public TLAbsInputGeoPoint geo_point { get; set; } + public string title { get; set; } + public string address { get; set; } + public string provider { get; set; } + public string venue_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); -title = StringUtil.Deserialize(br); -address = StringUtil.Deserialize(br); -provider = StringUtil.Deserialize(br); -venue_id = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); + address = StringUtil.Deserialize(br); + provider = StringUtil.Deserialize(br); + venue_id = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(geo_point,bw); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(address,bw); -StringUtil.Serialize(provider,bw); -StringUtil.Serialize(venue_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo_point, bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(address, bw); + StringUtil.Serialize(provider, bw); + StringUtil.Serialize(venue_id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs index 227b439..249c494 100644 --- a/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs +++ b/TeleSharp.TL/TL/TLInputMessageEntityMentionName.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(546203849)] + [TLObject(546203849)] public class TLInputMessageEntityMentionName : TLAbsMessageEntity { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} - public TLAbsInputUser user_id {get;set;} + public int offset { get; set; } + public int length { get; set; } + public TLAbsInputUser user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); -user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); + length = br.ReadInt32(); + user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); -ObjectUtils.SerializeObject(user_id,bw); + bw.Write(length); + ObjectUtils.SerializeObject(user_id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs index f455a3c..e0e50b4 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterChatPhotos.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(975236280)] + [TLObject(975236280)] public class TLInputMessagesFilterChatPhotos : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs index d2b52a6..a94c03e 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1629621880)] + [TLObject(-1629621880)] public class TLInputMessagesFilterDocument : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs index 947f778..38ab571 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1474492012)] + [TLObject(1474492012)] public class TLInputMessagesFilterEmpty : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs index 0a59d17..859a973 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterGif.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-3644025)] + [TLObject(-3644025)] public class TLInputMessagesFilterGif : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs index 5baa36d..28a86fe 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterMusic.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(928101534)] + [TLObject(928101534)] public class TLInputMessagesFilterMusic : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs new file mode 100644 index 0000000..dd7b97a --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2134272152)] + public class TLInputMessagesFilterPhoneCalls : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -2134272152; + } + } + + 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) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs index a791d0d..4cc17e5 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1458172132)] + [TLObject(1458172132)] public class TLInputMessagesFilterPhotoVideo : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs index 1f98292..5b1c262 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotoVideoDocuments.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-648121413)] + [TLObject(-648121413)] public class TLInputMessagesFilterPhotoVideoDocuments : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs index bffea4e..ae49c77 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterPhotos.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1777752804)] + [TLObject(-1777752804)] public class TLInputMessagesFilterPhotos : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs new file mode 100644 index 0000000..d7fc258 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1253451181)] + public class TLInputMessagesFilterRoundVideo : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return -1253451181; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs new file mode 100644 index 0000000..8d6bf1d --- /dev/null +++ b/TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2054952868)] + public class TLInputMessagesFilterRoundVoice : TLAbsMessagesFilter + { + public override int Constructor + { + get + { + return 2054952868; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs index 035ca88..6fb42b5 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterUrl.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2129714567)] + [TLObject(2129714567)] public class TLInputMessagesFilterUrl : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs index 9463034..8f714a6 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVideo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1614803355)] + [TLObject(-1614803355)] public class TLInputMessagesFilterVideo : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs index a8a5e84..8f55014 100644 --- a/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs +++ b/TeleSharp.TL/TL/TLInputMessagesFilterVoice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1358283666)] + [TLObject(1358283666)] public class TLInputMessagesFilterVoice : TLAbsMessagesFilter { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputNotifyAll.cs b/TeleSharp.TL/TL/TLInputNotifyAll.cs index 66d4344..d8651fa 100644 --- a/TeleSharp.TL/TL/TLInputNotifyAll.cs +++ b/TeleSharp.TL/TL/TLInputNotifyAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1540769658)] + [TLObject(-1540769658)] public class TLInputNotifyAll : TLAbsInputNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputNotifyChats.cs b/TeleSharp.TL/TL/TLInputNotifyChats.cs index e478fdd..f997223 100644 --- a/TeleSharp.TL/TL/TLInputNotifyChats.cs +++ b/TeleSharp.TL/TL/TLInputNotifyChats.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1251338318)] + [TLObject(1251338318)] public class TLInputNotifyChats : TLAbsInputNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputNotifyPeer.cs b/TeleSharp.TL/TL/TLInputNotifyPeer.cs index 14afd63..1e6943b 100644 --- a/TeleSharp.TL/TL/TLInputNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLInputNotifyPeer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1195615476)] + [TLObject(-1195615476)] public class TLInputNotifyPeer : TLAbsInputNotifyPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputPeer peer {get;set;} + public TLAbsInputPeer peer { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } } diff --git a/TeleSharp.TL/TL/TLInputNotifyUsers.cs b/TeleSharp.TL/TL/TLInputNotifyUsers.cs index 9a7aaa5..e896b47 100644 --- a/TeleSharp.TL/TL/TLInputNotifyUsers.cs +++ b/TeleSharp.TL/TL/TLInputNotifyUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(423314455)] + [TLObject(423314455)] public class TLInputNotifyUsers : TLAbsInputNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPaymentCredentials.cs b/TeleSharp.TL/TL/TLInputPaymentCredentials.cs new file mode 100644 index 0000000..8f9852c --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPaymentCredentials.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(873977640)] + public class TLInputPaymentCredentials : TLAbsInputPaymentCredentials + { + public override int Constructor + { + get + { + return 873977640; + } + } + + public int flags { get; set; } + 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) + { + flags = br.ReadInt32(); + save = (flags & 1) != 0; + data = (TLDataJSON)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(data, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs b/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs new file mode 100644 index 0000000..f8ff075 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1056001329)] + public class TLInputPaymentCredentialsSaved : TLAbsInputPaymentCredentials + { + public override int Constructor + { + get + { + return -1056001329; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + BytesUtil.Serialize(tmp_password, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPeerChannel.cs b/TeleSharp.TL/TL/TLInputPeerChannel.cs index 373252c..f1452d4 100644 --- a/TeleSharp.TL/TL/TLInputPeerChannel.cs +++ b/TeleSharp.TL/TL/TLInputPeerChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(548253432)] + [TLObject(548253432)] public class TLInputPeerChannel : TLAbsInputPeer { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public long access_hash {get;set;} + public int channel_id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputPeerChat.cs b/TeleSharp.TL/TL/TLInputPeerChat.cs index 698940e..6de3926 100644 --- a/TeleSharp.TL/TL/TLInputPeerChat.cs +++ b/TeleSharp.TL/TL/TLInputPeerChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(396093539)] + [TLObject(396093539)] public class TLInputPeerChat : TLAbsInputPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} + public int chat_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } diff --git a/TeleSharp.TL/TL/TLInputPeerEmpty.cs b/TeleSharp.TL/TL/TLInputPeerEmpty.cs index 6a2cd99..b30e5cb 100644 --- a/TeleSharp.TL/TL/TLInputPeerEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPeerEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2134579434)] + [TLObject(2134579434)] public class TLInputPeerEmpty : TLAbsInputPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs index 112d750..35df4ed 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-395694988)] + [TLObject(-395694988)] public class TLInputPeerNotifyEventsAll : TLAbsInputPeerNotifyEvents { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs index 9d1d885..f913a8a 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifyEventsEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-265263912)] + [TLObject(-265263912)] public class TLInputPeerNotifyEventsEmpty : TLAbsInputPeerNotifyEvents { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs index 827e12c..eeadd13 100644 --- a/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs +++ b/TeleSharp.TL/TL/TLInputPeerNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(949182130)] + [TLObject(949182130)] public class TLInputPeerNotifySettings : TLObject { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool show_previews {get;set;} - public bool silent {get;set;} - public int mute_until {get;set;} - public string sound {get;set;} + public int flags { get; set; } + public bool show_previews { get; set; } + public bool silent { get; set; } + public int mute_until { get; set; } + public string sound { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = show_previews ? (flags | 1) : (flags & ~1); -flags = silent ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = show_previews ? (flags | 1) : (flags & ~1); + flags = silent ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -show_previews = (flags & 1) != 0; -silent = (flags & 2) != 0; -mute_until = br.ReadInt32(); -sound = StringUtil.Deserialize(br); + show_previews = (flags & 1) != 0; + silent = (flags & 2) != 0; + mute_until = br.ReadInt32(); + sound = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(mute_until); -StringUtil.Serialize(sound,bw); + bw.Write(mute_until); + StringUtil.Serialize(sound, bw); } } diff --git a/TeleSharp.TL/TL/TLInputPeerSelf.cs b/TeleSharp.TL/TL/TLInputPeerSelf.cs index 9eb864e..ae1de40 100644 --- a/TeleSharp.TL/TL/TLInputPeerSelf.cs +++ b/TeleSharp.TL/TL/TLInputPeerSelf.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2107670217)] + [TLObject(2107670217)] public class TLInputPeerSelf : TLAbsInputPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPeerUser.cs b/TeleSharp.TL/TL/TLInputPeerUser.cs index 361eb61..38c63d6 100644 --- a/TeleSharp.TL/TL/TLInputPeerUser.cs +++ b/TeleSharp.TL/TL/TLInputPeerUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2072935910)] + [TLObject(2072935910)] public class TLInputPeerUser : TLAbsInputPeer { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public long access_hash {get;set;} + public int user_id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputPhoneCall.cs b/TeleSharp.TL/TL/TLInputPhoneCall.cs new file mode 100644 index 0000000..e2f96ee --- /dev/null +++ b/TeleSharp.TL/TL/TLInputPhoneCall.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(506920429)] + public class TLInputPhoneCall : TLObject + { + public override int Constructor + { + get + { + return 506920429; + } + } + + public long id { get; set; } + public long access_hash { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputPhoneContact.cs b/TeleSharp.TL/TL/TLInputPhoneContact.cs index 69f9983..651c19c 100644 --- a/TeleSharp.TL/TL/TLInputPhoneContact.cs +++ b/TeleSharp.TL/TL/TLInputPhoneContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-208488460)] + [TLObject(-208488460)] public class TLInputPhoneContact : TLObject { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public long client_id {get;set;} - public string phone {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} + public long client_id { get; set; } + public string phone { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { client_id = br.ReadInt64(); -phone = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); + phone = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(client_id); -StringUtil.Serialize(phone,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); + StringUtil.Serialize(phone, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); } } diff --git a/TeleSharp.TL/TL/TLInputPhoto.cs b/TeleSharp.TL/TL/TLInputPhoto.cs index 542fdaa..2526698 100644 --- a/TeleSharp.TL/TL/TLInputPhoto.cs +++ b/TeleSharp.TL/TL/TLInputPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-74070332)] + [TLObject(-74070332)] public class TLInputPhoto : TLAbsInputPhoto { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputPhotoEmpty.cs b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs index a940b96..e86298b 100644 --- a/TeleSharp.TL/TL/TLInputPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPhotoEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(483901197)] + [TLObject(483901197)] public class TLInputPhotoEmpty : TLAbsInputPhoto { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs index 65c0c9d..6ad6919 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1107622874)] + [TLObject(-1107622874)] public class TLInputPrivacyKeyChatInvite : TLAbsInputPrivacyKey { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs similarity index 63% rename from TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs rename to TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs index 527e58e..772863b 100644 --- a/TeleSharp.TL/TL/Help/TLAppChangelogEmpty.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs @@ -5,35 +5,35 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; -namespace TeleSharp.TL.Help +namespace TeleSharp.TL { - [TLObject(-1350696044)] - public class TLAppChangelogEmpty : TLAbsAppChangelog + [TLObject(-88417185)] + public class TLInputPrivacyKeyPhoneCall : TLAbsInputPrivacyKey { public override int Constructor { get { - return -1350696044; + return -88417185; } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs index 467d620..20d0ea5 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyKeyStatusTimestamp.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1335282456)] + [TLObject(1335282456)] public class TLInputPrivacyKeyStatusTimestamp : TLAbsInputPrivacyKey { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs index 5a58756..ff6ab62 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(407582158)] + [TLObject(407582158)] public class TLInputPrivacyValueAllowAll : TLAbsInputPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs index 66f1148..2ebb4e9 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(218751099)] + [TLObject(218751099)] public class TLInputPrivacyValueAllowContacts : TLAbsInputPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs index 494d498..ba2c1f4 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueAllowUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(320652927)] + [TLObject(320652927)] public class TLInputPrivacyValueAllowUsers : TLAbsInputPrivacyRule { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector users {get;set;} + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs index 7502064..775265d 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-697604407)] + [TLObject(-697604407)] public class TLInputPrivacyValueDisallowAll : TLAbsInputPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs index 08c9977..2813936 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(195371015)] + [TLObject(195371015)] public class TLInputPrivacyValueDisallowContacts : TLAbsInputPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs index 97b5af3..2edca8b 100644 --- a/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs +++ b/TeleSharp.TL/TL/TLInputPrivacyValueDisallowUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1877932953)] + [TLObject(-1877932953)] public class TLInputPrivacyValueDisallowUsers : TLAbsInputPrivacyRule { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector users {get;set;} + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLInputReportReasonOther.cs b/TeleSharp.TL/TL/TLInputReportReasonOther.cs index 484af5c..bbb9a92 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonOther.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonOther.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-512463606)] + [TLObject(-512463606)] public class TLInputReportReasonOther : TLAbsReportReason { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLInputReportReasonPornography.cs b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs index 18661a9..7c3f36e 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonPornography.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonPornography.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(777640226)] + [TLObject(777640226)] public class TLInputReportReasonPornography : TLAbsReportReason { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputReportReasonSpam.cs b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs index 12634e3..a313a30 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonSpam.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonSpam.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1490799288)] + [TLObject(1490799288)] public class TLInputReportReasonSpam : TLAbsReportReason { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputReportReasonViolence.cs b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs index 8d69f8d..b1e1008 100644 --- a/TeleSharp.TL/TL/TLInputReportReasonViolence.cs +++ b/TeleSharp.TL/TL/TLInputReportReasonViolence.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(505595789)] + [TLObject(505595789)] public class TLInputReportReasonViolence : TLAbsReportReason { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs index eda6e56..f990574 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-4838507)] + [TLObject(-4838507)] public class TLInputStickerSetEmpty : TLAbsInputStickerSet { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputStickerSetID.cs b/TeleSharp.TL/TL/TLInputStickerSetID.cs index dd87fd9..0e98635 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetID.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetID.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1645763991)] + [TLObject(-1645763991)] public class TLInputStickerSetID : TLAbsInputStickerSet { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public long access_hash {get;set;} + public long id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputStickerSetItem.cs b/TeleSharp.TL/TL/TLInputStickerSetItem.cs new file mode 100644 index 0000000..7fa69a0 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputStickerSetItem.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-6249322)] + public class TLInputStickerSetItem : TLObject + { + public override int Constructor + { + get + { + return -6249322; + } + } + + public int flags { get; set; } + public TLAbsInputDocument document { get; set; } + 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) + { + flags = br.ReadInt32(); + document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); + emoji = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br); + else + mask_coords = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + ObjectUtils.SerializeObject(document, bw); + StringUtil.Serialize(emoji, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(mask_coords, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputStickerSetShortName.cs b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs index 7e6a45f..fa04120 100644 --- a/TeleSharp.TL/TL/TLInputStickerSetShortName.cs +++ b/TeleSharp.TL/TL/TLInputStickerSetShortName.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2044933984)] + [TLObject(-2044933984)] public class TLInputStickerSetShortName : TLAbsInputStickerSet { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string short_name {get;set;} + public string short_name { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(short_name,bw); + bw.Write(Constructor); + StringUtil.Serialize(short_name, bw); } } diff --git a/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs b/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs index 800913c..309b509 100644 --- a/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs +++ b/TeleSharp.TL/TL/TLInputStickeredMediaDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(70813275)] + [TLObject(70813275)] public class TLInputStickeredMediaDocument : TLAbsInputStickeredMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputDocument id {get;set;} + public TLAbsInputDocument id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs b/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs index 6d8ffda..caa6fe4 100644 --- a/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLInputStickeredMediaPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1251549527)] + [TLObject(1251549527)] public class TLInputStickeredMediaPhoto : TLAbsInputStickeredMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsInputPhoto id {get;set;} + public TLAbsInputPhoto id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } } diff --git a/TeleSharp.TL/TL/TLInputUser.cs b/TeleSharp.TL/TL/TLInputUser.cs index 23fd86e..2d3d7af 100644 --- a/TeleSharp.TL/TL/TLInputUser.cs +++ b/TeleSharp.TL/TL/TLInputUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-668391402)] + [TLObject(-668391402)] public class TLInputUser : TLAbsInputUser { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public long access_hash {get;set;} + public int user_id { get; set; } + public long access_hash { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -access_hash = br.ReadInt64(); + access_hash = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(access_hash); + bw.Write(access_hash); } } diff --git a/TeleSharp.TL/TL/TLInputUserEmpty.cs b/TeleSharp.TL/TL/TLInputUserEmpty.cs index 6c8aaf0..9609d31 100644 --- a/TeleSharp.TL/TL/TLInputUserEmpty.cs +++ b/TeleSharp.TL/TL/TLInputUserEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1182234929)] + [TLObject(-1182234929)] public class TLInputUserEmpty : TLAbsInputUser { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputUserSelf.cs b/TeleSharp.TL/TL/TLInputUserSelf.cs index 9543daa..be91a59 100644 --- a/TeleSharp.TL/TL/TLInputUserSelf.cs +++ b/TeleSharp.TL/TL/TLInputUserSelf.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-138301121)] + [TLObject(-138301121)] public class TLInputUserSelf : TLAbsInputUser { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLInputWebDocument.cs b/TeleSharp.TL/TL/TLInputWebDocument.cs new file mode 100644 index 0000000..4f92e62 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputWebDocument.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1678949555)] + public class TLInputWebDocument : TLObject + { + public override int Constructor + { + get + { + return -1678949555; + } + } + + public string url { get; set; } + public int size { get; set; } + public string mime_type { get; set; } + public TLVector attributes { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); + size = br.ReadInt32(); + mime_type = StringUtil.Deserialize(br); + attributes = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + bw.Write(size); + StringUtil.Serialize(mime_type, bw); + ObjectUtils.SerializeObject(attributes, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInputWebFileLocation.cs b/TeleSharp.TL/TL/TLInputWebFileLocation.cs new file mode 100644 index 0000000..9e73e01 --- /dev/null +++ b/TeleSharp.TL/TL/TLInputWebFileLocation.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1036396922)] + public class TLInputWebFileLocation : TLObject + { + public override int Constructor + { + get + { + return -1036396922; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + bw.Write(access_hash); + + } + } +} diff --git a/TeleSharp.TL/TL/TLInvoice.cs b/TeleSharp.TL/TL/TLInvoice.cs new file mode 100644 index 0000000..2b415c1 --- /dev/null +++ b/TeleSharp.TL/TL/TLInvoice.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1022713000)] + public class TLInvoice : TLObject + { + public override int Constructor + { + get + { + return -1022713000; + } + } + + public int flags { get; set; } + public bool test { get; set; } + public bool name_requested { get; set; } + public bool phone_requested { get; set; } + public bool email_requested { get; set; } + public bool shipping_address_requested { get; set; } + public bool flexible { get; set; } + public string currency { get; set; } + public TLVector prices { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = test ? (flags | 1) : (flags & ~1); + flags = name_requested ? (flags | 2) : (flags & ~2); + flags = phone_requested ? (flags | 4) : (flags & ~4); + 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) + { + flags = br.ReadInt32(); + test = (flags & 1) != 0; + name_requested = (flags & 2) != 0; + phone_requested = (flags & 4) != 0; + email_requested = (flags & 8) != 0; + shipping_address_requested = (flags & 16) != 0; + flexible = (flags & 32) != 0; + currency = StringUtil.Deserialize(br); + prices = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + + + + + StringUtil.Serialize(currency, bw); + ObjectUtils.SerializeObject(prices, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButton.cs b/TeleSharp.TL/TL/TLKeyboardButton.cs index ede8ba7..dfcf9a5 100644 --- a/TeleSharp.TL/TL/TLKeyboardButton.cs +++ b/TeleSharp.TL/TL/TLKeyboardButton.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1560655744)] + [TLObject(-1560655744)] public class TLKeyboardButton : TLAbsKeyboardButton { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs b/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs new file mode 100644 index 0000000..f141d90 --- /dev/null +++ b/TeleSharp.TL/TL/TLKeyboardButtonBuy.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1344716869)] + public class TLKeyboardButtonBuy : TLAbsKeyboardButton + { + public override int Constructor + { + get + { + return -1344716869; + } + } + + public string text { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(text, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs index b372950..9f0f284 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1748655686)] + [TLObject(1748655686)] public class TLKeyboardButtonCallback : TLAbsKeyboardButton { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string text {get;set;} - public byte[] data {get;set;} + public string text { get; set; } + public byte[] data { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { text = StringUtil.Deserialize(br); -data = BytesUtil.Deserialize(br); + data = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); -BytesUtil.Serialize(data,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); + BytesUtil.Serialize(data, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonGame.cs b/TeleSharp.TL/TL/TLKeyboardButtonGame.cs index 8b475c5..fcd022f 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonGame.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1358175439)] + [TLObject(1358175439)] public class TLKeyboardButtonGame : TLAbsKeyboardButton { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs index 2fd94b2..73dd7c4 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestGeoLocation.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-59151553)] + [TLObject(-59151553)] public class TLKeyboardButtonRequestGeoLocation : TLAbsKeyboardButton { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs index c674066..3020069 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRequestPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1318425559)] + [TLObject(-1318425559)] public class TLKeyboardButtonRequestPhone : TLAbsKeyboardButton { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonRow.cs b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs index 7bab1c4..de3f961 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonRow.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonRow.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2002815875)] + [TLObject(2002815875)] public class TLKeyboardButtonRow : TLObject { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector buttons {get;set;} + public TLVector buttons { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(buttons,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(buttons, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs index 7c0459a..08c7a9d 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonSwitchInline.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(90744648)] + [TLObject(90744648)] public class TLKeyboardButtonSwitchInline : TLAbsKeyboardButton { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool same_peer {get;set;} - public string text {get;set;} - public string query {get;set;} + public int flags { get; set; } + public bool same_peer { get; set; } + public string text { get; set; } + public string query { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = same_peer ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = same_peer ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -same_peer = (flags & 1) != 0; -text = StringUtil.Deserialize(br); -query = StringUtil.Deserialize(br); + same_peer = (flags & 1) != 0; + text = StringUtil.Deserialize(br); + query = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -StringUtil.Serialize(text,bw); -StringUtil.Serialize(query,bw); + StringUtil.Serialize(text, bw); + StringUtil.Serialize(query, bw); } } diff --git a/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs index 4b60bf4..a510d6d 100644 --- a/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs +++ b/TeleSharp.TL/TL/TLKeyboardButtonUrl.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(629866245)] + [TLObject(629866245)] public class TLKeyboardButtonUrl : TLAbsKeyboardButton { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string text {get;set;} - public string url {get;set;} + public string text { get; set; } + public string url { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { text = StringUtil.Deserialize(br); -url = StringUtil.Deserialize(br); + url = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); -StringUtil.Serialize(url,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); + StringUtil.Serialize(url, bw); } } diff --git a/TeleSharp.TL/TL/TLLabeledPrice.cs b/TeleSharp.TL/TL/TLLabeledPrice.cs new file mode 100644 index 0000000..8b5ca0f --- /dev/null +++ b/TeleSharp.TL/TL/TLLabeledPrice.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-886477832)] + public class TLLabeledPrice : TLObject + { + public override int Constructor + { + get + { + return -886477832; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(label, bw); + bw.Write(amount); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMaskCoords.cs b/TeleSharp.TL/TL/TLMaskCoords.cs index 0d0e890..c11122b 100644 --- a/TeleSharp.TL/TL/TLMaskCoords.cs +++ b/TeleSharp.TL/TL/TLMaskCoords.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1361650766)] + [TLObject(-1361650766)] public class TLMaskCoords : TLObject { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int n {get;set;} - public double x {get;set;} - public double y {get;set;} - public double zoom {get;set;} + public int n { get; set; } + public double x { get; set; } + public double y { get; set; } + public double zoom { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { n = br.ReadInt32(); -x = br.ReadDouble(); -y = br.ReadDouble(); -zoom = br.ReadDouble(); + x = br.ReadDouble(); + y = br.ReadDouble(); + zoom = br.ReadDouble(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(n); -bw.Write(x); -bw.Write(y); -bw.Write(zoom); + bw.Write(x); + bw.Write(y); + bw.Write(zoom); } } diff --git a/TeleSharp.TL/TL/TLMessage.cs b/TeleSharp.TL/TL/TLMessage.cs index 6d27950..54f1768 100644 --- a/TeleSharp.TL/TL/TLMessage.cs +++ b/TeleSharp.TL/TL/TLMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1063525281)] + [TLObject(-1063525281)] public class TLMessage : TLAbsMessage { public override int Constructor @@ -18,139 +18,139 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool @out {get;set;} - public bool mentioned {get;set;} - public bool media_unread {get;set;} - public bool silent {get;set;} - public bool post {get;set;} - public int id {get;set;} - public int? from_id {get;set;} - public TLAbsPeer to_id {get;set;} - public TLMessageFwdHeader fwd_from {get;set;} - public int? via_bot_id {get;set;} - public int? reply_to_msg_id {get;set;} - public int date {get;set;} - public string message {get;set;} - public TLAbsMessageMedia media {get;set;} - public TLAbsReplyMarkup reply_markup {get;set;} - public TLVector entities {get;set;} - public int? views {get;set;} - public int? edit_date {get;set;} + public int flags { get; set; } + public bool @out { get; set; } + public bool mentioned { get; set; } + public bool media_unread { get; set; } + public bool silent { get; set; } + public bool post { get; set; } + public int id { get; set; } + public int? from_id { get; set; } + public TLAbsPeer to_id { get; set; } + public TLMessageFwdHeader fwd_from { get; set; } + public int? via_bot_id { get; set; } + public int? reply_to_msg_id { get; set; } + public int date { get; set; } + public string message { get; set; } + public TLAbsMessageMedia media { get; set; } + public TLAbsReplyMarkup reply_markup { get; set; } + public TLVector entities { get; set; } + public int? views { get; set; } + public int? edit_date { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = @out ? (flags | 2) : (flags & ~2); -flags = mentioned ? (flags | 16) : (flags & ~16); -flags = media_unread ? (flags | 32) : (flags & ~32); -flags = silent ? (flags | 8192) : (flags & ~8192); -flags = post ? (flags | 16384) : (flags & ~16384); -flags = from_id != null ? (flags | 256) : (flags & ~256); -flags = fwd_from != null ? (flags | 4) : (flags & ~4); -flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); -flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); -flags = media != null ? (flags | 512) : (flags & ~512); -flags = reply_markup != null ? (flags | 64) : (flags & ~64); -flags = entities != null ? (flags | 128) : (flags & ~128); -flags = views != null ? (flags | 1024) : (flags & ~1024); -flags = edit_date != null ? (flags | 32768) : (flags & ~32768); + public void ComputeFlags() + { + flags = 0; + flags = @out ? (flags | 2) : (flags & ~2); + flags = mentioned ? (flags | 16) : (flags & ~16); + flags = media_unread ? (flags | 32) : (flags & ~32); + flags = silent ? (flags | 8192) : (flags & ~8192); + flags = post ? (flags | 16384) : (flags & ~16384); + flags = from_id != null ? (flags | 256) : (flags & ~256); + flags = fwd_from != null ? (flags | 4) : (flags & ~4); + flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); + flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); + flags = media != null ? (flags | 512) : (flags & ~512); + flags = reply_markup != null ? (flags | 64) : (flags & ~64); + flags = entities != null ? (flags | 128) : (flags & ~128); + flags = views != null ? (flags | 1024) : (flags & ~1024); + flags = edit_date != null ? (flags | 32768) : (flags & ~32768); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -@out = (flags & 2) != 0; -mentioned = (flags & 16) != 0; -media_unread = (flags & 32) != 0; -silent = (flags & 8192) != 0; -post = (flags & 16384) != 0; -id = br.ReadInt32(); -if ((flags & 256) != 0) -from_id = br.ReadInt32(); -else -from_id = null; + @out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; + id = br.ReadInt32(); + if ((flags & 256) != 0) + from_id = br.ReadInt32(); + else + from_id = null; -to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 4) != 0) -fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); -else -fwd_from = null; + to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 4) != 0) + fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); + else + fwd_from = null; -if ((flags & 2048) != 0) -via_bot_id = br.ReadInt32(); -else -via_bot_id = null; + if ((flags & 2048) != 0) + via_bot_id = br.ReadInt32(); + else + via_bot_id = null; -if ((flags & 8) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + if ((flags & 8) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -date = br.ReadInt32(); -message = StringUtil.Deserialize(br); -if ((flags & 512) != 0) -media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); -else -media = null; + date = br.ReadInt32(); + message = StringUtil.Deserialize(br); + if ((flags & 512) != 0) + media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + else + media = null; -if ((flags & 64) != 0) -reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); -else -reply_markup = null; + if ((flags & 64) != 0) + reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); + else + reply_markup = null; -if ((flags & 128) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 128) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; -if ((flags & 1024) != 0) -views = br.ReadInt32(); -else -views = null; + if ((flags & 1024) != 0) + views = br.ReadInt32(); + else + views = null; -if ((flags & 32768) != 0) -edit_date = br.ReadInt32(); -else -edit_date = null; + if ((flags & 32768) != 0) + edit_date = br.ReadInt32(); + else + edit_date = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -if ((flags & 256) != 0) -bw.Write(from_id.Value); -ObjectUtils.SerializeObject(to_id,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(fwd_from,bw); -if ((flags & 2048) != 0) -bw.Write(via_bot_id.Value); -if ((flags & 8) != 0) -bw.Write(reply_to_msg_id.Value); -bw.Write(date); -StringUtil.Serialize(message,bw); -if ((flags & 512) != 0) -ObjectUtils.SerializeObject(media,bw); -if ((flags & 64) != 0) -ObjectUtils.SerializeObject(reply_markup,bw); -if ((flags & 128) != 0) -ObjectUtils.SerializeObject(entities,bw); -if ((flags & 1024) != 0) -bw.Write(views.Value); -if ((flags & 32768) != 0) -bw.Write(edit_date.Value); + bw.Write(id); + if ((flags & 256) != 0) + bw.Write(from_id.Value); + ObjectUtils.SerializeObject(to_id, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(fwd_from, bw); + if ((flags & 2048) != 0) + bw.Write(via_bot_id.Value); + if ((flags & 8) != 0) + bw.Write(reply_to_msg_id.Value); + bw.Write(date); + StringUtil.Serialize(message, bw); + if ((flags & 512) != 0) + ObjectUtils.SerializeObject(media, bw); + if ((flags & 64) != 0) + ObjectUtils.SerializeObject(reply_markup, bw); + if ((flags & 128) != 0) + ObjectUtils.SerializeObject(entities, bw); + if ((flags & 1024) != 0) + bw.Write(views.Value); + if ((flags & 32768) != 0) + bw.Write(edit_date.Value); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs index 894e2d2..b1d28bb 100644 --- a/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs +++ b/TeleSharp.TL/TL/TLMessageActionChannelCreate.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1781355374)] + [TLObject(-1781355374)] public class TLMessageActionChannelCreate : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string title {get;set;} + public string title { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(title,bw); + bw.Write(Constructor); + StringUtil.Serialize(title, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs index 4b68f4d..032d4b9 100644 --- a/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs +++ b/TeleSharp.TL/TL/TLMessageActionChannelMigrateFrom.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1336546578)] + [TLObject(-1336546578)] public class TLMessageActionChannelMigrateFrom : TLAbsMessageAction { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string title {get;set;} - public int chat_id {get;set;} + public string title { get; set; } + public int chat_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { title = StringUtil.Deserialize(br); -chat_id = br.ReadInt32(); + chat_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(title,bw); -bw.Write(chat_id); + bw.Write(Constructor); + StringUtil.Serialize(title, bw); + bw.Write(chat_id); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs index 6c7440b..82177b2 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatAddUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1217033015)] + [TLObject(1217033015)] public class TLMessageActionChatAddUser : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector users {get;set;} + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatCreate.cs b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs index eab22ee..2de5f06 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatCreate.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatCreate.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1503425638)] + [TLObject(-1503425638)] public class TLMessageActionChatCreate : TLAbsMessageAction { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string title {get;set;} - public TLVector users {get;set;} + public string title { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { title = StringUtil.Deserialize(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(title,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + StringUtil.Serialize(title, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs index 15c5c92..e492513 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatDeletePhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1780220945)] + [TLObject(-1780220945)] public class TLMessageActionChatDeletePhoto : TLAbsMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs index 2d73873..2eff63c 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatDeleteUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1297179892)] + [TLObject(-1297179892)] public class TLMessageActionChatDeleteUser : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); } diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs index 9e633a7..4544d16 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatEditPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2144015272)] + [TLObject(2144015272)] public class TLMessageActionChatEditPhoto : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsPhoto photo {get;set;} + public TLAbsPhoto photo { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(photo,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs index 28b6bbd..3d5a625 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatEditTitle.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1247687078)] + [TLObject(-1247687078)] public class TLMessageActionChatEditTitle : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string title {get;set;} + public string title { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(title,bw); + bw.Write(Constructor); + StringUtil.Serialize(title, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs index 89f6b87..2d67365 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatJoinedByLink.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-123931160)] + [TLObject(-123931160)] public class TLMessageActionChatJoinedByLink : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int inviter_id {get;set;} + public int inviter_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(inviter_id); } diff --git a/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs index 8c2d487..d802622 100644 --- a/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs +++ b/TeleSharp.TL/TL/TLMessageActionChatMigrateTo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1371385889)] + [TLObject(1371385889)] public class TLMessageActionChatMigrateTo : TLAbsMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} + public int channel_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); } diff --git a/TeleSharp.TL/TL/TLMessageActionEmpty.cs b/TeleSharp.TL/TL/TLMessageActionEmpty.cs index a7ad05a..81ce4fe 100644 --- a/TeleSharp.TL/TL/TLMessageActionEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageActionEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1230047312)] + [TLObject(-1230047312)] public class TLMessageActionEmpty : TLAbsMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageActionGameScore.cs b/TeleSharp.TL/TL/TLMessageActionGameScore.cs index 2a0d308..3f03d72 100644 --- a/TeleSharp.TL/TL/TLMessageActionGameScore.cs +++ b/TeleSharp.TL/TL/TLMessageActionGameScore.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1834538890)] + [TLObject(-1834538890)] public class TLMessageActionGameScore : TLAbsMessageAction { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long game_id {get;set;} - public int score {get;set;} + public long game_id { get; set; } + public int score { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { game_id = br.ReadInt64(); -score = br.ReadInt32(); + score = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(game_id); -bw.Write(score); + bw.Write(score); } } diff --git a/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs index f1e7ed1..9d4a752 100644 --- a/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs +++ b/TeleSharp.TL/TL/TLMessageActionHistoryClear.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1615153660)] + [TLObject(-1615153660)] public class TLMessageActionHistoryClear : TLAbsMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs b/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs new file mode 100644 index 0000000..a54def3 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionPaymentSent.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1080663248)] + public class TLMessageActionPaymentSent : TLAbsMessageAction + { + public override int Constructor + { + get + { + return 1080663248; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(currency, bw); + bw.Write(total_amount); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs b/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs new file mode 100644 index 0000000..eacd637 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1892568281)] + public class TLMessageActionPaymentSentMe : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -1892568281; + } + } + + public int flags { get; set; } + public string currency { get; set; } + public long total_amount { get; set; } + public byte[] payload { get; set; } + public TLPaymentRequestedInfo info { get; set; } + 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) + { + flags = br.ReadInt32(); + currency = StringUtil.Deserialize(br); + total_amount = br.ReadInt64(); + payload = BytesUtil.Deserialize(br); + if ((flags & 1) != 0) + info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + else + info = null; + + if ((flags & 2) != 0) + shipping_option_id = StringUtil.Deserialize(br); + else + shipping_option_id = null; + + charge = (TLPaymentCharge)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + StringUtil.Serialize(currency, bw); + bw.Write(total_amount); + BytesUtil.Serialize(payload, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(info, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(shipping_option_id, bw); + ObjectUtils.SerializeObject(charge, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs b/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs new file mode 100644 index 0000000..a712119 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageActionPhoneCall.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2132731265)] + public class TLMessageActionPhoneCall : TLAbsMessageAction + { + public override int Constructor + { + get + { + return -2132731265; + } + } + + public int flags { get; set; } + public long call_id { get; set; } + 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) + { + flags = br.ReadInt32(); + call_id = br.ReadInt64(); + if ((flags & 1) != 0) + reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br); + else + reason = null; + + if ((flags & 2) != 0) + duration = br.ReadInt32(); + else + duration = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(call_id); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(reason, bw); + if ((flags & 2) != 0) + bw.Write(duration.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageActionPinMessage.cs b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs index e39df7d..411d057 100644 --- a/TeleSharp.TL/TL/TLMessageActionPinMessage.cs +++ b/TeleSharp.TL/TL/TLMessageActionPinMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1799538451)] + [TLObject(-1799538451)] public class TLMessageActionPinMessage : TLAbsMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageEmpty.cs b/TeleSharp.TL/TL/TLMessageEmpty.cs index 21df48e..2a685a9 100644 --- a/TeleSharp.TL/TL/TLMessageEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2082087340)] + [TLObject(-2082087340)] public class TLMessageEmpty : TLAbsMessage { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int id {get;set;} + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLMessageEntityBold.cs b/TeleSharp.TL/TL/TLMessageEntityBold.cs index 7a3affe..507318d 100644 --- a/TeleSharp.TL/TL/TLMessageEntityBold.cs +++ b/TeleSharp.TL/TL/TLMessageEntityBold.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1117713463)] + [TLObject(-1117713463)] public class TLMessageEntityBold : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs index fa6c5ce..8f054a7 100644 --- a/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs +++ b/TeleSharp.TL/TL/TLMessageEntityBotCommand.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1827637959)] + [TLObject(1827637959)] public class TLMessageEntityBotCommand : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityCode.cs b/TeleSharp.TL/TL/TLMessageEntityCode.cs index ab9f940..87d81ae 100644 --- a/TeleSharp.TL/TL/TLMessageEntityCode.cs +++ b/TeleSharp.TL/TL/TLMessageEntityCode.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(681706865)] + [TLObject(681706865)] public class TLMessageEntityCode : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityEmail.cs b/TeleSharp.TL/TL/TLMessageEntityEmail.cs index 4947334..666a00f 100644 --- a/TeleSharp.TL/TL/TLMessageEntityEmail.cs +++ b/TeleSharp.TL/TL/TLMessageEntityEmail.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1692693954)] + [TLObject(1692693954)] public class TLMessageEntityEmail : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityHashtag.cs b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs index 59d6779..64e4dfe 100644 --- a/TeleSharp.TL/TL/TLMessageEntityHashtag.cs +++ b/TeleSharp.TL/TL/TLMessageEntityHashtag.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1868782349)] + [TLObject(1868782349)] public class TLMessageEntityHashtag : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityItalic.cs b/TeleSharp.TL/TL/TLMessageEntityItalic.cs index 08fd455..0d10e44 100644 --- a/TeleSharp.TL/TL/TLMessageEntityItalic.cs +++ b/TeleSharp.TL/TL/TLMessageEntityItalic.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2106619040)] + [TLObject(-2106619040)] public class TLMessageEntityItalic : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityMention.cs b/TeleSharp.TL/TL/TLMessageEntityMention.cs index b98ecd4..e0206fe 100644 --- a/TeleSharp.TL/TL/TLMessageEntityMention.cs +++ b/TeleSharp.TL/TL/TLMessageEntityMention.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-100378723)] + [TLObject(-100378723)] public class TLMessageEntityMention : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityMentionName.cs b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs index 4fca31b..1020d9e 100644 --- a/TeleSharp.TL/TL/TLMessageEntityMentionName.cs +++ b/TeleSharp.TL/TL/TLMessageEntityMentionName.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(892193368)] + [TLObject(892193368)] public class TLMessageEntityMentionName : TLAbsMessageEntity { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} - public int user_id {get;set;} + public int offset { get; set; } + public int length { get; set; } + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); -user_id = br.ReadInt32(); + length = br.ReadInt32(); + user_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); -bw.Write(user_id); + bw.Write(length); + bw.Write(user_id); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityPre.cs b/TeleSharp.TL/TL/TLMessageEntityPre.cs index 1438fc7..fcff1f0 100644 --- a/TeleSharp.TL/TL/TLMessageEntityPre.cs +++ b/TeleSharp.TL/TL/TLMessageEntityPre.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1938967520)] + [TLObject(1938967520)] public class TLMessageEntityPre : TLAbsMessageEntity { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} - public string language {get;set;} + public int offset { get; set; } + public int length { get; set; } + public string language { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); -language = StringUtil.Deserialize(br); + length = br.ReadInt32(); + language = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); -StringUtil.Serialize(language,bw); + bw.Write(length); + StringUtil.Serialize(language, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs index a2e809a..17ed6b8 100644 --- a/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs +++ b/TeleSharp.TL/TL/TLMessageEntityTextUrl.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1990644519)] + [TLObject(1990644519)] public class TLMessageEntityTextUrl : TLAbsMessageEntity { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} - public string url {get;set;} + public int offset { get; set; } + public int length { get; set; } + public string url { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); -url = StringUtil.Deserialize(br); + length = br.ReadInt32(); + url = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); -StringUtil.Serialize(url,bw); + bw.Write(length); + StringUtil.Serialize(url, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityUnknown.cs b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs index dd3bbf3..5aa0bc0 100644 --- a/TeleSharp.TL/TL/TLMessageEntityUnknown.cs +++ b/TeleSharp.TL/TL/TLMessageEntityUnknown.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1148011883)] + [TLObject(-1148011883)] public class TLMessageEntityUnknown : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageEntityUrl.cs b/TeleSharp.TL/TL/TLMessageEntityUrl.cs index 330d83c..fdab9ca 100644 --- a/TeleSharp.TL/TL/TLMessageEntityUrl.cs +++ b/TeleSharp.TL/TL/TLMessageEntityUrl.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1859134776)] + [TLObject(1859134776)] public class TLMessageEntityUrl : TLAbsMessageEntity { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int offset {get;set;} - public int length {get;set;} + public int offset { get; set; } + public int length { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { offset = br.ReadInt32(); -length = br.ReadInt32(); + length = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(offset); -bw.Write(length); + bw.Write(length); } } diff --git a/TeleSharp.TL/TL/TLMessageFwdHeader.cs b/TeleSharp.TL/TL/TLMessageFwdHeader.cs index 085a3c2..53545d6 100644 --- a/TeleSharp.TL/TL/TLMessageFwdHeader.cs +++ b/TeleSharp.TL/TL/TLMessageFwdHeader.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-947462709)] + [TLObject(-947462709)] public class TLMessageFwdHeader : TLObject { public override int Constructor @@ -18,56 +18,56 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public int? from_id {get;set;} - public int date {get;set;} - public int? channel_id {get;set;} - public int? channel_post {get;set;} + public int flags { get; set; } + public int? from_id { get; set; } + public int date { get; set; } + public int? channel_id { get; set; } + public int? channel_post { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = from_id != null ? (flags | 1) : (flags & ~1); -flags = channel_id != null ? (flags | 2) : (flags & ~2); -flags = channel_post != null ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = from_id != null ? (flags | 1) : (flags & ~1); + flags = channel_id != null ? (flags | 2) : (flags & ~2); + flags = channel_post != null ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -if ((flags & 1) != 0) -from_id = br.ReadInt32(); -else -from_id = null; + if ((flags & 1) != 0) + from_id = br.ReadInt32(); + else + from_id = null; -date = br.ReadInt32(); -if ((flags & 2) != 0) -channel_id = br.ReadInt32(); -else -channel_id = null; + date = br.ReadInt32(); + if ((flags & 2) != 0) + channel_id = br.ReadInt32(); + else + channel_id = null; -if ((flags & 4) != 0) -channel_post = br.ReadInt32(); -else -channel_post = null; + if ((flags & 4) != 0) + channel_post = br.ReadInt32(); + else + channel_post = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -if ((flags & 1) != 0) -bw.Write(from_id.Value); -bw.Write(date); -if ((flags & 2) != 0) -bw.Write(channel_id.Value); -if ((flags & 4) != 0) -bw.Write(channel_post.Value); + bw.Write(flags); + if ((flags & 1) != 0) + bw.Write(from_id.Value); + bw.Write(date); + if ((flags & 2) != 0) + bw.Write(channel_id.Value); + if ((flags & 4) != 0) + bw.Write(channel_post.Value); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaContact.cs b/TeleSharp.TL/TL/TLMessageMediaContact.cs index 01a2c33..afaead6 100644 --- a/TeleSharp.TL/TL/TLMessageMediaContact.cs +++ b/TeleSharp.TL/TL/TLMessageMediaContact.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1585262393)] + [TLObject(1585262393)] public class TLMessageMediaContact : TLAbsMessageMedia { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public string phone_number {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public int user_id {get;set;} + public string phone_number { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { phone_number = StringUtil.Deserialize(br); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); -user_id = br.ReadInt32(); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); + user_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(phone_number,bw); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); -bw.Write(user_id); + bw.Write(Constructor); + StringUtil.Serialize(phone_number, bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); + bw.Write(user_id); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaDocument.cs b/TeleSharp.TL/TL/TLMessageMediaDocument.cs index e92c924..411ab20 100644 --- a/TeleSharp.TL/TL/TLMessageMediaDocument.cs +++ b/TeleSharp.TL/TL/TLMessageMediaDocument.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-203411800)] + [TLObject(-203411800)] public class TLMessageMediaDocument : TLAbsMessageMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsDocument document {get;set;} - public string caption {get;set;} + public TLAbsDocument document { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(document,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(document, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaEmpty.cs b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs index 15c696c..46e3443 100644 --- a/TeleSharp.TL/TL/TLMessageMediaEmpty.cs +++ b/TeleSharp.TL/TL/TLMessageMediaEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1038967584)] + [TLObject(1038967584)] public class TLMessageMediaEmpty : TLAbsMessageMedia { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageMediaGame.cs b/TeleSharp.TL/TL/TLMessageMediaGame.cs index 46a2462..73eede6 100644 --- a/TeleSharp.TL/TL/TLMessageMediaGame.cs +++ b/TeleSharp.TL/TL/TLMessageMediaGame.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-38694904)] + [TLObject(-38694904)] public class TLMessageMediaGame : TLAbsMessageMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLGame game {get;set;} + public TLGame game { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(game,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(game, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaGeo.cs b/TeleSharp.TL/TL/TLMessageMediaGeo.cs index d80c8e4..2f5090b 100644 --- a/TeleSharp.TL/TL/TLMessageMediaGeo.cs +++ b/TeleSharp.TL/TL/TLMessageMediaGeo.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1457575028)] + [TLObject(1457575028)] public class TLMessageMediaGeo : TLAbsMessageMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsGeoPoint geo {get;set;} + public TLAbsGeoPoint geo { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(geo,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaInvoice.cs b/TeleSharp.TL/TL/TLMessageMediaInvoice.cs new file mode 100644 index 0000000..da47296 --- /dev/null +++ b/TeleSharp.TL/TL/TLMessageMediaInvoice.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2074799289)] + public class TLMessageMediaInvoice : TLAbsMessageMedia + { + public override int Constructor + { + get + { + return -2074799289; + } + } + + public int flags { get; set; } + public bool shipping_address_requested { get; set; } + public bool test { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLWebDocument photo { get; set; } + public int? receipt_msg_id { get; set; } + public string currency { get; set; } + public long total_amount { get; set; } + public string start_param { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = shipping_address_requested ? (flags | 2) : (flags & ~2); + 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) + { + flags = br.ReadInt32(); + shipping_address_requested = (flags & 2) != 0; + test = (flags & 8) != 0; + title = StringUtil.Deserialize(br); + description = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + photo = (TLWebDocument)ObjectUtils.DeserializeObject(br); + else + photo = null; + + if ((flags & 4) != 0) + receipt_msg_id = br.ReadInt32(); + else + receipt_msg_id = null; + + currency = StringUtil.Deserialize(br); + total_amount = br.ReadInt64(); + start_param = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + StringUtil.Serialize(title, bw); + StringUtil.Serialize(description, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(photo, bw); + if ((flags & 4) != 0) + bw.Write(receipt_msg_id.Value); + StringUtil.Serialize(currency, bw); + bw.Write(total_amount); + StringUtil.Serialize(start_param, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLMessageMediaPhoto.cs b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs index 41bc37b..0d6e31f 100644 --- a/TeleSharp.TL/TL/TLMessageMediaPhoto.cs +++ b/TeleSharp.TL/TL/TLMessageMediaPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1032643901)] + [TLObject(1032643901)] public class TLMessageMediaPhoto : TLAbsMessageMedia { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsPhoto photo {get;set;} - public string caption {get;set;} + public TLAbsPhoto photo { get; set; } + public string caption { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -caption = StringUtil.Deserialize(br); + caption = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(photo,bw); -StringUtil.Serialize(caption,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(photo, bw); + StringUtil.Serialize(caption, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs index 88ffb13..c5df2cb 100644 --- a/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs +++ b/TeleSharp.TL/TL/TLMessageMediaUnsupported.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1618676578)] + [TLObject(-1618676578)] public class TLMessageMediaUnsupported : TLAbsMessageMedia { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLMessageMediaVenue.cs b/TeleSharp.TL/TL/TLMessageMediaVenue.cs index 259c167..a1dfd9c 100644 --- a/TeleSharp.TL/TL/TLMessageMediaVenue.cs +++ b/TeleSharp.TL/TL/TLMessageMediaVenue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2031269663)] + [TLObject(2031269663)] public class TLMessageMediaVenue : TLAbsMessageMedia { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public TLAbsGeoPoint geo {get;set;} - public string title {get;set;} - public string address {get;set;} - public string provider {get;set;} - public string venue_id {get;set;} + public TLAbsGeoPoint geo { get; set; } + public string title { get; set; } + public string address { get; set; } + public string provider { get; set; } + public string venue_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); -title = StringUtil.Deserialize(br); -address = StringUtil.Deserialize(br); -provider = StringUtil.Deserialize(br); -venue_id = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); + address = StringUtil.Deserialize(br); + provider = StringUtil.Deserialize(br); + venue_id = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(geo,bw); -StringUtil.Serialize(title,bw); -StringUtil.Serialize(address,bw); -StringUtil.Serialize(provider,bw); -StringUtil.Serialize(venue_id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(geo, bw); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(address, bw); + StringUtil.Serialize(provider, bw); + StringUtil.Serialize(venue_id, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageMediaWebPage.cs b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs index 94306d1..99c7438 100644 --- a/TeleSharp.TL/TL/TLMessageMediaWebPage.cs +++ b/TeleSharp.TL/TL/TLMessageMediaWebPage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1557277184)] + [TLObject(-1557277184)] public class TLMessageMediaWebPage : TLAbsMessageMedia { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsWebPage webpage {get;set;} + public TLAbsWebPage webpage { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(webpage,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(webpage, bw); } } diff --git a/TeleSharp.TL/TL/TLMessageRange.cs b/TeleSharp.TL/TL/TLMessageRange.cs index 5d5374d..59da0a2 100644 --- a/TeleSharp.TL/TL/TLMessageRange.cs +++ b/TeleSharp.TL/TL/TLMessageRange.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(182649427)] + [TLObject(182649427)] public class TLMessageRange : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int min_id {get;set;} - public int max_id {get;set;} + public int min_id { get; set; } + public int max_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { min_id = br.ReadInt32(); -max_id = br.ReadInt32(); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(min_id); -bw.Write(max_id); + bw.Write(max_id); } } diff --git a/TeleSharp.TL/TL/TLMessageService.cs b/TeleSharp.TL/TL/TLMessageService.cs index 0449074..f5ab220 100644 --- a/TeleSharp.TL/TL/TLMessageService.cs +++ b/TeleSharp.TL/TL/TLMessageService.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1642487306)] + [TLObject(-1642487306)] public class TLMessageService : TLAbsMessage { public override int Constructor @@ -18,76 +18,76 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool @out {get;set;} - public bool mentioned {get;set;} - public bool media_unread {get;set;} - public bool silent {get;set;} - public bool post {get;set;} - public int id {get;set;} - public int? from_id {get;set;} - public TLAbsPeer to_id {get;set;} - public int? reply_to_msg_id {get;set;} - public int date {get;set;} - public TLAbsMessageAction action {get;set;} + public int flags { get; set; } + public bool @out { get; set; } + public bool mentioned { get; set; } + public bool media_unread { get; set; } + public bool silent { get; set; } + public bool post { get; set; } + public int id { get; set; } + public int? from_id { get; set; } + public TLAbsPeer to_id { get; set; } + public int? reply_to_msg_id { get; set; } + public int date { get; set; } + public TLAbsMessageAction action { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = @out ? (flags | 2) : (flags & ~2); -flags = mentioned ? (flags | 16) : (flags & ~16); -flags = media_unread ? (flags | 32) : (flags & ~32); -flags = silent ? (flags | 8192) : (flags & ~8192); -flags = post ? (flags | 16384) : (flags & ~16384); -flags = from_id != null ? (flags | 256) : (flags & ~256); -flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = @out ? (flags | 2) : (flags & ~2); + flags = mentioned ? (flags | 16) : (flags & ~16); + flags = media_unread ? (flags | 32) : (flags & ~32); + flags = silent ? (flags | 8192) : (flags & ~8192); + flags = post ? (flags | 16384) : (flags & ~16384); + flags = from_id != null ? (flags | 256) : (flags & ~256); + flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -@out = (flags & 2) != 0; -mentioned = (flags & 16) != 0; -media_unread = (flags & 32) != 0; -silent = (flags & 8192) != 0; -post = (flags & 16384) != 0; -id = br.ReadInt32(); -if ((flags & 256) != 0) -from_id = br.ReadInt32(); -else -from_id = null; + @out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + post = (flags & 16384) != 0; + id = br.ReadInt32(); + if ((flags & 256) != 0) + from_id = br.ReadInt32(); + else + from_id = null; -to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -if ((flags & 8) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + if ((flags & 8) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -date = br.ReadInt32(); -action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br); + date = br.ReadInt32(); + action = (TLAbsMessageAction)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -if ((flags & 256) != 0) -bw.Write(from_id.Value); -ObjectUtils.SerializeObject(to_id,bw); -if ((flags & 8) != 0) -bw.Write(reply_to_msg_id.Value); -bw.Write(date); -ObjectUtils.SerializeObject(action,bw); + bw.Write(id); + if ((flags & 256) != 0) + bw.Write(from_id.Value); + ObjectUtils.SerializeObject(to_id, bw); + if ((flags & 8) != 0) + bw.Write(reply_to_msg_id.Value); + bw.Write(date); + ObjectUtils.SerializeObject(action, bw); } } diff --git a/TeleSharp.TL/TL/TLNearestDc.cs b/TeleSharp.TL/TL/TLNearestDc.cs index d554dd3..188713d 100644 --- a/TeleSharp.TL/TL/TLNearestDc.cs +++ b/TeleSharp.TL/TL/TLNearestDc.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1910892683)] + [TLObject(-1910892683)] public class TLNearestDc : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public string country {get;set;} - public int this_dc {get;set;} - public int nearest_dc {get;set;} + public string country { get; set; } + public int this_dc { get; set; } + public int nearest_dc { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { country = StringUtil.Deserialize(br); -this_dc = br.ReadInt32(); -nearest_dc = br.ReadInt32(); + this_dc = br.ReadInt32(); + nearest_dc = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(country,bw); -bw.Write(this_dc); -bw.Write(nearest_dc); + bw.Write(Constructor); + StringUtil.Serialize(country, bw); + bw.Write(this_dc); + bw.Write(nearest_dc); } } diff --git a/TeleSharp.TL/TL/TLNotifyAll.cs b/TeleSharp.TL/TL/TLNotifyAll.cs index 284644b..47d2946 100644 --- a/TeleSharp.TL/TL/TLNotifyAll.cs +++ b/TeleSharp.TL/TL/TLNotifyAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1959820384)] + [TLObject(1959820384)] public class TLNotifyAll : TLAbsNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLNotifyChats.cs b/TeleSharp.TL/TL/TLNotifyChats.cs index 98d9847..6707b8e 100644 --- a/TeleSharp.TL/TL/TLNotifyChats.cs +++ b/TeleSharp.TL/TL/TLNotifyChats.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1073230141)] + [TLObject(-1073230141)] public class TLNotifyChats : TLAbsNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLNotifyPeer.cs b/TeleSharp.TL/TL/TLNotifyPeer.cs index 3e0bbe2..3689b66 100644 --- a/TeleSharp.TL/TL/TLNotifyPeer.cs +++ b/TeleSharp.TL/TL/TLNotifyPeer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1613493288)] + [TLObject(-1613493288)] public class TLNotifyPeer : TLAbsNotifyPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsPeer peer {get;set;} + public TLAbsPeer peer { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); } } diff --git a/TeleSharp.TL/TL/TLNotifyUsers.cs b/TeleSharp.TL/TL/TLNotifyUsers.cs index e17a3f7..5f08555 100644 --- a/TeleSharp.TL/TL/TLNotifyUsers.cs +++ b/TeleSharp.TL/TL/TLNotifyUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1261946036)] + [TLObject(-1261946036)] public class TLNotifyUsers : TLAbsNotifyPeer { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLNull.cs b/TeleSharp.TL/TL/TLNull.cs index bc92220..77473d2 100644 --- a/TeleSharp.TL/TL/TLNull.cs +++ b/TeleSharp.TL/TL/TLNull.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1450380236)] + [TLObject(1450380236)] public class TLNull : TLObject { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPageBlockAnchor.cs b/TeleSharp.TL/TL/TLPageBlockAnchor.cs new file mode 100644 index 0000000..7ec7d57 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockAnchor.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-837994576)] + public class TLPageBlockAnchor : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -837994576; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs b/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs new file mode 100644 index 0000000..5c9261d --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockAuthorDate.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1162877472)] + public class TLPageBlockAuthorDate : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -1162877472; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(author, bw); + bw.Write(published_date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockBlockquote.cs b/TeleSharp.TL/TL/TLPageBlockBlockquote.cs new file mode 100644 index 0000000..626a7fa --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockBlockquote.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(641563686)] + public class TLPageBlockBlockquote : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 641563686; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(text, bw); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockChannel.cs b/TeleSharp.TL/TL/TLPageBlockChannel.cs new file mode 100644 index 0000000..aa4273d --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockChannel.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-283684427)] + public class TLPageBlockChannel : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -283684427; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockCollage.cs b/TeleSharp.TL/TL/TLPageBlockCollage.cs new file mode 100644 index 0000000..5d462a0 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockCollage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(145955919)] + public class TLPageBlockCollage : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 145955919; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(items, bw); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockCover.cs b/TeleSharp.TL/TL/TLPageBlockCover.cs new file mode 100644 index 0000000..af49f66 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockCover.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(972174080)] + public class TLPageBlockCover : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 972174080; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockDivider.cs b/TeleSharp.TL/TL/TLPageBlockDivider.cs new file mode 100644 index 0000000..7a80cbd --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockDivider.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-618614392)] + public class TLPageBlockDivider : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -618614392; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockEmbed.cs b/TeleSharp.TL/TL/TLPageBlockEmbed.cs new file mode 100644 index 0000000..bf8aaee --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockEmbed.cs @@ -0,0 +1,88 @@ +using System; +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)] + public class TLPageBlockEmbed : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -840826671; + } + } + + public int flags { get; set; } + public bool full_width { get; set; } + public bool allow_scrolling { get; set; } + public string url { get; set; } + public string html { get; set; } + public long? poster_photo_id { get; set; } + public int w { get; set; } + public int h { get; set; } + public TLAbsRichText caption { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = full_width ? (flags | 1) : (flags & ~1); + flags = allow_scrolling ? (flags | 8) : (flags & ~8); + 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) + { + flags = br.ReadInt32(); + full_width = (flags & 1) != 0; + allow_scrolling = (flags & 8) != 0; + if ((flags & 2) != 0) + url = StringUtil.Deserialize(br); + else + url = null; + + if ((flags & 4) != 0) + html = StringUtil.Deserialize(br); + else + html = null; + + if ((flags & 16) != 0) + poster_photo_id = br.ReadInt64(); + else + poster_photo_id = null; + + w = br.ReadInt32(); + h = br.ReadInt32(); + caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + if ((flags & 2) != 0) + StringUtil.Serialize(url, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(html, bw); + if ((flags & 16) != 0) + bw.Write(poster_photo_id.Value); + bw.Write(w); + bw.Write(h); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs b/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs new file mode 100644 index 0000000..99d202e --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockEmbedPost.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(690781161)] + public class TLPageBlockEmbedPost : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 690781161; + } + } + + public string url { get; set; } + public long webpage_id { get; set; } + public long author_photo_id { get; set; } + public string author { get; set; } + public int date { get; set; } + public TLVector blocks { get; set; } + public TLAbsRichText caption { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); + webpage_id = br.ReadInt64(); + author_photo_id = br.ReadInt64(); + author = StringUtil.Deserialize(br); + date = br.ReadInt32(); + blocks = (TLVector)ObjectUtils.DeserializeVector(br); + caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + bw.Write(webpage_id); + bw.Write(author_photo_id); + StringUtil.Serialize(author, bw); + bw.Write(date); + ObjectUtils.SerializeObject(blocks, bw); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockFooter.cs b/TeleSharp.TL/TL/TLPageBlockFooter.cs new file mode 100644 index 0000000..a63c031 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockFooter.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1216809369)] + public class TLPageBlockFooter : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 1216809369; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockHeader.cs b/TeleSharp.TL/TL/TLPageBlockHeader.cs new file mode 100644 index 0000000..31eee73 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockHeader.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1076861716)] + public class TLPageBlockHeader : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -1076861716; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockList.cs b/TeleSharp.TL/TL/TLPageBlockList.cs new file mode 100644 index 0000000..d2101f5 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockList.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(978896884)] + public class TLPageBlockList : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 978896884; + } + } + + 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) + { + bw.Write(Constructor); + BoolUtil.Serialize(ordered, bw); + ObjectUtils.SerializeObject(items, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockParagraph.cs b/TeleSharp.TL/TL/TLPageBlockParagraph.cs new file mode 100644 index 0000000..5adbc35 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockParagraph.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1182402406)] + public class TLPageBlockParagraph : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 1182402406; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockPhoto.cs b/TeleSharp.TL/TL/TLPageBlockPhoto.cs new file mode 100644 index 0000000..0aa3a10 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockPhoto.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-372860542)] + public class TLPageBlockPhoto : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -372860542; + } + } + + 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) + { + bw.Write(Constructor); + bw.Write(photo_id); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockPreformatted.cs b/TeleSharp.TL/TL/TLPageBlockPreformatted.cs new file mode 100644 index 0000000..baecdfd --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockPreformatted.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1066346178)] + public class TLPageBlockPreformatted : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -1066346178; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(text, bw); + StringUtil.Serialize(language, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockPullquote.cs b/TeleSharp.TL/TL/TLPageBlockPullquote.cs new file mode 100644 index 0000000..437218f --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockPullquote.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1329878739)] + public class TLPageBlockPullquote : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 1329878739; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(text, bw); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockSlideshow.cs b/TeleSharp.TL/TL/TLPageBlockSlideshow.cs new file mode 100644 index 0000000..b57094a --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockSlideshow.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(319588707)] + public class TLPageBlockSlideshow : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 319588707; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(items, bw); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockSubheader.cs b/TeleSharp.TL/TL/TLPageBlockSubheader.cs new file mode 100644 index 0000000..3438876 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockSubheader.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-248793375)] + public class TLPageBlockSubheader : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -248793375; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockSubtitle.cs b/TeleSharp.TL/TL/TLPageBlockSubtitle.cs new file mode 100644 index 0000000..258acf6 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockSubtitle.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1879401953)] + public class TLPageBlockSubtitle : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -1879401953; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockTitle.cs b/TeleSharp.TL/TL/TLPageBlockTitle.cs new file mode 100644 index 0000000..296daf3 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockTitle.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1890305021)] + public class TLPageBlockTitle : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 1890305021; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockUnsupported.cs b/TeleSharp.TL/TL/TLPageBlockUnsupported.cs new file mode 100644 index 0000000..9de6957 --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockUnsupported.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(324435594)] + public class TLPageBlockUnsupported : TLAbsPageBlock + { + public override int Constructor + { + get + { + return 324435594; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageBlockVideo.cs b/TeleSharp.TL/TL/TLPageBlockVideo.cs new file mode 100644 index 0000000..610ca8b --- /dev/null +++ b/TeleSharp.TL/TL/TLPageBlockVideo.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-640214938)] + public class TLPageBlockVideo : TLAbsPageBlock + { + public override int Constructor + { + get + { + return -640214938; + } + } + + public int flags { get; set; } + public bool autoplay { get; set; } + public bool loop { get; set; } + 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) + { + flags = br.ReadInt32(); + autoplay = (flags & 1) != 0; + loop = (flags & 2) != 0; + video_id = br.ReadInt64(); + caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + bw.Write(video_id); + ObjectUtils.SerializeObject(caption, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPageFull.cs b/TeleSharp.TL/TL/TLPageFull.cs new file mode 100644 index 0000000..d377c1e --- /dev/null +++ b/TeleSharp.TL/TL/TLPageFull.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-677274263)] + public class TLPageFull : TLAbsPage + { + public override int Constructor + { + get + { + return -677274263; + } + } + + public TLVector blocks { get; set; } + public TLVector photos { get; set; } + public TLVector videos { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + blocks = (TLVector)ObjectUtils.DeserializeVector(br); + photos = (TLVector)ObjectUtils.DeserializeVector(br); + videos = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(blocks, bw); + ObjectUtils.SerializeObject(photos, bw); + ObjectUtils.SerializeObject(videos, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPagePart.cs b/TeleSharp.TL/TL/TLPagePart.cs new file mode 100644 index 0000000..f7c6851 --- /dev/null +++ b/TeleSharp.TL/TL/TLPagePart.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1913754556)] + public class TLPagePart : TLAbsPage + { + public override int Constructor + { + get + { + return -1913754556; + } + } + + public TLVector blocks { get; set; } + public TLVector photos { get; set; } + public TLVector videos { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + blocks = (TLVector)ObjectUtils.DeserializeVector(br); + photos = (TLVector)ObjectUtils.DeserializeVector(br); + videos = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(blocks, bw); + ObjectUtils.SerializeObject(photos, bw); + ObjectUtils.SerializeObject(videos, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPaymentCharge.cs b/TeleSharp.TL/TL/TLPaymentCharge.cs new file mode 100644 index 0000000..6b6844a --- /dev/null +++ b/TeleSharp.TL/TL/TLPaymentCharge.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-368917890)] + public class TLPaymentCharge : TLObject + { + public override int Constructor + { + get + { + return -368917890; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(provider_charge_id, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs b/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs new file mode 100644 index 0000000..9c37da4 --- /dev/null +++ b/TeleSharp.TL/TL/TLPaymentRequestedInfo.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1868808300)] + public class TLPaymentRequestedInfo : TLObject + { + public override int Constructor + { + get + { + return -1868808300; + } + } + + public int flags { get; set; } + public string name { get; set; } + public string phone { get; set; } + public string email { get; set; } + public TLPostAddress shipping_address { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = name != null ? (flags | 1) : (flags & ~1); + 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) + { + flags = br.ReadInt32(); + if ((flags & 1) != 0) + name = StringUtil.Deserialize(br); + else + name = null; + + if ((flags & 2) != 0) + phone = StringUtil.Deserialize(br); + else + phone = null; + + if ((flags & 4) != 0) + email = StringUtil.Deserialize(br); + else + email = null; + + if ((flags & 8) != 0) + shipping_address = (TLPostAddress)ObjectUtils.DeserializeObject(br); + else + shipping_address = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + if ((flags & 1) != 0) + StringUtil.Serialize(name, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(phone, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(email, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(shipping_address, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs b/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs new file mode 100644 index 0000000..1bd0fdf --- /dev/null +++ b/TeleSharp.TL/TL/TLPaymentSavedCredentialsCard.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-842892769)] + public class TLPaymentSavedCredentialsCard : TLObject + { + public override int Constructor + { + get + { + return -842892769; + } + } + + 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) + { + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(title, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPeerChannel.cs b/TeleSharp.TL/TL/TLPeerChannel.cs index 2caaf12..905dfdc 100644 --- a/TeleSharp.TL/TL/TLPeerChannel.cs +++ b/TeleSharp.TL/TL/TLPeerChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1109531342)] + [TLObject(-1109531342)] public class TLPeerChannel : TLAbsPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} + public int channel_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); } diff --git a/TeleSharp.TL/TL/TLPeerChat.cs b/TeleSharp.TL/TL/TLPeerChat.cs index b8384a9..55265e5 100644 --- a/TeleSharp.TL/TL/TLPeerChat.cs +++ b/TeleSharp.TL/TL/TLPeerChat.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1160714821)] + [TLObject(-1160714821)] public class TLPeerChat : TLAbsPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} + public int chat_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs index 3e7508c..6d829fd 100644 --- a/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1830677896)] + [TLObject(1830677896)] public class TLPeerNotifyEventsAll : TLAbsPeerNotifyEvents { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs index cd04dc6..3e3b952 100644 --- a/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs +++ b/TeleSharp.TL/TL/TLPeerNotifyEventsEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1378534221)] + [TLObject(-1378534221)] public class TLPeerNotifyEventsEmpty : TLAbsPeerNotifyEvents { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPeerNotifySettings.cs b/TeleSharp.TL/TL/TLPeerNotifySettings.cs index 374130e..508ecc1 100644 --- a/TeleSharp.TL/TL/TLPeerNotifySettings.cs +++ b/TeleSharp.TL/TL/TLPeerNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1697798976)] + [TLObject(-1697798976)] public class TLPeerNotifySettings : TLAbsPeerNotifySettings { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool show_previews {get;set;} - public bool silent {get;set;} - public int mute_until {get;set;} - public string sound {get;set;} + public int flags { get; set; } + public bool show_previews { get; set; } + public bool silent { get; set; } + public int mute_until { get; set; } + public string sound { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = show_previews ? (flags | 1) : (flags & ~1); -flags = silent ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = show_previews ? (flags | 1) : (flags & ~1); + flags = silent ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -show_previews = (flags & 1) != 0; -silent = (flags & 2) != 0; -mute_until = br.ReadInt32(); -sound = StringUtil.Deserialize(br); + show_previews = (flags & 1) != 0; + silent = (flags & 2) != 0; + mute_until = br.ReadInt32(); + sound = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(mute_until); -StringUtil.Serialize(sound,bw); + bw.Write(mute_until); + StringUtil.Serialize(sound, bw); } } diff --git a/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs index 6d1a7ec..d3e028f 100644 --- a/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs +++ b/TeleSharp.TL/TL/TLPeerNotifySettingsEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1889961234)] + [TLObject(1889961234)] public class TLPeerNotifySettingsEmpty : TLAbsPeerNotifySettings { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPeerSettings.cs b/TeleSharp.TL/TL/TLPeerSettings.cs index c9c00f1..4fd8e10 100644 --- a/TeleSharp.TL/TL/TLPeerSettings.cs +++ b/TeleSharp.TL/TL/TLPeerSettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2122045747)] + [TLObject(-2122045747)] public class TLPeerSettings : TLObject { public override int Constructor @@ -18,29 +18,29 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool report_spam {get;set;} + public int flags { get; set; } + public bool report_spam { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = report_spam ? (flags | 1) : (flags & ~1); + 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; + report_spam = (flags & 1) != 0; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); } diff --git a/TeleSharp.TL/TL/TLPeerUser.cs b/TeleSharp.TL/TL/TLPeerUser.cs index 5477679..d758566 100644 --- a/TeleSharp.TL/TL/TLPeerUser.cs +++ b/TeleSharp.TL/TL/TLPeerUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1649296275)] + [TLObject(-1649296275)] public class TLPeerUser : TLAbsPeer { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} + public int user_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); } diff --git a/TeleSharp.TL/TL/TLPhoneCall.cs b/TeleSharp.TL/TL/TLPhoneCall.cs new file mode 100644 index 0000000..b8fd237 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCall.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1660057)] + public class TLPhoneCall : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return -1660057; + } + } + + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public byte[] g_a_or_b { get; set; } + public long key_fingerprint { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + public TLPhoneConnection connection { get; set; } + public TLVector alternative_connections { get; set; } + public int start_date { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + g_a_or_b = BytesUtil.Deserialize(br); + key_fingerprint = br.ReadInt64(); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + connection = (TLPhoneConnection)ObjectUtils.DeserializeObject(br); + alternative_connections = (TLVector)ObjectUtils.DeserializeVector(br); + start_date = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + BytesUtil.Serialize(g_a_or_b, bw); + bw.Write(key_fingerprint); + ObjectUtils.SerializeObject(protocol, bw); + ObjectUtils.SerializeObject(connection, bw); + ObjectUtils.SerializeObject(alternative_connections, bw); + bw.Write(start_date); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallAccepted.cs b/TeleSharp.TL/TL/TLPhoneCallAccepted.cs new file mode 100644 index 0000000..83f5981 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallAccepted.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1828732223)] + public class TLPhoneCallAccepted : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return 1828732223; + } + } + + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public byte[] g_b { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + g_b = BytesUtil.Deserialize(br); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + BytesUtil.Serialize(g_b, bw); + ObjectUtils.SerializeObject(protocol, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs new file mode 100644 index 0000000..59fd875 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonBusy.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-84416311)] + public class TLPhoneCallDiscardReasonBusy : TLAbsPhoneCallDiscardReason + { + public override int Constructor + { + get + { + return -84416311; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs new file mode 100644 index 0000000..9f09d4c --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonDisconnect.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-527056480)] + public class TLPhoneCallDiscardReasonDisconnect : TLAbsPhoneCallDiscardReason + { + public override int Constructor + { + get + { + return -527056480; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs new file mode 100644 index 0000000..eb5bdef --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonHangup.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1471006352)] + public class TLPhoneCallDiscardReasonHangup : TLAbsPhoneCallDiscardReason + { + public override int Constructor + { + get + { + return 1471006352; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs new file mode 100644 index 0000000..d5eef1b --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallDiscardReasonMissed.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2048646399)] + public class TLPhoneCallDiscardReasonMissed : TLAbsPhoneCallDiscardReason + { + public override int Constructor + { + get + { + return -2048646399; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs b/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs new file mode 100644 index 0000000..d2ff879 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallDiscarded.cs @@ -0,0 +1,73 @@ +using System; +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)] + public class TLPhoneCallDiscarded : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return 1355435489; + } + } + + public int flags { get; set; } + public bool need_rating { get; set; } + public bool need_debug { get; set; } + public long id { get; set; } + public TLAbsPhoneCallDiscardReason reason { get; set; } + public int? duration { get; set; } + + + public void ComputeFlags() + { + flags = 0; + flags = need_rating ? (flags | 4) : (flags & ~4); + 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) + { + flags = br.ReadInt32(); + need_rating = (flags & 4) != 0; + need_debug = (flags & 8) != 0; + id = br.ReadInt64(); + if ((flags & 1) != 0) + reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br); + else + reason = null; + + if ((flags & 2) != 0) + duration = br.ReadInt32(); + else + duration = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + bw.Write(id); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(reason, bw); + if ((flags & 2) != 0) + bw.Write(duration.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallEmpty.cs b/TeleSharp.TL/TL/TLPhoneCallEmpty.cs new file mode 100644 index 0000000..098ec73 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallEmpty.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1399245077)] + public class TLPhoneCallEmpty : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return 1399245077; + } + } + + public long id { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallProtocol.cs b/TeleSharp.TL/TL/TLPhoneCallProtocol.cs new file mode 100644 index 0000000..5b3907b --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallProtocol.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1564789301)] + public class TLPhoneCallProtocol : TLObject + { + public override int Constructor + { + get + { + return -1564789301; + } + } + + public int flags { get; set; } + public bool udp_p2p { get; set; } + public bool udp_reflector { get; set; } + 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) + { + flags = br.ReadInt32(); + udp_p2p = (flags & 1) != 0; + udp_reflector = (flags & 2) != 0; + min_layer = br.ReadInt32(); + max_layer = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + + bw.Write(min_layer); + bw.Write(max_layer); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallRequested.cs b/TeleSharp.TL/TL/TLPhoneCallRequested.cs new file mode 100644 index 0000000..d46bdd8 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallRequested.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2089411356)] + public class TLPhoneCallRequested : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return -2089411356; + } + } + + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public byte[] g_a_hash { get; set; } + public TLPhoneCallProtocol protocol { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + g_a_hash = BytesUtil.Deserialize(br); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + BytesUtil.Serialize(g_a_hash, bw); + ObjectUtils.SerializeObject(protocol, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneCallWaiting.cs b/TeleSharp.TL/TL/TLPhoneCallWaiting.cs new file mode 100644 index 0000000..4fe5947 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneCallWaiting.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(462375633)] + public class TLPhoneCallWaiting : TLAbsPhoneCall + { + public override int Constructor + { + get + { + return 462375633; + } + } + + public int flags { get; set; } + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public int admin_id { get; set; } + public int participant_id { get; set; } + public 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) + { + flags = br.ReadInt32(); + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + admin_id = br.ReadInt32(); + participant_id = br.ReadInt32(); + protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br); + if ((flags & 1) != 0) + receive_date = br.ReadInt32(); + else + receive_date = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(id); + bw.Write(access_hash); + bw.Write(date); + bw.Write(admin_id); + bw.Write(participant_id); + ObjectUtils.SerializeObject(protocol, bw); + if ((flags & 1) != 0) + bw.Write(receive_date.Value); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoneConnection.cs b/TeleSharp.TL/TL/TLPhoneConnection.cs new file mode 100644 index 0000000..fcfeb13 --- /dev/null +++ b/TeleSharp.TL/TL/TLPhoneConnection.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1655957568)] + public class TLPhoneConnection : TLObject + { + public override int Constructor + { + get + { + return -1655957568; + } + } + + public long id { get; set; } + public string ip { get; set; } + public string ipv6 { get; set; } + public int port { get; set; } + public byte[] peer_tag { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = br.ReadInt64(); + ip = StringUtil.Deserialize(br); + ipv6 = StringUtil.Deserialize(br); + port = br.ReadInt32(); + peer_tag = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(id); + StringUtil.Serialize(ip, bw); + StringUtil.Serialize(ipv6, bw); + bw.Write(port); + BytesUtil.Serialize(peer_tag, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPhoto.cs b/TeleSharp.TL/TL/TLPhoto.cs index a670bcd..d8869a9 100644 --- a/TeleSharp.TL/TL/TLPhoto.cs +++ b/TeleSharp.TL/TL/TLPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1836524247)] + [TLObject(-1836524247)] public class TLPhoto : TLAbsPhoto { public override int Constructor @@ -18,42 +18,42 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool has_stickers {get;set;} - public long id {get;set;} - public long access_hash {get;set;} - public int date {get;set;} - public TLVector sizes {get;set;} + public int flags { get; set; } + public bool has_stickers { get; set; } + public long id { get; set; } + public long access_hash { get; set; } + public int date { get; set; } + public TLVector sizes { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = has_stickers ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = has_stickers ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -has_stickers = (flags & 1) != 0; -id = br.ReadInt64(); -access_hash = br.ReadInt64(); -date = br.ReadInt32(); -sizes = (TLVector)ObjectUtils.DeserializeVector(br); + has_stickers = (flags & 1) != 0; + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + date = br.ReadInt32(); + sizes = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -bw.Write(access_hash); -bw.Write(date); -ObjectUtils.SerializeObject(sizes,bw); + bw.Write(id); + bw.Write(access_hash); + bw.Write(date); + ObjectUtils.SerializeObject(sizes, bw); } } diff --git a/TeleSharp.TL/TL/TLPhotoCachedSize.cs b/TeleSharp.TL/TL/TLPhotoCachedSize.cs index fe6825c..b40e782 100644 --- a/TeleSharp.TL/TL/TLPhotoCachedSize.cs +++ b/TeleSharp.TL/TL/TLPhotoCachedSize.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-374917894)] + [TLObject(-374917894)] public class TLPhotoCachedSize : TLAbsPhotoSize { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public string type {get;set;} - public TLAbsFileLocation location {get;set;} - public int w {get;set;} - public int h {get;set;} - public byte[] bytes {get;set;} + public string type { get; set; } + public TLAbsFileLocation location { get; set; } + public int w { get; set; } + public int h { get; set; } + public byte[] bytes { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { type = StringUtil.Deserialize(br); -location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); -w = br.ReadInt32(); -h = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + w = br.ReadInt32(); + h = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(type,bw); -ObjectUtils.SerializeObject(location,bw); -bw.Write(w); -bw.Write(h); -BytesUtil.Serialize(bytes,bw); + bw.Write(Constructor); + StringUtil.Serialize(type, bw); + ObjectUtils.SerializeObject(location, bw); + bw.Write(w); + bw.Write(h); + BytesUtil.Serialize(bytes, bw); } } diff --git a/TeleSharp.TL/TL/TLPhotoEmpty.cs b/TeleSharp.TL/TL/TLPhotoEmpty.cs index 40a9166..dbbf21f 100644 --- a/TeleSharp.TL/TL/TLPhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLPhotoEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(590459437)] + [TLObject(590459437)] public class TLPhotoEmpty : TLAbsPhoto { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public long id {get;set;} + public long id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLPhotoSize.cs b/TeleSharp.TL/TL/TLPhotoSize.cs index 4429643..0119b32 100644 --- a/TeleSharp.TL/TL/TLPhotoSize.cs +++ b/TeleSharp.TL/TL/TLPhotoSize.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2009052699)] + [TLObject(2009052699)] public class TLPhotoSize : TLAbsPhotoSize { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public string type {get;set;} - public TLAbsFileLocation location {get;set;} - public int w {get;set;} - public int h {get;set;} - public int size {get;set;} + public string type { get; set; } + public TLAbsFileLocation location { get; set; } + public int w { get; set; } + public int h { get; set; } + public int size { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { type = StringUtil.Deserialize(br); -location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); -w = br.ReadInt32(); -h = br.ReadInt32(); -size = br.ReadInt32(); + location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + w = br.ReadInt32(); + h = br.ReadInt32(); + size = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(type,bw); -ObjectUtils.SerializeObject(location,bw); -bw.Write(w); -bw.Write(h); -bw.Write(size); + bw.Write(Constructor); + StringUtil.Serialize(type, bw); + ObjectUtils.SerializeObject(location, bw); + bw.Write(w); + bw.Write(h); + bw.Write(size); } } diff --git a/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs index 10b070d..8ca1307 100644 --- a/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs +++ b/TeleSharp.TL/TL/TLPhotoSizeEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(236446268)] + [TLObject(236446268)] public class TLPhotoSizeEmpty : TLAbsPhotoSize { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public string type {get;set;} + public string type { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(type,bw); + bw.Write(Constructor); + StringUtil.Serialize(type, bw); } } diff --git a/TeleSharp.TL/TL/TLPostAddress.cs b/TeleSharp.TL/TL/TLPostAddress.cs new file mode 100644 index 0000000..00bc3a6 --- /dev/null +++ b/TeleSharp.TL/TL/TLPostAddress.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(512535275)] + public class TLPostAddress : TLObject + { + public override int Constructor + { + get + { + return 512535275; + } + } + + public string street_line1 { get; set; } + public string street_line2 { get; set; } + public string city { get; set; } + public string state { get; set; } + public string country_iso2 { get; set; } + public string post_code { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + street_line1 = StringUtil.Deserialize(br); + street_line2 = StringUtil.Deserialize(br); + city = StringUtil.Deserialize(br); + state = StringUtil.Deserialize(br); + country_iso2 = StringUtil.Deserialize(br); + post_code = StringUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(street_line1, bw); + StringUtil.Serialize(street_line2, bw); + StringUtil.Serialize(city, bw); + StringUtil.Serialize(state, bw); + StringUtil.Serialize(country_iso2, bw); + StringUtil.Serialize(post_code, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs index e0ca982..bcd4d8b 100644 --- a/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs +++ b/TeleSharp.TL/TL/TLPrivacyKeyChatInvite.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1343122938)] + [TLObject(1343122938)] public class TLPrivacyKeyChatInvite : TLAbsPrivacyKey { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs b/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs new file mode 100644 index 0000000..fd227f8 --- /dev/null +++ b/TeleSharp.TL/TL/TLPrivacyKeyPhoneCall.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1030105979)] + public class TLPrivacyKeyPhoneCall : TLAbsPrivacyKey + { + public override int Constructor + { + get + { + return 1030105979; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs index 979a53b..00ecf71 100644 --- a/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs +++ b/TeleSharp.TL/TL/TLPrivacyKeyStatusTimestamp.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1137792208)] + [TLObject(-1137792208)] public class TLPrivacyKeyStatusTimestamp : TLAbsPrivacyKey { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs index 117613b..59dc672 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1698855810)] + [TLObject(1698855810)] public class TLPrivacyValueAllowAll : TLAbsPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs index 7856d22..0fd7f59 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-123988)] + [TLObject(-123988)] public class TLPrivacyValueAllowContacts : TLAbsPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs index 754d826..c2a99f5 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueAllowUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1297858060)] + [TLObject(1297858060)] public class TLPrivacyValueAllowUsers : TLAbsPrivacyRule { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector users {get;set;} + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs index 3225b9d..a632b37 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowAll.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1955338397)] + [TLObject(-1955338397)] public class TLPrivacyValueDisallowAll : TLAbsPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs index f324e15..b68d0ea 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowContacts.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-125240806)] + [TLObject(-125240806)] public class TLPrivacyValueDisallowContacts : TLAbsPrivacyRule { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs index cd1ae94..cd20b42 100644 --- a/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs +++ b/TeleSharp.TL/TL/TLPrivacyValueDisallowUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(209668535)] + [TLObject(209668535)] public class TLPrivacyValueDisallowUsers : TLAbsPrivacyRule { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector users {get;set;} + public TLVector users { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(users,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs index 6a09537..50ca24d 100644 --- a/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs +++ b/TeleSharp.TL/TL/TLReceivedNotifyMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1551583367)] + [TLObject(-1551583367)] public class TLReceivedNotifyMessage : TLObject { public override int Constructor @@ -18,29 +18,29 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public int flags {get;set;} + public int id { get; set; } + public int flags { get; set; } - public void ComputeFlags() - { - flags = 0; + public void ComputeFlags() + { + flags = 0; - } + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -flags = br.ReadInt32(); + flags = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(id); + bw.Write(flags); + bw.Write(id); } } diff --git a/TeleSharp.TL/TL/TLReplyInlineMarkup.cs b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs index 1110211..3043c26 100644 --- a/TeleSharp.TL/TL/TLReplyInlineMarkup.cs +++ b/TeleSharp.TL/TL/TLReplyInlineMarkup.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1218642516)] + [TLObject(1218642516)] public class TLReplyInlineMarkup : TLAbsReplyMarkup { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector rows {get;set;} + public TLVector rows { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(rows,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(rows, bw); } } diff --git a/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs index f1d26be..cc3cc00 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardForceReply.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-200242528)] + [TLObject(-200242528)] public class TLReplyKeyboardForceReply : TLAbsReplyMarkup { public override int Constructor @@ -18,32 +18,32 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool single_use {get;set;} - public bool selective {get;set;} + public int flags { get; set; } + public bool single_use { get; set; } + public bool selective { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = single_use ? (flags | 2) : (flags & ~2); -flags = selective ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = single_use ? (flags | 2) : (flags & ~2); + flags = selective ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -single_use = (flags & 2) != 0; -selective = (flags & 4) != 0; + single_use = (flags & 2) != 0; + selective = (flags & 4) != 0; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); diff --git a/TeleSharp.TL/TL/TLReplyKeyboardHide.cs b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs index 78c9ea2..06ae195 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardHide.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardHide.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1606526075)] + [TLObject(-1606526075)] public class TLReplyKeyboardHide : TLAbsReplyMarkup { public override int Constructor @@ -18,29 +18,29 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool selective {get;set;} + public int flags { get; set; } + public bool selective { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = selective ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = selective ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -selective = (flags & 4) != 0; + selective = (flags & 4) != 0; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); } diff --git a/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs index 8a1e82a..773c2f8 100644 --- a/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs +++ b/TeleSharp.TL/TL/TLReplyKeyboardMarkup.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(889353612)] + [TLObject(889353612)] public class TLReplyKeyboardMarkup : TLAbsReplyMarkup { public override int Constructor @@ -18,41 +18,41 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool resize {get;set;} - public bool single_use {get;set;} - public bool selective {get;set;} - public TLVector rows {get;set;} + public int flags { get; set; } + public bool resize { get; set; } + public bool single_use { get; set; } + public bool selective { get; set; } + public TLVector rows { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = resize ? (flags | 1) : (flags & ~1); -flags = single_use ? (flags | 2) : (flags & ~2); -flags = selective ? (flags | 4) : (flags & ~4); + public void ComputeFlags() + { + flags = 0; + flags = resize ? (flags | 1) : (flags & ~1); + flags = single_use ? (flags | 2) : (flags & ~2); + flags = selective ? (flags | 4) : (flags & ~4); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -resize = (flags & 1) != 0; -single_use = (flags & 2) != 0; -selective = (flags & 4) != 0; -rows = (TLVector)ObjectUtils.DeserializeVector(br); + resize = (flags & 1) != 0; + single_use = (flags & 2) != 0; + selective = (flags & 4) != 0; + rows = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(rows,bw); + ObjectUtils.SerializeObject(rows, bw); } } diff --git a/TeleSharp.TL/TL/TLRequestInitConnection.cs b/TeleSharp.TL/TL/TLRequestInitConnection.cs index 9ce4488..ae2b501 100644 --- a/TeleSharp.TL/TL/TLRequestInitConnection.cs +++ b/TeleSharp.TL/TL/TLRequestInitConnection.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1769565673)] + [TLObject(1769565673)] public class TLRequestInitConnection : TLMethod { public override int Constructor @@ -18,46 +18,46 @@ namespace TeleSharp.TL } } - public int api_id {get;set;} - public string device_model {get;set;} - public string system_version {get;set;} - public string app_version {get;set;} - public string lang_code {get;set;} - public TLObject query {get;set;} - public TLObject Response{ get; set;} + public int api_id { get; set; } + public string device_model { get; set; } + public string system_version { get; set; } + public string app_version { get; set; } + public string lang_code { get; set; } + public TLObject query { get; set; } + public TLObject Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { api_id = br.ReadInt32(); -device_model = StringUtil.Deserialize(br); -system_version = StringUtil.Deserialize(br); -app_version = StringUtil.Deserialize(br); -lang_code = StringUtil.Deserialize(br); -query = (TLObject)ObjectUtils.DeserializeObject(br); + device_model = StringUtil.Deserialize(br); + system_version = StringUtil.Deserialize(br); + app_version = StringUtil.Deserialize(br); + lang_code = StringUtil.Deserialize(br); + query = (TLObject)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(api_id); -StringUtil.Serialize(device_model,bw); -StringUtil.Serialize(system_version,bw); -StringUtil.Serialize(app_version,bw); -StringUtil.Serialize(lang_code,bw); -ObjectUtils.SerializeObject(query,bw); + StringUtil.Serialize(device_model, bw); + StringUtil.Serialize(system_version, bw); + StringUtil.Serialize(app_version, bw); + StringUtil.Serialize(lang_code, bw); + ObjectUtils.SerializeObject(query, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLObject)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs index 635888a..830389d 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsg.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-878758099)] + [TLObject(-878758099)] public class TLRequestInvokeAfterMsg : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL } } - public long msg_id {get;set;} - public TLObject query {get;set;} - public TLObject Response{ get; set;} + public long msg_id { get; set; } + public TLObject query { get; set; } + public TLObject Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { msg_id = br.ReadInt64(); -query = (TLObject)ObjectUtils.DeserializeObject(br); + query = (TLObject)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(msg_id); -ObjectUtils.SerializeObject(query,bw); + ObjectUtils.SerializeObject(query, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLObject)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs index 16a3a33..4680569 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeAfterMsgs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1036301552)] + [TLObject(1036301552)] public class TLRequestInvokeAfterMsgs : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL } } - public TLVector msg_ids {get;set;} - public TLObject query {get;set;} - public TLObject Response{ get; set;} + public TLVector msg_ids { get; set; } + public TLObject query { get; set; } + public TLObject Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { msg_ids = (TLVector)ObjectUtils.DeserializeVector(br); -query = (TLObject)ObjectUtils.DeserializeObject(br); + query = (TLObject)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(msg_ids,bw); -ObjectUtils.SerializeObject(query,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(msg_ids, bw); + ObjectUtils.SerializeObject(query, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLObject)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs index b2fe196..001422f 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeWithLayer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-627372787)] + [TLObject(-627372787)] public class TLRequestInvokeWithLayer : TLMethod { public override int Constructor @@ -18,34 +18,34 @@ namespace TeleSharp.TL } } - public int layer {get;set;} - public TLObject query {get;set;} - public TLObject Response{ get; set;} + public int layer { get; set; } + public TLObject query { get; set; } + public TLObject Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { layer = br.ReadInt32(); -query = (TLObject)ObjectUtils.DeserializeObject(br); + query = (TLObject)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(layer); -ObjectUtils.SerializeObject(query,bw); + ObjectUtils.SerializeObject(query, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLObject)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs index 2614801..bd33df4 100644 --- a/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs +++ b/TeleSharp.TL/TL/TLRequestInvokeWithoutUpdates.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1080796745)] + [TLObject(-1080796745)] public class TLRequestInvokeWithoutUpdates : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL } } - public TLObject query {get;set;} - public TLObject Response{ get; set;} + public TLObject query { get; set; } + public TLObject Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(query,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(query, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLObject)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLObject)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageCancelAction.cs b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs index 10ce44c..cd8aff8 100644 --- a/TeleSharp.TL/TL/TLSendMessageCancelAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageCancelAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-44119819)] + [TLObject(-44119819)] public class TLSendMessageCancelAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs index b46ba18..609d518 100644 --- a/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageChooseContactAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1653390447)] + [TLObject(1653390447)] public class TLSendMessageChooseContactAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs b/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs index 39f8943..df56b60 100644 --- a/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageGamePlayAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-580219064)] + [TLObject(-580219064)] public class TLSendMessageGamePlayAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs index 2198012..f93684c 100644 --- a/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageGeoLocationAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(393186209)] + [TLObject(393186209)] public class TLSendMessageGeoLocationAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs index dbf577a..68dc5a7 100644 --- a/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageRecordAudioAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-718310409)] + [TLObject(-718310409)] public class TLSendMessageRecordAudioAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs new file mode 100644 index 0000000..0ac0e85 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageRecordRoundAction.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1997373508)] + public class TLSendMessageRecordRoundAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return -1997373508; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs index 0c60759..a169573 100644 --- a/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageRecordVideoAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1584933265)] + [TLObject(-1584933265)] public class TLSendMessageRecordVideoAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageTypingAction.cs b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs index 991f168..72237c8 100644 --- a/TeleSharp.TL/TL/TLSendMessageTypingAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageTypingAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(381645902)] + [TLObject(381645902)] public class TLSendMessageTypingAction : TLAbsSendMessageAction { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs index 2664cf0..3fb3aa6 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadAudioAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-212740181)] + [TLObject(-212740181)] public class TLSendMessageUploadAudioAction : TLAbsSendMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int progress {get;set;} + public int progress { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(progress); } diff --git a/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs index bc45d33..394d035 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadDocumentAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1441998364)] + [TLObject(-1441998364)] public class TLSendMessageUploadDocumentAction : TLAbsSendMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int progress {get;set;} + public int progress { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(progress); } diff --git a/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs index 2e8a74d..b9d0a48 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadPhotoAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-774682074)] + [TLObject(-774682074)] public class TLSendMessageUploadPhotoAction : TLAbsSendMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int progress {get;set;} + public int progress { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(progress); } diff --git a/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs new file mode 100644 index 0000000..285c9f5 --- /dev/null +++ b/TeleSharp.TL/TL/TLSendMessageUploadRoundAction.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(608050278)] + public class TLSendMessageUploadRoundAction : TLAbsSendMessageAction + { + public override int Constructor + { + get + { + return 608050278; + } + } + + public int progress { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + progress = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(progress); + + } + } +} diff --git a/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs index a2576dd..09585ba 100644 --- a/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs +++ b/TeleSharp.TL/TL/TLSendMessageUploadVideoAction.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-378127636)] + [TLObject(-378127636)] public class TLSendMessageUploadVideoAction : TLAbsSendMessageAction { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int progress {get;set;} + public int progress { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(progress); } diff --git a/TeleSharp.TL/TL/TLShippingOption.cs b/TeleSharp.TL/TL/TLShippingOption.cs new file mode 100644 index 0000000..edd6939 --- /dev/null +++ b/TeleSharp.TL/TL/TLShippingOption.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1239335713)] + public class TLShippingOption : TLObject + { + public override int Constructor + { + get + { + return -1239335713; + } + } + + public string id { get; set; } + public string title { get; set; } + public TLVector prices { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + id = StringUtil.Deserialize(br); + title = StringUtil.Deserialize(br); + prices = (TLVector)ObjectUtils.DeserializeVector(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(id, bw); + StringUtil.Serialize(title, bw); + ObjectUtils.SerializeObject(prices, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLStickerPack.cs b/TeleSharp.TL/TL/TLStickerPack.cs index 5e701cd..a979a24 100644 --- a/TeleSharp.TL/TL/TLStickerPack.cs +++ b/TeleSharp.TL/TL/TLStickerPack.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(313694676)] + [TLObject(313694676)] public class TLStickerPack : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public string emoticon {get;set;} - public TLVector documents {get;set;} + public string emoticon { get; set; } + public TLVector documents { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { emoticon = StringUtil.Deserialize(br); -documents = (TLVector)ObjectUtils.DeserializeVector(br); + documents = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(emoticon,bw); -ObjectUtils.SerializeObject(documents,bw); + bw.Write(Constructor); + StringUtil.Serialize(emoticon, bw); + ObjectUtils.SerializeObject(documents, bw); } } diff --git a/TeleSharp.TL/TL/TLStickerSet.cs b/TeleSharp.TL/TL/TLStickerSet.cs index 166bf1a..eafd8a7 100644 --- a/TeleSharp.TL/TL/TLStickerSet.cs +++ b/TeleSharp.TL/TL/TLStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-852477119)] + [TLObject(-852477119)] public class TLStickerSet : TLObject { public override int Constructor @@ -18,60 +18,60 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool installed {get;set;} - public bool archived {get;set;} - public bool official {get;set;} - public bool masks {get;set;} - public long id {get;set;} - public long access_hash {get;set;} - public string title {get;set;} - public string short_name {get;set;} - public int count {get;set;} - public int hash {get;set;} + public int flags { get; set; } + public bool installed { get; set; } + public bool archived { get; set; } + public bool official { get; set; } + public bool masks { get; set; } + public long id { get; set; } + public long access_hash { get; set; } + public string title { get; set; } + public string short_name { get; set; } + public int count { get; set; } + public int hash { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = installed ? (flags | 1) : (flags & ~1); -flags = archived ? (flags | 2) : (flags & ~2); -flags = official ? (flags | 4) : (flags & ~4); -flags = masks ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = installed ? (flags | 1) : (flags & ~1); + flags = archived ? (flags | 2) : (flags & ~2); + flags = official ? (flags | 4) : (flags & ~4); + flags = masks ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -installed = (flags & 1) != 0; -archived = (flags & 2) != 0; -official = (flags & 4) != 0; -masks = (flags & 8) != 0; -id = br.ReadInt64(); -access_hash = br.ReadInt64(); -title = StringUtil.Deserialize(br); -short_name = StringUtil.Deserialize(br); -count = br.ReadInt32(); -hash = br.ReadInt32(); + installed = (flags & 1) != 0; + archived = (flags & 2) != 0; + official = (flags & 4) != 0; + masks = (flags & 8) != 0; + id = br.ReadInt64(); + access_hash = br.ReadInt64(); + title = StringUtil.Deserialize(br); + short_name = StringUtil.Deserialize(br); + count = br.ReadInt32(); + hash = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + 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); + bw.Write(id); + bw.Write(access_hash); + StringUtil.Serialize(title, bw); + StringUtil.Serialize(short_name, bw); + bw.Write(count); + bw.Write(hash); } } diff --git a/TeleSharp.TL/TL/TLStickerSetCovered.cs b/TeleSharp.TL/TL/TLStickerSetCovered.cs index 824a41c..8affe29 100644 --- a/TeleSharp.TL/TL/TLStickerSetCovered.cs +++ b/TeleSharp.TL/TL/TLStickerSetCovered.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1678812626)] + [TLObject(1678812626)] public class TLStickerSetCovered : TLAbsStickerSetCovered { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLStickerSet @set {get;set;} - public TLAbsDocument cover {get;set;} + public TLStickerSet @set { get; set; } + public TLAbsDocument cover { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); -cover = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + cover = (TLAbsDocument)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(@set,bw); -ObjectUtils.SerializeObject(cover,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(@set, bw); + ObjectUtils.SerializeObject(cover, bw); } } diff --git a/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs b/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs index f3f5d1b..a1e0192 100644 --- a/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs +++ b/TeleSharp.TL/TL/TLStickerSetMultiCovered.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(872932635)] + [TLObject(872932635)] public class TLStickerSetMultiCovered : TLAbsStickerSetCovered { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLStickerSet @set {get;set;} - public TLVector covers {get;set;} + public TLStickerSet @set { get; set; } + public TLVector covers { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @set = (TLStickerSet)ObjectUtils.DeserializeObject(br); -covers = (TLVector)ObjectUtils.DeserializeVector(br); + covers = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(@set,bw); -ObjectUtils.SerializeObject(covers,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(@set, bw); + ObjectUtils.SerializeObject(covers, bw); } } diff --git a/TeleSharp.TL/TL/TLTextBold.cs b/TeleSharp.TL/TL/TLTextBold.cs new file mode 100644 index 0000000..7e6e45a --- /dev/null +++ b/TeleSharp.TL/TL/TLTextBold.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1730456516)] + public class TLTextBold : TLAbsRichText + { + public override int Constructor + { + get + { + return 1730456516; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextConcat.cs b/TeleSharp.TL/TL/TLTextConcat.cs new file mode 100644 index 0000000..71b3c17 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextConcat.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(2120376535)] + public class TLTextConcat : TLAbsRichText + { + public override int Constructor + { + get + { + return 2120376535; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextEmail.cs b/TeleSharp.TL/TL/TLTextEmail.cs new file mode 100644 index 0000000..dff0973 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextEmail.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-564523562)] + public class TLTextEmail : TLAbsRichText + { + public override int Constructor + { + get + { + return -564523562; + } + } + + 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) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(text, bw); + StringUtil.Serialize(email, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextEmpty.cs b/TeleSharp.TL/TL/TLTextEmpty.cs new file mode 100644 index 0000000..fa71a43 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextEmpty.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-599948721)] + public class TLTextEmpty : TLAbsRichText + { + public override int Constructor + { + get + { + return -599948721; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextFixed.cs b/TeleSharp.TL/TL/TLTextFixed.cs new file mode 100644 index 0000000..cb9b7d9 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextFixed.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1816074681)] + public class TLTextFixed : TLAbsRichText + { + public override int Constructor + { + get + { + return 1816074681; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextItalic.cs b/TeleSharp.TL/TL/TLTextItalic.cs new file mode 100644 index 0000000..86e7d86 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextItalic.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-653089380)] + public class TLTextItalic : TLAbsRichText + { + public override int Constructor + { + get + { + return -653089380; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Help/TLAppChangelog.cs b/TeleSharp.TL/TL/TLTextPlain.cs similarity index 61% rename from TeleSharp.TL/TL/Help/TLAppChangelog.cs rename to TeleSharp.TL/TL/TLTextPlain.cs index 59ebc07..044cce0 100644 --- a/TeleSharp.TL/TL/Help/TLAppChangelog.cs +++ b/TeleSharp.TL/TL/TLTextPlain.cs @@ -5,26 +5,26 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; -namespace TeleSharp.TL.Help +namespace TeleSharp.TL { - [TLObject(1181279933)] - public class TLAppChangelog : TLAbsAppChangelog + [TLObject(1950782688)] + public class TLTextPlain : TLAbsRichText { public override int Constructor { get { - return 1181279933; + return 1950782688; } } - public string text {get;set;} + public string text { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL.Help public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(text,bw); + bw.Write(Constructor); + StringUtil.Serialize(text, bw); } } diff --git a/TeleSharp.TL/TL/TLTextStrike.cs b/TeleSharp.TL/TL/TLTextStrike.cs new file mode 100644 index 0000000..e3cff4e --- /dev/null +++ b/TeleSharp.TL/TL/TLTextStrike.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1678197867)] + public class TLTextStrike : TLAbsRichText + { + public override int Constructor + { + get + { + return -1678197867; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextUnderline.cs b/TeleSharp.TL/TL/TLTextUnderline.cs new file mode 100644 index 0000000..6d98ef3 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextUnderline.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1054465340)] + public class TLTextUnderline : TLAbsRichText + { + public override int Constructor + { + get + { + return -1054465340; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTextUrl.cs b/TeleSharp.TL/TL/TLTextUrl.cs new file mode 100644 index 0000000..c86ea43 --- /dev/null +++ b/TeleSharp.TL/TL/TLTextUrl.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1009288385)] + public class TLTextUrl : TLAbsRichText + { + public override int Constructor + { + get + { + return 1009288385; + } + } + + public TLAbsRichText text { get; set; } + public string url { get; set; } + public long webpage_id { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); + url = StringUtil.Deserialize(br); + webpage_id = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(text, bw); + StringUtil.Serialize(url, bw); + bw.Write(webpage_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLTopPeer.cs b/TeleSharp.TL/TL/TLTopPeer.cs index 13ed0b6..1cdf7f8 100644 --- a/TeleSharp.TL/TL/TLTopPeer.cs +++ b/TeleSharp.TL/TL/TLTopPeer.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-305282981)] + [TLObject(-305282981)] public class TLTopPeer : TLObject { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsPeer peer {get;set;} - public double rating {get;set;} + public TLAbsPeer peer { get; set; } + public double rating { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -rating = br.ReadDouble(); + rating = br.ReadDouble(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(rating); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(rating); } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs index b44456d..8d41db6 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsInline.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(344356834)] + [TLObject(344356834)] public class TLTopPeerCategoryBotsInline : TLAbsTopPeerCategory { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs index c71bd21..efdc6b1 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryBotsPM.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1419371685)] + [TLObject(-1419371685)] public class TLTopPeerCategoryBotsPM : TLAbsTopPeerCategory { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs index ebe7997..570af94 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryChannels.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(371037736)] + [TLObject(371037736)] public class TLTopPeerCategoryChannels : TLAbsTopPeerCategory { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs index e402c6c..8e8a829 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryCorrespondents.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(104314861)] + [TLObject(104314861)] public class TLTopPeerCategoryCorrespondents : TLAbsTopPeerCategory { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs index 77d7dde..c283b15 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryGroups.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1122524854)] + [TLObject(-1122524854)] public class TLTopPeerCategoryGroups : TLAbsTopPeerCategory { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs index 77b1f6b..5068801 100644 --- a/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs +++ b/TeleSharp.TL/TL/TLTopPeerCategoryPeers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-75283823)] + [TLObject(-75283823)] public class TLTopPeerCategoryPeers : TLObject { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsTopPeerCategory category {get;set;} - public int count {get;set;} - public TLVector peers {get;set;} + public TLAbsTopPeerCategory category { get; set; } + public int count { get; set; } + public TLVector peers { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { category = (TLAbsTopPeerCategory)ObjectUtils.DeserializeObject(br); -count = br.ReadInt32(); -peers = (TLVector)ObjectUtils.DeserializeVector(br); + count = br.ReadInt32(); + peers = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(category,bw); -bw.Write(count); -ObjectUtils.SerializeObject(peers,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(category, bw); + bw.Write(count); + ObjectUtils.SerializeObject(peers, bw); } } diff --git a/TeleSharp.TL/TL/TLTrue.cs b/TeleSharp.TL/TL/TLTrue.cs index 140c5ea..7a08914 100644 --- a/TeleSharp.TL/TL/TLTrue.cs +++ b/TeleSharp.TL/TL/TLTrue.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1072550713)] + [TLObject(1072550713)] public class TLTrue : TLObject { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs index 1ef7fce..7af81ea 100644 --- a/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotCallbackQuery.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-415938591)] + [TLObject(-415938591)] public class TLUpdateBotCallbackQuery : TLAbsUpdate { public override int Constructor @@ -18,59 +18,59 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public long query_id {get;set;} - public int user_id {get;set;} - public TLAbsPeer peer {get;set;} - public int msg_id {get;set;} - public long chat_instance {get;set;} - public byte[] data {get;set;} - public string game_short_name {get;set;} + public int flags { get; set; } + public long query_id { get; set; } + public int user_id { get; set; } + public TLAbsPeer peer { get; set; } + public int msg_id { get; set; } + public long chat_instance { get; set; } + 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 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) { flags = br.ReadInt32(); -query_id = br.ReadInt64(); -user_id = br.ReadInt32(); -peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -msg_id = br.ReadInt32(); -chat_instance = br.ReadInt64(); -if ((flags & 1) != 0) -data = BytesUtil.Deserialize(br); -else -data = null; + query_id = br.ReadInt64(); + user_id = br.ReadInt32(); + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + msg_id = br.ReadInt32(); + chat_instance = br.ReadInt64(); + if ((flags & 1) != 0) + data = BytesUtil.Deserialize(br); + else + data = null; -if ((flags & 2) != 0) -game_short_name = StringUtil.Deserialize(br); -else -game_short_name = null; + if ((flags & 2) != 0) + game_short_name = StringUtil.Deserialize(br); + else + game_short_name = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(query_id); -bw.Write(user_id); -ObjectUtils.SerializeObject(peer,bw); -bw.Write(msg_id); -bw.Write(chat_instance); -if ((flags & 1) != 0) -BytesUtil.Serialize(data,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(game_short_name,bw); + bw.Write(flags); + bw.Write(query_id); + bw.Write(user_id); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(msg_id); + bw.Write(chat_instance); + if ((flags & 1) != 0) + BytesUtil.Serialize(data, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(game_short_name, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs index 9e2d0cb..9fcdd8f 100644 --- a/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateBotInlineQuery.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1417832080)] + [TLObject(1417832080)] public class TLUpdateBotInlineQuery : TLAbsUpdate { public override int Constructor @@ -18,47 +18,47 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public long query_id {get;set;} - public int user_id {get;set;} - public string query {get;set;} - public TLAbsGeoPoint geo {get;set;} - public string offset {get;set;} + public int flags { get; set; } + public long query_id { get; set; } + public int user_id { get; set; } + public string query { get; set; } + public TLAbsGeoPoint geo { get; set; } + public string offset { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = geo != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = geo != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -query_id = br.ReadInt64(); -user_id = br.ReadInt32(); -query = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); -else -geo = null; + query_id = br.ReadInt64(); + user_id = br.ReadInt32(); + query = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); + else + geo = null; -offset = StringUtil.Deserialize(br); + offset = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(query_id); -bw.Write(user_id); -StringUtil.Serialize(query,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(geo,bw); -StringUtil.Serialize(offset,bw); + bw.Write(flags); + bw.Write(query_id); + bw.Write(user_id); + StringUtil.Serialize(query, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(geo, bw); + StringUtil.Serialize(offset, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs index 3c9c684..3438f31 100644 --- a/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs +++ b/TeleSharp.TL/TL/TLUpdateBotInlineSend.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(239663460)] + [TLObject(239663460)] public class TLUpdateBotInlineSend : TLAbsUpdate { public override int Constructor @@ -18,53 +18,53 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public int user_id {get;set;} - public string query {get;set;} - public TLAbsGeoPoint geo {get;set;} - public string id {get;set;} - public TLInputBotInlineMessageID msg_id {get;set;} + public int flags { get; set; } + public int user_id { get; set; } + public string query { get; set; } + public TLAbsGeoPoint geo { get; set; } + public string id { get; set; } + public TLInputBotInlineMessageID msg_id { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = geo != null ? (flags | 1) : (flags & ~1); -flags = msg_id != null ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = geo != null ? (flags | 1) : (flags & ~1); + flags = msg_id != null ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -user_id = br.ReadInt32(); -query = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); -else -geo = null; + user_id = br.ReadInt32(); + query = StringUtil.Deserialize(br); + if ((flags & 1) != 0) + geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br); + else + geo = null; -id = StringUtil.Deserialize(br); -if ((flags & 2) != 0) -msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); -else -msg_id = null; + id = StringUtil.Deserialize(br); + if ((flags & 2) != 0) + msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); + else + msg_id = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(user_id); -StringUtil.Serialize(query,bw); -if ((flags & 1) != 0) -ObjectUtils.SerializeObject(geo,bw); -StringUtil.Serialize(id,bw); -if ((flags & 2) != 0) -ObjectUtils.SerializeObject(msg_id,bw); + bw.Write(flags); + bw.Write(user_id); + StringUtil.Serialize(query, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(geo, bw); + StringUtil.Serialize(id, bw); + if ((flags & 2) != 0) + ObjectUtils.SerializeObject(msg_id, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs b/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs new file mode 100644 index 0000000..93dde43 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotPrecheckoutQuery.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1563376297)] + public class TLUpdateBotPrecheckoutQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1563376297; + } + } + + public int flags { get; set; } + public long query_id { get; set; } + public int user_id { get; set; } + public byte[] payload { get; set; } + public TLPaymentRequestedInfo info { get; set; } + public string shipping_option_id { get; set; } + 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) + { + flags = br.ReadInt32(); + query_id = br.ReadInt64(); + user_id = br.ReadInt32(); + payload = BytesUtil.Deserialize(br); + if ((flags & 1) != 0) + info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br); + else + info = null; + + if ((flags & 2) != 0) + shipping_option_id = StringUtil.Deserialize(br); + else + shipping_option_id = null; + + currency = StringUtil.Deserialize(br); + total_amount = br.ReadInt64(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + bw.Write(query_id); + bw.Write(user_id); + BytesUtil.Serialize(payload, bw); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(info, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(shipping_option_id, bw); + StringUtil.Serialize(currency, bw); + bw.Write(total_amount); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs b/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs new file mode 100644 index 0000000..f140aac --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotShippingQuery.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-523384512)] + public class TLUpdateBotShippingQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return -523384512; + } + } + + public long query_id { get; set; } + public int user_id { get; set; } + public byte[] payload { get; set; } + public TLPostAddress shipping_address { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + query_id = br.ReadInt64(); + user_id = br.ReadInt32(); + payload = BytesUtil.Deserialize(br); + shipping_address = (TLPostAddress)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(query_id); + bw.Write(user_id); + BytesUtil.Serialize(payload, bw); + ObjectUtils.SerializeObject(shipping_address, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs b/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs new file mode 100644 index 0000000..49aa6d2 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotWebhookJSON.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2095595325)] + public class TLUpdateBotWebhookJSON : TLAbsUpdate + { + public override int Constructor + { + get + { + return -2095595325; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs b/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs new file mode 100644 index 0000000..e1854d8 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateBotWebhookJSONQuery.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1684914010)] + public class TLUpdateBotWebhookJSONQuery : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1684914010; + } + } + + public long query_id { get; set; } + public TLDataJSON data { get; set; } + public int timeout { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + query_id = br.ReadInt64(); + data = (TLDataJSON)ObjectUtils.DeserializeObject(br); + timeout = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(query_id); + ObjectUtils.SerializeObject(data, bw); + bw.Write(timeout); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChannel.cs b/TeleSharp.TL/TL/TLUpdateChannel.cs index 69cd7f2..e6ec0fe 100644 --- a/TeleSharp.TL/TL/TLUpdateChannel.cs +++ b/TeleSharp.TL/TL/TLUpdateChannel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1227598250)] + [TLObject(-1227598250)] public class TLUpdateChannel : TLAbsUpdate { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} + public int channel_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); } diff --git a/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs index b2c7d1a..5b55466 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelMessageViews.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1734268085)] + [TLObject(-1734268085)] public class TLUpdateChannelMessageViews : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public int id {get;set;} - public int views {get;set;} + public int channel_id { get; set; } + public int id { get; set; } + public int views { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -id = br.ReadInt32(); -views = br.ReadInt32(); + id = br.ReadInt32(); + views = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(id); -bw.Write(views); + bw.Write(id); + bw.Write(views); } } diff --git a/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs index ea79bcb..7e688a1 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelPinnedMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1738988427)] + [TLObject(-1738988427)] public class TLUpdateChannelPinnedMessage : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public int id {get;set;} + public int channel_id { get; set; } + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -id = br.ReadInt32(); + id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(id); + bw.Write(id); } } diff --git a/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs index c4c5c52..204a48a 100644 --- a/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs +++ b/TeleSharp.TL/TL/TLUpdateChannelTooLong.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-352032773)] + [TLObject(-352032773)] public class TLUpdateChannelTooLong : TLAbsUpdate { public override int Constructor @@ -18,38 +18,38 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public int channel_id {get;set;} - public int? pts {get;set;} + public int flags { get; set; } + public int channel_id { get; set; } + public int? pts { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = pts != null ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = pts != null ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -channel_id = br.ReadInt32(); -if ((flags & 1) != 0) -pts = br.ReadInt32(); -else -pts = null; + channel_id = br.ReadInt32(); + if ((flags & 1) != 0) + pts = br.ReadInt32(); + else + pts = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(channel_id); -if ((flags & 1) != 0) -bw.Write(pts.Value); + bw.Write(flags); + bw.Write(channel_id); + if ((flags & 1) != 0) + bw.Write(pts.Value); } } diff --git a/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs b/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs new file mode 100644 index 0000000..8bf22b5 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(1081547008)] + public class TLUpdateChannelWebPage : TLAbsUpdate + { + public override int Constructor + { + get + { + return 1081547008; + } + } + + public int channel_id { get; set; } + public TLAbsWebPage webpage { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + channel_id = br.ReadInt32(); + webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(channel_id); + ObjectUtils.SerializeObject(webpage, bw); + bw.Write(pts); + bw.Write(pts_count); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateChatAdmins.cs b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs index fdb056c..5a4e8a3 100644 --- a/TeleSharp.TL/TL/TLUpdateChatAdmins.cs +++ b/TeleSharp.TL/TL/TLUpdateChatAdmins.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1855224129)] + [TLObject(1855224129)] public class TLUpdateChatAdmins : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public bool enabled {get;set;} - public int version {get;set;} + public int chat_id { get; set; } + public bool enabled { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -enabled = BoolUtil.Deserialize(br); -version = br.ReadInt32(); + enabled = BoolUtil.Deserialize(br); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -BoolUtil.Serialize(enabled,bw); -bw.Write(version); + BoolUtil.Serialize(enabled, bw); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs index 26150a0..ef9957e 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdd.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-364179876)] + [TLObject(-364179876)] public class TLUpdateChatParticipantAdd : TLAbsUpdate { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public int user_id {get;set;} - public int inviter_id {get;set;} - public int date {get;set;} - public int version {get;set;} + public int chat_id { get; set; } + public int user_id { get; set; } + public int inviter_id { get; set; } + public int date { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = br.ReadInt32(); -inviter_id = br.ReadInt32(); -date = br.ReadInt32(); -version = br.ReadInt32(); + user_id = br.ReadInt32(); + inviter_id = br.ReadInt32(); + date = br.ReadInt32(); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(user_id); -bw.Write(inviter_id); -bw.Write(date); -bw.Write(version); + bw.Write(user_id); + bw.Write(inviter_id); + bw.Write(date); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs index ec25685..adb481c 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantAdmin.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1232070311)] + [TLObject(-1232070311)] public class TLUpdateChatParticipantAdmin : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public int user_id {get;set;} - public bool is_admin {get;set;} - public int version {get;set;} + public int chat_id { get; set; } + public int user_id { get; set; } + public bool is_admin { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = br.ReadInt32(); -is_admin = BoolUtil.Deserialize(br); -version = br.ReadInt32(); + user_id = br.ReadInt32(); + is_admin = BoolUtil.Deserialize(br); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(user_id); -BoolUtil.Serialize(is_admin,bw); -bw.Write(version); + bw.Write(user_id); + BoolUtil.Serialize(is_admin, bw); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs index 7c6e5b2..82a7e4a 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipantDelete.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1851755554)] + [TLObject(1851755554)] public class TLUpdateChatParticipantDelete : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public int user_id {get;set;} - public int version {get;set;} + public int chat_id { get; set; } + public int user_id { get; set; } + public int version { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = br.ReadInt32(); -version = br.ReadInt32(); + user_id = br.ReadInt32(); + version = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(user_id); -bw.Write(version); + bw.Write(user_id); + bw.Write(version); } } diff --git a/TeleSharp.TL/TL/TLUpdateChatParticipants.cs b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs index e979f69..f985632 100644 --- a/TeleSharp.TL/TL/TLUpdateChatParticipants.cs +++ b/TeleSharp.TL/TL/TLUpdateChatParticipants.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(125178264)] + [TLObject(125178264)] public class TLUpdateChatParticipants : TLAbsUpdate { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLAbsChatParticipants participants {get;set;} + public TLAbsChatParticipants participants { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(participants,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(participants, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs index d956579..2e23b01 100644 --- a/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateChatUserTyping.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1704596961)] + [TLObject(-1704596961)] public class TLUpdateChatUserTyping : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public int user_id {get;set;} - public TLAbsSendMessageAction action {get;set;} + public int chat_id { get; set; } + public int user_id { get; set; } + public TLAbsSendMessageAction action { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -user_id = br.ReadInt32(); -action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + user_id = br.ReadInt32(); + action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(user_id); -ObjectUtils.SerializeObject(action,bw); + bw.Write(user_id); + ObjectUtils.SerializeObject(action, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateConfig.cs b/TeleSharp.TL/TL/TLUpdateConfig.cs index ad80876..6f90595 100644 --- a/TeleSharp.TL/TL/TLUpdateConfig.cs +++ b/TeleSharp.TL/TL/TLUpdateConfig.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1574314746)] + [TLObject(-1574314746)] public class TLUpdateConfig : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateContactLink.cs b/TeleSharp.TL/TL/TLUpdateContactLink.cs index 186bab2..9387fda 100644 --- a/TeleSharp.TL/TL/TLUpdateContactLink.cs +++ b/TeleSharp.TL/TL/TLUpdateContactLink.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1657903163)] + [TLObject(-1657903163)] public class TLUpdateContactLink : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public TLAbsContactLink my_link {get;set;} - public TLAbsContactLink foreign_link {get;set;} + public int user_id { get; set; } + public TLAbsContactLink my_link { get; set; } + public TLAbsContactLink foreign_link { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); -foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); + my_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); + foreign_link = (TLAbsContactLink)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -ObjectUtils.SerializeObject(my_link,bw); -ObjectUtils.SerializeObject(foreign_link,bw); + ObjectUtils.SerializeObject(my_link, bw); + ObjectUtils.SerializeObject(foreign_link, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateContactRegistered.cs b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs index 6621713..97a8de5 100644 --- a/TeleSharp.TL/TL/TLUpdateContactRegistered.cs +++ b/TeleSharp.TL/TL/TLUpdateContactRegistered.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(628472761)] + [TLObject(628472761)] public class TLUpdateContactRegistered : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int date {get;set;} + public int user_id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(date); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLUpdateDcOptions.cs b/TeleSharp.TL/TL/TLUpdateDcOptions.cs index 7ca80a1..55197a8 100644 --- a/TeleSharp.TL/TL/TLUpdateDcOptions.cs +++ b/TeleSharp.TL/TL/TLUpdateDcOptions.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1906403213)] + [TLObject(-1906403213)] public class TLUpdateDcOptions : TLAbsUpdate { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public TLVector dc_options {get;set;} + public TLVector dc_options { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(dc_options,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(dc_options, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs index a1fea02..dc69693 100644 --- a/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs +++ b/TeleSharp.TL/TL/TLUpdateDeleteChannelMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1015733815)] + [TLObject(-1015733815)] public class TLUpdateDeleteChannelMessages : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public TLVector messages {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public int channel_id { get; set; } + public TLVector messages { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -ObjectUtils.SerializeObject(messages,bw); -bw.Write(pts); -bw.Write(pts_count); + ObjectUtils.SerializeObject(messages, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs index d9d0ee0..4b0080b 100644 --- a/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs +++ b/TeleSharp.TL/TL/TLUpdateDeleteMessages.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1576161051)] + [TLObject(-1576161051)] public class TLUpdateDeleteMessages : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLVector messages {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLVector messages { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { messages = (TLVector)ObjectUtils.DeserializeVector(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(messages,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateDialogPinned.cs b/TeleSharp.TL/TL/TLUpdateDialogPinned.cs new file mode 100644 index 0000000..b875718 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdateDialogPinned.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-686710068)] + public class TLUpdateDialogPinned : TLAbsUpdate + { + public override int Constructor + { + get + { + return -686710068; + } + } + + public int flags { get; set; } + 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) + { + flags = br.ReadInt32(); + pinned = (flags & 1) != 0; + peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(peer, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdateDraftMessage.cs b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs index d7f299b..abd6c89 100644 --- a/TeleSharp.TL/TL/TLUpdateDraftMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateDraftMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-299124375)] + [TLObject(-299124375)] public class TLUpdateDraftMessage : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsPeer peer {get;set;} - public TLAbsDraftMessage draft {get;set;} + public TLAbsPeer peer { get; set; } + public TLAbsDraftMessage draft { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); + draft = (TLAbsDraftMessage)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(draft,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(draft, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs index 7da5979..efe5373 100644 --- a/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateEditChannelMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(457133559)] + [TLObject(457133559)] public class TLUpdateEditChannelMessage : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsMessage message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsMessage message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(message,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(message, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateEditMessage.cs b/TeleSharp.TL/TL/TLUpdateEditMessage.cs index de8df3f..1e67a97 100644 --- a/TeleSharp.TL/TL/TLUpdateEditMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateEditMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-469536605)] + [TLObject(-469536605)] public class TLUpdateEditMessage : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsMessage message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsMessage message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(message,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(message, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs index 50cb232..d2ab449 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryptedChatTyping.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(386986326)] + [TLObject(386986326)] public class TLUpdateEncryptedChatTyping : TLAbsUpdate { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} + public int chat_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); } diff --git a/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs index 298120f..a0eae12 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryptedMessagesRead.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(956179895)] + [TLObject(956179895)] public class TLUpdateEncryptedMessagesRead : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public int chat_id {get;set;} - public int max_date {get;set;} - public int date {get;set;} + public int chat_id { get; set; } + public int max_date { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat_id = br.ReadInt32(); -max_date = br.ReadInt32(); -date = br.ReadInt32(); + max_date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(chat_id); -bw.Write(max_date); -bw.Write(date); + bw.Write(max_date); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLUpdateEncryption.cs b/TeleSharp.TL/TL/TLUpdateEncryption.cs index 7103c27..a44a20a 100644 --- a/TeleSharp.TL/TL/TLUpdateEncryption.cs +++ b/TeleSharp.TL/TL/TLUpdateEncryption.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1264392051)] + [TLObject(-1264392051)] public class TLUpdateEncryption : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsEncryptedChat chat {get;set;} - public int date {get;set;} + public TLAbsEncryptedChat chat { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { chat = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(chat,bw); -bw.Write(date); + bw.Write(Constructor); + ObjectUtils.SerializeObject(chat, bw); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs index de61535..1b88d14 100644 --- a/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs +++ b/TeleSharp.TL/TL/TLUpdateInlineBotCallbackQuery.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-103646630)] + [TLObject(-103646630)] public class TLUpdateInlineBotCallbackQuery : TLAbsUpdate { public override int Constructor @@ -18,56 +18,56 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public long query_id {get;set;} - public int user_id {get;set;} - public TLInputBotInlineMessageID msg_id {get;set;} - public long chat_instance {get;set;} - public byte[] data {get;set;} - public string game_short_name {get;set;} + public int flags { get; set; } + public long query_id { get; set; } + public int user_id { get; set; } + public TLInputBotInlineMessageID msg_id { get; set; } + public long chat_instance { get; set; } + 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 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) { flags = br.ReadInt32(); -query_id = br.ReadInt64(); -user_id = br.ReadInt32(); -msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); -chat_instance = br.ReadInt64(); -if ((flags & 1) != 0) -data = BytesUtil.Deserialize(br); -else -data = null; + query_id = br.ReadInt64(); + user_id = br.ReadInt32(); + msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br); + chat_instance = br.ReadInt64(); + if ((flags & 1) != 0) + data = BytesUtil.Deserialize(br); + else + data = null; -if ((flags & 2) != 0) -game_short_name = StringUtil.Deserialize(br); -else -game_short_name = null; + if ((flags & 2) != 0) + game_short_name = StringUtil.Deserialize(br); + else + game_short_name = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(query_id); -bw.Write(user_id); -ObjectUtils.SerializeObject(msg_id,bw); -bw.Write(chat_instance); -if ((flags & 1) != 0) -BytesUtil.Serialize(data,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(game_short_name,bw); + bw.Write(flags); + bw.Write(query_id); + bw.Write(user_id); + ObjectUtils.SerializeObject(msg_id, bw); + bw.Write(chat_instance); + if ((flags & 1) != 0) + BytesUtil.Serialize(data, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(game_short_name, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateMessageID.cs b/TeleSharp.TL/TL/TLUpdateMessageID.cs index 87af18a..de547ef 100644 --- a/TeleSharp.TL/TL/TLUpdateMessageID.cs +++ b/TeleSharp.TL/TL/TLUpdateMessageID.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1318109142)] + [TLObject(1318109142)] public class TLUpdateMessageID : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public long random_id {get;set;} + public int id { get; set; } + public long random_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -random_id = br.ReadInt64(); + random_id = br.ReadInt64(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(random_id); + bw.Write(random_id); } } diff --git a/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs b/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs deleted file mode 100644 index df03f05..0000000 --- a/TeleSharp.TL/TL/TLUpdateNewAuthorization.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; -namespace TeleSharp.TL -{ - [TLObject(-1895411046)] - public class TLUpdateNewAuthorization : TLAbsUpdate - { - public override int Constructor - { - get - { - return -1895411046; - } - } - - public long auth_key_id {get;set;} - public int date {get;set;} - public string device {get;set;} - public string location {get;set;} - - - public void ComputeFlags() - { - - } - - public override void DeserializeBody(BinaryReader br) - { - auth_key_id = br.ReadInt64(); -date = br.ReadInt32(); -device = StringUtil.Deserialize(br); -location = StringUtil.Deserialize(br); - - } - - public override void SerializeBody(BinaryWriter bw) - { - bw.Write(Constructor); - bw.Write(auth_key_id); -bw.Write(date); -StringUtil.Serialize(device,bw); -StringUtil.Serialize(location,bw); - - } - } -} diff --git a/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs index 7bd6c21..a0c223e 100644 --- a/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewChannelMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1656358105)] + [TLObject(1656358105)] public class TLUpdateNewChannelMessage : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsMessage message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsMessage message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(message,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(message, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs index 43e1398..2b39183 100644 --- a/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewEncryptedMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(314359194)] + [TLObject(314359194)] public class TLUpdateNewEncryptedMessage : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsEncryptedMessage message {get;set;} - public int qts {get;set;} + public TLAbsEncryptedMessage message { get; set; } + public int qts { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { message = (TLAbsEncryptedMessage)ObjectUtils.DeserializeObject(br); -qts = br.ReadInt32(); + qts = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(message,bw); -bw.Write(qts); + bw.Write(Constructor); + ObjectUtils.SerializeObject(message, bw); + bw.Write(qts); } } diff --git a/TeleSharp.TL/TL/TLUpdateNewMessage.cs b/TeleSharp.TL/TL/TLUpdateNewMessage.cs index 0c524b8..3d316d1 100644 --- a/TeleSharp.TL/TL/TLUpdateNewMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateNewMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(522914557)] + [TLObject(522914557)] public class TLUpdateNewMessage : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsMessage message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsMessage message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(message,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(message, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs index cfa46d8..696c1ea 100644 --- a/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs +++ b/TeleSharp.TL/TL/TLUpdateNewStickerSet.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1753886890)] + [TLObject(1753886890)] public class TLUpdateNewStickerSet : TLAbsUpdate { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public Messages.TLStickerSet stickerset {get;set;} + public Messages.TLStickerSet stickerset { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,8 +34,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(stickerset,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(stickerset, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateNotifySettings.cs b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs index 27989f0..1854853 100644 --- a/TeleSharp.TL/TL/TLUpdateNotifySettings.cs +++ b/TeleSharp.TL/TL/TLUpdateNotifySettings.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1094555409)] + [TLObject(-1094555409)] public class TLUpdateNotifySettings : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsNotifyPeer peer {get;set;} - public TLAbsPeerNotifySettings notify_settings {get;set;} + public TLAbsNotifyPeer peer { get; set; } + public TLAbsPeerNotifySettings notify_settings { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsNotifyPeer)ObjectUtils.DeserializeObject(br); -notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -ObjectUtils.SerializeObject(notify_settings,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + ObjectUtils.SerializeObject(notify_settings, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdatePhoneCall.cs b/TeleSharp.TL/TL/TLUpdatePhoneCall.cs new file mode 100644 index 0000000..c4c9311 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdatePhoneCall.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-1425052898)] + public class TLUpdatePhoneCall : TLAbsUpdate + { + public override int Constructor + { + get + { + return -1425052898; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs b/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs new file mode 100644 index 0000000..0d97e72 --- /dev/null +++ b/TeleSharp.TL/TL/TLUpdatePinnedDialogs.cs @@ -0,0 +1,53 @@ +using System; +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)] + public class TLUpdatePinnedDialogs : TLAbsUpdate + { + public override int Constructor + { + get + { + return -657787251; + } + } + + 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) + { + flags = br.ReadInt32(); + if ((flags & 1) != 0) + order = (TLVector)ObjectUtils.DeserializeVector(br); + else + order = null; + + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + if ((flags & 1) != 0) + ObjectUtils.SerializeObject(order, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/TLUpdatePrivacy.cs b/TeleSharp.TL/TL/TLUpdatePrivacy.cs index b4f0840..4380969 100644 --- a/TeleSharp.TL/TL/TLUpdatePrivacy.cs +++ b/TeleSharp.TL/TL/TLUpdatePrivacy.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-298113238)] + [TLObject(-298113238)] public class TLUpdatePrivacy : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsPrivacyKey key {get;set;} - public TLVector rules {get;set;} + public TLAbsPrivacyKey key { get; set; } + public TLVector rules { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { key = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br); -rules = (TLVector)ObjectUtils.DeserializeVector(br); + rules = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(key,bw); -ObjectUtils.SerializeObject(rules,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(key, bw); + ObjectUtils.SerializeObject(rules, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdatePtsChanged.cs b/TeleSharp.TL/TL/TLUpdatePtsChanged.cs index 746ef21..13f231d 100644 --- a/TeleSharp.TL/TL/TLUpdatePtsChanged.cs +++ b/TeleSharp.TL/TL/TLUpdatePtsChanged.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(861169551)] + [TLObject(861169551)] public class TLUpdatePtsChanged : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs index 1e8b0e7..4b11282 100644 --- a/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadChannelInbox.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1108669311)] + [TLObject(1108669311)] public class TLUpdateReadChannelInbox : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public int max_id {get;set;} + public int channel_id { get; set; } + public int max_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -max_id = br.ReadInt32(); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(max_id); + bw.Write(max_id); } } diff --git a/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs index 9f612b7..4949f84 100644 --- a/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadChannelOutbox.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(634833351)] + [TLObject(634833351)] public class TLUpdateReadChannelOutbox : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int channel_id {get;set;} - public int max_id {get;set;} + public int channel_id { get; set; } + public int max_id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { channel_id = br.ReadInt32(); -max_id = br.ReadInt32(); + max_id = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(channel_id); -bw.Write(max_id); + bw.Write(max_id); } } diff --git a/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs b/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs index 0479235..fdbec1e 100644 --- a/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs +++ b/TeleSharp.TL/TL/TLUpdateReadFeaturedStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1461528386)] + [TLObject(1461528386)] public class TLUpdateReadFeaturedStickers : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs index 91038db..c57c3cf 100644 --- a/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryInbox.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1721631396)] + [TLObject(-1721631396)] public class TLUpdateReadHistoryInbox : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public TLAbsPeer peer {get;set;} - public int max_id {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsPeer peer { get; set; } + public int max_id { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -max_id = br.ReadInt32(); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + max_id = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(max_id); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(max_id); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs index 1fc526e..e614d8b 100644 --- a/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs +++ b/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(791617983)] + [TLObject(791617983)] public class TLUpdateReadHistoryOutbox : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public TLAbsPeer peer {get;set;} - public int max_id {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsPeer peer { get; set; } + public int max_id { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); -max_id = br.ReadInt32(); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + max_id = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(peer,bw); -bw.Write(max_id); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(peer, bw); + bw.Write(max_id); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs index 63faf4c..6dbdf87 100644 --- a/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs +++ b/TeleSharp.TL/TL/TLUpdateReadMessagesContents.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1757493555)] + [TLObject(1757493555)] public class TLUpdateReadMessagesContents : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLVector messages {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLVector messages { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { messages = (TLVector)ObjectUtils.DeserializeVector(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(messages,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(messages, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdateRecentStickers.cs b/TeleSharp.TL/TL/TLUpdateRecentStickers.cs index 9f49524..d3abb3d 100644 --- a/TeleSharp.TL/TL/TLUpdateRecentStickers.cs +++ b/TeleSharp.TL/TL/TLUpdateRecentStickers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1706939360)] + [TLObject(-1706939360)] public class TLUpdateRecentStickers : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateSavedGifs.cs b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs index b236193..a8d322b 100644 --- a/TeleSharp.TL/TL/TLUpdateSavedGifs.cs +++ b/TeleSharp.TL/TL/TLUpdateSavedGifs.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1821035490)] + [TLObject(-1821035490)] public class TLUpdateSavedGifs : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateServiceNotification.cs b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs index fead92c..a832b8e 100644 --- a/TeleSharp.TL/TL/TLUpdateServiceNotification.cs +++ b/TeleSharp.TL/TL/TLUpdateServiceNotification.cs @@ -7,44 +7,62 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(942527460)] + [TLObject(-337352679)] public class TLUpdateServiceNotification : TLAbsUpdate { public override int Constructor { get { - return 942527460; + return -337352679; } } - public string type {get;set;} - public string message {get;set;} - public TLAbsMessageMedia media {get;set;} - public bool popup {get;set;} + public int flags { get; set; } + public bool popup { get; set; } + public int? inbox_date { get; set; } + public string type { get; set; } + public string message { get; set; } + public TLAbsMessageMedia media { get; set; } + public TLVector entities { get; set; } - public void ComputeFlags() - { - - } + 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) { + flags = br.ReadInt32(); + popup = (flags & 1) != 0; + if ((flags & 2) != 0) + inbox_date = br.ReadInt32(); + else + inbox_date = null; + type = StringUtil.Deserialize(br); -message = StringUtil.Deserialize(br); -media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); -popup = BoolUtil.Deserialize(br); + message = StringUtil.Deserialize(br); + media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + entities = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - StringUtil.Serialize(type,bw); -StringUtil.Serialize(message,bw); -ObjectUtils.SerializeObject(media,bw); -BoolUtil.Serialize(popup,bw); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + if ((flags & 2) != 0) + bw.Write(inbox_date.Value); + StringUtil.Serialize(type, bw); + StringUtil.Serialize(message, bw); + ObjectUtils.SerializeObject(media, bw); + ObjectUtils.SerializeObject(entities, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateShort.cs b/TeleSharp.TL/TL/TLUpdateShort.cs index 96a9f47..40d2c05 100644 --- a/TeleSharp.TL/TL/TLUpdateShort.cs +++ b/TeleSharp.TL/TL/TLUpdateShort.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2027216577)] + [TLObject(2027216577)] public class TLUpdateShort : TLAbsUpdates { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public TLAbsUpdate update {get;set;} - public int date {get;set;} + public TLAbsUpdate update { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { update = (TLAbsUpdate)ObjectUtils.DeserializeObject(br); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(update,bw); -bw.Write(date); + bw.Write(Constructor); + ObjectUtils.SerializeObject(update, bw); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs index 30062c9..1f17397 100644 --- a/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortChatMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(377562760)] + [TLObject(377562760)] public class TLUpdateShortChatMessage : TLAbsUpdates { public override int Constructor @@ -18,99 +18,99 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool @out {get;set;} - public bool mentioned {get;set;} - public bool media_unread {get;set;} - public bool silent {get;set;} - public int id {get;set;} - public int from_id {get;set;} - public int chat_id {get;set;} - public string message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} - public int date {get;set;} - public TLMessageFwdHeader fwd_from {get;set;} - public int? via_bot_id {get;set;} - public int? reply_to_msg_id {get;set;} - public TLVector entities {get;set;} + public int flags { get; set; } + public bool @out { get; set; } + public bool mentioned { get; set; } + public bool media_unread { get; set; } + public bool silent { get; set; } + public int id { get; set; } + public int from_id { get; set; } + public int chat_id { get; set; } + public string message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } + public int date { get; set; } + public TLMessageFwdHeader fwd_from { get; set; } + public int? via_bot_id { get; set; } + public int? reply_to_msg_id { get; set; } + public TLVector entities { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = @out ? (flags | 2) : (flags & ~2); -flags = mentioned ? (flags | 16) : (flags & ~16); -flags = media_unread ? (flags | 32) : (flags & ~32); -flags = silent ? (flags | 8192) : (flags & ~8192); -flags = fwd_from != null ? (flags | 4) : (flags & ~4); -flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); -flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); -flags = entities != null ? (flags | 128) : (flags & ~128); + public void ComputeFlags() + { + flags = 0; + flags = @out ? (flags | 2) : (flags & ~2); + flags = mentioned ? (flags | 16) : (flags & ~16); + flags = media_unread ? (flags | 32) : (flags & ~32); + flags = silent ? (flags | 8192) : (flags & ~8192); + flags = fwd_from != null ? (flags | 4) : (flags & ~4); + flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); + flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); + flags = entities != null ? (flags | 128) : (flags & ~128); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -@out = (flags & 2) != 0; -mentioned = (flags & 16) != 0; -media_unread = (flags & 32) != 0; -silent = (flags & 8192) != 0; -id = br.ReadInt32(); -from_id = br.ReadInt32(); -chat_id = br.ReadInt32(); -message = StringUtil.Deserialize(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); -date = br.ReadInt32(); -if ((flags & 4) != 0) -fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); -else -fwd_from = null; + @out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + id = br.ReadInt32(); + from_id = br.ReadInt32(); + chat_id = br.ReadInt32(); + message = StringUtil.Deserialize(br); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); + date = br.ReadInt32(); + if ((flags & 4) != 0) + fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); + else + fwd_from = null; -if ((flags & 2048) != 0) -via_bot_id = br.ReadInt32(); -else -via_bot_id = null; + if ((flags & 2048) != 0) + via_bot_id = br.ReadInt32(); + else + via_bot_id = null; -if ((flags & 8) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + if ((flags & 8) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -if ((flags & 128) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 128) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -bw.Write(from_id); -bw.Write(chat_id); -StringUtil.Serialize(message,bw); -bw.Write(pts); -bw.Write(pts_count); -bw.Write(date); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(fwd_from,bw); -if ((flags & 2048) != 0) -bw.Write(via_bot_id.Value); -if ((flags & 8) != 0) -bw.Write(reply_to_msg_id.Value); -if ((flags & 128) != 0) -ObjectUtils.SerializeObject(entities,bw); + bw.Write(id); + bw.Write(from_id); + bw.Write(chat_id); + StringUtil.Serialize(message, bw); + bw.Write(pts); + bw.Write(pts_count); + bw.Write(date); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(fwd_from, bw); + if ((flags & 2048) != 0) + bw.Write(via_bot_id.Value); + if ((flags & 8) != 0) + bw.Write(reply_to_msg_id.Value); + if ((flags & 128) != 0) + ObjectUtils.SerializeObject(entities, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateShortMessage.cs b/TeleSharp.TL/TL/TLUpdateShortMessage.cs index af3cbfe..9173575 100644 --- a/TeleSharp.TL/TL/TLUpdateShortMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1857044719)] + [TLObject(-1857044719)] public class TLUpdateShortMessage : TLAbsUpdates { public override int Constructor @@ -18,96 +18,96 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool @out {get;set;} - public bool mentioned {get;set;} - public bool media_unread {get;set;} - public bool silent {get;set;} - public int id {get;set;} - public int user_id {get;set;} - public string message {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} - public int date {get;set;} - public TLMessageFwdHeader fwd_from {get;set;} - public int? via_bot_id {get;set;} - public int? reply_to_msg_id {get;set;} - public TLVector entities {get;set;} + public int flags { get; set; } + public bool @out { get; set; } + public bool mentioned { get; set; } + public bool media_unread { get; set; } + public bool silent { get; set; } + public int id { get; set; } + public int user_id { get; set; } + public string message { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } + public int date { get; set; } + public TLMessageFwdHeader fwd_from { get; set; } + public int? via_bot_id { get; set; } + public int? reply_to_msg_id { get; set; } + public TLVector entities { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = @out ? (flags | 2) : (flags & ~2); -flags = mentioned ? (flags | 16) : (flags & ~16); -flags = media_unread ? (flags | 32) : (flags & ~32); -flags = silent ? (flags | 8192) : (flags & ~8192); -flags = fwd_from != null ? (flags | 4) : (flags & ~4); -flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); -flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); -flags = entities != null ? (flags | 128) : (flags & ~128); + public void ComputeFlags() + { + flags = 0; + flags = @out ? (flags | 2) : (flags & ~2); + flags = mentioned ? (flags | 16) : (flags & ~16); + flags = media_unread ? (flags | 32) : (flags & ~32); + flags = silent ? (flags | 8192) : (flags & ~8192); + flags = fwd_from != null ? (flags | 4) : (flags & ~4); + flags = via_bot_id != null ? (flags | 2048) : (flags & ~2048); + flags = reply_to_msg_id != null ? (flags | 8) : (flags & ~8); + flags = entities != null ? (flags | 128) : (flags & ~128); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -@out = (flags & 2) != 0; -mentioned = (flags & 16) != 0; -media_unread = (flags & 32) != 0; -silent = (flags & 8192) != 0; -id = br.ReadInt32(); -user_id = br.ReadInt32(); -message = StringUtil.Deserialize(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); -date = br.ReadInt32(); -if ((flags & 4) != 0) -fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); -else -fwd_from = null; + @out = (flags & 2) != 0; + mentioned = (flags & 16) != 0; + media_unread = (flags & 32) != 0; + silent = (flags & 8192) != 0; + id = br.ReadInt32(); + user_id = br.ReadInt32(); + message = StringUtil.Deserialize(br); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); + date = br.ReadInt32(); + if ((flags & 4) != 0) + fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); + else + fwd_from = null; -if ((flags & 2048) != 0) -via_bot_id = br.ReadInt32(); -else -via_bot_id = null; + if ((flags & 2048) != 0) + via_bot_id = br.ReadInt32(); + else + via_bot_id = null; -if ((flags & 8) != 0) -reply_to_msg_id = br.ReadInt32(); -else -reply_to_msg_id = null; + if ((flags & 8) != 0) + reply_to_msg_id = br.ReadInt32(); + else + reply_to_msg_id = null; -if ((flags & 128) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 128) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -bw.Write(user_id); -StringUtil.Serialize(message,bw); -bw.Write(pts); -bw.Write(pts_count); -bw.Write(date); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(fwd_from,bw); -if ((flags & 2048) != 0) -bw.Write(via_bot_id.Value); -if ((flags & 8) != 0) -bw.Write(reply_to_msg_id.Value); -if ((flags & 128) != 0) -ObjectUtils.SerializeObject(entities,bw); + bw.Write(id); + bw.Write(user_id); + StringUtil.Serialize(message, bw); + bw.Write(pts); + bw.Write(pts_count); + bw.Write(date); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(fwd_from, bw); + if ((flags & 2048) != 0) + bw.Write(via_bot_id.Value); + if ((flags & 8) != 0) + bw.Write(reply_to_msg_id.Value); + if ((flags & 128) != 0) + ObjectUtils.SerializeObject(entities, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs index 62ebdf5..d960d9d 100644 --- a/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs +++ b/TeleSharp.TL/TL/TLUpdateShortSentMessage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(301019932)] + [TLObject(301019932)] public class TLUpdateShortSentMessage : TLAbsUpdates { public override int Constructor @@ -18,60 +18,60 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool @out {get;set;} - public int id {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} - public int date {get;set;} - public TLAbsMessageMedia media {get;set;} - public TLVector entities {get;set;} + public int flags { get; set; } + public bool @out { get; set; } + public int id { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } + public int date { get; set; } + public TLAbsMessageMedia media { get; set; } + public TLVector entities { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = @out ? (flags | 2) : (flags & ~2); -flags = media != null ? (flags | 512) : (flags & ~512); -flags = entities != null ? (flags | 128) : (flags & ~128); + public void ComputeFlags() + { + flags = 0; + flags = @out ? (flags | 2) : (flags & ~2); + flags = media != null ? (flags | 512) : (flags & ~512); + flags = entities != null ? (flags | 128) : (flags & ~128); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -@out = (flags & 2) != 0; -id = br.ReadInt32(); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); -date = br.ReadInt32(); -if ((flags & 512) != 0) -media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); -else -media = null; + @out = (flags & 2) != 0; + id = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); + date = br.ReadInt32(); + if ((flags & 512) != 0) + media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); + else + media = null; -if ((flags & 128) != 0) -entities = (TLVector)ObjectUtils.DeserializeVector(br); -else -entities = null; + if ((flags & 128) != 0) + entities = (TLVector)ObjectUtils.DeserializeVector(br); + else + entities = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(id); -bw.Write(pts); -bw.Write(pts_count); -bw.Write(date); -if ((flags & 512) != 0) -ObjectUtils.SerializeObject(media,bw); -if ((flags & 128) != 0) -ObjectUtils.SerializeObject(entities,bw); + bw.Write(id); + bw.Write(pts); + bw.Write(pts_count); + bw.Write(date); + if ((flags & 512) != 0) + ObjectUtils.SerializeObject(media, bw); + if ((flags & 128) != 0) + ObjectUtils.SerializeObject(entities, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateStickerSets.cs b/TeleSharp.TL/TL/TLUpdateStickerSets.cs index 10947da..e476fef 100644 --- a/TeleSharp.TL/TL/TLUpdateStickerSets.cs +++ b/TeleSharp.TL/TL/TLUpdateStickerSets.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1135492588)] + [TLObject(1135492588)] public class TLUpdateStickerSets : TLAbsUpdate { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs index 8dfdb92..f57e49a 100644 --- a/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs +++ b/TeleSharp.TL/TL/TLUpdateStickerSetsOrder.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(196268545)] + [TLObject(196268545)] public class TLUpdateStickerSetsOrder : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int flags {get;set;} - public bool masks {get;set;} - public TLVector order {get;set;} + public int flags { get; set; } + public bool masks { get; set; } + public TLVector order { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = masks ? (flags | 1) : (flags & ~1); + public void ComputeFlags() + { + flags = 0; + flags = masks ? (flags | 1) : (flags & ~1); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -masks = (flags & 1) != 0; -order = (TLVector)ObjectUtils.DeserializeVector(br); + masks = (flags & 1) != 0; + order = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(order,bw); + ObjectUtils.SerializeObject(order, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserBlocked.cs b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs index 9833b02..9fae7a0 100644 --- a/TeleSharp.TL/TL/TLUpdateUserBlocked.cs +++ b/TeleSharp.TL/TL/TLUpdateUserBlocked.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-2131957734)] + [TLObject(-2131957734)] public class TLUpdateUserBlocked : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public bool blocked {get;set;} + public int user_id { get; set; } + public bool blocked { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -blocked = BoolUtil.Deserialize(br); + blocked = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -BoolUtil.Serialize(blocked,bw); + BoolUtil.Serialize(blocked, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserName.cs b/TeleSharp.TL/TL/TLUpdateUserName.cs index 20db403..bce5b79 100644 --- a/TeleSharp.TL/TL/TLUpdateUserName.cs +++ b/TeleSharp.TL/TL/TLUpdateUserName.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1489818765)] + [TLObject(-1489818765)] public class TLUpdateUserName : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public string username {get;set;} + public int user_id { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public string username { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -first_name = StringUtil.Deserialize(br); -last_name = StringUtil.Deserialize(br); -username = StringUtil.Deserialize(br); + first_name = StringUtil.Deserialize(br); + last_name = StringUtil.Deserialize(br); + username = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -StringUtil.Serialize(first_name,bw); -StringUtil.Serialize(last_name,bw); -StringUtil.Serialize(username,bw); + StringUtil.Serialize(first_name, bw); + StringUtil.Serialize(last_name, bw); + StringUtil.Serialize(username, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserPhone.cs b/TeleSharp.TL/TL/TLUpdateUserPhone.cs index 56c7a79..65a229d 100644 --- a/TeleSharp.TL/TL/TLUpdateUserPhone.cs +++ b/TeleSharp.TL/TL/TLUpdateUserPhone.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(314130811)] + [TLObject(314130811)] public class TLUpdateUserPhone : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public string phone {get;set;} + public int user_id { get; set; } + public string phone { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -phone = StringUtil.Deserialize(br); + phone = StringUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -StringUtil.Serialize(phone,bw); + StringUtil.Serialize(phone, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserPhoto.cs b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs index f57bea5..134f435 100644 --- a/TeleSharp.TL/TL/TLUpdateUserPhoto.cs +++ b/TeleSharp.TL/TL/TLUpdateUserPhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-1791935732)] + [TLObject(-1791935732)] public class TLUpdateUserPhoto : TLAbsUpdate { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public int date {get;set;} - public TLAbsUserProfilePhoto photo {get;set;} - public bool previous {get;set;} + public int user_id { get; set; } + public int date { get; set; } + public TLAbsUserProfilePhoto photo { get; set; } + public bool previous { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -date = br.ReadInt32(); -photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); -previous = BoolUtil.Deserialize(br); + date = br.ReadInt32(); + photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); + previous = BoolUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -bw.Write(date); -ObjectUtils.SerializeObject(photo,bw); -BoolUtil.Serialize(previous,bw); + bw.Write(date); + ObjectUtils.SerializeObject(photo, bw); + BoolUtil.Serialize(previous, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserStatus.cs b/TeleSharp.TL/TL/TLUpdateUserStatus.cs index ec24cf8..5d67401 100644 --- a/TeleSharp.TL/TL/TLUpdateUserStatus.cs +++ b/TeleSharp.TL/TL/TLUpdateUserStatus.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(469489699)] + [TLObject(469489699)] public class TLUpdateUserStatus : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public TLAbsUserStatus status {get;set;} + public int user_id { get; set; } + public TLAbsUserStatus status { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); + status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -ObjectUtils.SerializeObject(status,bw); + ObjectUtils.SerializeObject(status, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateUserTyping.cs b/TeleSharp.TL/TL/TLUpdateUserTyping.cs index 592d960..0f952b9 100644 --- a/TeleSharp.TL/TL/TLUpdateUserTyping.cs +++ b/TeleSharp.TL/TL/TLUpdateUserTyping.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1548249383)] + [TLObject(1548249383)] public class TLUpdateUserTyping : TLAbsUpdate { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public int user_id {get;set;} - public TLAbsSendMessageAction action {get;set;} + public int user_id { get; set; } + public TLAbsSendMessageAction action { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { user_id = br.ReadInt32(); -action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); + action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(user_id); -ObjectUtils.SerializeObject(action,bw); + ObjectUtils.SerializeObject(action, bw); } } diff --git a/TeleSharp.TL/TL/TLUpdateWebPage.cs b/TeleSharp.TL/TL/TLUpdateWebPage.cs index a98f3d6..691332b 100644 --- a/TeleSharp.TL/TL/TLUpdateWebPage.cs +++ b/TeleSharp.TL/TL/TLUpdateWebPage.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2139689491)] + [TLObject(2139689491)] public class TLUpdateWebPage : TLAbsUpdate { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public TLAbsWebPage webpage {get;set;} - public int pts {get;set;} - public int pts_count {get;set;} + public TLAbsWebPage webpage { get; set; } + public int pts { get; set; } + public int pts_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -pts_count = br.ReadInt32(); + pts = br.ReadInt32(); + pts_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(webpage,bw); -bw.Write(pts); -bw.Write(pts_count); + bw.Write(Constructor); + ObjectUtils.SerializeObject(webpage, bw); + bw.Write(pts); + bw.Write(pts_count); } } diff --git a/TeleSharp.TL/TL/TLUpdates.cs b/TeleSharp.TL/TL/TLUpdates.cs index b6ee06a..d61d766 100644 --- a/TeleSharp.TL/TL/TLUpdates.cs +++ b/TeleSharp.TL/TL/TLUpdates.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1957577280)] + [TLObject(1957577280)] public class TLUpdates : TLAbsUpdates { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL } } - public TLVector updates {get;set;} - public TLVector users {get;set;} - public TLVector chats {get;set;} - public int date {get;set;} - public int seq {get;set;} + public TLVector updates { get; set; } + public TLVector users { get; set; } + public TLVector chats { get; set; } + public int date { get; set; } + public int seq { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { updates = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -date = br.ReadInt32(); -seq = br.ReadInt32(); + users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + date = br.ReadInt32(); + seq = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(updates,bw); -ObjectUtils.SerializeObject(users,bw); -ObjectUtils.SerializeObject(chats,bw); -bw.Write(date); -bw.Write(seq); + bw.Write(Constructor); + ObjectUtils.SerializeObject(updates, bw); + ObjectUtils.SerializeObject(users, bw); + ObjectUtils.SerializeObject(chats, bw); + bw.Write(date); + bw.Write(seq); } } diff --git a/TeleSharp.TL/TL/TLUpdatesCombined.cs b/TeleSharp.TL/TL/TLUpdatesCombined.cs index bb03ead..b45a5e3 100644 --- a/TeleSharp.TL/TL/TLUpdatesCombined.cs +++ b/TeleSharp.TL/TL/TLUpdatesCombined.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1918567619)] + [TLObject(1918567619)] public class TLUpdatesCombined : TLAbsUpdates { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL } } - public TLVector updates {get;set;} - public TLVector users {get;set;} - public TLVector chats {get;set;} - public int date {get;set;} - public int seq_start {get;set;} - public int seq {get;set;} + public TLVector updates { get; set; } + public TLVector users { get; set; } + public TLVector chats { get; set; } + public int date { get; set; } + public int seq_start { get; set; } + public int seq { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { updates = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -date = br.ReadInt32(); -seq_start = br.ReadInt32(); -seq = br.ReadInt32(); + users = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + date = br.ReadInt32(); + seq_start = br.ReadInt32(); + seq = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(updates,bw); -ObjectUtils.SerializeObject(users,bw); -ObjectUtils.SerializeObject(chats,bw); -bw.Write(date); -bw.Write(seq_start); -bw.Write(seq); + bw.Write(Constructor); + ObjectUtils.SerializeObject(updates, bw); + ObjectUtils.SerializeObject(users, bw); + ObjectUtils.SerializeObject(chats, bw); + bw.Write(date); + bw.Write(seq_start); + bw.Write(seq); } } diff --git a/TeleSharp.TL/TL/TLUpdatesTooLong.cs b/TeleSharp.TL/TL/TLUpdatesTooLong.cs index 28da140..201a1b5 100644 --- a/TeleSharp.TL/TL/TLUpdatesTooLong.cs +++ b/TeleSharp.TL/TL/TLUpdatesTooLong.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-484987010)] + [TLObject(-484987010)] public class TLUpdatesTooLong : TLAbsUpdates { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUser.cs b/TeleSharp.TL/TL/TLUser.cs index 66712c8..dba90e5 100644 --- a/TeleSharp.TL/TL/TLUser.cs +++ b/TeleSharp.TL/TL/TLUser.cs @@ -7,142 +7,149 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-787638374)] + [TLObject(773059779)] public class TLUser : TLAbsUser { public override int Constructor { get { - return -787638374; + return 773059779; } } - public int flags {get;set;} - public bool self {get;set;} - public bool contact {get;set;} - public bool mutual_contact {get;set;} - public bool deleted {get;set;} - public bool bot {get;set;} - public bool bot_chat_history {get;set;} - public bool bot_nochats {get;set;} - public bool verified {get;set;} - public bool restricted {get;set;} - public bool min {get;set;} - public bool bot_inline_geo {get;set;} - public int id {get;set;} - public long? access_hash {get;set;} - public string first_name {get;set;} - public string last_name {get;set;} - public string username {get;set;} - public string phone {get;set;} - public TLAbsUserProfilePhoto photo {get;set;} - public TLAbsUserStatus status {get;set;} - public int? bot_info_version {get;set;} - public string restriction_reason {get;set;} - public string bot_inline_placeholder {get;set;} + public int flags { get; set; } + public bool self { get; set; } + public bool contact { get; set; } + public bool mutual_contact { get; set; } + public bool deleted { get; set; } + public bool bot { get; set; } + public bool bot_chat_history { get; set; } + public bool bot_nochats { get; set; } + public bool verified { get; set; } + public bool restricted { get; set; } + public bool min { get; set; } + public bool bot_inline_geo { get; set; } + public int id { get; set; } + public long? access_hash { get; set; } + public string first_name { get; set; } + public string last_name { get; set; } + public string username { get; set; } + public string phone { get; set; } + public TLAbsUserProfilePhoto photo { get; set; } + public TLAbsUserStatus status { get; set; } + public int? bot_info_version { get; set; } + public string restriction_reason { get; set; } + public string bot_inline_placeholder { get; set; } + public string lang_code { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = self ? (flags | 1024) : (flags & ~1024); -flags = contact ? (flags | 2048) : (flags & ~2048); -flags = mutual_contact ? (flags | 4096) : (flags & ~4096); -flags = deleted ? (flags | 8192) : (flags & ~8192); -flags = bot ? (flags | 16384) : (flags & ~16384); -flags = bot_chat_history ? (flags | 32768) : (flags & ~32768); -flags = bot_nochats ? (flags | 65536) : (flags & ~65536); -flags = verified ? (flags | 131072) : (flags & ~131072); -flags = restricted ? (flags | 262144) : (flags & ~262144); -flags = min ? (flags | 1048576) : (flags & ~1048576); -flags = bot_inline_geo ? (flags | 2097152) : (flags & ~2097152); -flags = access_hash != null ? (flags | 1) : (flags & ~1); -flags = first_name != null ? (flags | 2) : (flags & ~2); -flags = last_name != null ? (flags | 4) : (flags & ~4); -flags = username != null ? (flags | 8) : (flags & ~8); -flags = phone != null ? (flags | 16) : (flags & ~16); -flags = photo != null ? (flags | 32) : (flags & ~32); -flags = status != null ? (flags | 64) : (flags & ~64); -flags = bot_info_version != null ? (flags | 16384) : (flags & ~16384); -flags = restriction_reason != null ? (flags | 262144) : (flags & ~262144); -flags = bot_inline_placeholder != null ? (flags | 524288) : (flags & ~524288); + public void ComputeFlags() + { + flags = 0; + flags = self ? (flags | 1024) : (flags & ~1024); + flags = contact ? (flags | 2048) : (flags & ~2048); + flags = mutual_contact ? (flags | 4096) : (flags & ~4096); + flags = deleted ? (flags | 8192) : (flags & ~8192); + flags = bot ? (flags | 16384) : (flags & ~16384); + flags = bot_chat_history ? (flags | 32768) : (flags & ~32768); + flags = bot_nochats ? (flags | 65536) : (flags & ~65536); + flags = verified ? (flags | 131072) : (flags & ~131072); + flags = restricted ? (flags | 262144) : (flags & ~262144); + flags = min ? (flags | 1048576) : (flags & ~1048576); + flags = bot_inline_geo ? (flags | 2097152) : (flags & ~2097152); + flags = access_hash != null ? (flags | 1) : (flags & ~1); + flags = first_name != null ? (flags | 2) : (flags & ~2); + flags = last_name != null ? (flags | 4) : (flags & ~4); + flags = username != null ? (flags | 8) : (flags & ~8); + flags = phone != null ? (flags | 16) : (flags & ~16); + flags = photo != null ? (flags | 32) : (flags & ~32); + flags = status != null ? (flags | 64) : (flags & ~64); + flags = bot_info_version != null ? (flags | 16384) : (flags & ~16384); + flags = restriction_reason != null ? (flags | 262144) : (flags & ~262144); + flags = bot_inline_placeholder != null ? (flags | 524288) : (flags & ~524288); + flags = lang_code != null ? (flags | 4194304) : (flags & ~4194304); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -self = (flags & 1024) != 0; -contact = (flags & 2048) != 0; -mutual_contact = (flags & 4096) != 0; -deleted = (flags & 8192) != 0; -bot = (flags & 16384) != 0; -bot_chat_history = (flags & 32768) != 0; -bot_nochats = (flags & 65536) != 0; -verified = (flags & 131072) != 0; -restricted = (flags & 262144) != 0; -min = (flags & 1048576) != 0; -bot_inline_geo = (flags & 2097152) != 0; -id = br.ReadInt32(); -if ((flags & 1) != 0) -access_hash = br.ReadInt64(); -else -access_hash = null; + self = (flags & 1024) != 0; + contact = (flags & 2048) != 0; + mutual_contact = (flags & 4096) != 0; + deleted = (flags & 8192) != 0; + bot = (flags & 16384) != 0; + bot_chat_history = (flags & 32768) != 0; + bot_nochats = (flags & 65536) != 0; + verified = (flags & 131072) != 0; + restricted = (flags & 262144) != 0; + min = (flags & 1048576) != 0; + bot_inline_geo = (flags & 2097152) != 0; + id = br.ReadInt32(); + if ((flags & 1) != 0) + access_hash = br.ReadInt64(); + else + access_hash = null; -if ((flags & 2) != 0) -first_name = StringUtil.Deserialize(br); -else -first_name = null; + if ((flags & 2) != 0) + first_name = StringUtil.Deserialize(br); + else + first_name = null; -if ((flags & 4) != 0) -last_name = StringUtil.Deserialize(br); -else -last_name = null; + if ((flags & 4) != 0) + last_name = StringUtil.Deserialize(br); + else + last_name = null; -if ((flags & 8) != 0) -username = StringUtil.Deserialize(br); -else -username = null; + if ((flags & 8) != 0) + username = StringUtil.Deserialize(br); + else + username = null; -if ((flags & 16) != 0) -phone = StringUtil.Deserialize(br); -else -phone = null; + if ((flags & 16) != 0) + phone = StringUtil.Deserialize(br); + else + phone = null; -if ((flags & 32) != 0) -photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); -else -photo = null; + if ((flags & 32) != 0) + photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); + else + photo = null; -if ((flags & 64) != 0) -status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); -else -status = null; + if ((flags & 64) != 0) + status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); + else + status = null; -if ((flags & 16384) != 0) -bot_info_version = br.ReadInt32(); -else -bot_info_version = null; + if ((flags & 16384) != 0) + bot_info_version = br.ReadInt32(); + else + bot_info_version = null; -if ((flags & 262144) != 0) -restriction_reason = StringUtil.Deserialize(br); -else -restriction_reason = null; + if ((flags & 262144) != 0) + restriction_reason = StringUtil.Deserialize(br); + else + restriction_reason = null; -if ((flags & 524288) != 0) -bot_inline_placeholder = StringUtil.Deserialize(br); -else -bot_inline_placeholder = null; + if ((flags & 524288) != 0) + bot_inline_placeholder = StringUtil.Deserialize(br); + else + bot_inline_placeholder = null; + + if ((flags & 4194304) != 0) + lang_code = StringUtil.Deserialize(br); + else + lang_code = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); @@ -154,27 +161,29 @@ bw.Write(flags); -bw.Write(id); -if ((flags & 1) != 0) -bw.Write(access_hash.Value); -if ((flags & 2) != 0) -StringUtil.Serialize(first_name,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(last_name,bw); -if ((flags & 8) != 0) -StringUtil.Serialize(username,bw); -if ((flags & 16) != 0) -StringUtil.Serialize(phone,bw); -if ((flags & 32) != 0) -ObjectUtils.SerializeObject(photo,bw); -if ((flags & 64) != 0) -ObjectUtils.SerializeObject(status,bw); -if ((flags & 16384) != 0) -bw.Write(bot_info_version.Value); -if ((flags & 262144) != 0) -StringUtil.Serialize(restriction_reason,bw); -if ((flags & 524288) != 0) -StringUtil.Serialize(bot_inline_placeholder,bw); + bw.Write(id); + if ((flags & 1) != 0) + bw.Write(access_hash.Value); + if ((flags & 2) != 0) + StringUtil.Serialize(first_name, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(last_name, bw); + if ((flags & 8) != 0) + StringUtil.Serialize(username, bw); + if ((flags & 16) != 0) + StringUtil.Serialize(phone, bw); + if ((flags & 32) != 0) + ObjectUtils.SerializeObject(photo, bw); + if ((flags & 64) != 0) + ObjectUtils.SerializeObject(status, bw); + if ((flags & 16384) != 0) + bw.Write(bot_info_version.Value); + if ((flags & 262144) != 0) + StringUtil.Serialize(restriction_reason, bw); + if ((flags & 524288) != 0) + StringUtil.Serialize(bot_inline_placeholder, bw); + if ((flags & 4194304) != 0) + StringUtil.Serialize(lang_code, bw); } } diff --git a/TeleSharp.TL/TL/TLUserEmpty.cs b/TeleSharp.TL/TL/TLUserEmpty.cs index 1e311d2..8647b47 100644 --- a/TeleSharp.TL/TL/TLUserEmpty.cs +++ b/TeleSharp.TL/TL/TLUserEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(537022650)] + [TLObject(537022650)] public class TLUserEmpty : TLAbsUser { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int id {get;set;} + public int id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLUserFull.cs b/TeleSharp.TL/TL/TLUserFull.cs index fc1717d..4286259 100644 --- a/TeleSharp.TL/TL/TLUserFull.cs +++ b/TeleSharp.TL/TL/TLUserFull.cs @@ -7,77 +7,88 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1496513539)] + [TLObject(253890367)] public class TLUserFull : TLObject { public override int Constructor { get { - return 1496513539; + return 253890367; } } - public int flags {get;set;} - public bool blocked {get;set;} - public TLAbsUser user {get;set;} - public string about {get;set;} - public Contacts.TLLink link {get;set;} - public TLAbsPhoto profile_photo {get;set;} - public TLAbsPeerNotifySettings notify_settings {get;set;} - public TLBotInfo bot_info {get;set;} + public int flags { get; set; } + public bool blocked { get; set; } + public bool phone_calls_available { get; set; } + public bool phone_calls_private { get; set; } + public TLAbsUser user { get; set; } + public string about { get; set; } + public Contacts.TLLink link { get; set; } + public TLAbsPhoto profile_photo { get; set; } + public TLAbsPeerNotifySettings notify_settings { get; set; } + public TLBotInfo bot_info { get; set; } + public int common_chats_count { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = blocked ? (flags | 1) : (flags & ~1); -flags = about != null ? (flags | 2) : (flags & ~2); -flags = profile_photo != null ? (flags | 4) : (flags & ~4); -flags = bot_info != null ? (flags | 8) : (flags & ~8); + public void ComputeFlags() + { + flags = 0; + flags = blocked ? (flags | 1) : (flags & ~1); + flags = phone_calls_available ? (flags | 16) : (flags & ~16); + flags = phone_calls_private ? (flags | 32) : (flags & ~32); + flags = about != null ? (flags | 2) : (flags & ~2); + flags = profile_photo != null ? (flags | 4) : (flags & ~4); + flags = bot_info != null ? (flags | 8) : (flags & ~8); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -blocked = (flags & 1) != 0; -user = (TLAbsUser)ObjectUtils.DeserializeObject(br); -if ((flags & 2) != 0) -about = StringUtil.Deserialize(br); -else -about = null; + blocked = (flags & 1) != 0; + phone_calls_available = (flags & 16) != 0; + phone_calls_private = (flags & 32) != 0; + user = (TLAbsUser)ObjectUtils.DeserializeObject(br); + if ((flags & 2) != 0) + about = StringUtil.Deserialize(br); + else + about = null; -link = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); -if ((flags & 4) != 0) -profile_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -else -profile_photo = null; + link = (Contacts.TLLink)ObjectUtils.DeserializeObject(br); + if ((flags & 4) != 0) + profile_photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + else + profile_photo = null; -notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); -if ((flags & 8) != 0) -bot_info = (TLBotInfo)ObjectUtils.DeserializeObject(br); -else -bot_info = null; + notify_settings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); + if ((flags & 8) != 0) + bot_info = (TLBotInfo)ObjectUtils.DeserializeObject(br); + else + bot_info = null; + common_chats_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -ObjectUtils.SerializeObject(user,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(about,bw); -ObjectUtils.SerializeObject(link,bw); -if ((flags & 4) != 0) -ObjectUtils.SerializeObject(profile_photo,bw); -ObjectUtils.SerializeObject(notify_settings,bw); -if ((flags & 8) != 0) -ObjectUtils.SerializeObject(bot_info,bw); + + + ObjectUtils.SerializeObject(user, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(about, bw); + ObjectUtils.SerializeObject(link, bw); + if ((flags & 4) != 0) + ObjectUtils.SerializeObject(profile_photo, bw); + ObjectUtils.SerializeObject(notify_settings, bw); + if ((flags & 8) != 0) + ObjectUtils.SerializeObject(bot_info, bw); + bw.Write(common_chats_count); } } diff --git a/TeleSharp.TL/TL/TLUserProfilePhoto.cs b/TeleSharp.TL/TL/TLUserProfilePhoto.cs index 717a2df..243ef45 100644 --- a/TeleSharp.TL/TL/TLUserProfilePhoto.cs +++ b/TeleSharp.TL/TL/TLUserProfilePhoto.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-715532088)] + [TLObject(-715532088)] public class TLUserProfilePhoto : TLAbsUserProfilePhoto { public override int Constructor @@ -18,30 +18,30 @@ namespace TeleSharp.TL } } - public long photo_id {get;set;} - public TLAbsFileLocation photo_small {get;set;} - public TLAbsFileLocation photo_big {get;set;} + public long photo_id { get; set; } + public TLAbsFileLocation photo_small { get; set; } + public TLAbsFileLocation photo_big { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { photo_id = br.ReadInt64(); -photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); -photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + photo_small = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); + photo_big = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(photo_id); -ObjectUtils.SerializeObject(photo_small,bw); -ObjectUtils.SerializeObject(photo_big,bw); + ObjectUtils.SerializeObject(photo_small, bw); + ObjectUtils.SerializeObject(photo_big, bw); } } diff --git a/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs index 126cfd3..0390b73 100644 --- a/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs +++ b/TeleSharp.TL/TL/TLUserProfilePhotoEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1326562017)] + [TLObject(1326562017)] public class TLUserProfilePhotoEmpty : TLAbsUserProfilePhoto { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUserStatusEmpty.cs b/TeleSharp.TL/TL/TLUserStatusEmpty.cs index 1fe6b96..bad421d 100644 --- a/TeleSharp.TL/TL/TLUserStatusEmpty.cs +++ b/TeleSharp.TL/TL/TLUserStatusEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(164646985)] + [TLObject(164646985)] public class TLUserStatusEmpty : TLAbsUserStatus { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUserStatusLastMonth.cs b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs index 504440f..7739d58 100644 --- a/TeleSharp.TL/TL/TLUserStatusLastMonth.cs +++ b/TeleSharp.TL/TL/TLUserStatusLastMonth.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(2011940674)] + [TLObject(2011940674)] public class TLUserStatusLastMonth : TLAbsUserStatus { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUserStatusLastWeek.cs b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs index ad6be60..bda3071 100644 --- a/TeleSharp.TL/TL/TLUserStatusLastWeek.cs +++ b/TeleSharp.TL/TL/TLUserStatusLastWeek.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(129960444)] + [TLObject(129960444)] public class TLUserStatusLastWeek : TLAbsUserStatus { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLUserStatusOffline.cs b/TeleSharp.TL/TL/TLUserStatusOffline.cs index 92c2f87..bbcdd7b 100644 --- a/TeleSharp.TL/TL/TLUserStatusOffline.cs +++ b/TeleSharp.TL/TL/TLUserStatusOffline.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(9203775)] + [TLObject(9203775)] public class TLUserStatusOffline : TLAbsUserStatus { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int was_online {get;set;} + public int was_online { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(was_online); } diff --git a/TeleSharp.TL/TL/TLUserStatusOnline.cs b/TeleSharp.TL/TL/TLUserStatusOnline.cs index 6cfbf1f..7c77dce 100644 --- a/TeleSharp.TL/TL/TLUserStatusOnline.cs +++ b/TeleSharp.TL/TL/TLUserStatusOnline.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-306628279)] + [TLObject(-306628279)] public class TLUserStatusOnline : TLAbsUserStatus { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public int expires {get;set;} + public int expires { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(expires); } diff --git a/TeleSharp.TL/TL/TLUserStatusRecently.cs b/TeleSharp.TL/TL/TLUserStatusRecently.cs index 1011953..5c17377 100644 --- a/TeleSharp.TL/TL/TLUserStatusRecently.cs +++ b/TeleSharp.TL/TL/TLUserStatusRecently.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-496024847)] + [TLObject(-496024847)] public class TLUserStatusRecently : TLAbsUserStatus { public override int Constructor @@ -18,22 +18,22 @@ namespace TeleSharp.TL } } - - public void ComputeFlags() - { - - } + + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { - + } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - + bw.Write(Constructor); + } } } diff --git a/TeleSharp.TL/TL/TLWallPaper.cs b/TeleSharp.TL/TL/TLWallPaper.cs index b53bb23..e224823 100644 --- a/TeleSharp.TL/TL/TLWallPaper.cs +++ b/TeleSharp.TL/TL/TLWallPaper.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-860866985)] + [TLObject(-860866985)] public class TLWallPaper : TLAbsWallPaper { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public string title {get;set;} - public TLVector sizes {get;set;} - public int color {get;set;} + public int id { get; set; } + public string title { get; set; } + public TLVector sizes { get; set; } + public int color { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -title = StringUtil.Deserialize(br); -sizes = (TLVector)ObjectUtils.DeserializeVector(br); -color = br.ReadInt32(); + title = StringUtil.Deserialize(br); + sizes = (TLVector)ObjectUtils.DeserializeVector(br); + color = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -StringUtil.Serialize(title,bw); -ObjectUtils.SerializeObject(sizes,bw); -bw.Write(color); + StringUtil.Serialize(title, bw); + ObjectUtils.SerializeObject(sizes, bw); + bw.Write(color); } } diff --git a/TeleSharp.TL/TL/TLWallPaperSolid.cs b/TeleSharp.TL/TL/TLWallPaperSolid.cs index 42ceedf..31a942a 100644 --- a/TeleSharp.TL/TL/TLWallPaperSolid.cs +++ b/TeleSharp.TL/TL/TLWallPaperSolid.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(1662091044)] + [TLObject(1662091044)] public class TLWallPaperSolid : TLAbsWallPaper { public override int Constructor @@ -18,33 +18,33 @@ namespace TeleSharp.TL } } - public int id {get;set;} - public string title {get;set;} - public int bg_color {get;set;} - public int color {get;set;} + public int id { get; set; } + public string title { get; set; } + public int bg_color { get; set; } + public int color { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt32(); -title = StringUtil.Deserialize(br); -bg_color = br.ReadInt32(); -color = br.ReadInt32(); + title = StringUtil.Deserialize(br); + bg_color = br.ReadInt32(); + color = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -StringUtil.Serialize(title,bw); -bw.Write(bg_color); -bw.Write(color); + StringUtil.Serialize(title, bw); + bw.Write(bg_color); + bw.Write(color); } } diff --git a/TeleSharp.TL/TL/TLWebDocument.cs b/TeleSharp.TL/TL/TLWebDocument.cs new file mode 100644 index 0000000..dbbb39d --- /dev/null +++ b/TeleSharp.TL/TL/TLWebDocument.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-971322408)] + public class TLWebDocument : TLObject + { + public override int Constructor + { + get + { + return -971322408; + } + } + + public string url { get; set; } + public long access_hash { get; set; } + public int size { get; set; } + public string mime_type { get; set; } + public TLVector attributes { get; set; } + public int dc_id { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + url = StringUtil.Deserialize(br); + access_hash = br.ReadInt64(); + size = br.ReadInt32(); + mime_type = StringUtil.Deserialize(br); + attributes = (TLVector)ObjectUtils.DeserializeVector(br); + dc_id = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + StringUtil.Serialize(url, bw); + bw.Write(access_hash); + bw.Write(size); + StringUtil.Serialize(mime_type, bw); + ObjectUtils.SerializeObject(attributes, bw); + bw.Write(dc_id); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWebPage.cs b/TeleSharp.TL/TL/TLWebPage.cs index 570a05a..695ea72 100644 --- a/TeleSharp.TL/TL/TLWebPage.cs +++ b/TeleSharp.TL/TL/TLWebPage.cs @@ -7,154 +7,166 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-897446185)] + [TLObject(1594340540)] public class TLWebPage : TLAbsWebPage { public override int Constructor { get { - return -897446185; + return 1594340540; } } - public int flags {get;set;} - public long id {get;set;} - public string url {get;set;} - public string display_url {get;set;} - public string type {get;set;} - public string site_name {get;set;} - public string title {get;set;} - public string description {get;set;} - public TLAbsPhoto photo {get;set;} - public string embed_url {get;set;} - public string embed_type {get;set;} - public int? embed_width {get;set;} - public int? embed_height {get;set;} - public int? duration {get;set;} - public string author {get;set;} - public TLAbsDocument document {get;set;} + public int flags { get; set; } + public long id { get; set; } + public string url { get; set; } + public string display_url { get; set; } + public int hash { get; set; } + public string type { get; set; } + public string site_name { get; set; } + public string title { get; set; } + public string description { get; set; } + public TLAbsPhoto photo { get; set; } + public string embed_url { get; set; } + public string embed_type { get; set; } + public int? embed_width { get; set; } + public int? embed_height { get; set; } + public int? duration { get; set; } + public string author { get; set; } + public TLAbsDocument document { get; set; } + public TLAbsPage cached_page { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = type != null ? (flags | 1) : (flags & ~1); -flags = site_name != null ? (flags | 2) : (flags & ~2); -flags = title != null ? (flags | 4) : (flags & ~4); -flags = description != null ? (flags | 8) : (flags & ~8); -flags = photo != null ? (flags | 16) : (flags & ~16); -flags = embed_url != null ? (flags | 32) : (flags & ~32); -flags = embed_type != null ? (flags | 32) : (flags & ~32); -flags = embed_width != null ? (flags | 64) : (flags & ~64); -flags = embed_height != null ? (flags | 64) : (flags & ~64); -flags = duration != null ? (flags | 128) : (flags & ~128); -flags = author != null ? (flags | 256) : (flags & ~256); -flags = document != null ? (flags | 512) : (flags & ~512); + public void ComputeFlags() + { + flags = 0; + flags = type != null ? (flags | 1) : (flags & ~1); + flags = site_name != null ? (flags | 2) : (flags & ~2); + flags = title != null ? (flags | 4) : (flags & ~4); + flags = description != null ? (flags | 8) : (flags & ~8); + flags = photo != null ? (flags | 16) : (flags & ~16); + flags = embed_url != null ? (flags | 32) : (flags & ~32); + flags = embed_type != null ? (flags | 32) : (flags & ~32); + flags = embed_width != null ? (flags | 64) : (flags & ~64); + flags = embed_height != null ? (flags | 64) : (flags & ~64); + flags = duration != null ? (flags | 128) : (flags & ~128); + flags = author != null ? (flags | 256) : (flags & ~256); + flags = document != null ? (flags | 512) : (flags & ~512); + flags = cached_page != null ? (flags | 1024) : (flags & ~1024); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -id = br.ReadInt64(); -url = StringUtil.Deserialize(br); -display_url = StringUtil.Deserialize(br); -if ((flags & 1) != 0) -type = StringUtil.Deserialize(br); -else -type = null; + id = br.ReadInt64(); + url = StringUtil.Deserialize(br); + display_url = StringUtil.Deserialize(br); + hash = br.ReadInt32(); + if ((flags & 1) != 0) + type = StringUtil.Deserialize(br); + else + type = null; -if ((flags & 2) != 0) -site_name = StringUtil.Deserialize(br); -else -site_name = null; + if ((flags & 2) != 0) + site_name = StringUtil.Deserialize(br); + else + site_name = null; -if ((flags & 4) != 0) -title = StringUtil.Deserialize(br); -else -title = null; + if ((flags & 4) != 0) + title = StringUtil.Deserialize(br); + else + title = null; -if ((flags & 8) != 0) -description = StringUtil.Deserialize(br); -else -description = null; + if ((flags & 8) != 0) + description = StringUtil.Deserialize(br); + else + description = null; -if ((flags & 16) != 0) -photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); -else -photo = null; + if ((flags & 16) != 0) + photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); + else + photo = null; -if ((flags & 32) != 0) -embed_url = StringUtil.Deserialize(br); -else -embed_url = null; + if ((flags & 32) != 0) + embed_url = StringUtil.Deserialize(br); + else + embed_url = null; -if ((flags & 32) != 0) -embed_type = StringUtil.Deserialize(br); -else -embed_type = null; + if ((flags & 32) != 0) + embed_type = StringUtil.Deserialize(br); + else + embed_type = null; -if ((flags & 64) != 0) -embed_width = br.ReadInt32(); -else -embed_width = null; + if ((flags & 64) != 0) + embed_width = br.ReadInt32(); + else + embed_width = null; -if ((flags & 64) != 0) -embed_height = br.ReadInt32(); -else -embed_height = null; + if ((flags & 64) != 0) + embed_height = br.ReadInt32(); + else + embed_height = null; -if ((flags & 128) != 0) -duration = br.ReadInt32(); -else -duration = null; + if ((flags & 128) != 0) + duration = br.ReadInt32(); + else + duration = null; -if ((flags & 256) != 0) -author = StringUtil.Deserialize(br); -else -author = null; + if ((flags & 256) != 0) + author = StringUtil.Deserialize(br); + else + author = null; -if ((flags & 512) != 0) -document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); -else -document = null; + if ((flags & 512) != 0) + document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); + else + document = null; + + if ((flags & 1024) != 0) + cached_page = (TLAbsPage)ObjectUtils.DeserializeObject(br); + else + cached_page = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); -bw.Write(id); -StringUtil.Serialize(url,bw); -StringUtil.Serialize(display_url,bw); -if ((flags & 1) != 0) -StringUtil.Serialize(type,bw); -if ((flags & 2) != 0) -StringUtil.Serialize(site_name,bw); -if ((flags & 4) != 0) -StringUtil.Serialize(title,bw); -if ((flags & 8) != 0) -StringUtil.Serialize(description,bw); -if ((flags & 16) != 0) -ObjectUtils.SerializeObject(photo,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(embed_url,bw); -if ((flags & 32) != 0) -StringUtil.Serialize(embed_type,bw); -if ((flags & 64) != 0) -bw.Write(embed_width.Value); -if ((flags & 64) != 0) -bw.Write(embed_height.Value); -if ((flags & 128) != 0) -bw.Write(duration.Value); -if ((flags & 256) != 0) -StringUtil.Serialize(author,bw); -if ((flags & 512) != 0) -ObjectUtils.SerializeObject(document,bw); + bw.Write(flags); + bw.Write(id); + StringUtil.Serialize(url, bw); + StringUtil.Serialize(display_url, bw); + bw.Write(hash); + if ((flags & 1) != 0) + StringUtil.Serialize(type, bw); + if ((flags & 2) != 0) + StringUtil.Serialize(site_name, bw); + if ((flags & 4) != 0) + StringUtil.Serialize(title, bw); + if ((flags & 8) != 0) + StringUtil.Serialize(description, bw); + if ((flags & 16) != 0) + ObjectUtils.SerializeObject(photo, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(embed_url, bw); + if ((flags & 32) != 0) + StringUtil.Serialize(embed_type, bw); + if ((flags & 64) != 0) + bw.Write(embed_width.Value); + if ((flags & 64) != 0) + bw.Write(embed_height.Value); + if ((flags & 128) != 0) + bw.Write(duration.Value); + if ((flags & 256) != 0) + StringUtil.Serialize(author, bw); + if ((flags & 512) != 0) + ObjectUtils.SerializeObject(document, bw); + if ((flags & 1024) != 0) + ObjectUtils.SerializeObject(cached_page, bw); } } diff --git a/TeleSharp.TL/TL/TLWebPageEmpty.cs b/TeleSharp.TL/TL/TLWebPageEmpty.cs index b485b95..f99777a 100644 --- a/TeleSharp.TL/TL/TLWebPageEmpty.cs +++ b/TeleSharp.TL/TL/TLWebPageEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-350980120)] + [TLObject(-350980120)] public class TLWebPageEmpty : TLAbsWebPage { public override int Constructor @@ -18,13 +18,13 @@ namespace TeleSharp.TL } } - public long id {get;set;} + public long id { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -34,7 +34,7 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); } diff --git a/TeleSharp.TL/TL/TLWebPageNotModified.cs b/TeleSharp.TL/TL/TLWebPageNotModified.cs new file mode 100644 index 0000000..724b6b0 --- /dev/null +++ b/TeleSharp.TL/TL/TLWebPageNotModified.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL +{ + [TLObject(-2054908813)] + public class TLWebPageNotModified : TLAbsWebPage + { + public override int Constructor + { + get + { + return -2054908813; + } + } + + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + + } + } +} diff --git a/TeleSharp.TL/TL/TLWebPagePending.cs b/TeleSharp.TL/TL/TLWebPagePending.cs index 7829b94..0a0371b 100644 --- a/TeleSharp.TL/TL/TLWebPagePending.cs +++ b/TeleSharp.TL/TL/TLWebPagePending.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL { - [TLObject(-981018084)] + [TLObject(-981018084)] public class TLWebPagePending : TLAbsWebPage { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL } } - public long id {get;set;} - public int date {get;set;} + public long id { get; set; } + public int date { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { id = br.ReadInt64(); -date = br.ReadInt32(); + date = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(id); -bw.Write(date); + bw.Write(date); } } diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs index f014882..1eb96fb 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifference.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(543450958)] + [TLObject(543450958)] public class TLChannelDifference : TLAbsChannelDifference { public override int Constructor @@ -18,54 +18,54 @@ namespace TeleSharp.TL.Updates } } - public int flags {get;set;} - public bool final {get;set;} - public int pts {get;set;} - public int? timeout {get;set;} - public TLVector new_messages {get;set;} - public TLVector other_updates {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public int flags { get; set; } + public bool final { get; set; } + public int pts { get; set; } + public int? timeout { get; set; } + public TLVector new_messages { get; set; } + public TLVector other_updates { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = final ? (flags | 1) : (flags & ~1); -flags = timeout != null ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = final ? (flags | 1) : (flags & ~1); + flags = timeout != null ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -final = (flags & 1) != 0; -pts = br.ReadInt32(); -if ((flags & 2) != 0) -timeout = br.ReadInt32(); -else -timeout = null; + final = (flags & 1) != 0; + pts = br.ReadInt32(); + if ((flags & 2) != 0) + timeout = br.ReadInt32(); + else + timeout = null; -new_messages = (TLVector)ObjectUtils.DeserializeVector(br); -other_updates = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + new_messages = (TLVector)ObjectUtils.DeserializeVector(br); + other_updates = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(pts); -if ((flags & 2) != 0) -bw.Write(timeout.Value); -ObjectUtils.SerializeObject(new_messages,bw); -ObjectUtils.SerializeObject(other_updates,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(pts); + if ((flags & 2) != 0) + bw.Write(timeout.Value); + ObjectUtils.SerializeObject(new_messages, bw); + ObjectUtils.SerializeObject(other_updates, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs index 57cd74d..bfbfee1 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(1041346555)] + [TLObject(1041346555)] public class TLChannelDifferenceEmpty : TLAbsChannelDifference { public override int Constructor @@ -18,42 +18,42 @@ namespace TeleSharp.TL.Updates } } - public int flags {get;set;} - public bool final {get;set;} - public int pts {get;set;} - public int? timeout {get;set;} + public int flags { get; set; } + public bool final { get; set; } + public int pts { get; set; } + public int? timeout { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = final ? (flags | 1) : (flags & ~1); -flags = timeout != null ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = final ? (flags | 1) : (flags & ~1); + flags = timeout != null ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -final = (flags & 1) != 0; -pts = br.ReadInt32(); -if ((flags & 2) != 0) -timeout = br.ReadInt32(); -else -timeout = null; + final = (flags & 1) != 0; + pts = br.ReadInt32(); + if ((flags & 2) != 0) + timeout = br.ReadInt32(); + else + timeout = null; } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(pts); -if ((flags & 2) != 0) -bw.Write(timeout.Value); + bw.Write(pts); + if ((flags & 2) != 0) + bw.Write(timeout.Value); } } diff --git a/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs index a869024..8377ecc 100644 --- a/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs +++ b/TeleSharp.TL/TL/Updates/TLChannelDifferenceTooLong.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(1091431943)] + [TLObject(1091431943)] public class TLChannelDifferenceTooLong : TLAbsChannelDifference { public override int Constructor @@ -18,63 +18,63 @@ namespace TeleSharp.TL.Updates } } - public int flags {get;set;} - public bool final {get;set;} - public int pts {get;set;} - public int? timeout {get;set;} - public int top_message {get;set;} - public int read_inbox_max_id {get;set;} - public int read_outbox_max_id {get;set;} - public int unread_count {get;set;} - public TLVector messages {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} + public int flags { get; set; } + public bool final { get; set; } + public int pts { get; set; } + public int? timeout { get; set; } + public int top_message { get; set; } + public int read_inbox_max_id { get; set; } + public int read_outbox_max_id { get; set; } + public int unread_count { get; set; } + public TLVector messages { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } - public void ComputeFlags() - { - flags = 0; -flags = final ? (flags | 1) : (flags & ~1); -flags = timeout != null ? (flags | 2) : (flags & ~2); + public void ComputeFlags() + { + flags = 0; + flags = final ? (flags | 1) : (flags & ~1); + flags = timeout != null ? (flags | 2) : (flags & ~2); - } + } public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); -final = (flags & 1) != 0; -pts = br.ReadInt32(); -if ((flags & 2) != 0) -timeout = br.ReadInt32(); -else -timeout = null; + final = (flags & 1) != 0; + pts = br.ReadInt32(); + if ((flags & 2) != 0) + timeout = br.ReadInt32(); + else + timeout = null; -top_message = br.ReadInt32(); -read_inbox_max_id = br.ReadInt32(); -read_outbox_max_id = br.ReadInt32(); -unread_count = br.ReadInt32(); -messages = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); + top_message = br.ReadInt32(); + read_inbox_max_id = br.ReadInt32(); + read_outbox_max_id = br.ReadInt32(); + unread_count = br.ReadInt32(); + messages = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); ComputeFlags(); -bw.Write(flags); + bw.Write(flags); -bw.Write(pts); -if ((flags & 2) != 0) -bw.Write(timeout.Value); -bw.Write(top_message); -bw.Write(read_inbox_max_id); -bw.Write(read_outbox_max_id); -bw.Write(unread_count); -ObjectUtils.SerializeObject(messages,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); + bw.Write(pts); + if ((flags & 2) != 0) + bw.Write(timeout.Value); + bw.Write(top_message); + bw.Write(read_inbox_max_id); + bw.Write(read_outbox_max_id); + bw.Write(unread_count); + ObjectUtils.SerializeObject(messages, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); } } diff --git a/TeleSharp.TL/TL/Updates/TLDifference.cs b/TeleSharp.TL/TL/Updates/TLDifference.cs index fd4401b..4770781 100644 --- a/TeleSharp.TL/TL/Updates/TLDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLDifference.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(16030880)] + [TLObject(16030880)] public class TLDifference : TLAbsDifference { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL.Updates } } - public TLVector new_messages {get;set;} - public TLVector new_encrypted_messages {get;set;} - public TLVector other_updates {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} - public Updates.TLState state {get;set;} + public TLVector new_messages { get; set; } + public TLVector new_encrypted_messages { get; set; } + public TLVector other_updates { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } + public Updates.TLState state { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { new_messages = (TLVector)ObjectUtils.DeserializeVector(br); -new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); -other_updates = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); -state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); + other_updates = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); + state = (Updates.TLState)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(new_messages,bw); -ObjectUtils.SerializeObject(new_encrypted_messages,bw); -ObjectUtils.SerializeObject(other_updates,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); -ObjectUtils.SerializeObject(state,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(new_messages, bw); + ObjectUtils.SerializeObject(new_encrypted_messages, bw); + ObjectUtils.SerializeObject(other_updates, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); + ObjectUtils.SerializeObject(state, bw); } } diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs index bf42268..91927aa 100644 --- a/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs +++ b/TeleSharp.TL/TL/Updates/TLDifferenceEmpty.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(1567990072)] + [TLObject(1567990072)] public class TLDifferenceEmpty : TLAbsDifference { public override int Constructor @@ -18,27 +18,27 @@ namespace TeleSharp.TL.Updates } } - public int date {get;set;} - public int seq {get;set;} + public int date { get; set; } + public int seq { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { date = br.ReadInt32(); -seq = br.ReadInt32(); + seq = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(date); -bw.Write(seq); + bw.Write(seq); } } diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs index 8468db7..4eaf6cf 100644 --- a/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs +++ b/TeleSharp.TL/TL/Updates/TLDifferenceSlice.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(-1459938943)] + [TLObject(-1459938943)] public class TLDifferenceSlice : TLAbsDifference { public override int Constructor @@ -18,39 +18,39 @@ namespace TeleSharp.TL.Updates } } - public TLVector new_messages {get;set;} - public TLVector new_encrypted_messages {get;set;} - public TLVector other_updates {get;set;} - public TLVector chats {get;set;} - public TLVector users {get;set;} - public Updates.TLState intermediate_state {get;set;} + public TLVector new_messages { get; set; } + public TLVector new_encrypted_messages { get; set; } + public TLVector other_updates { get; set; } + public TLVector chats { get; set; } + public TLVector users { get; set; } + public Updates.TLState intermediate_state { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { new_messages = (TLVector)ObjectUtils.DeserializeVector(br); -new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); -other_updates = (TLVector)ObjectUtils.DeserializeVector(br); -chats = (TLVector)ObjectUtils.DeserializeVector(br); -users = (TLVector)ObjectUtils.DeserializeVector(br); -intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br); + new_encrypted_messages = (TLVector)ObjectUtils.DeserializeVector(br); + other_updates = (TLVector)ObjectUtils.DeserializeVector(br); + chats = (TLVector)ObjectUtils.DeserializeVector(br); + users = (TLVector)ObjectUtils.DeserializeVector(br); + intermediate_state = (Updates.TLState)ObjectUtils.DeserializeObject(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(new_messages,bw); -ObjectUtils.SerializeObject(new_encrypted_messages,bw); -ObjectUtils.SerializeObject(other_updates,bw); -ObjectUtils.SerializeObject(chats,bw); -ObjectUtils.SerializeObject(users,bw); -ObjectUtils.SerializeObject(intermediate_state,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(new_messages, bw); + ObjectUtils.SerializeObject(new_encrypted_messages, bw); + ObjectUtils.SerializeObject(other_updates, bw); + ObjectUtils.SerializeObject(chats, bw); + ObjectUtils.SerializeObject(users, bw); + ObjectUtils.SerializeObject(intermediate_state, bw); } } diff --git a/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs b/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs new file mode 100644 index 0000000..989c0bb --- /dev/null +++ b/TeleSharp.TL/TL/Updates/TLDifferenceTooLong.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Updates +{ + [TLObject(1258196845)] + public class TLDifferenceTooLong : TLAbsDifference + { + public override int Constructor + { + get + { + return 1258196845; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs index 7d4e79b..9104d77 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetChannelDifference.cs @@ -7,51 +7,60 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(-1154295872)] + [TLObject(51854712)] public class TLRequestGetChannelDifference : TLMethod { public override int Constructor { get { - return -1154295872; + return 51854712; } } - public TLAbsInputChannel channel {get;set;} - public TLAbsChannelMessagesFilter filter {get;set;} - public int pts {get;set;} - public int limit {get;set;} - public Updates.TLAbsChannelDifference Response{ get; set;} + public int flags { get; set; } + public bool force { get; set; } + public TLAbsInputChannel channel { get; set; } + public TLAbsChannelMessagesFilter filter { get; set; } + public int pts { get; set; } + public int limit { get; set; } + public Updates.TLAbsChannelDifference Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + flags = 0; + flags = force ? (flags | 1) : (flags & ~1); + + } public override void DeserializeBody(BinaryReader br) { + flags = br.ReadInt32(); + force = (flags & 1) != 0; channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br); -filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br); -pts = br.ReadInt32(); -limit = br.ReadInt32(); + filter = (TLAbsChannelMessagesFilter)ObjectUtils.DeserializeObject(br); + pts = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(channel,bw); -ObjectUtils.SerializeObject(filter,bw); -bw.Write(pts); -bw.Write(limit); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); + + ObjectUtils.SerializeObject(channel, bw); + ObjectUtils.SerializeObject(filter, bw); + bw.Write(pts); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLAbsChannelDifference)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs index 65b6318..db48aef 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetDifference.cs @@ -7,48 +7,62 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(168039573)] + [TLObject(630429265)] public class TLRequestGetDifference : TLMethod { public override int Constructor { get { - return 168039573; + return 630429265; } } - public int pts {get;set;} - public int date {get;set;} - public int qts {get;set;} - public Updates.TLAbsDifference Response{ get; set;} + public int flags { get; set; } + public int pts { get; set; } + public int? pts_total_limit { get; set; } + public int date { get; set; } + public int qts { get; set; } + public Updates.TLAbsDifference Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + flags = 0; + flags = pts_total_limit != null ? (flags | 1) : (flags & ~1); + + } public override void DeserializeBody(BinaryReader br) { + flags = br.ReadInt32(); pts = br.ReadInt32(); -date = br.ReadInt32(); -qts = br.ReadInt32(); + if ((flags & 1) != 0) + pts_total_limit = br.ReadInt32(); + else + pts_total_limit = null; + + date = br.ReadInt32(); + qts = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); + ComputeFlags(); + bw.Write(flags); bw.Write(pts); -bw.Write(date); -bw.Write(qts); + if ((flags & 1) != 0) + bw.Write(pts_total_limit.Value); + bw.Write(date); + bw.Write(qts); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLAbsDifference)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Updates/TLRequestGetState.cs b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs index 5d80b7b..b612359 100644 --- a/TeleSharp.TL/TL/Updates/TLRequestGetState.cs +++ b/TeleSharp.TL/TL/Updates/TLRequestGetState.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(-304838614)] + [TLObject(-304838614)] public class TLRequestGetState : TLMethod { public override int Constructor @@ -18,28 +18,28 @@ namespace TeleSharp.TL.Updates } } - public Updates.TLState Response{ get; set;} + public Updates.TLState Response { get; set; } - public void ComputeFlags() - { - - } + 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); + bw.Write(Constructor); - } + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Updates.TLState)ObjectUtils.DeserializeObject(br); + + } } } diff --git a/TeleSharp.TL/TL/Updates/TLState.cs b/TeleSharp.TL/TL/Updates/TLState.cs index d287979..750937f 100644 --- a/TeleSharp.TL/TL/Updates/TLState.cs +++ b/TeleSharp.TL/TL/Updates/TLState.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Updates { - [TLObject(-1519637954)] + [TLObject(-1519637954)] public class TLState : TLObject { public override int Constructor @@ -18,36 +18,36 @@ namespace TeleSharp.TL.Updates } } - public int pts {get;set;} - public int qts {get;set;} - public int date {get;set;} - public int seq {get;set;} - public int unread_count {get;set;} + public int pts { get; set; } + public int qts { get; set; } + public int date { get; set; } + public int seq { get; set; } + public int unread_count { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { pts = br.ReadInt32(); -qts = br.ReadInt32(); -date = br.ReadInt32(); -seq = br.ReadInt32(); -unread_count = br.ReadInt32(); + qts = br.ReadInt32(); + date = br.ReadInt32(); + seq = br.ReadInt32(); + unread_count = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(pts); -bw.Write(qts); -bw.Write(date); -bw.Write(seq); -bw.Write(unread_count); + bw.Write(qts); + bw.Write(date); + bw.Write(seq); + bw.Write(unread_count); } } diff --git a/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs b/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs new file mode 100644 index 0000000..e2ffe61 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLAbsCdnFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + public abstract class TLAbsCdnFile : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Upload/TLAbsFile.cs b/TeleSharp.TL/TL/Upload/TLAbsFile.cs new file mode 100644 index 0000000..14db55f --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLAbsFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + public abstract class TLAbsFile : TLObject + { + } +} diff --git a/TeleSharp.TL/TL/Upload/TLCdnFile.cs b/TeleSharp.TL/TL/Upload/TLCdnFile.cs new file mode 100644 index 0000000..f742fcd --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLCdnFile.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(-1449145777)] + public class TLCdnFile : TLAbsCdnFile + { + public override int Constructor + { + get + { + return -1449145777; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs b/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs new file mode 100644 index 0000000..f960d58 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLCdnFileReuploadNeeded.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(-290921362)] + public class TLCdnFileReuploadNeeded : TLAbsCdnFile + { + public override int Constructor + { + get + { + return -290921362; + } + } + + 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); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLFile.cs b/TeleSharp.TL/TL/Upload/TLFile.cs index 3cdd4cc..322d8fe 100644 --- a/TeleSharp.TL/TL/Upload/TLFile.cs +++ b/TeleSharp.TL/TL/Upload/TLFile.cs @@ -7,8 +7,8 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Upload { - [TLObject(157948117)] - public class TLFile : TLObject + [TLObject(157948117)] + public class TLFile : TLAbsFile { public override int Constructor { @@ -18,30 +18,30 @@ namespace TeleSharp.TL.Upload } } - public Storage.TLAbsFileType type {get;set;} - public int mtime {get;set;} - public byte[] bytes {get;set;} + public Storage.TLAbsFileType type { get; set; } + public int mtime { get; set; } + public byte[] bytes { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br); -mtime = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + mtime = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(type,bw); -bw.Write(mtime); -BytesUtil.Serialize(bytes,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(type, bw); + bw.Write(mtime); + BytesUtil.Serialize(bytes, bw); } } diff --git a/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs b/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs new file mode 100644 index 0000000..8fe0091 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLFileCdnRedirect.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(352864346)] + public class TLFileCdnRedirect : TLAbsFile + { + public override int Constructor + { + get + { + return 352864346; + } + } + + public int dc_id { get; set; } + public byte[] file_token { get; set; } + public byte[] encryption_key { get; set; } + public byte[] encryption_iv { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + dc_id = br.ReadInt32(); + file_token = BytesUtil.Deserialize(br); + encryption_key = BytesUtil.Deserialize(br); + encryption_iv = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(dc_id); + BytesUtil.Serialize(file_token, bw); + BytesUtil.Serialize(encryption_key, bw); + BytesUtil.Serialize(encryption_iv, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs new file mode 100644 index 0000000..e9eda73 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestGetCdnFile.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(536919235)] + public class TLRequestGetCdnFile : TLMethod + { + public override int Constructor + { + get + { + return 536919235; + } + } + + public byte[] file_token { get; set; } + public int offset { get; set; } + public int limit { get; set; } + public Upload.TLAbsCdnFile Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + file_token = BytesUtil.Deserialize(br); + offset = br.ReadInt32(); + limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + BytesUtil.Serialize(file_token, bw); + bw.Write(offset); + bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Upload.TLAbsCdnFile)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs index c34b8a0..c8937ef 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestGetFile.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Upload { - [TLObject(-475607115)] + [TLObject(-475607115)] public class TLRequestGetFile : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Upload } } - public TLAbsInputFileLocation location {get;set;} - public int offset {get;set;} - public int limit {get;set;} - public Upload.TLFile Response{ get; set;} + public TLAbsInputFileLocation location { get; set; } + public int offset { get; set; } + public int limit { get; set; } + public Upload.TLAbsFile Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { location = (TLAbsInputFileLocation)ObjectUtils.DeserializeObject(br); -offset = br.ReadInt32(); -limit = br.ReadInt32(); + offset = br.ReadInt32(); + limit = br.ReadInt32(); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(location,bw); -bw.Write(offset); -bw.Write(limit); + bw.Write(Constructor); + ObjectUtils.SerializeObject(location, bw); + bw.Write(offset); + bw.Write(limit); } - public override void deserializeResponse(BinaryReader br) - { - Response = (Upload.TLFile)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (Upload.TLAbsFile)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs b/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs new file mode 100644 index 0000000..1874950 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestGetWebFile.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(619086221)] + public class TLRequestGetWebFile : TLMethod + { + public override int Constructor + { + get + { + return 619086221; + } + } + + public TLInputWebFileLocation location { get; set; } + public int offset { get; set; } + public int limit { get; set; } + public Upload.TLWebFile Response { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + location = (TLInputWebFileLocation)ObjectUtils.DeserializeObject(br); + offset = br.ReadInt32(); + limit = br.ReadInt32(); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + ObjectUtils.SerializeObject(location, bw); + bw.Write(offset); + bw.Write(limit); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = (Upload.TLWebFile)ObjectUtils.DeserializeObject(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs b/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs new file mode 100644 index 0000000..786848f --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLRequestReuploadCdnFile.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(779755552)] + public class TLRequestReuploadCdnFile : TLMethod + { + public override int Constructor + { + get + { + return 779755552; + } + } + + public byte[] file_token { get; set; } + 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) + { + bw.Write(Constructor); + BytesUtil.Serialize(file_token, bw); + BytesUtil.Serialize(request_token, bw); + + } + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); + + } + } +} diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs index cb6c22f..4545674 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveBigFilePart.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Upload { - [TLObject(-562337987)] + [TLObject(-562337987)] public class TLRequestSaveBigFilePart : TLMethod { public override int Constructor @@ -18,40 +18,40 @@ namespace TeleSharp.TL.Upload } } - public long file_id {get;set;} - public int file_part {get;set;} - public int file_total_parts {get;set;} - public byte[] bytes {get;set;} - public bool Response{ get; set;} + public long file_id { get; set; } + public int file_part { get; set; } + public int file_total_parts { get; set; } + public byte[] bytes { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { file_id = br.ReadInt64(); -file_part = br.ReadInt32(); -file_total_parts = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + file_part = br.ReadInt32(); + file_total_parts = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(file_id); -bw.Write(file_part); -bw.Write(file_total_parts); -BytesUtil.Serialize(bytes,bw); + bw.Write(file_part); + bw.Write(file_total_parts); + BytesUtil.Serialize(bytes, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs index 86ce30a..40af142 100644 --- a/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs +++ b/TeleSharp.TL/TL/Upload/TLRequestSaveFilePart.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Upload { - [TLObject(-1291540959)] + [TLObject(-1291540959)] public class TLRequestSaveFilePart : TLMethod { public override int Constructor @@ -18,37 +18,37 @@ namespace TeleSharp.TL.Upload } } - public long file_id {get;set;} - public int file_part {get;set;} - public byte[] bytes {get;set;} - public bool Response{ get; set;} + public long file_id { get; set; } + public int file_part { get; set; } + public byte[] bytes { get; set; } + public bool Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { file_id = br.ReadInt64(); -file_part = br.ReadInt32(); -bytes = BytesUtil.Deserialize(br); + file_part = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); } public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); + bw.Write(Constructor); bw.Write(file_id); -bw.Write(file_part); -BytesUtil.Serialize(bytes,bw); + bw.Write(file_part); + BytesUtil.Serialize(bytes, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = BoolUtil.Deserialize(br); + public override void deserializeResponse(BinaryReader br) + { + Response = BoolUtil.Deserialize(br); - } + } } } diff --git a/TeleSharp.TL/TL/Upload/TLWebFile.cs b/TeleSharp.TL/TL/Upload/TLWebFile.cs new file mode 100644 index 0000000..147b427 --- /dev/null +++ b/TeleSharp.TL/TL/Upload/TLWebFile.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TeleSharp.TL; +namespace TeleSharp.TL.Upload +{ + [TLObject(568808380)] + public class TLWebFile : TLObject + { + public override int Constructor + { + get + { + return 568808380; + } + } + + public int size { get; set; } + public string mime_type { get; set; } + public Storage.TLAbsFileType file_type { get; set; } + public int mtime { get; set; } + public byte[] bytes { get; set; } + + + public void ComputeFlags() + { + + } + + public override void DeserializeBody(BinaryReader br) + { + size = br.ReadInt32(); + mime_type = StringUtil.Deserialize(br); + file_type = (Storage.TLAbsFileType)ObjectUtils.DeserializeObject(br); + mtime = br.ReadInt32(); + bytes = BytesUtil.Deserialize(br); + + } + + public override void SerializeBody(BinaryWriter bw) + { + bw.Write(Constructor); + bw.Write(size); + StringUtil.Serialize(mime_type, bw); + ObjectUtils.SerializeObject(file_type, bw); + bw.Write(mtime); + BytesUtil.Serialize(bytes, bw); + + } + } +} diff --git a/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs index da2e0d6..9372649 100644 --- a/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs +++ b/TeleSharp.TL/TL/Users/TLRequestGetFullUser.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Users { - [TLObject(-902781519)] + [TLObject(-902781519)] public class TLRequestGetFullUser : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Users } } - public TLAbsInputUser id {get;set;} - public TLUserFull Response{ get; set;} + public TLAbsInputUser id { get; set; } + public TLUserFull Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Users public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLUserFull)ObjectUtils.DeserializeObject(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLUserFull)ObjectUtils.DeserializeObject(br); - } + } } } diff --git a/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs index 4679594..0ece8c4 100644 --- a/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs +++ b/TeleSharp.TL/TL/Users/TLRequestGetUsers.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using TeleSharp.TL; namespace TeleSharp.TL.Users { - [TLObject(227648840)] + [TLObject(227648840)] public class TLRequestGetUsers : TLMethod { public override int Constructor @@ -18,14 +18,14 @@ namespace TeleSharp.TL.Users } } - public TLVector id {get;set;} - public TLVector Response{ get; set;} + public TLVector id { get; set; } + public TLVector Response { get; set; } - public void ComputeFlags() - { - - } + public void ComputeFlags() + { + + } public override void DeserializeBody(BinaryReader br) { @@ -35,14 +35,14 @@ namespace TeleSharp.TL.Users public override void SerializeBody(BinaryWriter bw) { - bw.Write(Constructor); - ObjectUtils.SerializeObject(id,bw); + bw.Write(Constructor); + ObjectUtils.SerializeObject(id, bw); } - public override void deserializeResponse(BinaryReader br) - { - Response = (TLVector)ObjectUtils.DeserializeVector(br); + public override void deserializeResponse(BinaryReader br) + { + Response = (TLVector)ObjectUtils.DeserializeVector(br); - } + } } } diff --git a/TeleSharp.TL/TeleSharp.TL.csproj b/TeleSharp.TL/TeleSharp.TL.csproj index 65252c2..7c6b30c 100644 --- a/TeleSharp.TL/TeleSharp.TL.csproj +++ b/TeleSharp.TL/TeleSharp.TL.csproj @@ -68,6 +68,7 @@ + @@ -84,6 +85,7 @@ + @@ -115,6 +117,8 @@ + + @@ -171,24 +175,24 @@ - - - + + + @@ -208,6 +212,7 @@ + @@ -239,12 +244,14 @@ + + @@ -260,9 +267,11 @@ + + @@ -274,7 +283,9 @@ + + @@ -290,6 +301,8 @@ + + @@ -297,7 +310,9 @@ + + @@ -307,6 +322,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -315,6 +352,10 @@ + + + + @@ -362,6 +403,7 @@ + @@ -377,15 +419,20 @@ + + + + + @@ -409,6 +456,8 @@ + + @@ -450,6 +499,7 @@ + @@ -525,6 +575,7 @@ + @@ -537,9 +588,12 @@ + + + @@ -547,6 +601,8 @@ + + @@ -555,10 +611,12 @@ + + @@ -574,11 +632,16 @@ + + + + + @@ -586,6 +649,7 @@ + @@ -601,6 +665,9 @@ + + + @@ -621,6 +688,7 @@ + @@ -633,6 +701,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -641,12 +736,26 @@ + + + + + + + + + + + + + + @@ -669,16 +778,29 @@ + + + + + + + + + + + + + @@ -690,10 +812,15 @@ + + + + + @@ -706,6 +833,7 @@ + @@ -714,12 +842,13 @@ - + + @@ -760,8 +889,10 @@ + + @@ -771,14 +902,24 @@ + + + + + + + + + +