├── .gitignore ├── .idea └── inspectionProfiles │ └── Project_Default.xml ├── LICENSE ├── README.MD ├── TelegramApi.iml ├── TelegramApi.ipr ├── pom.xml └── src ├── main ├── java │ ├── jawnae │ │ └── pyronet │ │ │ ├── ByteStream.java │ │ │ ├── PyroClient.java │ │ │ ├── PyroClientAdapter.java │ │ │ ├── PyroClientListener.java │ │ │ ├── PyroException.java │ │ │ └── PyroSelector.java │ └── org │ │ └── telegram │ │ ├── api │ │ ├── TLApiContext.java │ │ ├── TLAuthorization.java │ │ ├── TLConfig.java │ │ ├── TLDataJSON.java │ │ ├── TLDcOption.java │ │ ├── TLHighScore.java │ │ ├── TLNearestDc.java │ │ ├── TLReceivedNotifyMessage.java │ │ ├── account │ │ │ ├── TLAbsAccountPassword.java │ │ │ ├── TLAccountAuthorizations.java │ │ │ ├── TLAccountDaysTTL.java │ │ │ ├── TLAccountNoPassword.java │ │ │ ├── TLAccountPassword.java │ │ │ ├── TLAccountPasswordInputSettings.java │ │ │ ├── TLAccountPasswordSettings.java │ │ │ ├── TLAccountPrivacyRules.java │ │ │ └── TLAccountTmpPassword.java │ │ ├── auth │ │ │ ├── TLAuthorization.java │ │ │ ├── TLCheckedPhone.java │ │ │ ├── TLExportedAuthorization.java │ │ │ ├── TLPasswordRecovery.java │ │ │ ├── TLSentCode.java │ │ │ ├── codetype │ │ │ │ ├── TLAbsCodeType.java │ │ │ │ ├── TLCodeTypeCall.java │ │ │ │ ├── TLCodeTypeFlashCall.java │ │ │ │ └── TLCodeTypeSms.java │ │ │ └── sentcodetype │ │ │ │ ├── TLAbsSentCodeType.java │ │ │ │ ├── TLSentCodeTypeApp.java │ │ │ │ ├── TLSentCodeTypeCall.java │ │ │ │ ├── TLSentCodeTypeFlashCall.java │ │ │ │ └── TLSentCodeTypeSms.java │ │ ├── bot │ │ │ ├── TLBotCommand.java │ │ │ ├── TLBotInfo.java │ │ │ ├── TLInlineBotSwitchPm.java │ │ │ ├── inlinemessage │ │ │ │ ├── TLAbsBotInlineMessage.java │ │ │ │ ├── TLBotInlineMessageMediaAuto.java │ │ │ │ ├── TLBotInlineMessageMediaContact.java │ │ │ │ ├── TLBotInlineMessageMediaGeo.java │ │ │ │ ├── TLBotInlineMessageMediaVenue.java │ │ │ │ └── TLBotInlineMessageText.java │ │ │ └── inlineresult │ │ │ │ ├── TLAbsBotInlineResult.java │ │ │ │ ├── TLBotInlineMediaResult.java │ │ │ │ └── TLBotInlineResult.java │ │ ├── cdn │ │ │ ├── TLCdnConfig.java │ │ │ └── TLCdnPublicKey.java │ │ ├── channel │ │ │ ├── TLChannelParticipant.java │ │ │ ├── TLChannelParticipants.java │ │ │ ├── filters │ │ │ │ ├── TLAbsChannelMessagesFilter.java │ │ │ │ ├── TLChannelMessagesFilter.java │ │ │ │ └── TLChannelMessagesFilterEmpty.java │ │ │ └── participants │ │ │ │ ├── TLAbsChannelParticipant.java │ │ │ │ ├── TLChannelParticipant.java │ │ │ │ ├── TLChannelParticipantCreator.java │ │ │ │ ├── TLChannelParticipantEditor.java │ │ │ │ ├── TLChannelParticipantKicked.java │ │ │ │ ├── TLChannelParticipantModerator.java │ │ │ │ ├── TLChannelParticipantSelf.java │ │ │ │ ├── filters │ │ │ │ ├── TLAbsChannelParticipantsFilter.java │ │ │ │ ├── TLChannelParticipantsFilterAdmins.java │ │ │ │ ├── TLChannelParticipantsFilterBots.java │ │ │ │ ├── TLChannelParticipantsFilterKicked.java │ │ │ │ └── TLChannelParticipantsFilterRecent.java │ │ │ │ └── role │ │ │ │ ├── TLAbsChannelParticipantRole.java │ │ │ │ ├── TLChannelParticipantRoleEditor.java │ │ │ │ ├── TLChannelParticipantRoleEmpty.java │ │ │ │ └── TLChannelParticipantRoleModerator.java │ │ ├── chat │ │ │ ├── TLAbsChat.java │ │ │ ├── TLAbsChatFull.java │ │ │ ├── TLChat.java │ │ │ ├── TLChatEmpty.java │ │ │ ├── TLChatForbidden.java │ │ │ ├── TLChatFull.java │ │ │ ├── channel │ │ │ │ ├── TLChannel.java │ │ │ │ ├── TLChannelForbidden.java │ │ │ │ └── TLChannelFull.java │ │ │ ├── invite │ │ │ │ ├── TLAbsChatInvite.java │ │ │ │ ├── TLChatInvite.java │ │ │ │ ├── TLChatInviteAlready.java │ │ │ │ ├── TLChatInviteEmpty.java │ │ │ │ └── TLChatInviteExported.java │ │ │ ├── participant │ │ │ │ ├── chatparticipant │ │ │ │ │ ├── TLAbsChatParticipant.java │ │ │ │ │ ├── TLChatParticipant.java │ │ │ │ │ ├── TLChatParticipantAdmin.java │ │ │ │ │ └── TLChatParticipantCreator.java │ │ │ │ └── chatparticipants │ │ │ │ │ ├── TLAbsChatParticipants.java │ │ │ │ │ ├── TLChatParticipants.java │ │ │ │ │ └── TLChatParticipantsForbidden.java │ │ │ └── photo │ │ │ │ ├── TLAbsChatPhoto.java │ │ │ │ ├── TLChatPhoto.java │ │ │ │ └── TLChatPhotoEmpty.java │ │ ├── contact │ │ │ ├── TLContact.java │ │ │ ├── TLContactBlocked.java │ │ │ ├── TLContactStatus.java │ │ │ ├── TLImportedContact.java │ │ │ └── link │ │ │ │ ├── TLAbsContactLink.java │ │ │ │ ├── TLContactLinkContact.java │ │ │ │ ├── TLContactLinkHasPhone.java │ │ │ │ ├── TLContactLinkNone.java │ │ │ │ └── TLContactLinkUnknown.java │ │ ├── contacts │ │ │ ├── TLAbsContacts.java │ │ │ ├── TLContacts.java │ │ │ ├── TLContactsFound.java │ │ │ ├── TLContactsLink.java │ │ │ ├── TLContactsNotModified.java │ │ │ ├── TLImportedContacts.java │ │ │ ├── TLResolvedPeer.java │ │ │ ├── blocked │ │ │ │ ├── TLAbsBlocked.java │ │ │ │ ├── TLBlocked.java │ │ │ │ └── TLBlockedSlice.java │ │ │ └── toppeers │ │ │ │ ├── TLAbsContactsTopPeers.java │ │ │ │ ├── TLContactsTopPeers.java │ │ │ │ └── TLContactsTopPeersNotModified.java │ │ ├── decryptedmessage │ │ │ ├── TLAbsDecryptedMessage.java │ │ │ ├── TLAbsDecryptedMessageMedia.java │ │ │ ├── TLDecryptedMessage.java │ │ │ ├── TLDecryptedMessageAction.java │ │ │ ├── TLDecryptedMessageActionAbortKey.java │ │ │ ├── TLDecryptedMessageActionAcceptKey.java │ │ │ ├── TLDecryptedMessageActionCommitKey.java │ │ │ ├── TLDecryptedMessageActionFlushHistory.java │ │ │ ├── TLDecryptedMessageActionNoop.java │ │ │ ├── TLDecryptedMessageActionNotifyLayer.java │ │ │ ├── TLDecryptedMessageActionReadMessages.java │ │ │ ├── TLDecryptedMessageActionRequestKey.java │ │ │ ├── TLDecryptedMessageActionResend.java │ │ │ ├── TLDecryptedMessageActionSetMessageTTL.java │ │ │ ├── TLDecryptedMessageActionTyping.java │ │ │ ├── TLDecryptedMessageLayer.java │ │ │ ├── TLDecryptedMessageMediaAudio.java │ │ │ ├── TLDecryptedMessageMediaContact.java │ │ │ ├── TLDecryptedMessageMediaDocument.java │ │ │ ├── TLDecryptedMessageMediaEmpty.java │ │ │ ├── TLDecryptedMessageMediaExternalDocument.java │ │ │ ├── TLDecryptedMessageMediaGeoPoint.java │ │ │ ├── TLDecryptedMessageMediaPhoto.java │ │ │ ├── TLDecryptedMessageMediaVideo.java │ │ │ └── TLDecryptedMessageService.java │ │ ├── dialog │ │ │ └── TLDialog.java │ │ ├── disablefeature │ │ │ └── TLDisabledFeature.java │ │ ├── document │ │ │ ├── TLAbsDocument.java │ │ │ ├── TLDocument.java │ │ │ ├── TLDocumentEmpty.java │ │ │ └── attribute │ │ │ │ ├── TLAbsDocumentAttribute.java │ │ │ │ ├── TLDocumentAttributeAnimated.java │ │ │ │ ├── TLDocumentAttributeAudio.java │ │ │ │ ├── TLDocumentAttributeFilename.java │ │ │ │ ├── TLDocumentAttributeHasStickers.java │ │ │ │ ├── TLDocumentAttributeImageSize.java │ │ │ │ ├── TLDocumentAttributeSticker.java │ │ │ │ └── TLDocumentAttributeVideo.java │ │ ├── draft │ │ │ ├── TLAbsDraftMessage.java │ │ │ ├── TLDraftMessage.java │ │ │ └── TLDraftMessageEmpty.java │ │ ├── encrypted │ │ │ ├── chat │ │ │ │ ├── TLAbsEncryptedChat.java │ │ │ │ ├── TLEncryptedChat.java │ │ │ │ ├── TLEncryptedChatDiscarded.java │ │ │ │ ├── TLEncryptedChatEmpty.java │ │ │ │ ├── TLEncryptedChatRequested.java │ │ │ │ └── TLEncryptedChatWaiting.java │ │ │ ├── file │ │ │ │ ├── TLAbsEncryptedFile.java │ │ │ │ ├── TLEncryptedFile.java │ │ │ │ └── TLEncryptedFileEmpty.java │ │ │ └── message │ │ │ │ ├── TLAbsEncryptedMessage.java │ │ │ │ ├── TLEncryptedMessage.java │ │ │ │ └── TLEncryptedMessageService.java │ │ ├── engine │ │ │ ├── ApiCallback.java │ │ │ ├── AppInfo.java │ │ │ ├── GzipRequest.java │ │ │ ├── Logger.java │ │ │ ├── LoggerInterface.java │ │ │ ├── RpcCallback.java │ │ │ ├── RpcCallbackEx.java │ │ │ ├── RpcException.java │ │ │ ├── TelegramApi.java │ │ │ ├── TimeoutException.java │ │ │ ├── file │ │ │ │ ├── DownloadListener.java │ │ │ │ ├── Downloader.java │ │ │ │ ├── UploadListener.java │ │ │ │ └── Uploader.java │ │ │ └── storage │ │ │ │ └── AbsApiState.java │ │ ├── file │ │ │ └── location │ │ │ │ ├── TLAbsFileLocation.java │ │ │ │ ├── TLFileLocation.java │ │ │ │ └── TLFileLocationUnavailable.java │ │ ├── foundgif │ │ │ ├── TLAbsFoundGif.java │ │ │ ├── TLFoundGif.java │ │ │ └── TLFoundGifCached.java │ │ ├── functions │ │ │ ├── TLRequestBotsAnswerWebhookJSONQuery.java │ │ │ ├── TLRequestInitConnection.java │ │ │ ├── TLRequestInvokeAfterMsg.java │ │ │ ├── TLRequestInvokeAfterMsgs.java │ │ │ ├── TLRequestInvokeWithLayer.java │ │ │ ├── TLRequestInvokeWithoutUpdates.java │ │ │ ├── account │ │ │ │ ├── TLRequestAccountChangePhone.java │ │ │ │ ├── TLRequestAccountCheckUsername.java │ │ │ │ ├── TLRequestAccountConfirmPhone.java │ │ │ │ ├── TLRequestAccountDeleteAccount.java │ │ │ │ ├── TLRequestAccountGetAccountTTL.java │ │ │ │ ├── TLRequestAccountGetAuthorizations.java │ │ │ │ ├── TLRequestAccountGetNotifySettings.java │ │ │ │ ├── TLRequestAccountGetPassword.java │ │ │ │ ├── TLRequestAccountGetPasswordSettings.java │ │ │ │ ├── TLRequestAccountGetPrivacy.java │ │ │ │ ├── TLRequestAccountGetWallPapers.java │ │ │ │ ├── TLRequestAccountRegisterDevice.java │ │ │ │ ├── TLRequestAccountReportPeer.java │ │ │ │ ├── TLRequestAccountResetAuthorization.java │ │ │ │ ├── TLRequestAccountResetNotifySettings.java │ │ │ │ ├── TLRequestAccountSendChangePhoneCode.java │ │ │ │ ├── TLRequestAccountSendConfirmPhoneCode.java │ │ │ │ ├── TLRequestAccountSetAccountTTL.java │ │ │ │ ├── TLRequestAccountSetPrivacy.java │ │ │ │ ├── TLRequestAccountUnregisterDevice.java │ │ │ │ ├── TLRequestAccountUpdateDeviceLocked.java │ │ │ │ ├── TLRequestAccountUpdateNotifySettings.java │ │ │ │ ├── TLRequestAccountUpdatePasswordSettings.java │ │ │ │ ├── TLRequestAccountUpdateProfile.java │ │ │ │ ├── TLRequestAccountUpdateStatus.java │ │ │ │ ├── TLRequestAccountUpdateUsername.java │ │ │ │ └── TLRequestGetTmpPassword.java │ │ │ ├── auth │ │ │ │ ├── TLRequestAuthBindTempAuthKey.java │ │ │ │ ├── TLRequestAuthCancelCode.java │ │ │ │ ├── TLRequestAuthCheckPassword.java │ │ │ │ ├── TLRequestAuthCheckPhone.java │ │ │ │ ├── TLRequestAuthDropTempAuthKeys.java │ │ │ │ ├── TLRequestAuthExportAuthorization.java │ │ │ │ ├── TLRequestAuthImportAuthorization.java │ │ │ │ ├── TLRequestAuthImportBotAuthorization.java │ │ │ │ ├── TLRequestAuthLogOut.java │ │ │ │ ├── TLRequestAuthRecoverPassword.java │ │ │ │ ├── TLRequestAuthRequestPasswordRecovery.java │ │ │ │ ├── TLRequestAuthResendCode.java │ │ │ │ ├── TLRequestAuthResetAuthorizations.java │ │ │ │ ├── TLRequestAuthSendCode.java │ │ │ │ ├── TLRequestAuthSendInvites.java │ │ │ │ ├── TLRequestAuthSignIn.java │ │ │ │ └── TLRequestAuthSignUp.java │ │ │ ├── bots │ │ │ │ └── TLRequestBotsSendCustomRequest.java │ │ │ ├── channels │ │ │ │ ├── TLRequestChannelsCheckUsername.java │ │ │ │ ├── TLRequestChannelsCreateChannel.java │ │ │ │ ├── TLRequestChannelsDeleteChannel.java │ │ │ │ ├── TLRequestChannelsDeleteMessages.java │ │ │ │ ├── TLRequestChannelsDeleteUserHistory.java │ │ │ │ ├── TLRequestChannelsEditAbout.java │ │ │ │ ├── TLRequestChannelsEditAdmin.java │ │ │ │ ├── TLRequestChannelsEditPhoto.java │ │ │ │ ├── TLRequestChannelsEditTitle.java │ │ │ │ ├── TLRequestChannelsExportInvite.java │ │ │ │ ├── TLRequestChannelsExportMessageLink.java │ │ │ │ ├── TLRequestChannelsGetAdminedPublicChannels.java │ │ │ │ ├── TLRequestChannelsGetChannels.java │ │ │ │ ├── TLRequestChannelsGetFullChannel.java │ │ │ │ ├── TLRequestChannelsGetMessages.java │ │ │ │ ├── TLRequestChannelsGetParticipant.java │ │ │ │ ├── TLRequestChannelsGetParticipants.java │ │ │ │ ├── TLRequestChannelsInviteToChannel.java │ │ │ │ ├── TLRequestChannelsJoinChannel.java │ │ │ │ ├── TLRequestChannelsKickFromChannel.java │ │ │ │ ├── TLRequestChannelsLeaveChannel.java │ │ │ │ ├── TLRequestChannelsReadHistory.java │ │ │ │ ├── TLRequestChannelsReportSpam.java │ │ │ │ ├── TLRequestChannelsToggleInvites.java │ │ │ │ ├── TLRequestChannelsToggleSignatures.java │ │ │ │ ├── TLRequestChannelsUpdatePinnedMessage.java │ │ │ │ └── TLRequestChannelsUpdateUsername.java │ │ │ ├── contacts │ │ │ │ ├── TLRequestContactsBlock.java │ │ │ │ ├── TLRequestContactsDeleteContact.java │ │ │ │ ├── TLRequestContactsDeleteContacts.java │ │ │ │ ├── TLRequestContactsExportCard.java │ │ │ │ ├── TLRequestContactsGetBlocked.java │ │ │ │ ├── TLRequestContactsGetContacts.java │ │ │ │ ├── TLRequestContactsGetStatuses.java │ │ │ │ ├── TLRequestContactsGetTopPeers.java │ │ │ │ ├── TLRequestContactsImportCard.java │ │ │ │ ├── TLRequestContactsImportContacts.java │ │ │ │ ├── TLRequestContactsResetTopPeerRating.java │ │ │ │ ├── TLRequestContactsResolveUsername.java │ │ │ │ ├── TLRequestContactsSearch.java │ │ │ │ └── TLRequestContactsUnblock.java │ │ │ ├── help │ │ │ │ ├── TLRequestHelpGetAppChangelog.java │ │ │ │ ├── TLRequestHelpGetAppUpdate.java │ │ │ │ ├── TLRequestHelpGetCdnConfig.java │ │ │ │ ├── TLRequestHelpGetConfig.java │ │ │ │ ├── TLRequestHelpGetInviteText.java │ │ │ │ ├── TLRequestHelpGetNearestDc.java │ │ │ │ ├── TLRequestHelpGetSupport.java │ │ │ │ ├── TLRequestHelpGetTermsOfService.java │ │ │ │ ├── TLRequestHelpSaveAppLog.java │ │ │ │ └── TLRequestHelpSetBotUpdatesStatus.java │ │ │ ├── messages │ │ │ │ ├── TLRequestMessagesAcceptEncryption.java │ │ │ │ ├── TLRequestMessagesAddChatUser.java │ │ │ │ ├── TLRequestMessagesCheckChatInvite.java │ │ │ │ ├── TLRequestMessagesClearRecentStickers.java │ │ │ │ ├── TLRequestMessagesCreateChat.java │ │ │ │ ├── TLRequestMessagesDeleteChatUser.java │ │ │ │ ├── TLRequestMessagesDeleteHistory.java │ │ │ │ ├── TLRequestMessagesDeleteMessages.java │ │ │ │ ├── TLRequestMessagesDiscardEncryption.java │ │ │ │ ├── TLRequestMessagesEditChatAdmin.java │ │ │ │ ├── TLRequestMessagesEditChatPhoto.java │ │ │ │ ├── TLRequestMessagesEditChatTitle.java │ │ │ │ ├── TLRequestMessagesEditInlineBotMessage.java │ │ │ │ ├── TLRequestMessagesEditMessage.java │ │ │ │ ├── TLRequestMessagesExportChatInvite.java │ │ │ │ ├── TLRequestMessagesForwardMessage.java │ │ │ │ ├── TLRequestMessagesForwardMessages.java │ │ │ │ ├── TLRequestMessagesGetAllChats.java │ │ │ │ ├── TLRequestMessagesGetAllDrafts.java │ │ │ │ ├── TLRequestMessagesGetAllStickers.java │ │ │ │ ├── TLRequestMessagesGetArchivedStickers.java │ │ │ │ ├── TLRequestMessagesGetAttachedStickers.java │ │ │ │ ├── TLRequestMessagesGetBotCallbackAnswer.java │ │ │ │ ├── TLRequestMessagesGetChats.java │ │ │ │ ├── TLRequestMessagesGetCommonChats.java │ │ │ │ ├── TLRequestMessagesGetDhConfig.java │ │ │ │ ├── TLRequestMessagesGetDialogs.java │ │ │ │ ├── TLRequestMessagesGetDocumentByHash.java │ │ │ │ ├── TLRequestMessagesGetFeaturedStickers.java │ │ │ │ ├── TLRequestMessagesGetFullChat.java │ │ │ │ ├── TLRequestMessagesGetGameHighScores.java │ │ │ │ ├── TLRequestMessagesGetHistory.java │ │ │ │ ├── TLRequestMessagesGetInlineBotResults.java │ │ │ │ ├── TLRequestMessagesGetInlineGameHighScores.java │ │ │ │ ├── TLRequestMessagesGetMaskStickers.java │ │ │ │ ├── TLRequestMessagesGetMessageEditData.java │ │ │ │ ├── TLRequestMessagesGetMessages.java │ │ │ │ ├── TLRequestMessagesGetMessagesViews.java │ │ │ │ ├── TLRequestMessagesGetPeerDialogs.java │ │ │ │ ├── TLRequestMessagesGetPeerSettings.java │ │ │ │ ├── TLRequestMessagesGetPinnedDialogs.java │ │ │ │ ├── TLRequestMessagesGetRecentStickers.java │ │ │ │ ├── TLRequestMessagesGetSavedGifs.java │ │ │ │ ├── TLRequestMessagesGetStickersSet.java │ │ │ │ ├── TLRequestMessagesGetWebPage.java │ │ │ │ ├── TLRequestMessagesGetWebPagePreview.java │ │ │ │ ├── TLRequestMessagesHideReportSpam.java │ │ │ │ ├── TLRequestMessagesImportChatInvite.java │ │ │ │ ├── TLRequestMessagesInstallStickersSet.java │ │ │ │ ├── TLRequestMessagesMigrateChat.java │ │ │ │ ├── TLRequestMessagesReadContents.java │ │ │ │ ├── TLRequestMessagesReadEncryptedHistory.java │ │ │ │ ├── TLRequestMessagesReadFeaturedStickers.java │ │ │ │ ├── TLRequestMessagesReadHistory.java │ │ │ │ ├── TLRequestMessagesReceivedMessages.java │ │ │ │ ├── TLRequestMessagesReceivedQueue.java │ │ │ │ ├── TLRequestMessagesReorderPinnedDialogs.java │ │ │ │ ├── TLRequestMessagesReorderStickerSets.java │ │ │ │ ├── TLRequestMessagesReportEncryptedSpam.java │ │ │ │ ├── TLRequestMessagesReportSpam.java │ │ │ │ ├── TLRequestMessagesRequestEncryption.java │ │ │ │ ├── TLRequestMessagesSaveDraft.java │ │ │ │ ├── TLRequestMessagesSaveGif.java │ │ │ │ ├── TLRequestMessagesSaveRecentStickers.java │ │ │ │ ├── TLRequestMessagesSearch.java │ │ │ │ ├── TLRequestMessagesSearchGifs.java │ │ │ │ ├── TLRequestMessagesSearchGlobal.java │ │ │ │ ├── TLRequestMessagesSendEncrypted.java │ │ │ │ ├── TLRequestMessagesSendEncryptedFile.java │ │ │ │ ├── TLRequestMessagesSendEncryptedService.java │ │ │ │ ├── TLRequestMessagesSendInlineBotResults.java │ │ │ │ ├── TLRequestMessagesSendMedia.java │ │ │ │ ├── TLRequestMessagesSendMessage.java │ │ │ │ ├── TLRequestMessagesSetBotCallbackAnswer.java │ │ │ │ ├── TLRequestMessagesSetBotPrecheckoutResults.java │ │ │ │ ├── TLRequestMessagesSetBotShippingResults.java │ │ │ │ ├── TLRequestMessagesSetEncryptedTyping.java │ │ │ │ ├── TLRequestMessagesSetGameScore.java │ │ │ │ ├── TLRequestMessagesSetInlineBotResults.java │ │ │ │ ├── TLRequestMessagesSetInlineGameScore.java │ │ │ │ ├── TLRequestMessagesSetTyping.java │ │ │ │ ├── TLRequestMessagesStartBot.java │ │ │ │ ├── TLRequestMessagesToggleChatAdmins.java │ │ │ │ ├── TLRequestMessagesToggleDialogPin.java │ │ │ │ └── TLRequestMessagesUninstallStickersSet.java │ │ │ ├── payments │ │ │ │ ├── TLRequestPaymentsClearSavedInfo.java │ │ │ │ ├── TLRequestPaymentsGetPaymentForm.java │ │ │ │ ├── TLRequestPaymentsGetPaymentReceipt.java │ │ │ │ ├── TLRequestPaymentsGetSavedInfo.java │ │ │ │ ├── TLRequestPaymentsSendPaymentForm.java │ │ │ │ └── TLRequestPaymentsValidateRequestedInfo.java │ │ │ ├── phone │ │ │ │ ├── TLRequestPhoneAcceptCall.java │ │ │ │ ├── TLRequestPhoneConfirmCall.java │ │ │ │ ├── TLRequestPhoneDiscardCall.java │ │ │ │ ├── TLRequestPhoneGetCallConfig.java │ │ │ │ ├── TLRequestPhoneReceivedCall.java │ │ │ │ ├── TLRequestPhoneRequestCall.java │ │ │ │ ├── TLRequestPhoneSaveCallDebug.java │ │ │ │ └── TLRequestPhoneSetCallRating.java │ │ │ ├── photos │ │ │ │ ├── TLRequestPhotosDeletePhotos.java │ │ │ │ ├── TLRequestPhotosGetUserPhotos.java │ │ │ │ ├── TLRequestPhotosUpdateProfilePhoto.java │ │ │ │ └── TLRequestPhotosUploadProfilePhoto.java │ │ │ ├── updates │ │ │ │ ├── TLRequestUpdatesGetChannelDifference.java │ │ │ │ ├── TLRequestUpdatesGetDifference.java │ │ │ │ └── TLRequestUpdatesGetState.java │ │ │ ├── upload │ │ │ │ ├── TLRequestReuploadCdnFile.java │ │ │ │ ├── TLRequestUploadGetCdnFile.java │ │ │ │ ├── TLRequestUploadGetFile.java │ │ │ │ ├── TLRequestUploadGetWebFile.java │ │ │ │ ├── TLRequestUploadSaveBigFilePart.java │ │ │ │ └── TLRequestUploadSaveFilePart.java │ │ │ └── users │ │ │ │ ├── TLRequestUsersGetFullUser.java │ │ │ │ └── TLRequestUsersGetUsers.java │ │ ├── game │ │ │ └── TLGame.java │ │ ├── geo │ │ │ └── point │ │ │ │ ├── TLAbsGeoPoint.java │ │ │ │ ├── TLGeoPoint.java │ │ │ │ └── TLGeoPointEmpty.java │ │ ├── help │ │ │ ├── TLAbsAppUpdate.java │ │ │ ├── TLAppUpdate.java │ │ │ ├── TLInviteText.java │ │ │ ├── TLNoAppUpdate.java │ │ │ ├── TLSupport.java │ │ │ └── TLTermsOfService.java │ │ ├── input │ │ │ ├── TLInputAppEvent.java │ │ │ ├── TLInputPhoneContact.java │ │ │ ├── bot │ │ │ │ ├── TLInputBotInlineMessageId.java │ │ │ │ ├── inlinemessage │ │ │ │ │ ├── TLAbsInputBotInlineMessage.java │ │ │ │ │ ├── TLInputBotInlineMessageGame.java │ │ │ │ │ ├── TLInputBotInlineMessageMediaAuto.java │ │ │ │ │ ├── TLInputBotInlineMessageMediaContact.java │ │ │ │ │ ├── TLInputBotInlineMessageMediaGeo.java │ │ │ │ │ ├── TLInputBotInlineMessageMediaVenue.java │ │ │ │ │ └── TLInputBotInlineMessageText.java │ │ │ │ └── inlineresult │ │ │ │ │ ├── TLAbsInputBotInlineResult.java │ │ │ │ │ ├── TLInputBotInlineResult.java │ │ │ │ │ ├── TLInputBotInlineResultDocument.java │ │ │ │ │ ├── TLInputBotInlineResultGame.java │ │ │ │ │ └── TLInputBotInlineResultPhoto.java │ │ │ ├── chat │ │ │ │ ├── TLAbsInputChannel.java │ │ │ │ ├── TLInputChannel.java │ │ │ │ ├── TLInputChannelEmpty.java │ │ │ │ └── photo │ │ │ │ │ ├── TLAbsInputChatPhoto.java │ │ │ │ │ ├── TLInputChatPhoto.java │ │ │ │ │ ├── TLInputChatPhotoEmpty.java │ │ │ │ │ └── TLInputChatUploadedPhoto.java │ │ │ ├── document │ │ │ │ ├── TLAbsInputDocument.java │ │ │ │ ├── TLInputDocument.java │ │ │ │ └── TLInputDocumentEmpty.java │ │ │ ├── encrypted │ │ │ │ ├── TLInputEncryptedChat.java │ │ │ │ └── file │ │ │ │ │ ├── TLAbsInputEncryptedFile.java │ │ │ │ │ ├── TLInputEncryptedFile.java │ │ │ │ │ ├── TLInputEncryptedFileBigUploaded.java │ │ │ │ │ ├── TLInputEncryptedFileEmpty.java │ │ │ │ │ ├── TLInputEncryptedFileUploaded.java │ │ │ │ │ └── location │ │ │ │ │ └── TLInputEncryptedFileLocation.java │ │ │ ├── file │ │ │ │ ├── TLAbsInputFile.java │ │ │ │ ├── TLInputFile.java │ │ │ │ └── TLInputFileBig.java │ │ │ ├── filelocation │ │ │ │ ├── TLAbsInputFileLocation.java │ │ │ │ ├── TLInputDocumentFileLocation.java │ │ │ │ └── TLInputFileLocation.java │ │ │ ├── game │ │ │ │ ├── TLAbsInputGame.java │ │ │ │ ├── TLInputGameId.java │ │ │ │ └── TLInputGameShortName.java │ │ │ ├── geopoint │ │ │ │ ├── TLAbsInputGeoPoint.java │ │ │ │ ├── TLInputGeoPoint.java │ │ │ │ └── TLInputGeoPointEmpty.java │ │ │ ├── media │ │ │ │ ├── TLAbsInputMedia.java │ │ │ │ ├── TLInputMediaContact.java │ │ │ │ ├── TLInputMediaDocument.java │ │ │ │ ├── TLInputMediaDocumentExternal.java │ │ │ │ ├── TLInputMediaEmpty.java │ │ │ │ ├── TLInputMediaGame.java │ │ │ │ ├── TLInputMediaGeoPoint.java │ │ │ │ ├── TLInputMediaGifExternal.java │ │ │ │ ├── TLInputMediaInvoice.java │ │ │ │ ├── TLInputMediaPhoto.java │ │ │ │ ├── TLInputMediaPhotoExternal.java │ │ │ │ ├── TLInputMediaUploadedDocument.java │ │ │ │ ├── TLInputMediaUploadedPhoto.java │ │ │ │ ├── TLInputMediaUploadedThumbDocument.java │ │ │ │ └── TLInputMediaVenue.java │ │ │ ├── messages │ │ │ │ ├── entity │ │ │ │ │ ├── TLAbsInputMessageEntity.java │ │ │ │ │ └── TLInputMessageEntityMentionName.java │ │ │ │ └── filter │ │ │ │ │ ├── TLAbsMessagesFilter.java │ │ │ │ │ ├── TLMessagesFilterChatPhoto.java │ │ │ │ │ ├── TLMessagesFilterDocument.java │ │ │ │ │ ├── TLMessagesFilterEmpty.java │ │ │ │ │ ├── TLMessagesFilterGif.java │ │ │ │ │ ├── TLMessagesFilterMusic.java │ │ │ │ │ ├── TLMessagesFilterPhoneCalls.java │ │ │ │ │ ├── TLMessagesFilterPhotoVideo.java │ │ │ │ │ ├── TLMessagesFilterPhotoVideoDocuments.java │ │ │ │ │ ├── TLMessagesFilterPhotos.java │ │ │ │ │ ├── TLMessagesFilterRoundVideo.java │ │ │ │ │ ├── TLMessagesFilterRoundVoice.java │ │ │ │ │ ├── TLMessagesFilterUrl.java │ │ │ │ │ ├── TLMessagesFilterVideo.java │ │ │ │ │ └── TLMessagesFilterVoice.java │ │ │ ├── notify │ │ │ │ ├── TLAbsInputNotifyPeer.java │ │ │ │ ├── TLInputNotifyAll.java │ │ │ │ ├── TLInputNotifyChats.java │ │ │ │ ├── TLInputNotifyPeer.java │ │ │ │ └── TLInputNotifyUsers.java │ │ │ ├── paymentapi │ │ │ │ ├── TLInputWebDocument.java │ │ │ │ ├── TLInputWebFileLocation.java │ │ │ │ └── paymentcredentials │ │ │ │ │ ├── TLAbsInputPaymentCredentials.java │ │ │ │ │ ├── TLInputPaymentCredentials.java │ │ │ │ │ └── TLInputPaymentCredentialsSaved.java │ │ │ ├── peer │ │ │ │ ├── TLAbsInputPeer.java │ │ │ │ ├── TLInputPeerChannel.java │ │ │ │ ├── TLInputPeerChat.java │ │ │ │ ├── TLInputPeerEmpty.java │ │ │ │ ├── TLInputPeerSelf.java │ │ │ │ ├── TLInputPeerUser.java │ │ │ │ └── notify │ │ │ │ │ ├── TLInputPeerNotifySettings.java │ │ │ │ │ └── events │ │ │ │ │ ├── TLAbsInputPeerNotifyEvents.java │ │ │ │ │ ├── TLInputPeerNotifyEventsAll.java │ │ │ │ │ └── TLInputPeerNotifyEventsEmpty.java │ │ │ ├── phonecall │ │ │ │ └── TLInputPhoneCall.java │ │ │ ├── photo │ │ │ │ ├── TLAbsInputPhoto.java │ │ │ │ ├── TLInputPhoto.java │ │ │ │ └── TLInputPhotoEmpty.java │ │ │ ├── privacy │ │ │ │ ├── inputprivacykey │ │ │ │ │ ├── TLAbsInputPrivacyKey.java │ │ │ │ │ ├── TLInputPrivacyKeyChatInvite.java │ │ │ │ │ ├── TLInputPrivacyKeyPhoneCall.java │ │ │ │ │ └── TLInputPrivacyKeyStatusTimestamp.java │ │ │ │ └── inputprivacyrule │ │ │ │ │ ├── TLAbsInputPrivacyRule.java │ │ │ │ │ ├── TLInputPrivacyValueAllowAll.java │ │ │ │ │ ├── TLInputPrivacyValueAllowContacts.java │ │ │ │ │ ├── TLInputPrivacyValueAllowUsers.java │ │ │ │ │ ├── TLInputPrivacyValueDisallowAll.java │ │ │ │ │ ├── TLInputPrivacyValueDisallowContacts.java │ │ │ │ │ └── TLInputPrivacyValueDisallowUsers.java │ │ │ ├── reportspamreason │ │ │ │ ├── TLAbsReportSpamReason.java │ │ │ │ ├── TLReportSpamReasonOther.java │ │ │ │ ├── TLReportSpamReasonPornography.java │ │ │ │ ├── TLReportSpamReasonSpam.java │ │ │ │ └── TLReportSpamReasonViolence.java │ │ │ ├── sticker │ │ │ │ ├── media │ │ │ │ │ ├── TLAbsInputStickeredMedia.java │ │ │ │ │ ├── TLInputStickeredMediaDocument.java │ │ │ │ │ └── TLInputStickeredMediaPhoto.java │ │ │ │ └── set │ │ │ │ │ ├── TLAbsInputStickerSet.java │ │ │ │ │ ├── TLInputStickerSetEmpty.java │ │ │ │ │ ├── TLInputStickerSetId.java │ │ │ │ │ └── TLInputStickerSetShortName.java │ │ │ └── user │ │ │ │ ├── TLAbsInputUser.java │ │ │ │ ├── TLInputUser.java │ │ │ │ ├── TLInputUserEmpty.java │ │ │ │ └── TLInputUserSelf.java │ │ ├── keyboard │ │ │ ├── TLKeyboardButtonRow.java │ │ │ ├── button │ │ │ │ ├── TLAbsKeyboardButton.java │ │ │ │ ├── TLKeyboardButton.java │ │ │ │ ├── TLKeyboardButtonBuy.java │ │ │ │ ├── TLKeyboardButtonCallback.java │ │ │ │ ├── TLKeyboardButtonGame.java │ │ │ │ ├── TLKeyboardButtonRequestGeoLocation.java │ │ │ │ ├── TLKeyboardButtonRequestPhone.java │ │ │ │ ├── TLKeyboardButtonRequestSwitchInline.java │ │ │ │ └── TLKeyboardButtonUrl.java │ │ │ └── replymarkup │ │ │ │ ├── TLAbsReplyMarkup.java │ │ │ │ ├── TLReplayInlineKeyboardMarkup.java │ │ │ │ ├── TLReplayKeyboardForceReply.java │ │ │ │ ├── TLReplayKeyboardHide.java │ │ │ │ └── TLReplayKeyboardMarkup.java │ │ ├── message │ │ │ ├── TLAbsMessage.java │ │ │ ├── TLExportedMessageLink.java │ │ │ ├── TLMessage.java │ │ │ ├── TLMessageEmpty.java │ │ │ ├── TLMessageFwdHeader.java │ │ │ ├── TLMessageRange.java │ │ │ ├── TLMessageService.java │ │ │ ├── action │ │ │ │ ├── TLAbsMessageAction.java │ │ │ │ ├── TLMessageActionChannelCreate.java │ │ │ │ ├── TLMessageActionChannelMigratedFrom.java │ │ │ │ ├── TLMessageActionChatAddUser.java │ │ │ │ ├── TLMessageActionChatCreate.java │ │ │ │ ├── TLMessageActionChatDeletePhoto.java │ │ │ │ ├── TLMessageActionChatDeleteUser.java │ │ │ │ ├── TLMessageActionChatEditPhoto.java │ │ │ │ ├── TLMessageActionChatEditTitle.java │ │ │ │ ├── TLMessageActionChatJoinedByLink.java │ │ │ │ ├── TLMessageActionEmpty.java │ │ │ │ ├── TLMessageActionGameScore.java │ │ │ │ ├── TLMessageActionHistoryClear.java │ │ │ │ ├── TLMessageActionMigrateTo.java │ │ │ │ ├── TLMessageActionPaymentSent.java │ │ │ │ ├── TLMessageActionPaymentSentMe.java │ │ │ │ ├── TLMessageActionPhoneCall.java │ │ │ │ └── TLMessageActionPinMessage.java │ │ │ ├── entity │ │ │ │ ├── TLAbsMessageEntity.java │ │ │ │ ├── TLMessageEntityBold.java │ │ │ │ ├── TLMessageEntityBotCommand.java │ │ │ │ ├── TLMessageEntityCode.java │ │ │ │ ├── TLMessageEntityEmail.java │ │ │ │ ├── TLMessageEntityHashtag.java │ │ │ │ ├── TLMessageEntityItalic.java │ │ │ │ ├── TLMessageEntityMention.java │ │ │ │ ├── TLMessageEntityMentionName.java │ │ │ │ ├── TLMessageEntityPre.java │ │ │ │ ├── TLMessageEntityTextUrl.java │ │ │ │ ├── TLMessageEntityUnknown.java │ │ │ │ └── TLMessageEntityUrl.java │ │ │ └── media │ │ │ │ ├── TLAbsMessageMedia.java │ │ │ │ ├── TLMessageMediaContact.java │ │ │ │ ├── TLMessageMediaDocument.java │ │ │ │ ├── TLMessageMediaEmpty.java │ │ │ │ ├── TLMessageMediaGame.java │ │ │ │ ├── TLMessageMediaGeo.java │ │ │ │ ├── TLMessageMediaInvoice.java │ │ │ │ ├── TLMessageMediaPhoto.java │ │ │ │ ├── TLMessageMediaUnsupported.java │ │ │ │ ├── TLMessageMediaVenue.java │ │ │ │ └── TLMessageMediaWebPage.java │ │ ├── messages │ │ │ ├── TLAbsMessages.java │ │ │ ├── TLAffectedHistory.java │ │ │ ├── TLAffectedMessages.java │ │ │ ├── TLBotResults.java │ │ │ ├── TLChannelMessages.java │ │ │ ├── TLFoundGifs.java │ │ │ ├── TLMessages.java │ │ │ ├── TLMessagesArchivedStickers.java │ │ │ ├── TLMessagesBotCallbackAnswer.java │ │ │ ├── TLMessagesChatFull.java │ │ │ ├── TLMessagesEditData.java │ │ │ ├── TLMessagesHighScores.java │ │ │ ├── TLMessagesPeerDialogs.java │ │ │ ├── TLMessagesSlice.java │ │ │ ├── chats │ │ │ │ ├── TLAbsMessagesChats.java │ │ │ │ ├── TLMessagesChats.java │ │ │ │ └── TLMessagesChatsSlice.java │ │ │ ├── dhconfig │ │ │ │ ├── TLAbsDhConfig.java │ │ │ │ ├── TLDhConfig.java │ │ │ │ └── TLDhConfigNotModified.java │ │ │ ├── dialogs │ │ │ │ ├── TLAbsDialogs.java │ │ │ │ ├── TLDialogs.java │ │ │ │ └── TLDialogsSlice.java │ │ │ ├── savedgifs │ │ │ │ ├── TLAbsSavedGifs.java │ │ │ │ ├── TLSavedGifs.java │ │ │ │ └── TLSavedGifsNotModified.java │ │ │ ├── sentencrypted │ │ │ │ ├── TLAbsSentEncryptedMessage.java │ │ │ │ ├── TLSentEncryptedFile.java │ │ │ │ └── TLSentEncryptedMessage.java │ │ │ └── stickers │ │ │ │ ├── TLAbsAllStickers.java │ │ │ │ ├── TLAbsStickers.java │ │ │ │ ├── TLAllStickers.java │ │ │ │ ├── TLAllStickersNotModified.java │ │ │ │ ├── TLMessagesStickerSet.java │ │ │ │ ├── TLStickers.java │ │ │ │ ├── TLStickersNotModified.java │ │ │ │ ├── featured │ │ │ │ ├── TLAbsMessagesFeaturedStickers.java │ │ │ │ ├── TLMessagesFeaturedStickers.java │ │ │ │ └── TLMessagesFeaturedStickersNotModified.java │ │ │ │ ├── recent │ │ │ │ ├── TLAbsMessagesRecentStickers.java │ │ │ │ ├── TLMessagesRecentStickers.java │ │ │ │ └── TLMessagesRecentStickersNotModified.java │ │ │ │ └── setintallresult │ │ │ │ ├── TLAbsMessagesStickerSetInstallResult.java │ │ │ │ ├── TLMessagesStickerSetInstallResultArchive.java │ │ │ │ └── TLMessagesStickerSetInstallResultSuccess.java │ │ ├── notify │ │ │ └── peer │ │ │ │ ├── TLAbsNotifyPeer.java │ │ │ │ ├── TLNotifyAll.java │ │ │ │ ├── TLNotifyChats.java │ │ │ │ ├── TLNotifyPeer.java │ │ │ │ └── TLNotifyUsers.java │ │ ├── page │ │ │ ├── TLAbsPage.java │ │ │ ├── TLPageFull.java │ │ │ ├── TLPagePart.java │ │ │ └── block │ │ │ │ ├── TLAbsPageBlock.java │ │ │ │ ├── TLPageBlockAnchor.java │ │ │ │ ├── TLPageBlockAuthorDate.java │ │ │ │ ├── TLPageBlockBlockquote.java │ │ │ │ ├── TLPageBlockChannel.java │ │ │ │ ├── TLPageBlockCollage.java │ │ │ │ ├── TLPageBlockCover.java │ │ │ │ ├── TLPageBlockDivider.java │ │ │ │ ├── TLPageBlockEmbed.java │ │ │ │ ├── TLPageBlockEmbedPost.java │ │ │ │ ├── TLPageBlockFooter.java │ │ │ │ ├── TLPageBlockHeader.java │ │ │ │ ├── TLPageBlockList.java │ │ │ │ ├── TLPageBlockParagraph.java │ │ │ │ ├── TLPageBlockPhoto.java │ │ │ │ ├── TLPageBlockPreformatted.java │ │ │ │ ├── TLPageBlockPullquote.java │ │ │ │ ├── TLPageBlockSlideshow.java │ │ │ │ ├── TLPageBlockSubheader.java │ │ │ │ ├── TLPageBlockSubtitle.java │ │ │ │ ├── TLPageBlockTitle.java │ │ │ │ ├── TLPageBlockUnsupported.java │ │ │ │ └── TLPageBlockVideo.java │ │ ├── paymentapi │ │ │ ├── TLInvoice.java │ │ │ ├── TLLabeledPrice.java │ │ │ ├── TLPaymentCharge.java │ │ │ ├── TLPaymentRequestedInfo.java │ │ │ ├── TLPostAddress.java │ │ │ ├── TLShippingOption.java │ │ │ ├── TLWebDocument.java │ │ │ ├── payments │ │ │ │ ├── TLPaymentsPaymentForm.java │ │ │ │ ├── TLPaymentsPaymentReceipt.java │ │ │ │ ├── TLPaymentsSavedInfo.java │ │ │ │ ├── TLPaymentsValidatedRequestedInfo.java │ │ │ │ └── result │ │ │ │ │ ├── TLAbsPaymentsPaymentResult.java │ │ │ │ │ ├── TLPaymentsPaymentResult.java │ │ │ │ │ └── TLPaymentsPaymentVerificationNeeded.java │ │ │ └── savedcredentails │ │ │ │ ├── TLAbsPaymentSavedCredentials.java │ │ │ │ └── TLPaymentSavedCredentialsCard.java │ │ ├── peer │ │ │ ├── TLAbsPeer.java │ │ │ ├── TLPeerChannel.java │ │ │ ├── TLPeerChat.java │ │ │ ├── TLPeerSettings.java │ │ │ ├── TLPeerUser.java │ │ │ └── notify │ │ │ │ ├── events │ │ │ │ ├── TLAbsPeerNotifyEvents.java │ │ │ │ ├── TLPeerNotifyEventsAll.java │ │ │ │ └── TLPeerNotifyEventsEmpty.java │ │ │ │ └── settings │ │ │ │ ├── TLAbsPeerNotifySettings.java │ │ │ │ ├── TLPeerNotifySettings.java │ │ │ │ └── TLPeerNotifySettingsEmpty.java │ │ ├── phone │ │ │ ├── TLPhoneCallProtocol.java │ │ │ ├── TLPhoneConnection.java │ │ │ ├── TLPhonePhoneCall.java │ │ │ └── call │ │ │ │ ├── TLAbsPhoneCall.java │ │ │ │ ├── TLPhoneCall.java │ │ │ │ ├── TLPhoneCallAccepted.java │ │ │ │ ├── TLPhoneCallDiscarded.java │ │ │ │ ├── TLPhoneCallEmpty.java │ │ │ │ ├── TLPhoneCallRequested.java │ │ │ │ ├── TLPhoneCallWaiting.java │ │ │ │ └── discardreason │ │ │ │ ├── TLAbsPhoneCallDiscardReason.java │ │ │ │ ├── TLPhoneCallDiscardReasonBusy.java │ │ │ │ ├── TLPhoneCallDiscardReasonDisconnect.java │ │ │ │ ├── TLPhoneCallDiscardReasonHangup.java │ │ │ │ └── TLPhoneCallDiscardReasonMissed.java │ │ ├── photo │ │ │ ├── TLAbsPhoto.java │ │ │ ├── TLPhoto.java │ │ │ ├── TLPhotoEmpty.java │ │ │ └── size │ │ │ │ ├── TLAbsPhotoSize.java │ │ │ │ ├── TLPhotoCachedSize.java │ │ │ │ ├── TLPhotoSize.java │ │ │ │ └── TLPhotoSizeEmpty.java │ │ ├── photos │ │ │ ├── TLAbsPhotos.java │ │ │ ├── TLPhotos.java │ │ │ ├── TLPhotosPhoto.java │ │ │ └── TLPhotosSlice.java │ │ ├── privacy │ │ │ ├── privacykey │ │ │ │ ├── TLAbsPrivacyKey.java │ │ │ │ ├── TLPrivacyKeyChatInvite.java │ │ │ │ ├── TLPrivacyKeyPhoneCall.java │ │ │ │ └── TLPrivacyKeyStatusTimestamp.java │ │ │ └── privacyrule │ │ │ │ ├── TLAbsPrivacyRule.java │ │ │ │ ├── TLPrivacyValueAllowAll.java │ │ │ │ ├── TLPrivacyValueAllowContacts.java │ │ │ │ ├── TLPrivacyValueAllowUsers.java │ │ │ │ ├── TLPrivacyValueDisallowAll.java │ │ │ │ ├── TLPrivacyValueDisallowContacts.java │ │ │ │ └── TLPrivacyValueDisallowUsers.java │ │ ├── richtext │ │ │ ├── TLAbsRichText.java │ │ │ ├── TLTextBold.java │ │ │ ├── TLTextConcat.java │ │ │ ├── TLTextEmail.java │ │ │ ├── TLTextEmpty.java │ │ │ ├── TLTextFixed.java │ │ │ ├── TLTextItalic.java │ │ │ ├── TLTextPlain.java │ │ │ ├── TLTextStrike.java │ │ │ ├── TLTextUnderline.java │ │ │ └── TLTextUrl.java │ │ ├── sendmessage │ │ │ └── action │ │ │ │ ├── TLAbsSendMessageAction.java │ │ │ │ ├── TLSendMessageCancelAction.java │ │ │ │ ├── TLSendMessageChooseContactAction.java │ │ │ │ ├── TLSendMessageGamePlayAction.java │ │ │ │ ├── TLSendMessageGeoLocationAction.java │ │ │ │ ├── TLSendMessageRecordAudioAction.java │ │ │ │ ├── TLSendMessageRecordRoundAction.java │ │ │ │ ├── TLSendMessageRecordVideoAction.java │ │ │ │ ├── TLSendMessageTypingAction.java │ │ │ │ ├── TLSendMessageUploadAudioAction.java │ │ │ │ ├── TLSendMessageUploadDocumentAction.java │ │ │ │ ├── TLSendMessageUploadPhotoAction.java │ │ │ │ ├── TLSendMessageUploadRoundAction.java │ │ │ │ └── TLSendMessageUploadVideoAction.java │ │ ├── sticker │ │ │ ├── TLMaskCoords.java │ │ │ ├── pack │ │ │ │ └── TLStickerPack.java │ │ │ ├── set │ │ │ │ └── TLStickerSet.java │ │ │ └── stickersetconvered │ │ │ │ ├── TLAbsStickerSetCovered.java │ │ │ │ ├── TLStickerSetCovered.java │ │ │ │ └── TLStickerSetMultiCovered.java │ │ ├── storage │ │ │ └── file │ │ │ │ ├── TLAbsFileType.java │ │ │ │ ├── TLFileGif.java │ │ │ │ ├── TLFileJpeg.java │ │ │ │ ├── TLFileMov.java │ │ │ │ ├── TLFileMp3.java │ │ │ │ ├── TLFileMp4.java │ │ │ │ ├── TLFilePartial.java │ │ │ │ ├── TLFilePdf.java │ │ │ │ ├── TLFilePng.java │ │ │ │ ├── TLFileUnknown.java │ │ │ │ └── TLFileWebp.java │ │ ├── toppeer │ │ │ ├── TLTopPeer.java │ │ │ ├── TLTopPeerCategoryPeers.java │ │ │ └── category │ │ │ │ ├── TLAbsTopPeerCategory.java │ │ │ │ ├── TLTopPeerCategoryBotsInline.java │ │ │ │ ├── TLTopPeerCategoryBotsPM.java │ │ │ │ ├── TLTopPeerCategoryChannels.java │ │ │ │ ├── TLTopPeerCategoryCorrespondents.java │ │ │ │ └── TLTopPeerCategoryGroups.java │ │ ├── update │ │ │ ├── TLAbsUpdate.java │ │ │ ├── TLChannelUpdate.java │ │ │ ├── TLFakeUpdate.java │ │ │ ├── TLUpdateBotCallbackQuery.java │ │ │ ├── TLUpdateBotInlineQuery.java │ │ │ ├── TLUpdateBotInlineSend.java │ │ │ ├── TLUpdateBotPrecheckoutQuery.java │ │ │ ├── TLUpdateBotShippingQuery.java │ │ │ ├── TLUpdateBotWebhookJSON.java │ │ │ ├── TLUpdateBotWebhookJSONQuery.java │ │ │ ├── TLUpdateChannel.java │ │ │ ├── TLUpdateChannelMessageViews.java │ │ │ ├── TLUpdateChannelNewMessage.java │ │ │ ├── TLUpdateChannelPinnedMessage.java │ │ │ ├── TLUpdateChannelTooLong.java │ │ │ ├── TLUpdateChannelWebPage.java │ │ │ ├── TLUpdateChatAdmin.java │ │ │ ├── TLUpdateChatParticipantAdd.java │ │ │ ├── TLUpdateChatParticipantAdmin.java │ │ │ ├── TLUpdateChatParticipantDelete.java │ │ │ ├── TLUpdateChatParticipants.java │ │ │ ├── TLUpdateChatUserTyping.java │ │ │ ├── TLUpdateConfig.java │ │ │ ├── TLUpdateContactLink.java │ │ │ ├── TLUpdateContactRegistered.java │ │ │ ├── TLUpdateDcOptions.java │ │ │ ├── TLUpdateDeleteChannelMessages.java │ │ │ ├── TLUpdateDeleteMessages.java │ │ │ ├── TLUpdateDialogPinned.java │ │ │ ├── TLUpdateDraftMessage.java │ │ │ ├── TLUpdateEditChannelMessage.java │ │ │ ├── TLUpdateEditMessage.java │ │ │ ├── TLUpdateInlineBotCallbackQuery.java │ │ │ ├── TLUpdateMessageId.java │ │ │ ├── TLUpdateNewMessage.java │ │ │ ├── TLUpdateNewStickerSet.java │ │ │ ├── TLUpdateNotifySettings.java │ │ │ ├── TLUpdatePhoneCall.java │ │ │ ├── TLUpdatePinnedDialogs.java │ │ │ ├── TLUpdatePrivacy.java │ │ │ ├── TLUpdatePtsChanged.java │ │ │ ├── TLUpdateReadChannelInbox.java │ │ │ ├── TLUpdateReadChannelOutbox.java │ │ │ ├── TLUpdateReadFeaturedStickers.java │ │ │ ├── TLUpdateReadMessagesContents.java │ │ │ ├── TLUpdateReadMessagesInbox.java │ │ │ ├── TLUpdateReadMessagesOutbox.java │ │ │ ├── TLUpdateRecentStickers.java │ │ │ ├── TLUpdateSavedGifs.java │ │ │ ├── TLUpdateServiceNotification.java │ │ │ ├── TLUpdateStickerSets.java │ │ │ ├── TLUpdateStickerSetsOrder.java │ │ │ ├── TLUpdateUserBlocked.java │ │ │ ├── TLUpdateUserName.java │ │ │ ├── TLUpdateUserPhone.java │ │ │ ├── TLUpdateUserPhoto.java │ │ │ ├── TLUpdateUserStatus.java │ │ │ ├── TLUpdateUserTyping.java │ │ │ ├── TLUpdateWebPage.java │ │ │ └── encrypted │ │ │ │ ├── TLUpdateEncryptedChatTyping.java │ │ │ │ ├── TLUpdateEncryptedMessagesRead.java │ │ │ │ ├── TLUpdateEncryption.java │ │ │ │ └── TLUpdateNewEncryptedMessage.java │ │ ├── updates │ │ │ ├── TLAbsUpdates.java │ │ │ ├── TLUpdateShort.java │ │ │ ├── TLUpdateShortChatMessage.java │ │ │ ├── TLUpdateShortMessage.java │ │ │ ├── TLUpdateShortSentMessage.java │ │ │ ├── TLUpdates.java │ │ │ ├── TLUpdatesCombined.java │ │ │ ├── TLUpdatesState.java │ │ │ ├── TLUpdatesTooLong.java │ │ │ ├── channel │ │ │ │ └── differences │ │ │ │ │ ├── TLAbsUpdatesChannelDifferences.java │ │ │ │ │ ├── TLUpdatesChannelDifferences.java │ │ │ │ │ ├── TLUpdatesChannelDifferencesEmpty.java │ │ │ │ │ └── TLUpdatesChannelDifferencesTooLong.java │ │ │ └── difference │ │ │ │ ├── TLAbsDifference.java │ │ │ │ ├── TLDifference.java │ │ │ │ ├── TLDifferenceEmpty.java │ │ │ │ ├── TLDifferenceSlice.java │ │ │ │ └── TLDifferenceTooLong.java │ │ ├── upload │ │ │ ├── TLWebFile.java │ │ │ ├── cdn │ │ │ │ ├── TLAbsCdnFile.java │ │ │ │ ├── TLCdnFile.java │ │ │ │ └── TLCdnFileReuploadNeeded.java │ │ │ └── file │ │ │ │ ├── TLAbsFile.java │ │ │ │ ├── TLFile.java │ │ │ │ └── TLFileCdnRedirect.java │ │ ├── user │ │ │ ├── TLAbsUser.java │ │ │ ├── TLUser.java │ │ │ ├── TLUserEmpty.java │ │ │ ├── TLUserFull.java │ │ │ ├── profile │ │ │ │ └── photo │ │ │ │ │ ├── TLAbsUserProfilePhoto.java │ │ │ │ │ ├── TLUserProfilePhoto.java │ │ │ │ │ └── TLUserProfilePhotoEmpty.java │ │ │ └── status │ │ │ │ ├── TLAbsUserStatus.java │ │ │ │ ├── TLUserStatusEmpty.java │ │ │ │ ├── TLUserStatusLastMonth.java │ │ │ │ ├── TLUserStatusLastWeek.java │ │ │ │ ├── TLUserStatusOffline.java │ │ │ │ ├── TLUserStatusOnline.java │ │ │ │ └── TLUserStatusRecently.java │ │ ├── wallpaper │ │ │ ├── TLAbsWallPaper.java │ │ │ ├── TLWallPaper.java │ │ │ └── TLWallPaperSolid.java │ │ └── webpage │ │ │ ├── TLAbsWebPage.java │ │ │ ├── TLWebPage.java │ │ │ ├── TLWebPageEmpty.java │ │ │ ├── TLWebPageNotModified.java │ │ │ └── TLWebPagePending.java │ │ ├── bot │ │ ├── ChatUpdatesBuilder.java │ │ ├── GenericErrorTelegramFunctionCallback.java │ │ ├── TelegramFunctionCallback.java │ │ ├── factories │ │ │ └── TLFactory.java │ │ ├── handlers │ │ │ ├── DefaultUpdatesHandler.java │ │ │ ├── DifferencesHandler.java │ │ │ ├── UpdatesHandlerBase.java │ │ │ └── interfaces │ │ │ │ ├── IChatsHandler.java │ │ │ │ ├── IDifferencesHandler.java │ │ │ │ ├── IUpdatesHandler.java │ │ │ │ └── IUsersHandler.java │ │ ├── kernel │ │ │ ├── CustomTimerTask.java │ │ │ ├── IKernelComm.java │ │ │ ├── KernelAuth.java │ │ │ ├── KernelComm.java │ │ │ ├── MainHandler.java │ │ │ ├── TelegramBot.java │ │ │ ├── TimerExecutor.java │ │ │ ├── UpdateWrapper.java │ │ │ ├── database │ │ │ │ └── DatabaseManager.java │ │ │ ├── differenceparameters │ │ │ │ ├── DifferenceParametersService.java │ │ │ │ └── IDifferenceParametersService.java │ │ │ └── engine │ │ │ │ ├── MemoryApiState.java │ │ │ │ ├── SafeFileWriter.java │ │ │ │ ├── TLPersistence.java │ │ │ │ └── storage │ │ │ │ ├── TLDcInfo.java │ │ │ │ ├── TLKey.java │ │ │ │ ├── TLLastKnownSalt.java │ │ │ │ ├── TLOldSession.java │ │ │ │ └── TLStorage.java │ │ ├── services │ │ │ ├── BotLogger.java │ │ │ └── NotificationsService.java │ │ └── structure │ │ │ ├── BotConfig.java │ │ │ ├── Chat.java │ │ │ ├── IUser.java │ │ │ └── LoginStatus.java │ │ ├── mtproto │ │ ├── CallWrapper.java │ │ ├── MTProto.java │ │ ├── MTProtoCallback.java │ │ ├── ServerException.java │ │ ├── TransportSecurityException.java │ │ ├── backoff │ │ │ ├── ApiErrorExponentialBackoff.java │ │ │ └── ExponentalBackoff.java │ │ ├── log │ │ │ ├── LogInterface.java │ │ │ └── Logger.java │ │ ├── pq │ │ │ ├── Authorizer.java │ │ │ └── PqAuth.java │ │ ├── schedule │ │ │ ├── PrepareSchedule.java │ │ │ ├── PreparedPackage.java │ │ │ └── Scheduller.java │ │ ├── secure │ │ │ ├── CryptoUtils.java │ │ │ ├── Entropy.java │ │ │ ├── KeyParameter.java │ │ │ ├── Keys.java │ │ │ ├── aes │ │ │ │ ├── AESFastEngine.java │ │ │ │ ├── AESImplementation.java │ │ │ │ └── DefaultAESImplementation.java │ │ │ └── pq │ │ │ │ ├── PQImplementation.java │ │ │ │ ├── PQLopatin.java │ │ │ │ └── PQSolver.java │ │ ├── state │ │ │ ├── AbsMTProtoState.java │ │ │ ├── ConnectionInfo.java │ │ │ ├── KnownSalt.java │ │ │ └── MemoryProtoState.java │ │ ├── time │ │ │ └── TimeOverlord.java │ │ ├── tl │ │ │ ├── MTBadMessage.java │ │ │ ├── MTBadMessageNotification.java │ │ │ ├── MTBadServerSalt.java │ │ │ ├── MTDestroySession.java │ │ │ ├── MTDestroySessionNone.java │ │ │ ├── MTDestroySessionOk.java │ │ │ ├── MTFutureSalt.java │ │ │ ├── MTFutureSalts.java │ │ │ ├── MTGetFutureSalts.java │ │ │ ├── MTHttpWait.java │ │ │ ├── MTInvokeAfter.java │ │ │ ├── MTMessage.java │ │ │ ├── MTMessageCopy.java │ │ │ ├── MTMessageDetailedInfo.java │ │ │ ├── MTMessagesAllInfo.java │ │ │ ├── MTMessagesContainer.java │ │ │ ├── MTMessagesStateInfo.java │ │ │ ├── MTMsgsAck.java │ │ │ ├── MTMsgsStateReq.java │ │ │ ├── MTNeedResendMessage.java │ │ │ ├── MTNewMessageDetailedInfo.java │ │ │ ├── MTNewSessionCreated.java │ │ │ ├── MTPing.java │ │ │ ├── MTPingDelayDisconnect.java │ │ │ ├── MTPong.java │ │ │ ├── MTProtoContext.java │ │ │ ├── MTRpcAnswerDropped.java │ │ │ ├── MTRpcAnswerDroppedRunning.java │ │ │ ├── MTRpcAnswerUnknown.java │ │ │ ├── MTRpcDropAnswer.java │ │ │ ├── MTRpcError.java │ │ │ ├── MTRpcResult.java │ │ │ └── pq │ │ │ │ ├── ClientDhInner.java │ │ │ │ ├── DhGenFailure.java │ │ │ │ ├── DhGenOk.java │ │ │ │ ├── DhGenResult.java │ │ │ │ ├── DhGenRetry.java │ │ │ │ ├── MTRpcReqError.java │ │ │ │ ├── PQInner.java │ │ │ │ ├── ReqDhParams.java │ │ │ │ ├── ReqPQ.java │ │ │ │ ├── ReqSetDhClientParams.java │ │ │ │ ├── ResPQ.java │ │ │ │ ├── ServerDhFailure.java │ │ │ │ ├── ServerDhInner.java │ │ │ │ ├── ServerDhOk.java │ │ │ │ ├── ServerDhParams.java │ │ │ │ └── TLInitContext.java │ │ ├── transport │ │ │ ├── BuffersStorage.java │ │ │ ├── ByteBufferDesc.java │ │ │ ├── BytesHelper.java │ │ │ ├── ConnectionState.java │ │ │ ├── ConnectionType.java │ │ │ ├── PlainTcpConnection.java │ │ │ ├── TcpContext.java │ │ │ ├── TcpContextCallback.java │ │ │ └── TransportRate.java │ │ └── util │ │ │ ├── BytesCache.java │ │ │ └── TimeUtil.java │ │ └── tl │ │ ├── DeserializeException.java │ │ ├── StreamingUtils.java │ │ ├── TLBool.java │ │ ├── TLBoolFalse.java │ │ ├── TLBoolTrue.java │ │ ├── TLBytes.java │ │ ├── TLContext.java │ │ ├── TLError.java │ │ ├── TLGzipObject.java │ │ ├── TLIntVector.java │ │ ├── TLLongVector.java │ │ ├── TLMethod.java │ │ ├── TLNull.java │ │ ├── TLObject.java │ │ ├── TLStringVector.java │ │ ├── TLTrue.java │ │ └── TLVector.java └── resources │ ├── schema.txt │ └── secretschema.txt └── test ├── java └── TestValidateSchema.java └── resources ├── schema.json └── secretschema.json /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Ruben Bermudez 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /src/main/java/jawnae/pyronet/PyroClientListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 26 apr 2010 3 | */ 4 | 5 | package jawnae.pyronet; 6 | 7 | import java.io.IOException; 8 | import java.nio.ByteBuffer; 9 | 10 | public interface PyroClientListener 11 | { 12 | void connectedClient(PyroClient client); 13 | 14 | void unconnectableClient(PyroClient client, Exception cause); 15 | 16 | void droppedClient(PyroClient client, IOException cause); 17 | 18 | void disconnectedClient(PyroClient client); 19 | 20 | void receivedData(PyroClient client, ByteBuffer data); 21 | 22 | void sentData(PyroClient client, int bytes); 23 | } -------------------------------------------------------------------------------- /src/main/java/jawnae/pyronet/PyroException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Created on 3 dec 2009 3 | */ 4 | 5 | package jawnae.pyronet; 6 | 7 | public class PyroException extends RuntimeException 8 | { 9 | public PyroException() 10 | { 11 | super(); 12 | } 13 | 14 | public PyroException(String msg) 15 | { 16 | super(msg); 17 | } 18 | 19 | public PyroException(String msg, Throwable cause) 20 | { 21 | super(msg, cause); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/TLDataJSON.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | import org.telegram.tl.TLObject; 6 | 7 | import java.io.IOException; 8 | import java.io.InputStream; 9 | import java.io.OutputStream; 10 | 11 | /** 12 | * @author Ruben Bermudez 13 | * @version 1.0 14 | */ 15 | public class TLDataJSON extends TLObject { 16 | public static final int CLASS_ID = 0x7d748d04; 17 | 18 | private String data; 19 | 20 | @Override 21 | public int getClassId() { 22 | return CLASS_ID; 23 | } 24 | 25 | public String getData() { 26 | return data; 27 | } 28 | 29 | @Override 30 | public void serializeBody(OutputStream stream) throws IOException { 31 | StreamingUtils.writeTLString(data, stream); 32 | } 33 | 34 | @Override 35 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 36 | data = StreamingUtils.readTLString(stream); 37 | } 38 | 39 | @Override 40 | public String toString() { 41 | return "dataJSON#7d748d04"; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/auth/codetype/TLAbsCodeType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.auth.codetype; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 16 of March of 2016 10 | */ 11 | public abstract class TLAbsCodeType extends TLObject { 12 | TLAbsCodeType() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/auth/codetype/TLCodeTypeCall.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.auth.codetype; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 16 of March of 2016 8 | */ 9 | public class TLCodeTypeCall extends TLAbsCodeType { 10 | public static final int CLASS_ID = 0x741cd3e3; 11 | 12 | public TLCodeTypeCall() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "auth.codeTypeCall#741cd3e3"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/auth/codetype/TLCodeTypeFlashCall.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.auth.codetype; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 16 of March of 2016 8 | */ 9 | public class TLCodeTypeFlashCall extends TLAbsCodeType { 10 | public static final int CLASS_ID = 0x226ccefb; 11 | 12 | public TLCodeTypeFlashCall() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "auth.codeTypeFlashCall#226ccefb"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/auth/codetype/TLCodeTypeSms.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.auth.codetype; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 16 of March of 2016 8 | */ 9 | public class TLCodeTypeSms extends TLAbsCodeType { 10 | public static final int CLASS_ID = 0x72a3158c; 11 | 12 | public TLCodeTypeSms() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "auth.codeTypeSms#72a3158c"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/auth/sentcodetype/TLAbsSentCodeType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.auth.sentcodetype; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 16 of March of 2016 10 | */ 11 | public abstract class TLAbsSentCodeType extends TLObject { 12 | TLAbsSentCodeType() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/bot/inlinemessage/TLAbsBotInlineMessage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.bot.inlinemessage; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsBotInlineMessage extends TLObject { 28 | protected TLAbsBotInlineMessage() { 29 | super(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/bot/inlineresult/TLAbsBotInlineResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.bot.inlineresult; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsBotInlineResult extends TLObject { 28 | protected TLAbsBotInlineResult() { 29 | super(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/filters/TLAbsChannelMessagesFilter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.filters; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract Channel messages filter 9 | * @date 18 of September of 2015 10 | */ 11 | public abstract class TLAbsChannelMessagesFilter extends TLObject { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/filters/TLChannelMessagesFilterEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.filters; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel messages filter empty 7 | * @date 18 of September of 2015 8 | */ 9 | public class TLChannelMessagesFilterEmpty extends TLAbsChannelMessagesFilter { 10 | public static final int CLASS_ID = 0x94d42ee7; 11 | 12 | public TLChannelMessagesFilterEmpty() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.messages.filter.TLChannelMessagesFilterEmpty#94d42ee7"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/TLAbsChannelParticipant.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract Channel participant 9 | * @date 18 of September of 2015 10 | */ 11 | public abstract class TLAbsChannelParticipant extends TLObject { 12 | public TLAbsChannelParticipant() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/filters/TLAbsChannelParticipantsFilter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.filters; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract Channel participants filters 9 | * @date 24 of September of 2015 10 | */ 11 | public abstract class TLAbsChannelParticipantsFilter extends TLObject { 12 | public TLAbsChannelParticipantsFilter() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/filters/TLChannelParticipantsFilterAdmins.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.filters; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participants filters admins 7 | * @date 24 of September of 2015 8 | */ 9 | public class TLChannelParticipantsFilterAdmins extends TLAbsChannelParticipantsFilter { 10 | public static final int CLASS_ID = 0xb4608969; 11 | 12 | public TLChannelParticipantsFilterAdmins() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantsAdmins#b4608969"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/filters/TLChannelParticipantsFilterKicked.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.filters; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participants filters kicked 7 | * @date 24 of September of 2015 8 | */ 9 | public class TLChannelParticipantsFilterKicked extends TLAbsChannelParticipantsFilter { 10 | public static final int CLASS_ID = 0x3c37bb7a; 11 | 12 | public TLChannelParticipantsFilterKicked() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantsKicked#3c37bb7a"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/filters/TLChannelParticipantsFilterRecent.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.filters; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participants filters recent 7 | * @date 24 of September of 2015 8 | */ 9 | public class TLChannelParticipantsFilterRecent extends TLAbsChannelParticipantsFilter { 10 | public static final int CLASS_ID = 0xde3f3c79; 11 | 12 | public TLChannelParticipantsFilterRecent() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantsRecent#de3f3c79"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/role/TLAbsChannelParticipantRole.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.role; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract Channel participant role 9 | * @date 18 of September of 2015 10 | */ 11 | public abstract class TLAbsChannelParticipantRole extends TLObject { 12 | public TLAbsChannelParticipantRole() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/role/TLChannelParticipantRoleEditor.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.role; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participant role editor 7 | * @date 18 of September of 2015 8 | */ 9 | public class TLChannelParticipantRoleEditor extends TLAbsChannelParticipantRole { 10 | public static final int CLASS_ID = 0x820bfe8c; 11 | 12 | public TLChannelParticipantRoleEditor() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantRoleEditor#820bfe8c"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/role/TLChannelParticipantRoleEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.role; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participant role empty 7 | * @date 18 of September of 2015 8 | */ 9 | public class TLChannelParticipantRoleEmpty extends TLAbsChannelParticipantRole { 10 | public static final int CLASS_ID = 0xb285a0c6; 11 | 12 | public TLChannelParticipantRoleEmpty() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantRoleEmpty#b285a0c6"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/channel/participants/role/TLChannelParticipantRoleModerator.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.channel.participants.role; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Channel participant role moderator 7 | * @date 18 of September of 2015 8 | */ 9 | public class TLChannelParticipantRoleModerator extends TLAbsChannelParticipantRole { 10 | public static final int CLASS_ID = 0x9618d975; 11 | 12 | public TLChannelParticipantRoleModerator() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "channel.participants.filters.TLChannelParticipantRoleModerator#9618d975"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/chat/TLAbsChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.chat; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent a chat 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsChat extends TLObject { 19 | 20 | protected int id; ///< chat id 21 | 22 | /** 23 | * Instantiates a new TL abs chat. 24 | */ 25 | protected TLAbsChat() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Gets id. 31 | * 32 | * @return the id 33 | */ 34 | public int getId() { 35 | return this.id; 36 | } 37 | 38 | /** 39 | * Sets id. 40 | * 41 | * @param id the id 42 | */ 43 | public void setId(int id) { 44 | this.id = id; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/chat/invite/TLAbsChatInvite.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.chat.invite; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent a chat invitation. 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsChatInvite extends TLObject { 19 | /** 20 | * Instantiates a new TL abs chat invite. 21 | */ 22 | protected TLAbsChatInvite() { 23 | super(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/chat/invite/TLChatInviteEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.chat.invite; 9 | 10 | /** 11 | * Empty invitation to a chat. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLChatInviteEmpty extends TLAbsChatInvite { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x69df3769; 21 | 22 | /** 23 | * Instantiates a new TL chat invite empty. 24 | */ 25 | public TLChatInviteEmpty() { 26 | super(); 27 | } 28 | 29 | @Override 30 | public int getClassId() { 31 | return CLASS_ID; 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "chat.chatInviteEmpty#69df3769"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/chat/photo/TLAbsChatPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.chat.photo; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent a photo 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsChatPhoto extends TLObject { 19 | /** 20 | * Instantiates a new TL abs chat photo. 21 | */ 22 | protected TLAbsChatPhoto() { 23 | super(); 24 | } 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/chat/photo/TLChatPhotoEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.chat.photo; 9 | 10 | /** 11 | * Represent an empty chat photo 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLChatPhotoEmpty extends TLAbsChatPhoto { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x37c1011c; 21 | 22 | /** 23 | * Instantiates a new TL chat photo empty. 24 | */ 25 | public TLChatPhotoEmpty() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "chatPhotoEmpty#37c1011c"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contact/link/TLAbsContactLink.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contact.link; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent a connection between another user and current one 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsContactLink extends TLObject { 19 | 20 | protected boolean contact; ///< True if the other user is a contact of current one 21 | 22 | /** 23 | * Instantiates a new TL abs contact link. 24 | */ 25 | protected TLAbsContactLink() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Is contact. 31 | * 32 | * @return the boolean 33 | */ 34 | public boolean isContact() { 35 | return this.contact; 36 | } 37 | 38 | /** 39 | * Sets contact. 40 | * 41 | * @param contact the contact 42 | */ 43 | public void setContact(boolean contact) { 44 | this.contact = contact; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contact/link/TLContactLinkContact.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contact.link; 9 | 10 | /** 11 | * Current user added the other user to his contact list 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLContactLinkContact extends TLAbsContactLink { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0xd502c2d0; 21 | 22 | /** 23 | * Instantiates a new TL contact link contact. 24 | */ 25 | public TLContactLinkContact() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "contacts.contactLinkContact#d502c2d0"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contact/link/TLContactLinkHasPhone.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contact.link; 9 | 10 | /** 11 | * Current user added has other user's phone 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLContactLinkHasPhone extends TLAbsContactLink { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x268f3f59; 21 | 22 | /** 23 | * Instantiates a new TL contact link has phone. 24 | */ 25 | public TLContactLinkHasPhone() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "contacts.contactLinkHasPhone#268f3f59"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contact/link/TLContactLinkNone.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contact.link; 9 | 10 | /** 11 | * Empty connection between users 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLContactLinkNone extends TLAbsContactLink { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0xfeedd3ad; 21 | 22 | /** 23 | * Instantiates a new TL contact link none. 24 | */ 25 | public TLContactLinkNone() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "contacts.contactLinkNone#feedd3ad"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contact/link/TLContactLinkUnknown.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contact.link; 9 | 10 | /** 11 | * Current user added no known connection with the other user 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLContactLinkUnknown extends TLAbsContactLink { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x5f4f9247; 21 | 22 | /** 23 | * Instantiates a new TL contact link unknown. 24 | */ 25 | public TLContactLinkUnknown() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "contacts.contactLinkHasPhone#5f4f9247"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contacts/TLAbsContacts.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contacts; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent information of user's contacts 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsContacts extends TLObject { 19 | /** 20 | * Instantiates a new TL abs contacts. 21 | */ 22 | protected TLAbsContacts() { 23 | super(); 24 | } 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contacts/TLContactsNotModified.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.contacts; 9 | 10 | /** 11 | * Contact list on the server is the same as the list on the client 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLContactsNotModified extends TLAbsContacts { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0xb74ba9d2; 21 | 22 | /** 23 | * Instantiates a new TL contacts not modified. 24 | */ 25 | public TLContactsNotModified() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "contacts.contactsNotModified#b74ba9d2"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contacts/toppeers/TLAbsContactsTopPeers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.contacts.toppeers; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsContactsTopPeers extends TLObject { 12 | public TLAbsContactsTopPeers() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/contacts/toppeers/TLContactsTopPeersNotModified.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.contacts.toppeers; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLContactsTopPeersNotModified extends TLAbsContactsTopPeers { 10 | public static final int CLASS_ID = 0xde266ef5; 11 | 12 | public TLContactsTopPeersNotModified() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "contacts.topPeersNotModified#de266ef5"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLAbsDecryptedMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.decryptedmessage; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to describes the content of an encrypted message 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsDecryptedMessage extends TLObject { 19 | 20 | /** 21 | * Random message ID, assigned by the author of message. Must be equal to the ID passed to sending method. 22 | */ 23 | protected long randomId; 24 | 25 | /** 26 | * Gets random id. 27 | * 28 | * @return the random id 29 | */ 30 | public long getRandomId() { 31 | return this.randomId; 32 | } 33 | 34 | /** 35 | * Sets random id. 36 | * 37 | * @param value the value 38 | */ 39 | public void setRandomId(long value) { 40 | this.randomId = value; 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLAbsDecryptedMessageMedia.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.decryptedmessage; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to describes media contents of an encrypted message 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 02 of May of 2015 17 | */ 18 | public abstract class TLAbsDecryptedMessageMedia extends TLObject { 19 | 20 | protected TLAbsDecryptedMessageMedia() { 21 | super(); 22 | } 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLDecryptedMessageAction.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.decryptedmessage; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL decrypted message action. 7 | */ 8 | public abstract class TLDecryptedMessageAction extends TLObject { 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLDecryptedMessageActionFlushHistory.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.decryptedmessage; 2 | 3 | /** 4 | * The type TL decrypted message action flush history. 5 | */ 6 | public class TLDecryptedMessageActionFlushHistory extends TLDecryptedMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x6719e45c; 11 | 12 | /** 13 | * Instantiates a new TL decrypted message action flush history. 14 | */ 15 | public TLDecryptedMessageActionFlushHistory() { 16 | } 17 | 18 | @Override 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return "decryptedMessageActionFlushHistory#6719e45c"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLDecryptedMessageActionNoop.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.decryptedmessage; 2 | 3 | /** 4 | * The type TL decrypted message action noop. 5 | */ 6 | public class TLDecryptedMessageActionNoop extends TLDecryptedMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xa82fdd63; 11 | 12 | /** 13 | * Instantiates a new TL decrypted message action noop. 14 | */ 15 | public TLDecryptedMessageActionNoop() { 16 | } 17 | 18 | @Override 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return "decryptedMessageActionNoop#a82fdd63"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/decryptedmessage/TLDecryptedMessageMediaEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.decryptedmessage; 9 | 10 | /** 11 | * Empty media content of an encrypted message 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 02 of May of 2015 15 | */ 16 | public class TLDecryptedMessageMediaEmpty extends TLAbsDecryptedMessageMedia { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x89f5c4a; 21 | 22 | /** 23 | * Instantiates a new TL decrypted message media empty. 24 | */ 25 | public TLDecryptedMessageMediaEmpty() { 26 | super(); 27 | } 28 | 29 | @Override 30 | public int getClassId() { 31 | return CLASS_ID; 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "decryptedMessageMediaEmpty#89f5c4a"; 37 | } 38 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/document/TLAbsDocument.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.document; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent a document. 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 11 of April of 2015 17 | */ 18 | public abstract class TLAbsDocument extends TLObject { 19 | 20 | protected long id; ///< Document id 21 | 22 | /** 23 | * Instantiates a new TL abs document. 24 | */ 25 | public TLAbsDocument() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Gets id. 31 | * 32 | * @return the id 33 | */ 34 | public long getId() { 35 | return this.id; 36 | } 37 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/document/attribute/TLAbsDocumentAttribute.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.document.attribute; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class to represent an attribute of a document 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 9 /01/15 17 | */ 18 | public abstract class TLAbsDocumentAttribute extends TLObject { 19 | /** 20 | * Instantiates a new TL abs document attribute. 21 | */ 22 | protected TLAbsDocumentAttribute() { 23 | super(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/document/attribute/TLDocumentAttributeAnimated.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.document.attribute; 9 | 10 | /** 11 | * Indates that a document is animated 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 9 /01/15 15 | */ 16 | public class TLDocumentAttributeAnimated extends TLAbsDocumentAttribute { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0x11b58939; 21 | 22 | /** 23 | * Instantiates a new TL document attribute animated. 24 | */ 25 | public TLDocumentAttributeAnimated() { 26 | super(); 27 | } 28 | 29 | @Override 30 | public int getClassId() { 31 | return CLASS_ID; 32 | } 33 | 34 | @Override 35 | public String toString() { 36 | return "documentAttributeAnimated#11b58939"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/document/attribute/TLDocumentAttributeHasStickers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.document.attribute; 9 | 10 | /** 11 | * Indates that a document has stickers 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | */ 15 | public class TLDocumentAttributeHasStickers extends TLAbsDocumentAttribute { 16 | /** 17 | * The constant CLASS_ID. 18 | */ 19 | public static final int CLASS_ID = 0x9801d2f7; 20 | 21 | /** 22 | * Instantiates a new TL document attribute animated. 23 | */ 24 | public TLDocumentAttributeHasStickers() { 25 | super(); 26 | } 27 | 28 | @Override 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return "documentAttributeHasStickers#9801d2f7"; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/draft/TLAbsDraftMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.draft; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsDraftMessage extends TLObject { 12 | public TLAbsDraftMessage() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/draft/TLDraftMessageEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.draft; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLDraftMessageEmpty extends TLAbsDraftMessage { 10 | public static final int CLASS_ID = 0xba4baec5; 11 | 12 | @Override 13 | public int getClassId() { 14 | return CLASS_ID; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "draftMessageEmpty#ba4baec5"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/encrypted/chat/TLAbsEncryptedChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.encrypted.chat; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class that represent an encrypted chat with another user 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 11 of April of 2015 17 | */ 18 | public abstract class TLAbsEncryptedChat extends TLObject { 19 | 20 | protected int id; ///< Id of the conversation 21 | 22 | /** 23 | * Instantiates a new TL abs encrypted chat. 24 | */ 25 | protected TLAbsEncryptedChat() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Gets id. 31 | * 32 | * @return the id 33 | */ 34 | public int getId() { 35 | return this.id; 36 | } 37 | 38 | /** 39 | * Sets id. 40 | * 41 | * @param value the value 42 | */ 43 | public void setId(int value) { 44 | this.id = value; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/encrypted/file/TLAbsEncryptedFile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.encrypted.file; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * Abstract class that represent a file sent to a encrypted chat 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @date 11 of April of 2015 17 | */ 18 | public abstract class TLAbsEncryptedFile extends TLObject { 19 | 20 | protected long id; ///< File id 21 | 22 | /** 23 | * Instantiates a new TL abs encrypted file. 24 | */ 25 | protected TLAbsEncryptedFile() { 26 | super(); 27 | } 28 | 29 | /** 30 | * Gets id. 31 | * 32 | * @return the id 33 | */ 34 | public long getId() { 35 | return this.id; 36 | } 37 | 38 | /** 39 | * Sets id. 40 | * 41 | * @param id the id 42 | */ 43 | public void setId(long id) { 44 | this.id = id; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/encrypted/file/TLEncryptedFileEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.encrypted.file; 9 | 10 | /** 11 | * Empty file sent to a encrypted chat 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @date 11 of April of 2015 15 | */ 16 | public class TLEncryptedFileEmpty extends TLAbsEncryptedFile { 17 | /** 18 | * The constant CLASS_ID. 19 | */ 20 | public static final int CLASS_ID = 0xc21f497e; 21 | 22 | /** 23 | * Instantiates a new TL encrypted file empty. 24 | */ 25 | public TLEncryptedFileEmpty() { 26 | super(); 27 | } 28 | 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | public String toString() { 34 | return "encryptedFileEmpty#c21f497e"; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/ApiCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine; 2 | 3 | import org.telegram.api.updates.TLAbsUpdates; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 11.11.13 9 | * Time: 7:42 10 | */ 11 | public interface ApiCallback { 12 | /** 13 | * On auth cancelled. 14 | * 15 | * @param api the api 16 | */ 17 | void onAuthCancelled(TelegramApi api); 18 | 19 | /** 20 | * On updates invalidated. 21 | * 22 | * @param api the api 23 | */ 24 | void onUpdatesInvalidated(TelegramApi api); 25 | 26 | /** 27 | * On update. 28 | * 29 | * @param updates the updates 30 | */ 31 | void onUpdate(TLAbsUpdates updates); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/LoggerInterface.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 11.11.13 7 | * Time: 4:48 8 | */ 9 | public interface LoggerInterface { 10 | /** 11 | * W void. 12 | * 13 | * @param tag the tag 14 | * @param message the message 15 | */ 16 | void w(String tag, String message); 17 | 18 | /** 19 | * D void. 20 | * 21 | * @param tag the tag 22 | * @param message the message 23 | */ 24 | void d(String tag, String message); 25 | 26 | /** 27 | * E void. 28 | * 29 | * @param tag the tag 30 | * @param t the t 31 | */ 32 | void e(String tag, Throwable t); 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/RpcCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 05.11.13 9 | * Time: 14:10 10 | * @param the type parameter 11 | */ 12 | public interface RpcCallback { 13 | /** 14 | * On result. 15 | * 16 | * @param result the result 17 | */ 18 | void onResult(T result); 19 | 20 | /** 21 | * On error. 22 | * 23 | * @param errorCode the error code 24 | * @param message the message 25 | */ 26 | void onError(int errorCode, String message); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/RpcCallbackEx.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 09.11.13 9 | * Time: 18:06 10 | * @param the type parameter 11 | */ 12 | public interface RpcCallbackEx extends RpcCallback { 13 | /** 14 | * On confirmed. 15 | */ 16 | void onConfirmed(); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/TimeoutException.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 06.11.13 9 | * Time: 1:27 10 | */ 11 | public class TimeoutException extends IOException { 12 | /** 13 | * Instantiates a new Timeout exception. 14 | */ 15 | public TimeoutException() { 16 | } 17 | 18 | /** 19 | * Instantiates a new Timeout exception. 20 | * 21 | * @param s the s 22 | */ 23 | public TimeoutException(String s) { 24 | super(s); 25 | } 26 | 27 | /** 28 | * Instantiates a new Timeout exception. 29 | * 30 | * @param s the s 31 | * @param throwable the throwable 32 | */ 33 | public TimeoutException(String s, Throwable throwable) { 34 | super(s, throwable); 35 | } 36 | 37 | /** 38 | * Instantiates a new Timeout exception. 39 | * 40 | * @param throwable the throwable 41 | */ 42 | public TimeoutException(Throwable throwable) { 43 | super(throwable); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/file/DownloadListener.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine.file; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 18.11.13. 5 | */ 6 | public interface DownloadListener { 7 | /** 8 | * On part downloaded. 9 | * 10 | * @param percent the percent 11 | * @param downloadedSize the downloaded size 12 | */ 13 | void onPartDownloaded(int percent, int downloadedSize); 14 | 15 | /** 16 | * On downloaded. 17 | * 18 | * @param task the task 19 | */ 20 | void onDownloaded(Downloader.DownloadTask task); 21 | 22 | /** 23 | * On failed. 24 | */ 25 | void onFailed(); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/engine/file/UploadListener.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.engine.file; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 19.11.13. 5 | */ 6 | public interface UploadListener { 7 | /** 8 | * On part uploaded. 9 | * 10 | * @param percent the percent 11 | * @param downloadedSize the downloaded size 12 | */ 13 | void onPartUploaded(int percent, int downloadedSize); 14 | 15 | /** 16 | * On uploaded. 17 | * 18 | * @param task the task 19 | */ 20 | void onUploaded(Uploader.UploadTask task); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/file/location/TLAbsFileLocation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.file.location; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs file location. 7 | */ 8 | public abstract class TLAbsFileLocation extends TLObject { 9 | /** 10 | * Instantiates a new TL abs file location. 11 | */ 12 | protected TLAbsFileLocation() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/foundgif/TLAbsFoundGif.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.foundgif; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsFoundGif extends TLObject { 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/functions/account/TLRequestAccountGetWallPapers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.functions.account; 2 | 3 | import org.telegram.api.wallpaper.TLAbsWallPaper; 4 | import org.telegram.tl.StreamingUtils; 5 | import org.telegram.tl.TLContext; 6 | import org.telegram.tl.TLMethod; 7 | import org.telegram.tl.TLVector; 8 | 9 | import java.io.IOException; 10 | import java.io.InputStream; 11 | 12 | /** 13 | * The type TL request account get wall papers. 14 | */ 15 | public class TLRequestAccountGetWallPapers extends TLMethod> { 16 | /** 17 | * The constant CLASS_ID. 18 | */ 19 | public static final int CLASS_ID = 0xc04cfac2; 20 | 21 | public int getClassId() { 22 | return CLASS_ID; 23 | } 24 | 25 | public TLVector deserializeResponse(InputStream stream, TLContext context) 26 | throws IOException { 27 | return StreamingUtils.readTLVector(stream, context); 28 | } 29 | 30 | public String toString() { 31 | return "account.getWallPapers#c04cfac2"; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/functions/contacts/TLRequestContactsExportCard.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.functions.contacts; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | import org.telegram.tl.TLIntVector; 6 | import org.telegram.tl.TLMethod; 7 | 8 | import java.io.IOException; 9 | import java.io.InputStream; 10 | 11 | /** 12 | * The type TL request contacts export card. 13 | */ 14 | public class TLRequestContactsExportCard extends TLMethod { 15 | /** 16 | * The constant CLASS_ID. 17 | */ 18 | public static final int CLASS_ID = 0x84e53737; 19 | 20 | /** 21 | * Instantiates a new TL request contacts export card. 22 | */ 23 | public TLRequestContactsExportCard() { 24 | super(); 25 | } 26 | 27 | public int getClassId() { 28 | return CLASS_ID; 29 | } 30 | 31 | public TLIntVector deserializeResponse(InputStream stream, TLContext context) 32 | throws IOException { 33 | return StreamingUtils.readTLIntVector(stream, context); 34 | } 35 | 36 | public String toString() { 37 | return "contacts.exportCard#84e53737"; 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/functions/contacts/TLRequestContactsGetStatuses.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.functions.contacts; 2 | 3 | import org.telegram.api.contact.TLContactStatus; 4 | import org.telegram.tl.StreamingUtils; 5 | import org.telegram.tl.TLContext; 6 | import org.telegram.tl.TLMethod; 7 | import org.telegram.tl.TLVector; 8 | 9 | import java.io.IOException; 10 | import java.io.InputStream; 11 | 12 | /** 13 | * The type TL request contacts get statuses. 14 | */ 15 | public class TLRequestContactsGetStatuses extends TLMethod> { 16 | /** 17 | * The constant CLASS_ID. 18 | */ 19 | public static final int CLASS_ID = 0xc4a353ee; 20 | 21 | /** 22 | * Instantiates a new TL request contacts get statuses. 23 | */ 24 | public TLRequestContactsGetStatuses() { 25 | super(); 26 | } 27 | 28 | public int getClassId() { 29 | return CLASS_ID; 30 | } 31 | 32 | public TLVector deserializeResponse(InputStream stream, TLContext context) 33 | throws IOException { 34 | return StreamingUtils.readTLVector(stream, context); 35 | } 36 | 37 | public String toString() { 38 | return "contacts.getStatuses#c4a353ee"; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/geo/point/TLAbsGeoPoint.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.geo.point; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs geo point. 7 | */ 8 | public abstract class TLAbsGeoPoint extends TLObject { 9 | /** 10 | * Instantiates a new TL abs geo point. 11 | */ 12 | protected TLAbsGeoPoint() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/geo/point/TLGeoPointEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.geo.point; 2 | 3 | /** 4 | * The type TL geo point empty. 5 | */ 6 | public class TLGeoPointEmpty extends TLAbsGeoPoint { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x1117dd5f; 11 | 12 | /** 13 | * Instantiates a new TL geo point empty. 14 | */ 15 | public TLGeoPointEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "geoPointEmpty#1117dd5f"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/help/TLNoAppUpdate.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.help; 2 | 3 | /** 4 | * The type TL no app update. 5 | */ 6 | public class TLNoAppUpdate extends TLAbsAppUpdate { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xc45a6536; 11 | 12 | /** 13 | * Instantiates a new TL no app update. 14 | */ 15 | public TLNoAppUpdate() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "help.noAppUpdate#c45a6536"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/bot/inlinemessage/TLAbsInputBotInlineMessage.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.input.bot.inlinemessage; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsInputBotInlineMessage extends TLObject { 28 | protected TLAbsInputBotInlineMessage() { 29 | super(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/bot/inlineresult/TLAbsInputBotInlineResult.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.input.bot.inlineresult; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsInputBotInlineResult extends TLObject { 28 | TLAbsInputBotInlineResult() { 29 | super(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/chat/TLAbsInputChannel.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.chat; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract representation of input chat 9 | * @date 19 of September of 2015 10 | */ 11 | public abstract class TLAbsInputChannel extends TLObject{ 12 | public abstract int getChannelId(); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/chat/TLInputChannelEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.chat; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief Input chat empty 7 | * @date 19 of September of 2015 8 | */ 9 | public class TLInputChannelEmpty extends TLAbsInputChannel { 10 | public static final int CLASS_ID = 0xee8c1e86; 11 | 12 | public TLInputChannelEmpty() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "input.chat.TLInputChannelEmpty#ee8c1e86"; 24 | } 25 | 26 | @Override 27 | public int getChannelId() { 28 | return 0; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/chat/photo/TLAbsInputChatPhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.chat.photo; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input chat photo. 7 | */ 8 | public abstract class TLAbsInputChatPhoto extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input chat photo. 11 | */ 12 | protected TLAbsInputChatPhoto() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/chat/photo/TLInputChatPhotoEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.chat.photo; 2 | 3 | /** 4 | * The type TL input chat photo empty. 5 | */ 6 | public class TLInputChatPhotoEmpty extends TLAbsInputChatPhoto { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x1ca48f57; 11 | 12 | /** 13 | * Instantiates a new TL input chat photo empty. 14 | */ 15 | public TLInputChatPhotoEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputChatPhotoEmpty#1ca48f57"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/document/TLInputDocumentEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.document; 2 | 3 | /** 4 | * The type TL input document empty. 5 | */ 6 | public class TLInputDocumentEmpty extends TLAbsInputDocument { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x72f0eaae; 11 | 12 | /** 13 | * Instantiates a new TL input document empty. 14 | */ 15 | public TLInputDocumentEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputDocumentEmpty#72f0eaae"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/encrypted/file/TLInputEncryptedFileEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.encrypted.file; 2 | 3 | /** 4 | * The type TL input encrypted file empty. 5 | */ 6 | public class TLInputEncryptedFileEmpty extends TLAbsInputEncryptedFile { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x1837c364; 11 | 12 | /** 13 | * Instantiates a new TL input encrypted file empty. 14 | */ 15 | public TLInputEncryptedFileEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputEncryptedFileEmpty#1837c364"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/filelocation/TLAbsInputFileLocation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.filelocation; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input file location. 7 | */ 8 | public abstract class TLAbsInputFileLocation extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input file location. 11 | */ 12 | protected TLAbsInputFileLocation() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/game/TLAbsInputGame.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.game; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 04 of October of 2016 10 | */ 11 | public abstract class TLAbsInputGame extends TLObject{ 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/geopoint/TLAbsInputGeoPoint.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.geopoint; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input geo point. 7 | */ 8 | public abstract class TLAbsInputGeoPoint extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input geo point. 11 | */ 12 | protected TLAbsInputGeoPoint() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/geopoint/TLInputGeoPointEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.geopoint; 2 | 3 | /** 4 | * The type TL input geo point empty. 5 | */ 6 | public class TLInputGeoPointEmpty extends TLAbsInputGeoPoint { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xe4c123d6; 11 | 12 | /** 13 | * Instantiates a new TL input geo point empty. 14 | */ 15 | public TLInputGeoPointEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputGeoPointEmpty#e4c123d6"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/media/TLAbsInputMedia.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.media; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input media. 7 | */ 8 | public abstract class TLAbsInputMedia extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input media. 11 | */ 12 | protected TLAbsInputMedia() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/media/TLInputMediaEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.media; 2 | 3 | /** 4 | * The type TL input media empty. 5 | */ 6 | public class TLInputMediaEmpty extends TLAbsInputMedia { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9664f57f; 11 | 12 | /** 13 | * Instantiates a new TL input media empty. 14 | */ 15 | public TLInputMediaEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputMediaEmpty#9664f57f"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/entity/TLAbsInputMessageEntity.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.entity; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsInputMessageEntity extends TLObject { 12 | public TLAbsInputMessageEntity() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLAbsMessagesFilter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs messages filter. 7 | */ 8 | public abstract class TLAbsMessagesFilter extends TLObject { 9 | /** 10 | * Instantiates a new TL abs messages filter. 11 | */ 12 | protected TLAbsMessagesFilter() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterDocument.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter document. 5 | */ 6 | public class TLMessagesFilterDocument extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9eddf188; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "inputMessagesFilterDocument#9eddf188"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter empty. 5 | */ 6 | public class TLMessagesFilterEmpty extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x57e2f66c; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "inputMessagesFilterEmpty#57e2f66c"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterPhotoVideo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter photo video. 5 | */ 6 | public class TLMessagesFilterPhotoVideo extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x56e9f0e4; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "inputMessagesFilterPhotoVideo#56e9f0e4"; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterPhotoVideoDocuments.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter photo video documents. 5 | */ 6 | public class TLMessagesFilterPhotoVideoDocuments extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xd95e73bb; 11 | 12 | /** 13 | * Instantiates a new TL messages filter photo video documents. 14 | */ 15 | public TLMessagesFilterPhotoVideoDocuments() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputMessagesFilterPhotoVideo#d95e73bb"; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterPhotos.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter photos. 5 | */ 6 | public class TLMessagesFilterPhotos extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9609a51c; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "inputMessagesFilterPhotos#9609a51c"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterRoundVideo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter photos. 5 | */ 6 | public class TLMessagesFilterRoundVideo extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xb549da53; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "inputMessagesFilterRoundVideo#b549da53"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterRoundVoice.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter photos. 5 | */ 6 | public class TLMessagesFilterRoundVoice extends TLAbsMessagesFilter { 7 | public static final int CLASS_ID = 0x7a7c17a4; 8 | 9 | public int getClassId() { 10 | return CLASS_ID; 11 | } 12 | 13 | public String toString() { 14 | return "inputMessagesFilterRoundVoice#7a7c17a4"; 15 | } 16 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterUrl.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter audio. 5 | */ 6 | public class TLMessagesFilterUrl extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x7ef0dd87; 11 | 12 | /** 13 | * Instantiates a new TL messages filter audio. 14 | */ 15 | public TLMessagesFilterUrl() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputMessagesFilterUrl#7ef0dd87"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/messages/filter/TLMessagesFilterVideo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.messages.filter; 2 | 3 | /** 4 | * The type TL messages filter video. 5 | */ 6 | public class TLMessagesFilterVideo extends TLAbsMessagesFilter { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9fc00e65; 11 | 12 | /** 13 | * Instantiates a new TL messages filter video. 14 | */ 15 | public TLMessagesFilterVideo() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputMessagesFilterVideo#9fc00e65"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/notify/TLAbsInputNotifyPeer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.notify; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input notify peer. 7 | */ 8 | public abstract class TLAbsInputNotifyPeer extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input notify peer. 11 | */ 12 | protected TLAbsInputNotifyPeer() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/notify/TLInputNotifyAll.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.notify; 2 | 3 | /** 4 | * The type TL input notify all. 5 | */ 6 | public class TLInputNotifyAll extends TLAbsInputNotifyPeer { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xa429b886; 11 | 12 | /** 13 | * Instantiates a new TL input notify all. 14 | */ 15 | public TLInputNotifyAll() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputNotifyAll#a429b886"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/notify/TLInputNotifyChats.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.notify; 2 | 3 | /** 4 | * The type TL input notify chats. 5 | */ 6 | public class TLInputNotifyChats extends TLAbsInputNotifyPeer { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x4a95e84e; 11 | 12 | /** 13 | * Instantiates a new TL input notify chats. 14 | */ 15 | public TLInputNotifyChats() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputNotifyChats#4a95e84e"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/notify/TLInputNotifyUsers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.notify; 2 | 3 | /** 4 | * The type TL input notify users. 5 | */ 6 | public class TLInputNotifyUsers extends TLAbsInputNotifyPeer { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x193b4417; 11 | 12 | /** 13 | * Instantiates a new TL input notify users. 14 | */ 15 | public TLInputNotifyUsers() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputNotifyUsers#193b4417"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/paymentapi/paymentcredentials/TLAbsInputPaymentCredentials.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.paymentapi.paymentcredentials; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsInputPaymentCredentials extends TLObject { 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/TLAbsInputPeer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input peer. 7 | */ 8 | public abstract class TLAbsInputPeer extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input peer. 11 | */ 12 | protected TLAbsInputPeer() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/TLInputPeerEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer; 2 | 3 | /** 4 | * The type TL input peer empty. 5 | */ 6 | public class TLInputPeerEmpty extends TLAbsInputPeer { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x7f3b18ea; 11 | 12 | /** 13 | * Instantiates a new TL input peer empty. 14 | */ 15 | public TLInputPeerEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputPeerEmpty#7f3b18ea"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/TLInputPeerSelf.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer; 2 | 3 | /** 4 | * The type TL input peer self. 5 | */ 6 | public class TLInputPeerSelf extends TLAbsInputPeer { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x7da07ec9; 11 | 12 | /** 13 | * Instantiates a new TL input peer self. 14 | */ 15 | public TLInputPeerSelf() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputPeerSelf#7da07ec9"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/notify/events/TLAbsInputPeerNotifyEvents.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer.notify.events; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input peer notify events. 7 | */ 8 | public abstract class TLAbsInputPeerNotifyEvents extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input peer notify events. 11 | */ 12 | protected TLAbsInputPeerNotifyEvents() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/notify/events/TLInputPeerNotifyEventsAll.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer.notify.events; 2 | 3 | /** 4 | * The type TL input peer notify events all. 5 | */ 6 | public class TLInputPeerNotifyEventsAll extends TLAbsInputPeerNotifyEvents { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xe86a2c74; 11 | 12 | /** 13 | * Instantiates a new TL input peer notify events all. 14 | */ 15 | public TLInputPeerNotifyEventsAll() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputPeerNotifyEventsAll#e86a2c74"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/peer/notify/events/TLInputPeerNotifyEventsEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.peer.notify.events; 2 | 3 | /** 4 | * The type TL input peer notify events empty. 5 | */ 6 | public class TLInputPeerNotifyEventsEmpty extends TLAbsInputPeerNotifyEvents { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xf03064d8; 11 | 12 | /** 13 | * Instantiates a new TL input peer notify events empty. 14 | */ 15 | public TLInputPeerNotifyEventsEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputPeerNotifyEventsEmpty#f03064d8"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/photo/TLAbsInputPhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.photo; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input photo. 7 | */ 8 | public abstract class TLAbsInputPhoto extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input photo. 11 | */ 12 | protected TLAbsInputPhoto() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/photo/TLInputPhotoEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.photo; 2 | 3 | /** 4 | * The type TL input photo empty. 5 | */ 6 | public class TLInputPhotoEmpty extends TLAbsInputPhoto { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x1cd7bf0d; 11 | 12 | /** 13 | * Instantiates a new TL input photo empty. 14 | */ 15 | public TLInputPhotoEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputPhotoEmpty#1cd7bf0d"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/privacy/inputprivacykey/TLAbsInputPrivacyKey.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | 18 | package org.telegram.api.input.privacy.inputprivacykey; 19 | 20 | import org.telegram.tl.TLObject; 21 | 22 | /** 23 | * The type TL input privacy key status timestamp. 24 | * @author Ruben Bermudez 25 | * @version 2.0 26 | * @brief TLInputPrivacyKeyStatusTimestamp 27 | * @date 21 /11/14 28 | */ 29 | public abstract class TLAbsInputPrivacyKey extends TLObject { 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/reportspamreason/TLAbsReportSpamReason.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | 18 | package org.telegram.api.input.reportspamreason; 19 | 20 | import org.telegram.tl.TLObject; 21 | 22 | /** 23 | * @author Ruben Bermudez 24 | * @version 1.0 25 | * @brief TODO 26 | * @date 13 of February of 2016 27 | */ 28 | public abstract class TLAbsReportSpamReason extends TLObject { 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/sticker/media/TLAbsInputStickeredMedia.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.sticker.media; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 26 of September of 2016 10 | */ 11 | public abstract class TLAbsInputStickeredMedia extends TLObject { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/sticker/set/TLAbsInputStickerSet.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.sticker.set; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of July of 2015 10 | */ 11 | public abstract class TLAbsInputStickerSet extends TLObject { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/sticker/set/TLInputStickerSetEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.sticker.set; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of July of 2015 8 | */ 9 | public class TLInputStickerSetEmpty extends TLAbsInputStickerSet { 10 | public static final int CLASS_ID = 0xffb62b95; 11 | 12 | @Override 13 | public int getClassId() { 14 | return CLASS_ID; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "sticker.set.inputStickerSetEmpty#ffb62b95"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/sticker/set/TLInputStickerSetShortName.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.sticker.set; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | * @brief TODO 14 | * @date 07 of July of 2015 15 | */ 16 | public class TLInputStickerSetShortName extends TLAbsInputStickerSet { 17 | public static final int CLASS_ID = 0x861cc8a0; 18 | 19 | private String shortName; 20 | 21 | @Override 22 | public int getClassId() { 23 | return CLASS_ID; 24 | } 25 | 26 | @Override 27 | public void serializeBody(OutputStream stream) throws IOException { 28 | StreamingUtils.writeTLString(this.shortName, stream); 29 | } 30 | 31 | @Override 32 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 33 | this.shortName = StreamingUtils.readTLString(stream); 34 | } 35 | 36 | @Override 37 | public String toString() { 38 | return "sticker.set.inputStickerSetShortName#861cc8a0"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/user/TLAbsInputUser.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.user; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs input user. 7 | */ 8 | public abstract class TLAbsInputUser extends TLObject { 9 | /** 10 | * Instantiates a new TL abs input user. 11 | */ 12 | protected TLAbsInputUser() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/user/TLInputUserEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.user; 2 | 3 | /** 4 | * The type TL input user empty. 5 | */ 6 | public class TLInputUserEmpty extends TLAbsInputUser { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xb98886cf; 11 | 12 | /** 13 | * Instantiates a new TL input user empty. 14 | */ 15 | public TLInputUserEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputUserEmpty#b98886cf"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/input/user/TLInputUserSelf.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.input.user; 2 | 3 | /** 4 | * The type TL input user self. 5 | */ 6 | public class TLInputUserSelf extends TLAbsInputUser { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xf7c1b13f; 11 | 12 | /** 13 | * Instantiates a new TL input user self. 14 | */ 15 | public TLInputUserSelf() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "inputUserSelf#f7c1b13f"; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/keyboard/button/TLAbsKeyboardButton.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.keyboard.button; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Represetation of a button in keyboard 9 | * @date 07 of July of 2015 10 | */ 11 | public abstract class TLAbsKeyboardButton extends TLObject { 12 | protected String text; 13 | 14 | TLAbsKeyboardButton() { 15 | super(); 16 | } 17 | 18 | public String getText() { 19 | return text; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/keyboard/button/TLKeyboardButtonRequestPhone.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.keyboard.button; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | * @brief Represetation of a button in keyboard 14 | * @date 07 of July of 2015 15 | */ 16 | public class TLKeyboardButtonRequestPhone extends TLAbsKeyboardButton { 17 | public static final int CLASS_ID = 0xb16a6c29; 18 | 19 | public TLKeyboardButtonRequestPhone() { 20 | super(); 21 | } 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | @Override 29 | public void serializeBody(OutputStream stream) throws IOException { 30 | StreamingUtils.writeTLString(this.text, stream); 31 | } 32 | 33 | @Override 34 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 35 | this.text = StreamingUtils.readTLString(stream); 36 | } 37 | 38 | @Override 39 | public String toString() { 40 | return "keyboardButtonRequestPhone#b16a6c29"; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/keyboard/replymarkup/TLAbsReplyMarkup.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.keyboard.replymarkup; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract representation of a replay markup 9 | * @date 07 of July of 2015 10 | */ 11 | public abstract class TLAbsReplyMarkup extends TLObject { 12 | protected TLAbsReplyMarkup() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/TLAbsMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs message. 7 | */ 8 | public abstract class TLAbsMessage extends TLObject { 9 | 10 | /** 11 | * Instantiates a new TL abs message. 12 | */ 13 | protected TLAbsMessage() { 14 | super(); 15 | } 16 | 17 | public abstract int getChatId(); 18 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/action/TLAbsMessageAction.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.action; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs message action. 7 | */ 8 | public abstract class TLAbsMessageAction extends TLObject { 9 | /** 10 | * Instantiates a new TL abs message action. 11 | */ 12 | protected TLAbsMessageAction() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/action/TLMessageActionChatDeletePhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.action; 2 | 3 | /** 4 | * The type TL message action chat delete photo. 5 | */ 6 | public class TLMessageActionChatDeletePhoto extends TLAbsMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x95e3fbef; 11 | 12 | /** 13 | * Instantiates a new TL message action chat delete photo. 14 | */ 15 | public TLMessageActionChatDeletePhoto() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "messageActionChatDeletePhoto#95e3fbef"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/action/TLMessageActionEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.action; 2 | 3 | /** 4 | * The type TL message action empty. 5 | */ 6 | public class TLMessageActionEmpty extends TLAbsMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xb6aef7b0; 11 | 12 | /** 13 | * Instantiates a new TL message action empty. 14 | */ 15 | public TLMessageActionEmpty() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "messageActionEmpty#b6aef7b0"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/action/TLMessageActionHistoryClear.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.action; 2 | 3 | /** 4 | * The type TL message action history clear. 5 | */ 6 | public class TLMessageActionHistoryClear extends TLAbsMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9fbab604; 11 | 12 | /** 13 | * Instantiates a new TL message action pin message. 14 | */ 15 | public TLMessageActionHistoryClear() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "messageActionHistoryClear#9fbab604"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/action/TLMessageActionPinMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.action; 2 | 3 | /** 4 | * The type TL message action channel create. 5 | */ 6 | public class TLMessageActionPinMessage extends TLAbsMessageAction { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x94bd38ed; 11 | 12 | /** 13 | * Instantiates a new TL message action pin message. 14 | */ 15 | public TLMessageActionPinMessage() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "messageActionPinMessage#94bd38ed"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/entity/TLAbsMessageEntity.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.entity; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief Abstract representation of entities in a message 9 | * @date 19 of September of 2015 10 | */ 11 | public abstract class TLAbsMessageEntity extends TLObject { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/media/TLAbsMessageMedia.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.media; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs message media. 7 | */ 8 | public abstract class TLAbsMessageMedia extends TLObject { 9 | /** 10 | * Instantiates a new TL abs message media. 11 | */ 12 | protected TLAbsMessageMedia() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/media/TLMessageMediaEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.media; 2 | 3 | /** 4 | * The type TL message media empty. 5 | */ 6 | public class TLMessageMediaEmpty extends TLAbsMessageMedia { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x3ded6320; 11 | 12 | /** 13 | * Instantiates a new TL message media empty. 14 | */ 15 | public TLMessageMediaEmpty() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "messageMediaEmpty#3ded6320"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/message/media/TLMessageMediaUnsupported.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.message.media; 2 | 3 | /** 4 | * The type TL message media unsupported. 5 | */ 6 | public class TLMessageMediaUnsupported extends TLAbsMessageMedia { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9f84f49e; 11 | 12 | /** 13 | * Instantiates a new TL message media unsupported. 14 | */ 15 | public TLMessageMediaUnsupported() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "messageMediaUnsupported#9f84f49e"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/chats/TLAbsMessagesChats.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.chats; 2 | 3 | import org.telegram.api.chat.TLAbsChat; 4 | import org.telegram.tl.TLObject; 5 | import org.telegram.tl.TLVector; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 1.0 10 | */ 11 | public abstract class TLAbsMessagesChats extends TLObject { 12 | /** 13 | * The Chats. 14 | */ 15 | protected TLVector chats; 16 | 17 | public TLVector getChats() { 18 | return chats; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/dhconfig/TLDhConfigNotModified.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.dhconfig; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL dh config not modified. 12 | */ 13 | public class TLDhConfigNotModified extends TLAbsDhConfig { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0xc0e24635; 18 | 19 | /** 20 | * Instantiates a new TL dh config not modified. 21 | */ 22 | public TLDhConfigNotModified() { 23 | super(); 24 | } 25 | 26 | public int getClassId() { 27 | return CLASS_ID; 28 | } 29 | 30 | public void serializeBody(OutputStream stream) 31 | throws IOException { 32 | StreamingUtils.writeTLBytes(this.random, stream); 33 | } 34 | 35 | public void deserializeBody(InputStream stream, TLContext context) 36 | throws IOException { 37 | this.random = StreamingUtils.readTLBytes(stream, context); 38 | } 39 | 40 | public String toString() { 41 | return "messages.dhConfigNotModified#c0e24635"; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/savedgifs/TLAbsSavedGifs.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.api.messages.savedgifs; 18 | 19 | import org.telegram.tl.TLObject; 20 | 21 | /** 22 | * @author Ruben Bermudez 23 | * @version 1.0 24 | * @brief TODO 25 | * @date 13 of February of 2016 26 | */ 27 | public abstract class TLAbsSavedGifs extends TLObject { 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/sentencrypted/TLSentEncryptedMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.sentencrypted; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL sent encrypted message. 12 | */ 13 | public class TLSentEncryptedMessage extends TLAbsSentEncryptedMessage { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0x560f8935; 18 | 19 | /** 20 | * Instantiates a new TL sent encrypted message. 21 | */ 22 | public TLSentEncryptedMessage() { 23 | super(); 24 | } 25 | 26 | public int getClassId() { 27 | return CLASS_ID; 28 | } 29 | 30 | public void serializeBody(OutputStream stream) 31 | throws IOException { 32 | StreamingUtils.writeInt(this.date, stream); 33 | } 34 | 35 | public void deserializeBody(InputStream stream, TLContext context) 36 | throws IOException { 37 | this.date = StreamingUtils.readInt(stream); 38 | } 39 | 40 | public String toString() { 41 | return "messages.sentEncryptedMessage#560f8935"; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/TLAbsAllStickers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.messages.stickers; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * The type TL abs all stickers. 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @brief TLAbsAllStickers 17 | * @date 9 /01/15 18 | */ 19 | public abstract class TLAbsAllStickers extends TLObject { 20 | /** 21 | * Instantiates a new TL abs all stickers. 22 | */ 23 | protected TLAbsAllStickers() { 24 | super(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/TLAbsStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs stickers. 7 | * @author Ruben Bermudez 8 | * @version 2.0 9 | * @brief TLAbsStickers 10 | * @date 13 of June of 2015 11 | */ 12 | public abstract class TLAbsStickers extends TLObject { 13 | /** 14 | * Instantiates a new TL abs stickers. 15 | */ 16 | protected TLAbsStickers() { 17 | super(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/TLAllStickersNotModified.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.messages.stickers; 9 | 10 | /** 11 | * The type TL all stickers not modified. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLAllStickersNotModified 15 | * @date 9 /01/15 16 | */ 17 | public class TLAllStickersNotModified extends TLAbsAllStickers { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xe86602c3; 22 | 23 | /** 24 | * Instantiates a new TL all stickers not modified. 25 | */ 26 | public TLAllStickersNotModified() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | 36 | @Override 37 | public String toString() { 38 | return "allStickersNotModified#e86602c3"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/TLStickersNotModified.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.messages.stickers; 9 | 10 | /** 11 | * The type TL stickers not modified. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLStickersNotModified 15 | * @date 9 /01/15 16 | */ 17 | public class TLStickersNotModified extends TLAbsStickers { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xf1749a22; 22 | 23 | /** 24 | * Instantiates a new TL stickers not modified. 25 | */ 26 | public TLStickersNotModified() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | 36 | @Override 37 | public String toString() { 38 | return "StickersNotModified#f1749a22"; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/featured/TLAbsMessagesFeaturedStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.featured; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsMessagesFeaturedStickers extends TLObject { 12 | public TLAbsMessagesFeaturedStickers() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/featured/TLMessagesFeaturedStickersNotModified.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.featured; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLMessagesFeaturedStickersNotModified extends TLAbsMessagesFeaturedStickers { 10 | public static final int CLASS_ID = 0x4ede3cf; 11 | 12 | public TLMessagesFeaturedStickersNotModified() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "messages.featuredStickersNotModified#4ede3cf"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/recent/TLAbsMessagesRecentStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.recent; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsMessagesRecentStickers extends TLObject { 12 | public TLAbsMessagesRecentStickers() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/recent/TLMessagesRecentStickersNotModified.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.recent; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public class TLMessagesRecentStickersNotModified extends TLObject { 12 | public static final int CLASS_ID = 0xb17f890; 13 | 14 | public TLMessagesRecentStickersNotModified() { 15 | super(); 16 | } 17 | 18 | @Override 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return "messages.recentStickersNotModified#b17f890"; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/setintallresult/TLAbsMessagesStickerSetInstallResult.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.setintallresult; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 08 of August of 2016 10 | */ 11 | public abstract class TLAbsMessagesStickerSetInstallResult extends TLObject { 12 | public TLAbsMessagesStickerSetInstallResult() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/messages/stickers/setintallresult/TLMessagesStickerSetInstallResultSuccess.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.messages.stickers.setintallresult; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 08 of August of 2016 8 | */ 9 | public class TLMessagesStickerSetInstallResultSuccess extends TLAbsMessagesStickerSetInstallResult { 10 | public static final int CLASS_ID = 0x38641628; 11 | 12 | public TLMessagesStickerSetInstallResultSuccess() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "messages.stickerSetInstallResultSuccess#38641628"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/notify/peer/TLAbsNotifyPeer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.notify.peer; 9 | 10 | import org.telegram.tl.TLObject; 11 | 12 | /** 13 | * The type TL abs notify peer. 14 | * @author Ruben Bermudez 15 | * @version 2.0 16 | * @brief TLAbsNotifyPeer 17 | * @date 13 /11/14 18 | */ 19 | public abstract class TLAbsNotifyPeer extends TLObject { 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/notify/peer/TLNotifyAll.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.notify.peer; 9 | 10 | /** 11 | * The type TL notify all. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLNotifyAll 15 | * @date 13 /11/14 16 | */ 17 | public class TLNotifyAll extends TLAbsNotifyPeer { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0x74d07c60; 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return "notifyAll#74d07c60"; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/notify/peer/TLNotifyChats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.notify.peer; 9 | 10 | /** 11 | * The type TL notify chats. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLNotifyChats 15 | * @date 13 /11/14 16 | */ 17 | public class TLNotifyChats extends TLAbsNotifyPeer { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xc007cec3; 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return "notifyChats#c007cec3"; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/notify/peer/TLNotifyUsers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.api.notify.peer; 9 | 10 | /** 11 | * The type TL notify users. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLNotifyUsers 15 | * @date 13 /11/14 16 | */ 17 | public class TLNotifyUsers extends TLAbsNotifyPeer { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xb4c83b4c; 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | @Override 29 | public String toString() { 30 | return "notifyUsers#b4c83b4c"; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/page/TLAbsPage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.page; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPage extends TLObject { 10 | public TLAbsPage() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/page/block/TLAbsPageBlock.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.page.block; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPageBlock extends TLObject { 10 | public TLAbsPageBlock() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/page/block/TLPageBlockAnchor.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.page.block; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | */ 14 | public class TLPageBlockAnchor extends TLAbsPageBlock { 15 | public static final int CLASS_ID = 0xce0d37b0; 16 | 17 | private String name; 18 | 19 | public TLPageBlockAnchor() { 20 | super(); 21 | } 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | @Override 33 | public void serializeBody(OutputStream stream) throws IOException { 34 | StreamingUtils.writeTLString(name, stream); 35 | } 36 | 37 | @Override 38 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 39 | name = StreamingUtils.readTLString(stream); 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return "pageBlockAnchor#ce0d37b0"; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/page/block/TLPageBlockDivider.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.page.block; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | */ 7 | public class TLPageBlockDivider extends TLAbsPageBlock { 8 | public static final int CLASS_ID = 0xdb20b188; 9 | 10 | public TLPageBlockDivider() { 11 | super(); 12 | } 13 | 14 | @Override 15 | public int getClassId() { 16 | return CLASS_ID; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "pageBlockDivider#db20b188"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/page/block/TLPageBlockUnsupported.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.page.block; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | */ 7 | public class TLPageBlockUnsupported extends TLAbsPageBlock { 8 | public static final int CLASS_ID = 0x13567e8a; 9 | 10 | public TLPageBlockUnsupported() { 11 | super(); 12 | } 13 | 14 | @Override 15 | public int getClassId() { 16 | return CLASS_ID; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "pageBlockUnsupported#13567e8a"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/paymentapi/payments/result/TLAbsPaymentsPaymentResult.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.paymentapi.payments.result; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPaymentsPaymentResult extends TLObject { 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/paymentapi/savedcredentails/TLAbsPaymentSavedCredentials.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.paymentapi.savedcredentails; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPaymentSavedCredentials extends TLObject { 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/TLAbsPeer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs peer. 7 | */ 8 | public abstract class TLAbsPeer extends TLObject { 9 | 10 | protected int id; 11 | 12 | /** 13 | * Instantiates a new TL abs peer. 14 | */ 15 | protected TLAbsPeer() { 16 | super(); 17 | } 18 | 19 | public int getId() { 20 | return id; 21 | } 22 | 23 | public void setId(int id) { 24 | this.id = id; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/TLPeerChannel.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL peer channel. 12 | */ 13 | public class TLPeerChannel extends TLAbsPeer { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0xbddde532; 18 | 19 | /** 20 | * Instantiates a new TL peer channel. 21 | */ 22 | public TLPeerChannel() { 23 | super(); 24 | } 25 | 26 | @Override 27 | public int getClassId() { 28 | return CLASS_ID; 29 | } 30 | 31 | @Override 32 | public void serializeBody(OutputStream stream) 33 | throws IOException { 34 | StreamingUtils.writeInt(this.id, stream); 35 | } 36 | 37 | @Override 38 | public void deserializeBody(InputStream stream, TLContext context) 39 | throws IOException { 40 | this.id = StreamingUtils.readInt(stream); 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "peerChannel#bddde532"; 46 | } 47 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/TLPeerChat.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL peer chat. 12 | */ 13 | public class TLPeerChat extends TLAbsPeer { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0xbad0e5bb; 18 | 19 | /** 20 | * Instantiates a new TL peer chat. 21 | */ 22 | public TLPeerChat() { 23 | super(); 24 | } 25 | 26 | public int getClassId() { 27 | return CLASS_ID; 28 | } 29 | 30 | public void serializeBody(OutputStream stream) 31 | throws IOException { 32 | StreamingUtils.writeInt(this.id, stream); 33 | } 34 | 35 | public void deserializeBody(InputStream stream, TLContext context) 36 | throws IOException { 37 | this.id = StreamingUtils.readInt(stream); 38 | } 39 | 40 | public String toString() { 41 | return "peerChat#bad0e5bb"; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/TLPeerUser.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL peer user. 12 | */ 13 | public class TLPeerUser extends TLAbsPeer { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0x9db1bc6d; 18 | 19 | /** 20 | * Instantiates a new TL peer user. 21 | */ 22 | public TLPeerUser() { 23 | super(); 24 | } 25 | 26 | @Override 27 | public int getClassId() { 28 | return CLASS_ID; 29 | } 30 | 31 | @Override 32 | public void serializeBody(OutputStream stream) 33 | throws IOException { 34 | StreamingUtils.writeInt(this.id, stream); 35 | } 36 | 37 | @Override 38 | public void deserializeBody(InputStream stream, TLContext context) 39 | throws IOException { 40 | this.id = StreamingUtils.readInt(stream); 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "peerUser#9db1bc6d"; 46 | } 47 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/notify/events/TLAbsPeerNotifyEvents.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer.notify.events; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs peer notify events. 7 | */ 8 | public abstract class TLAbsPeerNotifyEvents extends TLObject { 9 | /** 10 | * Instantiates a new TL abs peer notify events. 11 | */ 12 | protected TLAbsPeerNotifyEvents() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/notify/events/TLPeerNotifyEventsAll.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer.notify.events; 2 | 3 | /** 4 | * The type TL peer notify events all. 5 | */ 6 | public class TLPeerNotifyEventsAll extends TLAbsPeerNotifyEvents { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x6d1ded88; 11 | 12 | /** 13 | * Instantiates a new TL peer notify events all. 14 | */ 15 | public TLPeerNotifyEventsAll() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "peerNotifyEventsAll#6d1ded88"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/notify/events/TLPeerNotifyEventsEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer.notify.events; 2 | 3 | /** 4 | * The type TL peer notify events empty. 5 | */ 6 | public class TLPeerNotifyEventsEmpty extends TLAbsPeerNotifyEvents { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xadd53cb3; 11 | 12 | /** 13 | * Instantiates a new TL peer notify events empty. 14 | */ 15 | public TLPeerNotifyEventsEmpty() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "peerNotifyEventsEmpty#add53cb3"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/notify/settings/TLAbsPeerNotifySettings.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer.notify.settings; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs peer notify settings. 7 | */ 8 | public abstract class TLAbsPeerNotifySettings extends TLObject { 9 | 10 | public TLAbsPeerNotifySettings() { 11 | super(); 12 | } 13 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/peer/notify/settings/TLPeerNotifySettingsEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.peer.notify.settings; 2 | 3 | /** 4 | * The type TL peer notify settings empty. 5 | */ 6 | public class TLPeerNotifySettingsEmpty extends TLAbsPeerNotifySettings { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x70a68512; 11 | 12 | /** 13 | * Instantiates a new TL peer notify settings empty. 14 | */ 15 | public TLPeerNotifySettingsEmpty() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "peerNotifySettingsEmpty#70a68512"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/TLAbsPhoneCall.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPhoneCall extends TLObject { 10 | public TLAbsPhoneCall() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/TLPhoneCallEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | */ 14 | public class TLPhoneCallEmpty extends TLAbsPhoneCall { 15 | public static final int CLASS_ID = 0x5366c915; 16 | 17 | private long id; 18 | 19 | public TLPhoneCallEmpty() { 20 | super(); 21 | } 22 | 23 | @Override 24 | public int getClassId() { 25 | return CLASS_ID; 26 | } 27 | 28 | public long getId() { 29 | return id; 30 | } 31 | 32 | @Override 33 | public void serializeBody(OutputStream stream) throws IOException { 34 | StreamingUtils.writeLong(id, stream); 35 | } 36 | 37 | @Override 38 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 39 | id = StreamingUtils.readLong(stream); 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return "phoneCallEmpty#5366c915"; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/discardreason/TLAbsPhoneCallDiscardReason.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call.discardreason; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsPhoneCallDiscardReason extends TLObject { 10 | public TLAbsPhoneCallDiscardReason() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/discardreason/TLPhoneCallDiscardReasonBusy.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call.discardreason; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public class TLPhoneCallDiscardReasonBusy extends TLAbsPhoneCallDiscardReason { 10 | public static final int CLASS_ID = 0xfaf7e8c9; 11 | 12 | public TLPhoneCallDiscardReasonBusy() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "phoneCallDiscardReasonBusy#faf7e8c9"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/discardreason/TLPhoneCallDiscardReasonDisconnect.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call.discardreason; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public class TLPhoneCallDiscardReasonDisconnect extends TLAbsPhoneCallDiscardReason { 10 | public static final int CLASS_ID = 0xe095c1a0; 11 | 12 | public TLPhoneCallDiscardReasonDisconnect() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "phoneCallDiscardReasonDisconnect#e095c1a0"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/discardreason/TLPhoneCallDiscardReasonHangup.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call.discardreason; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public class TLPhoneCallDiscardReasonHangup extends TLAbsPhoneCallDiscardReason { 10 | public static final int CLASS_ID = 0x57adc690; 11 | 12 | public TLPhoneCallDiscardReasonHangup() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "phoneCallDiscardReasonHangup#57adc690"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/phone/call/discardreason/TLPhoneCallDiscardReasonMissed.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.phone.call.discardreason; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public class TLPhoneCallDiscardReasonMissed extends TLAbsPhoneCallDiscardReason { 10 | public static final int CLASS_ID = 0x85e42301; 11 | 12 | public TLPhoneCallDiscardReasonMissed() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "phoneCallDiscardReasonMissed#85e42301"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/photo/TLAbsPhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.photo; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs photo. 7 | */ 8 | public abstract class TLAbsPhoto extends TLObject { 9 | /** 10 | * Instantiates a new TL abs photo. 11 | */ 12 | protected TLAbsPhoto() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/photo/size/TLAbsPhotoSize.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.photo.size; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs photo size. 7 | */ 8 | public abstract class TLAbsPhotoSize extends TLObject { 9 | /** 10 | * Instantiates a new TL abs photo size. 11 | */ 12 | protected TLAbsPhotoSize() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/richtext/TLAbsRichText.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.richtext; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsRichText extends TLObject { 10 | public TLAbsRichText() { 11 | super(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/richtext/TLTextEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.richtext; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public class TLTextEmpty extends TLAbsRichText { 10 | public static final int CLASS_ID = 0xdc3d824f; 11 | 12 | public TLTextEmpty() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "textEmpty#dc3d824f"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/richtext/TLTextPlain.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.richtext; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | import org.telegram.tl.TLObject; 6 | 7 | import java.io.IOException; 8 | import java.io.InputStream; 9 | import java.io.OutputStream; 10 | 11 | /** 12 | * @author Ruben Bermudez 13 | * @version 1.0 14 | */ 15 | public class TLTextPlain extends TLAbsRichText { 16 | public static final int CLASS_ID = 0x744694e0; 17 | 18 | private String text; 19 | 20 | public TLTextPlain() { 21 | super(); 22 | } 23 | 24 | @Override 25 | public int getClassId() { 26 | return CLASS_ID; 27 | } 28 | 29 | public String getText() { 30 | return text; 31 | } 32 | 33 | @Override 34 | public void serializeBody(OutputStream stream) throws IOException { 35 | StreamingUtils.writeTLString(text, stream); 36 | } 37 | 38 | @Override 39 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 40 | text = StreamingUtils.readTLString(stream); 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "textPlain#744694e0"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLAbsSendMessageAction.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.sendmessage.action; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs send message action. 7 | * @author Ruben Bermudez 8 | * @version 2.0 9 | * @brief SendMessageAction parent class 10 | * @date 12 /11/14 11 | */ 12 | public abstract class TLAbsSendMessageAction extends TLObject { 13 | /** 14 | * Instantiates a new TL abs send message action. 15 | */ 16 | protected TLAbsSendMessageAction() { 17 | super(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageCancelAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message cancel action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageCancelAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageCancelAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xfd5ec8f5; 22 | 23 | /** 24 | * Instantiates a new TL send message cancel action. 25 | */ 26 | public TLSendMessageCancelAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageCancelAction#fd5ec8f5"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageChooseContactAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message choose contact action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageChooseContactAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageChooseContactAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0x628cbc6f; 22 | 23 | /** 24 | * Instantiates a new TL send message choose contact action. 25 | */ 26 | public TLSendMessageChooseContactAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageChooseContactAction#628cbc6f"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageGamePlayAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TLSendMessageGamePlayAction. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageGamePlayAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageGamePlayAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xdd6a8f48; 22 | 23 | /** 24 | * Instantiates a new TL send message choose contact action. 25 | */ 26 | public TLSendMessageGamePlayAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageGamePlayAction#dd6a8f48"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageGeoLocationAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message geo location action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageGeoLocationAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageGeoLocationAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0x176f8ba1; 22 | 23 | /** 24 | * Instantiates a new TL send message geo location action. 25 | */ 26 | public TLSendMessageGeoLocationAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageGeoLocationAction#176f8ba1"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageRecordAudioAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message record audio action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageRecordAudioAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageRecordAudioAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xd52f73f7; 22 | 23 | /** 24 | * Instantiates a new TL send message record audio action. 25 | */ 26 | public TLSendMessageRecordAudioAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageRecordAudioAction#d52f73f7"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageRecordRoundAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message record audio action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | */ 15 | public class TLSendMessageRecordRoundAction extends TLAbsSendMessageAction { 16 | public static final int CLASS_ID = 0x88f27fbc; 17 | 18 | public TLSendMessageRecordRoundAction() { 19 | super(); 20 | } 21 | 22 | @Override 23 | public int getClassId() { 24 | return CLASS_ID; 25 | } 26 | 27 | public String toString() { 28 | return "sendMessageRecordRoundAction#88f27fbc"; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageRecordVideoAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message record video action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageRecordVideoAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageRecordVideoAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0xa187d66f; 22 | 23 | /** 24 | * Instantiates a new TL send message record video action. 25 | */ 26 | public TLSendMessageRecordVideoAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageRecordAudioAction#a187d66f"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sendmessage/action/TLSendMessageTypingAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 12/11/14. 7 | */ 8 | package org.telegram.api.sendmessage.action; 9 | 10 | /** 11 | * The type TL send message typing action. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLSendMessageTypingAction 15 | * @date 12 /11/14 16 | */ 17 | public class TLSendMessageTypingAction extends TLAbsSendMessageAction { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0x16bf744e; 22 | 23 | /** 24 | * Instantiates a new TL send message typing action. 25 | */ 26 | public TLSendMessageTypingAction() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | public String toString() { 36 | return "sendMessageTypingAction#16bf744e"; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/sticker/stickersetconvered/TLAbsStickerSetCovered.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.sticker.stickersetconvered; 2 | 3 | import org.telegram.api.document.TLAbsDocument; 4 | import org.telegram.api.sticker.set.TLStickerSet; 5 | import org.telegram.tl.TLObject; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 1.0 10 | * @brief TODO 11 | * @date 07 of August of 2016 12 | */ 13 | public abstract class TLAbsStickerSetCovered extends TLObject { 14 | protected TLStickerSet set; 15 | protected TLAbsDocument cover; 16 | 17 | public TLStickerSet getSet() { 18 | return set; 19 | } 20 | 21 | public TLAbsDocument getCover() { 22 | return cover; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLAbsFileType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs file type. 7 | */ 8 | public abstract class TLAbsFileType extends TLObject { 9 | /** 10 | * Instantiates a new TL abs file type. 11 | */ 12 | protected TLAbsFileType() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileGif.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file gif. 5 | */ 6 | public class TLFileGif extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xcae1aadf; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileGif#cae1aadf"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileJpeg.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file jpeg. 5 | */ 6 | public class TLFileJpeg extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x7efe0e; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileJpeg#7efe0e"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileMov.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file mov. 5 | */ 6 | public class TLFileMov extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x4b09ebbc; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileMov#4b09ebbc"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileMp3.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file mp 3. 5 | */ 6 | public class TLFileMp3 extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x528a0677; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileMp3#528a0677"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileMp4.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file mp 4. 5 | */ 6 | public class TLFileMp4 extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xb3cea0e4; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileMp4#b3cea0e4"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFilePartial.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file partial. 5 | */ 6 | public class TLFilePartial extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x40bc6f52; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.filePartial#40bc6f52"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFilePdf.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file pdf. 5 | */ 6 | public class TLFilePdf extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xae1e508d; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.filePdf#ae1e508d"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFilePng.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file png. 5 | */ 6 | public class TLFilePng extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xa4f63c0; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.filePng#a4f63c0"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileUnknown.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file unknown. 5 | */ 6 | public class TLFileUnknown extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xaa963b05; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileUnknown#aa963b05"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/storage/file/TLFileWebp.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.storage.file; 2 | 3 | /** 4 | * The type TL file webp. 5 | */ 6 | public class TLFileWebp extends TLAbsFileType { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x1081464c; 11 | 12 | public int getClassId() { 13 | return CLASS_ID; 14 | } 15 | 16 | public String toString() { 17 | return "storage.fileWebp#1081464c"; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLAbsTopPeerCategory.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief TODO 9 | * @date 07 of August of 2016 10 | */ 11 | public abstract class TLAbsTopPeerCategory extends TLObject { 12 | public TLAbsTopPeerCategory() { 13 | super(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLTopPeerCategoryBotsInline.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLTopPeerCategoryBotsInline extends TLAbsTopPeerCategory { 10 | public static final int CLASS_ID = 0x148677e2; 11 | 12 | public TLTopPeerCategoryBotsInline() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "topPeerCategoryBotsInline#148677e2"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLTopPeerCategoryBotsPM.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLTopPeerCategoryBotsPM extends TLAbsTopPeerCategory { 10 | public static final int CLASS_ID = 0xab661b5b; 11 | 12 | public TLTopPeerCategoryBotsPM() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "topPeerCategoryBotsPM#ab661b5b"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLTopPeerCategoryChannels.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLTopPeerCategoryChannels extends TLAbsTopPeerCategory { 10 | public static final int CLASS_ID = 0x161d9628; 11 | 12 | public TLTopPeerCategoryChannels() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "topPeerCategoryChannels#161d9628"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLTopPeerCategoryCorrespondents.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLTopPeerCategoryCorrespondents extends TLAbsTopPeerCategory { 10 | public static final int CLASS_ID = 0x637b7ed; 11 | 12 | public TLTopPeerCategoryCorrespondents() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "topPeerCategoryCorrespondents#637b7ed"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/toppeer/category/TLTopPeerCategoryGroups.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.toppeer.category; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of August of 2016 8 | */ 9 | public class TLTopPeerCategoryGroups extends TLAbsTopPeerCategory { 10 | public static final int CLASS_ID = 0xbd17a14a; 11 | 12 | public TLTopPeerCategoryGroups() { 13 | super(); 14 | } 15 | 16 | @Override 17 | public int getClassId() { 18 | return CLASS_ID; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "topPeerCategoryGroups#bd17a14a"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLAbsUpdate.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs update. 7 | */ 8 | public abstract class TLAbsUpdate extends TLObject { 9 | /** 10 | * Instantiates a new TL abs update. 11 | */ 12 | protected TLAbsUpdate() { 13 | super(); 14 | } 15 | 16 | public int getPts() { 17 | return 0; 18 | } 19 | 20 | public int getPtsCount() { 21 | return 0; 22 | }; 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLChannelUpdate.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 07 of April of 2016 8 | */ 9 | public interface TLChannelUpdate { 10 | int getChannelId(); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLFakeUpdate.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * The type TL abs update. 5 | */ 6 | public class TLFakeUpdate extends TLAbsUpdate { 7 | private int pts; 8 | private int ptsCount; 9 | 10 | public TLFakeUpdate() { 11 | super(); 12 | } 13 | 14 | public void setPtsCount(int ptsCount) { 15 | this.ptsCount = ptsCount; 16 | } 17 | 18 | public void setPts(int pts) { 19 | this.pts = pts; 20 | } 21 | 22 | public int getPts() { 23 | return pts; 24 | } 25 | 26 | public int getPtsCount() { 27 | return ptsCount; 28 | }; 29 | 30 | @Override 31 | public int getClassId() { 32 | return 0; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return "fakeUpdate#0"; 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLUpdateConfig.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * The type TL update channel new message 5 | */ 6 | public class TLUpdateConfig extends TLAbsUpdate { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xa229dd06; 11 | 12 | /** 13 | * Instantiates a new TL update channel new message 14 | */ 15 | public TLUpdateConfig() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | public String toString() { 25 | return "updateConfig#a229dd06"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLUpdatePtsChanged.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * The type TL update channel new message 5 | */ 6 | public class TLUpdatePtsChanged extends TLAbsUpdate { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x3354678f; 11 | 12 | /** 13 | * Instantiates a new TL update channel new message 14 | */ 15 | public TLUpdatePtsChanged() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | public String toString() { 25 | return "updatePtsChanged#3354678f"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLUpdateReadFeaturedStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * The type TL update channel new message 5 | */ 6 | public class TLUpdateReadFeaturedStickers extends TLAbsUpdate { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x571d2742; 11 | 12 | /** 13 | * Instantiates a new TL update channel new message 14 | */ 15 | public TLUpdateReadFeaturedStickers() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | public String toString() { 25 | return "updateReadFeaturedStickers#571d2742"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/update/TLUpdateRecentStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.update; 2 | 3 | /** 4 | * The type TL update channel new message 5 | */ 6 | public class TLUpdateRecentStickers extends TLAbsUpdate { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9a422c20; 11 | 12 | /** 13 | * Instantiates a new TL update channel new message 14 | */ 15 | public TLUpdateRecentStickers() { 16 | super(); 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | public String toString() { 25 | return "updateRecentStickers#9a422c20"; 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/updates/TLAbsUpdates.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.updates; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs updates. 7 | */ 8 | public abstract class TLAbsUpdates extends TLObject { 9 | /** 10 | * Instantiates a new TL abs updates. 11 | */ 12 | protected TLAbsUpdates() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/updates/TLUpdatesTooLong.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.updates; 2 | 3 | /** 4 | * The type TL updates too long. 5 | */ 6 | public class TLUpdatesTooLong extends TLAbsUpdates { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xe317af7e; 11 | 12 | /** 13 | * Instantiates a new TL updates too long. 14 | */ 15 | public TLUpdatesTooLong() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "updatesTooLong#e317af7e"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/updates/channel/differences/TLAbsUpdatesChannelDifferences.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.updates.channel.differences; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | * @brief The abstract type TL updates channel differences. 9 | * @date 20 of September of 2015 10 | */ 11 | public abstract class TLAbsUpdatesChannelDifferences extends TLObject { 12 | protected int flags; 13 | protected int pts; 14 | protected int timeout; 15 | 16 | public TLAbsUpdatesChannelDifferences() { 17 | super(); 18 | } 19 | 20 | public int getFlags() { 21 | return flags; 22 | } 23 | 24 | public void setFlags(int flags) { 25 | this.flags = flags; 26 | } 27 | 28 | public int getPts() { 29 | return pts; 30 | } 31 | 32 | public void setPts(int pts) { 33 | this.pts = pts; 34 | } 35 | 36 | public int getTimeout() { 37 | return timeout; 38 | } 39 | 40 | public void setTimeout(int timeout) { 41 | this.timeout = timeout; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/upload/cdn/TLAbsCdnFile.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.upload.cdn; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 1.0 8 | */ 9 | public abstract class TLAbsCdnFile extends TLObject { 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/upload/cdn/TLCdnFile.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.upload.cdn; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLBytes; 5 | import org.telegram.tl.TLContext; 6 | 7 | import java.io.IOException; 8 | import java.io.InputStream; 9 | import java.io.OutputStream; 10 | 11 | /** 12 | * @author Ruben Bermudez 13 | * @version 1.0 14 | */ 15 | public class TLCdnFile extends TLAbsCdnFile { 16 | public static final int CLASS_ID = 0xa99fca4f; 17 | 18 | private TLBytes bytes; 19 | 20 | public TLCdnFile() { 21 | super(); 22 | } 23 | 24 | public TLBytes getBytes() { 25 | return bytes; 26 | } 27 | 28 | @Override 29 | public int getClassId() { 30 | return CLASS_ID; 31 | } 32 | 33 | @Override 34 | public void serializeBody(OutputStream stream) throws IOException { 35 | StreamingUtils.writeTLBytes(bytes, stream); 36 | } 37 | 38 | @Override 39 | public void deserializeBody(InputStream stream, TLContext context) throws IOException { 40 | bytes = StreamingUtils.readTLBytes(stream, context); 41 | } 42 | 43 | @Override 44 | public String toString() { 45 | return "upload.cdnFile#a99fca4f"; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/upload/file/TLAbsFile.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.upload.file; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL file. 7 | */ 8 | public abstract class TLAbsFile extends TLObject { 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/TLAbsUser.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs user. 7 | */ 8 | public abstract class TLAbsUser extends TLObject { 9 | /** 10 | * The Id. 11 | */ 12 | protected int id; 13 | 14 | /** 15 | * Gets id. 16 | * 17 | * @return the id 18 | */ 19 | public int getId() { 20 | return this.id; 21 | } 22 | 23 | /** 24 | * Sets id. 25 | * 26 | * @param id the id 27 | */ 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/TLUserEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user; 2 | 3 | import org.telegram.tl.StreamingUtils; 4 | import org.telegram.tl.TLContext; 5 | 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.OutputStream; 9 | 10 | /** 11 | * The type TL user empty. 12 | */ 13 | public class TLUserEmpty extends TLAbsUser { 14 | /** 15 | * The constant CLASS_ID. 16 | */ 17 | public static final int CLASS_ID = 0x200250ba; 18 | 19 | /** 20 | * Instantiates a new TL user empty. 21 | */ 22 | public TLUserEmpty() { 23 | super(); 24 | } 25 | 26 | public int getClassId() { 27 | return CLASS_ID; 28 | } 29 | 30 | public void serializeBody(OutputStream stream) 31 | throws IOException { 32 | StreamingUtils.writeInt(this.id, stream); 33 | } 34 | 35 | public void deserializeBody(InputStream stream, TLContext context) 36 | throws IOException { 37 | this.id = StreamingUtils.readInt(stream); 38 | } 39 | 40 | public String toString() { 41 | return "userEmpty#200250ba"; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/profile/photo/TLAbsUserProfilePhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.profile.photo; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs user profile photo. 7 | */ 8 | public abstract class TLAbsUserProfilePhoto extends TLObject { 9 | /** 10 | * Instantiates a new TL abs user profile photo. 11 | */ 12 | protected TLAbsUserProfilePhoto() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/profile/photo/TLUserProfilePhotoEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.profile.photo; 2 | 3 | /** 4 | * The type TL user profile photo empty. 5 | */ 6 | public class TLUserProfilePhotoEmpty extends TLAbsUserProfilePhoto { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x4f11bae1; 11 | 12 | /** 13 | * Instantiates a new TL user profile photo empty. 14 | */ 15 | public TLUserProfilePhotoEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "userProfilePhotoEmpty#4f11bae1"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/status/TLAbsUserStatus.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.status; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs user status. 7 | */ 8 | public abstract class TLAbsUserStatus extends TLObject { 9 | /** 10 | * Instantiates a new TL abs user status. 11 | */ 12 | protected TLAbsUserStatus() { 13 | super(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/status/TLUserStatusEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.status; 2 | 3 | /** 4 | * The type TL user status empty. 5 | */ 6 | public class TLUserStatusEmpty extends TLAbsUserStatus { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x9d05049; 11 | 12 | /** 13 | * Instantiates a new TL user status empty. 14 | */ 15 | public TLUserStatusEmpty() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "userStatusEmpty#9d05049"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/status/TLUserStatusLastMonth.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.status; 2 | 3 | /** 4 | * The type TL user status last month. 5 | */ 6 | public class TLUserStatusLastMonth extends TLAbsUserStatus { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x77ebc742; 11 | 12 | /** 13 | * Instantiates a new TL user status last month. 14 | */ 15 | public TLUserStatusLastMonth() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "userStatusLastMonth#77ebc742"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/status/TLUserStatusLastWeek.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.status; 2 | 3 | /** 4 | * The type TL user status last week. 5 | */ 6 | public class TLUserStatusLastWeek extends TLAbsUserStatus { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0x7bf09fc; 11 | 12 | /** 13 | * Instantiates a new TL user status last week. 14 | */ 15 | public TLUserStatusLastWeek() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "userStatusLastWeek#7bf09fc"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/user/status/TLUserStatusRecently.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.user.status; 2 | 3 | /** 4 | * The type TL user status recently. 5 | */ 6 | public class TLUserStatusRecently extends TLAbsUserStatus { 7 | /** 8 | * The constant CLASS_ID. 9 | */ 10 | public static final int CLASS_ID = 0xe26f42f1; 11 | 12 | /** 13 | * Instantiates a new TL user status recently. 14 | */ 15 | public TLUserStatusRecently() { 16 | super(); 17 | } 18 | 19 | public int getClassId() { 20 | return CLASS_ID; 21 | } 22 | 23 | public String toString() { 24 | return "userStatusRecently#e26f42f1"; 25 | } 26 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/webpage/TLAbsWebPage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.api.webpage; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * The type TL abs web page. 7 | * @author Ruben Bermudez 8 | * @version 2.0 9 | * @brief TLAbsWebPage 10 | * @date 11 of April of 2015 11 | */ 12 | public abstract class TLAbsWebPage extends TLObject { 13 | /** 14 | * Instantiates a new TL abs web page. 15 | */ 16 | protected TLAbsWebPage() { 17 | super(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/api/webpage/TLWebPageNotModified.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 9/01/15. 7 | */ 8 | package org.telegram.api.webpage; 9 | 10 | /** 11 | * The type TL web page empty. 12 | * @author Ruben Bermudez 13 | * @version 2.0 14 | * @brief TLWebPageEmpty 15 | * @date 9 /01/15 16 | */ 17 | public class TLWebPageNotModified extends TLAbsWebPage { 18 | /** 19 | * The constant CLASS_ID. 20 | */ 21 | public static final int CLASS_ID = 0x85849473; 22 | 23 | /** 24 | * Instantiates a new TL web page empty. 25 | */ 26 | public TLWebPageNotModified() { 27 | super(); 28 | } 29 | 30 | @Override 31 | public int getClassId() { 32 | return CLASS_ID; 33 | } 34 | 35 | @Override 36 | public String toString() { 37 | return "webPageNotModified#85849473"; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/ChatUpdatesBuilder.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot; 2 | 3 | import org.telegram.bot.handlers.UpdatesHandlerBase; 4 | import org.telegram.bot.kernel.IKernelComm; 5 | import org.telegram.bot.kernel.database.DatabaseManager; 6 | import org.telegram.bot.kernel.differenceparameters.IDifferenceParametersService; 7 | 8 | import java.lang.reflect.InvocationTargetException; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | * @brief TODO 14 | * @date 12 of April of 2016 15 | */ 16 | public interface ChatUpdatesBuilder { 17 | UpdatesHandlerBase build() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException; 18 | void setKernelComm(IKernelComm kernelComm); 19 | void setDifferenceParametersService(IDifferenceParametersService differenceParametersService); 20 | DatabaseManager getDatabaseManager(); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/GenericErrorTelegramFunctionCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot; 2 | 3 | import org.telegram.api.engine.RpcException; 4 | import org.telegram.api.engine.TimeoutException; 5 | import org.telegram.tl.TLObject; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 1.0 10 | * @brief Callback to execute telegram api method 11 | * @date 26 of September of 2015 12 | */ 13 | public abstract class GenericErrorTelegramFunctionCallback implements TelegramFunctionCallback { 14 | @Override 15 | public void onRpcError(RpcException e) { 16 | onError(e); 17 | } 18 | 19 | @Override 20 | public void onTimeout(TimeoutException e) { 21 | onError(e); 22 | } 23 | 24 | @Override 25 | public void onUnknownError(Throwable e) { 26 | onError(e); 27 | } 28 | 29 | public abstract void onError(Throwable e); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/TelegramFunctionCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot; 2 | 3 | import org.telegram.api.engine.RpcException; 4 | import org.telegram.api.engine.TimeoutException; 5 | import org.telegram.tl.TLObject; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 1.0 10 | * @brief Callback to execute telegram api method 11 | * @date 26 of September of 2015 12 | */ 13 | public interface TelegramFunctionCallback { 14 | void onSuccess(T result); 15 | void onRpcError(RpcException e); 16 | void onTimeout(TimeoutException e); 17 | void onUnknownError(Throwable e); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/handlers/interfaces/IChatsHandler.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.handlers.interfaces; 2 | 3 | import org.telegram.api.chat.TLAbsChat; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 1.0 10 | * @brief TODO 11 | * @date 01 of April of 2016 12 | */ 13 | public interface IChatsHandler { 14 | void onChats(List chats); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/handlers/interfaces/IUsersHandler.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.handlers.interfaces; 2 | 3 | import org.telegram.api.user.TLAbsUser; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author Ruben Bermudez 9 | * @version 2.0 10 | * @brief Interface for handle received users 11 | * @date 22 of May of 2015 12 | */ 13 | public interface IUsersHandler { 14 | void onUsers(List users); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/kernel/database/DatabaseManager.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.kernel.database; 2 | 3 | import org.jetbrains.annotations.NotNull; 4 | import org.jetbrains.annotations.Nullable; 5 | import org.telegram.bot.structure.Chat; 6 | import org.telegram.bot.structure.IUser; 7 | 8 | import java.util.Map; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 1.0 13 | * @brief TODO 14 | * @date 11 of April of 2016 15 | */ 16 | public interface DatabaseManager { 17 | @Nullable Chat getChatById(int chatId); 18 | @Nullable IUser getUserById(int userId); 19 | @NotNull Map getDifferencesData(); 20 | boolean updateDifferencesData(int botId, int pts, int date, int seq); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/structure/BotConfig.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.structure; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * @author Hendrik Hofstadt 7 | * @version 2.0 8 | * @brief Config of the bot 9 | * @date 02.08.2014 10 | */ 11 | public abstract class BotConfig implements Serializable { 12 | private boolean isRegistered; ///< Whether the bot was registered or not 13 | private String hashCode; 14 | private String authfile = ""; ///< Authfile to store login information 15 | 16 | 17 | public boolean isRegistered() { 18 | return isRegistered; 19 | } 20 | 21 | public void setRegistered(boolean registered) { 22 | isRegistered = registered; 23 | } 24 | 25 | public String getAuthfile() { 26 | return authfile; 27 | } 28 | 29 | public void setAuthfile(String authfile) { 30 | this.authfile = authfile; 31 | } 32 | 33 | public String getHashCode() { 34 | return hashCode; 35 | } 36 | 37 | public void setHashCode(String hashCode) { 38 | this.hashCode = hashCode; 39 | } 40 | 41 | public abstract String getPhoneNumber(); 42 | public abstract String getBotToken(); 43 | public abstract boolean isBot(); 44 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/structure/Chat.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.structure; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | */ 7 | public interface Chat { 8 | /** 9 | * Returns chat id 10 | * @return Id of the chat 11 | */ 12 | int getId(); 13 | 14 | /** 15 | * Returns chat access hash 16 | * @return Access hash of this chat 17 | */ 18 | Long getAccessHash(); 19 | 20 | /** 21 | * Returns true if the chat is a channel, false otherwise 22 | * @return true if the chat is a channel, false otherwise 23 | */ 24 | boolean isChannel(); 25 | } 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/structure/IUser.java: -------------------------------------------------------------------------------- 1 | package org.telegram.bot.structure; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief TODO 7 | * @date 13 of April of 2016 8 | */ 9 | public interface IUser { 10 | int getUserId(); 11 | 12 | Long getUserHash(); 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/bot/structure/LoginStatus.java: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is part of Support Bot. 3 | * 4 | * Foobar is free software: you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation, either version 3 of the License, or 7 | * (at your option) any later version. 8 | * 9 | * Foobar is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU General Public License 15 | * along with Foobar. If not, see . 16 | */ 17 | package org.telegram.bot.structure; 18 | 19 | /** 20 | * @author Ruben Bermudez 21 | * @version 1.0 22 | * @brief TODO 23 | * @date 28 of February of 2016 24 | */ 25 | public enum LoginStatus { 26 | CODESENT, 27 | ALREADYLOGGED, 28 | ERRORSENDINGCODE, 29 | UNEXPECTEDERROR, 30 | INVALIDPHONENUMBER, 31 | BOTLOGIN, 32 | BOTLOGINERROR 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/CallWrapper.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto; 2 | 3 | import org.telegram.tl.TLMethod; 4 | import org.telegram.tl.TLObject; 5 | 6 | /** 7 | * Created with IntelliJ IDEA. 8 | * User: Ruben Bermudez 9 | * Date: 07.11.13 10 | * Time: 3:56 11 | */ 12 | public interface CallWrapper { 13 | TLObject wrapObject(TLMethod srcRequest); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/MTProtoCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 04.11.13 7 | * Time: 22:11 8 | */ 9 | public interface MTProtoCallback { 10 | void onSessionCreated(MTProto proto); 11 | 12 | void onAuthInvalidated(MTProto proto); 13 | 14 | void onApiMessage(byte[] message, MTProto proto); 15 | 16 | void onRpcResult(int callId, byte[] response, MTProto proto); 17 | 18 | void onRpcError(int callId, int errorCode, String message, MTProto proto); 19 | 20 | void onConfirmed(int callId); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/ServerException.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 03.11.13 9 | * Time: 6:47 10 | */ 11 | public class ServerException extends IOException { 12 | public ServerException() { 13 | } 14 | 15 | public ServerException(String s) { 16 | super(s); 17 | } 18 | 19 | public ServerException(String s, Throwable throwable) { 20 | super(s, throwable); 21 | } 22 | 23 | public ServerException(Throwable throwable) { 24 | super(throwable); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/TransportSecurityException.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 03.11.13 9 | * Time: 6:44 10 | */ 11 | public class TransportSecurityException extends IOException { 12 | public TransportSecurityException() { 13 | } 14 | 15 | public TransportSecurityException(String s) { 16 | super(s); 17 | } 18 | 19 | public TransportSecurityException(String s, Throwable throwable) { 20 | super(s, throwable); 21 | } 22 | 23 | public TransportSecurityException(Throwable throwable) { 24 | super(throwable); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/log/LogInterface.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.log; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 10.11.13 7 | * Time: 2:11 8 | */ 9 | public interface LogInterface { 10 | void w(String tag, String message); 11 | 12 | void d(String tag, String message); 13 | 14 | void e(String tag, String message); 15 | 16 | void e(String tag, Throwable t); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/pq/PqAuth.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.pq; 2 | 3 | import java.net.Socket; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 03.11.13 9 | * Time: 8:14 10 | */ 11 | public class PqAuth { 12 | private byte[] authKey; 13 | private long serverSalt; 14 | private Socket socket; 15 | 16 | public PqAuth(byte[] authKey, long serverSalt, Socket socket) { 17 | this.authKey = authKey; 18 | this.serverSalt = serverSalt; 19 | this.socket = socket; 20 | } 21 | 22 | public byte[] getAuthKey() { 23 | return this.authKey; 24 | } 25 | 26 | public long getServerSalt() { 27 | return this.serverSalt; 28 | } 29 | 30 | public Socket getSocket() { 31 | return this.socket; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/schedule/PrepareSchedule.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.schedule; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 29.12.13. 5 | */ 6 | public class PrepareSchedule { 7 | private long delay; 8 | private int[] allowedContexts; 9 | private boolean doWait; 10 | 11 | public boolean isDoWait() { 12 | return this.doWait; 13 | } 14 | 15 | public void setDoWait(boolean doWait) { 16 | this.doWait = doWait; 17 | } 18 | 19 | public long getDelay() { 20 | return this.delay; 21 | } 22 | 23 | public void setDelay(long delay) { 24 | this.delay = delay; 25 | } 26 | 27 | public int[] getAllowedContexts() { 28 | return this.allowedContexts; 29 | } 30 | 31 | public void setAllowedContexts(int[] allowedContexts) { 32 | this.allowedContexts = allowedContexts; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/schedule/PreparedPackage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.schedule; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 03.11.13 7 | * Time: 19:59 8 | */ 9 | public class PreparedPackage { 10 | private boolean isHighPriority; 11 | private int seqNo; 12 | private long messageId; 13 | private byte[] content; 14 | 15 | public PreparedPackage(int seqNo, long messageId, byte[] content, boolean isHighPriority) { 16 | this.seqNo = seqNo; 17 | this.messageId = messageId; 18 | this.content = content; 19 | this.isHighPriority = isHighPriority; 20 | } 21 | 22 | public boolean isHighPriority() { 23 | return this.isHighPriority; 24 | } 25 | 26 | public int getSeqNo() { 27 | return this.seqNo; 28 | } 29 | 30 | public long getMessageId() { 31 | return this.messageId; 32 | } 33 | 34 | public byte[] getContent() { 35 | return this.content; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/KeyParameter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure; 2 | 3 | public class KeyParameter { 4 | private byte[] key; 5 | 6 | public KeyParameter(byte[] key) { 7 | this(key, 0, key.length); 8 | } 9 | 10 | public KeyParameter(byte[] key, int keyOff, int keyLen) { 11 | this.key = new byte[keyLen]; 12 | 13 | System.arraycopy(key, keyOff, this.key, 0, keyLen); 14 | } 15 | 16 | public byte[] getKey() { 17 | return this.key; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/aes/AESImplementation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure.aes; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Created by Ruben Bermudez on 12.02.14. 7 | */ 8 | public interface AESImplementation { 9 | void AES256IGEDecrypt(byte[] src, byte[] dest, int len, byte[] iv, byte[] key); 10 | 11 | void AES256IGEEncrypt(byte[] src, byte[] dest, int len, byte[] iv, byte[] key); 12 | 13 | void AES256IGEEncrypt(String sourceFile, String destFile, byte[] iv, byte[] key) throws IOException; 14 | 15 | void AES256IGEDecrypt(String sourceFile, String destFile, byte[] iv, byte[] key) throws IOException; 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/pq/PQImplementation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure.pq; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 12.02.14. 5 | */ 6 | public interface PQImplementation { 7 | long findDivider(long src); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/pq/PQSolver.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure.pq; 2 | 3 | import java.math.BigInteger; 4 | 5 | /** 6 | * Created by Ruben Bermudez on 12.02.14. 7 | */ 8 | public class PQSolver { 9 | private static PQImplementation currentImplementation = new PQLopatin(); 10 | 11 | private PQSolver() { 12 | 13 | } 14 | 15 | public static void setCurrentImplementation(PQImplementation implementation) { 16 | currentImplementation = implementation; 17 | } 18 | 19 | public static BigInteger solvePq(BigInteger src) { 20 | return new BigInteger("" + currentImplementation.findDivider(src.longValue())); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/state/ConnectionInfo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.state; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 07.11.13 7 | * Time: 7:26 8 | */ 9 | public class ConnectionInfo { 10 | private int id; 11 | private int priority; 12 | private String address; 13 | private int port; 14 | 15 | public ConnectionInfo(int id, int priority, String address, int port) { 16 | this.id = id; 17 | this.priority = priority; 18 | this.address = address; 19 | this.port = port; 20 | } 21 | 22 | public int getPriority() { 23 | return this.priority; 24 | } 25 | 26 | public String getAddress() { 27 | return this.address; 28 | } 29 | 30 | public int getPort() { 31 | return this.port; 32 | } 33 | 34 | public int getId() { 35 | return this.id; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/state/KnownSalt.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.state; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 07.11.13 7 | * Time: 7:16 8 | */ 9 | public class KnownSalt { 10 | private int validSince; 11 | private int validUntil; 12 | private long salt; 13 | 14 | public KnownSalt(int validSince, int validUntil, long salt) { 15 | this.validSince = validSince; 16 | this.validUntil = validUntil; 17 | this.salt = salt; 18 | } 19 | 20 | public int getValidSince() { 21 | return this.validSince; 22 | } 23 | 24 | public int getValidUntil() { 25 | return this.validUntil; 26 | } 27 | 28 | public long getSalt() { 29 | return this.salt; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/state/MemoryProtoState.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.state; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 07.11.13 7 | * Time: 7:21 8 | */ 9 | public class MemoryProtoState extends AbsMTProtoState { 10 | 11 | private KnownSalt[] salts = new KnownSalt[0]; 12 | 13 | private String address; 14 | private int port; 15 | private byte[] authKey; 16 | 17 | public MemoryProtoState(byte[] authKey, String address, int port) { 18 | this.authKey = authKey; 19 | this.port = port; 20 | this.address = address; 21 | } 22 | 23 | @Override 24 | public byte[] getAuthKey() { 25 | return this.authKey; 26 | } 27 | 28 | @Override 29 | public ConnectionInfo[] getAvailableConnections() { 30 | return new ConnectionInfo[]{new ConnectionInfo(0, 0, this.address, this.port)}; 31 | } 32 | 33 | @Override 34 | public KnownSalt[] readKnownSalts() { 35 | return this.salts; 36 | } 37 | 38 | @Override 39 | protected void writeKnownSalts(KnownSalt[] salts) { 40 | this.salts = salts; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/MTBadMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | public abstract class MTBadMessage extends TLObject { 6 | protected long badMsgId; 7 | protected int badMsqSeqno; 8 | protected int errorCode; 9 | protected long newServerSalt; 10 | 11 | public long getBadMsgId() { 12 | return this.badMsgId; 13 | } 14 | 15 | public void setBadMsgId(long badMsgId) { 16 | this.badMsgId = badMsgId; 17 | } 18 | 19 | public int getBadMsqSeqno() { 20 | return this.badMsqSeqno; 21 | } 22 | 23 | public void setBadMsqSeqno(int badMsqSeqno) { 24 | this.badMsqSeqno = badMsqSeqno; 25 | } 26 | 27 | public int getErrorCode() { 28 | return this.errorCode; 29 | } 30 | 31 | public void setErrorCode(int errorCode) { 32 | this.errorCode = errorCode; 33 | } 34 | 35 | public long getNewServerSalt() { 36 | return this.newServerSalt; 37 | } 38 | 39 | public void setNewServerSalt(long newServerSalt) { 40 | this.newServerSalt = newServerSalt; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/MTRpcAnswerDroppedRunning.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 2.0 8 | * @brief MTRpcAnswerDroppedRunning 9 | * @date 21/02/15 10 | */ 11 | public class MTRpcAnswerDroppedRunning extends TLObject { 12 | public static final int CLASS_ID = 0xcd78e586; 13 | 14 | @Override 15 | public int getClassId() { 16 | return CLASS_ID; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "MTPRpcAnswerDropper#cd78e586"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/MTRpcAnswerUnknown.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | 5 | /** 6 | * @author Ruben Bermudez 7 | * @version 2.0 8 | * @brief MTRpcAnswerUnknown 9 | * @date 21/02/15 10 | */ 11 | public class MTRpcAnswerUnknown extends TLObject { 12 | public static final int CLASS_ID = 0x5e2ad36e; 13 | 14 | @Override 15 | public int getClassId() { 16 | return CLASS_ID; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "MTRpcAnswerUnknown#5e2ad36e"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/pq/DhGenFailure.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl.pq; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 03.11.13 7 | * Time: 7:20 8 | */ 9 | public class DhGenFailure extends DhGenResult { 10 | public static final int CLASS_ID = 0xa69dae02; 11 | 12 | public DhGenFailure(byte[] nonce, byte[] serverNonce, byte[] newNonceHash) { 13 | super(nonce, serverNonce, newNonceHash); 14 | } 15 | 16 | public DhGenFailure() { 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "dh_gen_fail#a69dae02"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/pq/DhGenOk.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl.pq; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 03.11.13 7 | * Time: 7:20 8 | */ 9 | public class DhGenOk extends DhGenResult { 10 | public static final int CLASS_ID = 0x3bcbf734; 11 | 12 | public DhGenOk(byte[] nonce, byte[] serverNonce, byte[] newNonceHash) { 13 | super(nonce, serverNonce, newNonceHash); 14 | } 15 | 16 | public DhGenOk() { 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "dh_gen_ok#3bcbf734"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/pq/DhGenRetry.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl.pq; 2 | 3 | /** 4 | * Created with IntelliJ IDEA. 5 | * User: Ruben Bermudez 6 | * Date: 03.11.13 7 | * Time: 7:20 8 | */ 9 | public class DhGenRetry extends DhGenResult { 10 | public static final int CLASS_ID = 0x46dc1fb9; 11 | 12 | public DhGenRetry(byte[] nonce, byte[] serverNonce, byte[] newNonceHash) { 13 | super(nonce, serverNonce, newNonceHash); 14 | } 15 | 16 | public DhGenRetry() { 17 | } 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "dh_gen_retry#46dc1fb9"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/tl/pq/TLInitContext.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.tl.pq; 2 | 3 | import org.telegram.tl.TLContext; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 03.11.13 9 | * Time: 5:29 10 | */ 11 | public class TLInitContext extends TLContext { 12 | @Override 13 | protected void init() { 14 | registerClass(ReqPQ.CLASS_ID, ReqPQ.class); 15 | registerClass(ResPQ.CLASS_ID, ResPQ.class); 16 | registerClass(ReqDhParams.CLASS_ID, ReqDhParams.class); 17 | registerClass(ServerDhOk.CLASS_ID, ServerDhOk.class); 18 | registerClass(ServerDhFailure.CLASS_ID, ServerDhFailure.class); 19 | registerClass(ServerDhInner.CLASS_ID, ServerDhInner.class); 20 | registerClass(DhGenOk.CLASS_ID, DhGenOk.class); 21 | registerClass(DhGenFailure.CLASS_ID, DhGenFailure.class); 22 | registerClass(DhGenRetry.CLASS_ID, DhGenRetry.class); 23 | registerClass(ReqSetDhClientParams.CLASS_ID, ReqSetDhClientParams.class); 24 | registerClass(ClientDhInner.CLASS_ID, ClientDhInner.class); 25 | registerClass(MTRpcReqError.CLASS_ID, MTRpcReqError.class); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/transport/BytesHelper.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.transport; 2 | 3 | import java.io.IOException; 4 | import java.io.OutputStream; 5 | 6 | /** 7 | * @author Ruben Bermudez 8 | * @version 1.0 9 | * @brief Different method to serialize and deserialize 10 | * @date 06 of February of 2016 11 | */ 12 | class BytesHelper { 13 | public static byte[] intToBytes(int value) { 14 | return new byte[]{ 15 | (byte) (value & 0xFF), 16 | (byte) ((value >> 8) & 0xFF), 17 | (byte) ((value >> 16) & 0xFF), 18 | (byte) ((value >> 24) & 0xFF)}; 19 | } 20 | 21 | public static void writeInt(int value, OutputStream stream) throws IOException { 22 | stream.write((byte) (value & 0xFF)); 23 | stream.write((byte) ((value >> 8) & 0xFF)); 24 | stream.write((byte) ((value >> 16) & 0xFF)); 25 | stream.write((byte) ((value >> 24) & 0xFF)); 26 | } 27 | 28 | public static void writeByte(int v, OutputStream stream) throws IOException { 29 | stream.write(v); 30 | } 31 | 32 | public static void writeByteArray(byte[] data, OutputStream stream) throws IOException { 33 | stream.write(data); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/transport/ConnectionState.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.transport; 2 | 3 | /** 4 | * @author Ruben Bermudez 5 | * @version 1.0 6 | * @brief States of the connection 7 | * @date 06 of February of 2016 8 | */ 9 | enum ConnectionState { 10 | TcpConnectionStageSuspended, 11 | TcpConnectionStageIdle, 12 | TcpConnectionStageConnecting, 13 | TcpConnectionStageReconnecting, 14 | TcpConnectionStageConnected 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/transport/ConnectionType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.transport; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 26.11.13. 5 | */ 6 | public class ConnectionType { 7 | public static final int TYPE_TCP = 0; 8 | 9 | private int id; 10 | private String host; 11 | private int port; 12 | private int connectionType; 13 | 14 | public ConnectionType(int id, String host, int port, int connectionType) { 15 | this.id = id; 16 | this.host = host; 17 | this.port = port; 18 | this.connectionType = connectionType; 19 | } 20 | 21 | public int getId() { 22 | return this.id; 23 | } 24 | 25 | public String getHost() { 26 | return this.host; 27 | } 28 | 29 | public int getPort() { 30 | return this.port; 31 | } 32 | 33 | public int getConnectionType() { 34 | return this.connectionType; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/transport/TcpContextCallback.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.transport; 2 | 3 | /** 4 | * Created: 13.08.13 15:35 5 | */ 6 | public interface TcpContextCallback { 7 | void onRawMessage(byte[] data, int offset, int len, TcpContext context); 8 | 9 | void onError(int errorCode, TcpContext context); 10 | 11 | void onChannelBroken(TcpContext context); 12 | 13 | void onFastConfirm(int hash); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/util/TimeUtil.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.util; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 13.11.13. 5 | */ 6 | public class TimeUtil { 7 | public static int getUnixTime(long msgId) { 8 | return (int) (msgId >> 32); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/DeserializeException.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * Created with IntelliJ IDEA. 7 | * User: Ruben Bermudez 8 | * Date: 02.11.13 9 | * Time: 6:52 10 | */ 11 | public class DeserializeException extends IOException { 12 | public DeserializeException() { 13 | } 14 | 15 | public DeserializeException(String s) { 16 | super(s); 17 | } 18 | 19 | public DeserializeException(String s, Throwable throwable) { 20 | super(s, throwable); 21 | } 22 | 23 | public DeserializeException(Throwable throwable) { 24 | super(throwable); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBool.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * Packed type of tl-bool 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public abstract class TLBool extends TLObject { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBoolFalse.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * Packed type of tl-bool false value 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public class TLBoolFalse extends TLBool { 9 | 10 | public static final int CLASS_ID = 0xbc799737; 11 | 12 | @Override 13 | public int getClassId() { 14 | return CLASS_ID; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "boolFalse#bc799737"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBoolTrue.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * Packed type of tl-bool true value 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public class TLBoolTrue extends TLBool { 9 | 10 | public static final int CLASS_ID = 0x997275b5; 11 | 12 | @Override 13 | public int getClassId() { 14 | return CLASS_ID; 15 | } 16 | 17 | @Override 18 | public String toString() { 19 | return "boolTrue#997275b5"; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBytes.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * Created by Ruben Bermudez on 10.02.14. 5 | */ 6 | public class TLBytes { 7 | private byte[] data; 8 | private int offset; 9 | private int len; 10 | 11 | public TLBytes(byte[] data) { 12 | this.data = data; 13 | this.offset = 0; 14 | this.len = data.length; 15 | } 16 | 17 | public TLBytes(byte[] data, int offset, int len) { 18 | this.data = data; 19 | this.offset = offset; 20 | this.len = len; 21 | } 22 | 23 | public byte[] getData() { 24 | return this.data; 25 | } 26 | 27 | public int getOffset() { 28 | return this.offset; 29 | } 30 | 31 | public int getLength() { 32 | return this.len; 33 | } 34 | 35 | public byte[] cleanData() { 36 | if (this.offset == 0 && this.len == this.data.length) { 37 | return this.data; 38 | } 39 | byte[] result = new byte[this.len]; 40 | System.arraycopy(this.data, this.offset, result, 0, this.len); 41 | return result; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLIntVector.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * TL Vector of integers. @see org.telegram.tl.TLVector 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public class TLIntVector extends TLVector { 9 | public TLIntVector() { 10 | setDestClass(Integer.class); 11 | } 12 | 13 | @Override 14 | public String toString() { 15 | return "vector#1cb5c415"; 16 | } 17 | 18 | public int[] toIntArray() { 19 | int[] res = new int[size()]; 20 | for (int i = 0; i < res.length; i++) { 21 | res[i] = get(i); 22 | } 23 | return res; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLLongVector.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * TL Vector of longs. @see org.telegram.tl.TLVector 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public class TLLongVector extends TLVector { 9 | public TLLongVector() { 10 | setDestClass(Long.class); 11 | } 12 | 13 | @Override 14 | public String toString() { 15 | return "vector#1cb5c415"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMethod.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import java.io.ByteArrayInputStream; 4 | import java.io.IOException; 5 | import java.io.InputStream; 6 | 7 | /** 8 | * Basic object for RPC methods. It contains special methods for deserializing result of RPC method call. 9 | * 10 | * @param return type of method 11 | * @author Ruben Bermudez 12 | */ 13 | public abstract class TLMethod extends TLObject { 14 | public T deserializeResponse(byte[] data, TLContext context) throws IOException { 15 | return deserializeResponse(new ByteArrayInputStream(data), context); 16 | } 17 | 18 | public T castResponse(TLObject response) { 19 | return (T) response; 20 | } 21 | 22 | public abstract T deserializeResponse(InputStream stream, TLContext context) throws IOException; 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLNull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram Bot v. 2.0 3 | * It is licensed under GNU GPL v. 3 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Ruben Bermudez, 13/11/14. 7 | */ 8 | package org.telegram.tl; 9 | 10 | /** 11 | * @author Ruben Bermudez 12 | * @version 2.0 13 | * @brief TLNull value 14 | * @date 13/11/14 15 | */ 16 | public class TLNull extends TLObject { 17 | public static final int CLASS_ID = 0x56730bcc; 18 | 19 | @Override 20 | public int getClassId() { 21 | return CLASS_ID; 22 | } 23 | 24 | @Override 25 | public String toString() { 26 | return "null#56730bcc"; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLStringVector.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | /** 4 | * TL Vector of strings. @see org.telegram.tl.TLVector 5 | * 6 | * @author Ruben Bermudez 7 | */ 8 | public class TLStringVector extends TLVector { 9 | public TLStringVector() { 10 | setDestClass(String.class); 11 | } 12 | 13 | @Override 14 | public String toString() { 15 | return "vector#1cb5c415"; 16 | } 17 | } 18 | --------------------------------------------------------------------------------