├── .travis.yml ├── settings.gradle ├── .gitignore ├── lib └── libOpenSSL.jnilib ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src └── main │ └── java │ └── org │ └── telegram │ ├── tl │ ├── TLUpdate.java │ ├── TLMaskCoords.java │ ├── TLStickerSet.java │ ├── TLInputStickerSet.java │ ├── TLDocumentAttribute.java │ ├── TLInputStickeredMedia.java │ ├── TLStickerSetCovered.java │ ├── messages │ │ ├── TLSavedGifs.java │ │ ├── TLStickerSet.java │ │ ├── TLAllStickers.java │ │ ├── TLRecentStickers.java │ │ ├── TLAffectedMessages.java │ │ ├── TLArchivedStickers.java │ │ ├── TLFeaturedStickers.java │ │ ├── TLStickerSetInstallResult.java │ │ ├── TLBotResults.java │ │ ├── TLFoundGifs.java │ │ ├── TLHighScores.java │ │ ├── TLPeerDialogs.java │ │ ├── TLMessageEditData.java │ │ ├── TLBotCallbackAnswer.java │ │ ├── AllStickersNotModified.java │ │ ├── TLChats.java │ │ ├── TLDialogs.java │ │ ├── TLChatFull.java │ │ ├── TLDhConfig.java │ │ ├── TLMessages.java │ │ ├── TLStickers.java │ │ ├── TLSentMessage.java │ │ ├── TLStatedMessage.java │ │ ├── TLStatedMessages.java │ │ ├── TLAffectedHistory.java │ │ └── TLSentEncryptedMessage.java │ ├── TLReceivedNotifyMessage.java │ ├── TLGame.java │ ├── TLTopPeer.java │ ├── TLChatInvite.java │ ├── TLFoundGif.java │ ├── TLHighScore.java │ ├── TLInputGame.java │ ├── TLContactLink.java │ ├── TLDraftMessage.java │ ├── TLMessageRange.java │ ├── TLPeerSettings.java │ ├── TLReportReason.java │ ├── TLAuthorization.java │ ├── TLBotInlineResult.java │ ├── TLTopPeerCategory.java │ ├── auth │ │ ├── TLCodeType.java │ │ ├── TLSentCodeType.java │ │ ├── TLPasswordRecovery.java │ │ ├── TLSentCode.java │ │ ├── TLAuthorization.java │ │ ├── TLCheckedPhone.java │ │ └── TLExportedAuthorization.java │ ├── TLBotInlineMessage.java │ ├── TLInlineBotSwitchPM.java │ ├── account │ │ ├── TLPassword.java │ │ ├── TLAuthorizations.java │ │ ├── TLPasswordSettings.java │ │ ├── TLPasswordInputSettings.java │ │ ├── TLPrivacyRules.java │ │ └── TLSentChangePhoneCode.java │ ├── contacts │ │ ├── TLTopPeers.java │ │ ├── TLResolvedPeer.java │ │ ├── TLLink.java │ │ ├── TLBlocked.java │ │ ├── TLFound.java │ │ ├── TLMyLink.java │ │ ├── TLContacts.java │ │ ├── TLSuggested.java │ │ ├── TLForeignLink.java │ │ └── TLImportedContacts.java │ ├── help │ │ ├── TLAppChangelog.java │ │ ├── TLTermsOfService.java │ │ ├── TLSupport.java │ │ ├── TLAppUpdate.java │ │ ├── TLInviteText.java │ │ └── GetSupport.java │ ├── TLChannelParticipant.java │ ├── TLExportedMessageLink.java │ ├── TLInputBotInlineResult.java │ ├── TLTopPeerCategoryPeers.java │ ├── TLChannelMessagesFilter.java │ ├── TLChannelParticipantRole.java │ ├── TLInputBotInlineMessage.java │ ├── TLChannelParticipantsFilter.java │ ├── TLInputBotInlineMessageID.java │ ├── updates │ │ ├── TLChannelDifference.java │ │ ├── TLState.java │ │ └── TLDifference.java │ ├── channels │ │ ├── TLChannelParticipant.java │ │ └── TLChannelParticipants.java │ ├── BotInfoEmpty.java │ ├── InputMediaEmpty.java │ ├── InputChannelEmpty.java │ ├── TLBotInfo.java │ ├── TLScheme.java │ ├── TLInputChannel.java │ ├── TLMessageFwdHeader.java │ ├── TLExportedChatInvite.java │ ├── TLAudio.java │ ├── TLBool.java │ ├── TLChat.java │ ├── TLConfig.java │ ├── TLDialog.java │ ├── TLError.java │ ├── TLNull.java │ ├── TLPeer.java │ ├── TLPhoto.java │ ├── TLUser.java │ ├── TLVideo.java │ ├── TLChatFull.java │ ├── TLContact.java │ ├── TLDcOption.java │ ├── TLDocument.java │ ├── TLGeoPoint.java │ ├── TLMessage.java │ ├── TLUpdates.java │ ├── TLUserFull.java │ ├── TLChatPhoto.java │ ├── TLInputAudio.java │ ├── TLInputFile.java │ ├── TLInputMedia.java │ ├── TLInputPeer.java │ ├── TLInputPhoto.java │ ├── TLInputUser.java │ ├── TLInputVideo.java │ ├── TLNearestDc.java │ ├── TLNotifyPeer.java │ ├── TLPhotoSize.java │ ├── TLPrivacyKey.java │ ├── TLPrivacyRule.java │ ├── TLStickerPack.java │ ├── TLUserStatus.java │ ├── TLWallPaper.java │ ├── upload │ │ └── TLFile.java │ ├── TLContactFound.java │ ├── TLContactStatus.java │ ├── TLEncryptedChat.java │ ├── TLEncryptedFile.java │ ├── TLFileLocation.java │ ├── TLInputAppEvent.java │ ├── TLInputContact.java │ ├── TLInputDocument.java │ ├── TLInputGeoPoint.java │ ├── TLMessageAction.java │ ├── TLMessageMedia.java │ ├── photos │ │ ├── TLPhoto.java │ │ └── TLPhotos.java │ ├── TLAccountDaysTTL.java │ ├── TLChatParticipant.java │ ├── TLChatParticipants.java │ ├── TLContactBlocked.java │ ├── TLContactSuggested.java │ ├── TLDisabledFeature.java │ ├── TLEncryptedMessage.java │ ├── TLImportedContact.java │ ├── TLInputChatPhoto.java │ ├── TLInputNotifyPeer.java │ ├── TLInputPhotoCrop.java │ ├── TLInputPrivacyKey.java │ ├── TLInputPrivacyRule.java │ ├── TLMessagesFilter.java │ ├── TLPeerNotifyEvents.java │ ├── TLUserProfilePhoto.java │ ├── storage │ │ └── TLFileType.java │ ├── TLInputEncryptedChat.java │ ├── TLInputEncryptedFile.java │ ├── TLInputFileLocation.java │ ├── TLPeerNotifySettings.java │ ├── TLSendMessageAction.java │ ├── TLWebPage.java │ ├── TLBotCommand.java │ ├── TLInputPeerNotifyEvents.java │ ├── TLReplyMarkup.java │ ├── TLInputPeerNotifySettings.java │ ├── TLKeyboardButton.java │ ├── TLMessageEntity.java │ ├── TLKeyboardButtonRow.java │ ├── InputMediaAudio.java │ ├── InputMediaGeoPoint.java │ ├── InputMediaDocument.java │ ├── ChatForbiddenL42.java │ ├── ReplyInlineMarkup.java │ ├── BotCommand.java │ ├── DeserializationContext.java │ ├── InputChannel.java │ ├── InputMediaPhoto.java │ ├── InputMediaVideo.java │ ├── InputMediaUploadedPhoto.java │ ├── BotCommandOld.java │ ├── TLObject.java │ ├── InputMediaContact.java │ ├── InputMediaUploadedAudio.java │ ├── InputMediaUploadedDocument.java │ ├── Null.java │ ├── BoolFalse.java │ ├── BoolTrue.java │ ├── InputMediaUploadedVideo.java │ ├── NotifyAll.java │ ├── ChatInviteEmpty.java │ ├── GeoPointEmpty.java │ ├── InputPeerSelf.java │ ├── InputUserSelf.java │ ├── NotifyChats.java │ └── NotifyUsers.java │ ├── mtproto │ ├── secure │ │ ├── pq │ │ │ ├── PQImplementation.java │ │ │ └── PQSolver.java │ │ ├── KeyParameter.java │ │ ├── aes │ │ │ └── AESImplementation.java │ │ └── Entropy.java │ ├── ServerSalt.java │ └── OpenSSL.java │ ├── core │ ├── TLMethod.java │ └── ActiveSession.java │ ├── data │ ├── ServerSaltModel.java │ ├── ContactModel.java │ ├── SessionModel.java │ ├── AuthKeyModel.java │ ├── HazelcastConnection.java │ └── SecretChatModel.java │ └── server │ ├── MTProtoMessage.java │ └── ServerConfig.java ├── public.key ├── .gitlab-ci.yml ├── jni ├── OpenSSL.h └── OpenSSL.c ├── README.md └── LICENSE.telegram-mt /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: 3 | - oraclejdk8 -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'TelegramServer' 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Intellij project files 2 | *.iml 3 | *.ipr 4 | *.iws 5 | .idea 6 | 7 | 8 | #Gradle 9 | build/ -------------------------------------------------------------------------------- /lib/libOpenSSL.jnilib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aykutalparslan/Telegram-Server/HEAD/lib/libOpenSSL.jnilib -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aykutalparslan/Telegram-Server/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUpdate.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLUpdate extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMaskCoords.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLMaskCoords extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLStickerSet.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLStickerSet extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputStickerSet.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLInputStickerSet extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDocumentAttribute.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLDocumentAttribute extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputStickeredMedia.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLInputStickeredMedia extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLStickerSetCovered.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLStickerSetCovered extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLSavedGifs.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLSavedGifs extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLStickerSet.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLStickerSet extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLReceivedNotifyMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLReceivedNotifyMessage extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLAllStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLAllStickers extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLRecentStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLRecentStickers extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLAffectedMessages.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLAffectedMessages extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLArchivedStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLArchivedStickers extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLFeaturedStickers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLFeaturedStickers extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLStickerSetInstallResult.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.*; 4 | 5 | public abstract class TLStickerSetInstallResult extends TLObject { 6 | 7 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLGame.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLGame extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/pq/PQImplementation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure.pq; 2 | 3 | /** 4 | * Created by ex3ndr on 12.02.14. 5 | */ 6 | public interface PQImplementation { 7 | public long findDivider(long src); 8 | } 9 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLTopPeer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLTopPeer extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChatInvite.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChatInvite extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLFoundGif.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLFoundGif extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLHighScore.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLHighScore extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputGame.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLInputGame extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContactLink.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLContactLink extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDraftMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLDraftMessage extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessageRange.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLMessageRange extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPeerSettings.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPeerSettings extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLReportReason.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLReportReason extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLAuthorization.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLAuthorization extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBotInlineResult.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLBotInlineResult extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLTopPeerCategory.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLTopPeerCategory extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLCodeType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.auth; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLCodeType extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBotInlineMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLBotInlineMessage extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInlineBotSwitchPM.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLInlineBotSwitchPM extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLPassword.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.account; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPassword extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLSentCodeType.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.auth; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLSentCodeType extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLTopPeers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.contacts; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLTopPeers extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/TLAppChangelog.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.help; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLAppChangelog extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChannelParticipant.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelParticipant extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLExportedMessageLink.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLExportedMessageLink extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputBotInlineResult.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLInputBotInlineResult extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLTopPeerCategoryPeers.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLTopPeerCategoryPeers extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/TLTermsOfService.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.help; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLTermsOfService extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLBotResults.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLBotResults extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLFoundGifs.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLFoundGifs extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLHighScores.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLHighScores extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLPeerDialogs.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPeerDialogs extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChannelMessagesFilter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelMessagesFilter extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChannelParticipantRole.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelParticipantRole extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputBotInlineMessage.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLInputBotInlineMessage extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLAuthorizations.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.account; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLAuthorizations extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLPasswordRecovery.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.auth; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPasswordRecovery extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLResolvedPeer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.contacts; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLResolvedPeer extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChannelParticipantsFilter.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelParticipantsFilter extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputBotInlineMessageID.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLInputBotInlineMessageID extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLPasswordSettings.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.account; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPasswordSettings extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLMessageEditData.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLMessageEditData extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/updates/TLChannelDifference.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.updates; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelDifference extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Sep 24 17:21:51 EEST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip 7 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/channels/TLChannelParticipant.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.channels; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelParticipant extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLBotCallbackAnswer.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLBotCallbackAnswer extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLPasswordInputSettings.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.account; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLPasswordInputSettings extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/channels/TLChannelParticipants.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.channels; 2 | 3 | import org.telegram.tl.TLObject; 4 | import org.telegram.tl.TLVector; 5 | import org.telegram.tl.APIContext; 6 | 7 | public abstract class TLChannelParticipants extends TLObject { 8 | 9 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/ServerSalt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This is the source code of Telegram for Android v. 2.x.x. 3 | * It is licensed under GNU GPL v. 2 or later. 4 | * You should have received a copy of the license in this archive (see LICENSE). 5 | * 6 | * Copyright Nikolai Kudashov, 2013-2015. 7 | */ 8 | 9 | 10 | package org.telegram.mtproto; 11 | 12 | public class ServerSalt { 13 | public int validSince; 14 | public int validUntil; 15 | public long value; 16 | } 17 | -------------------------------------------------------------------------------- /public.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PUBLIC KEY----- 2 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArDeE5ZLU8GZKEvvJwJe0 3 | OOesPm7C3D9BItsDJX5li1pCFuFsgwVqBY87HFuJ6eQxv8YaTUH6goeIK3VxsW1n 4 | i6wyokYeHv9jwIzMjqo/35/89JT3Q0CzPZkJrGq3gn5T5kIllMSXV8GGiwwDPAMp 5 | h/dIZSFvUNUcfoOJxqYBHU8v3GdBqjv+zMjgiGZK8xgXl5KTb+aCb9kRuXT5oqTJ 6 | ISTY7JczFLwg+N25/OgtrxVZA+Zqd33ZsAvSkibM9K2ASdCxVizYJoIDp3BGcKrZ 7 | i23nslv3nrPyHGLwyfsendvdB6C7RTa1nD7Th5lWrU7KtFN0tMODLBP/uSMJZbyC 8 | vQIDAQAB 9 | -----END RSA PUBLIC KEY----- 10 | -------------------------------------------------------------------------------- /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 key; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | image: java:8-jdk 2 | 3 | stages: 4 | - build 5 | 6 | before_script: 7 | # - echo `pwd` # debug 8 | # - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug 9 | - export GRADLE_USER_HOME=`pwd`/.gradle 10 | 11 | cache: 12 | paths: 13 | - .gradle/wrapper 14 | - .gradle/caches 15 | 16 | build: 17 | stage: build 18 | script: 19 | - ./gradlew assemble 20 | artifacts: 21 | paths: 22 | - build/libs/*.jar 23 | expire_in: 1 week 24 | only: 25 | - master 26 | 27 | after_script: 28 | - echo "End CI" -------------------------------------------------------------------------------- /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 ex3ndr on 12.02.14. 7 | */ 8 | public class PQSolver { 9 | private static PQImplementation currentImplementation = new PQLopatin(); 10 | 11 | public static void setCurrentImplementation(PQImplementation implementation) { 12 | currentImplementation = implementation; 13 | } 14 | 15 | public static BigInteger solvePq(BigInteger src) { 16 | return new BigInteger("" + currentImplementation.findDivider(src.longValue())); 17 | } 18 | 19 | private PQSolver() { 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/aes/AESImplementation.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure.aes; 2 | 3 | import io.netty.buffer.ByteBuf; 4 | 5 | import java.io.IOException; 6 | import java.nio.ByteBuffer; 7 | 8 | /** 9 | * Created by ex3ndr on 12.02.14. 10 | */ 11 | public abstract interface AESImplementation { 12 | public void AES256IGEDecrypt(byte[] src, byte[] dest, int len, byte[] iv, byte[] key); 13 | 14 | public void AES256IGEEncrypt(byte[] src, byte[] dest, int len, byte[] iv, byte[] key); 15 | 16 | public void AES256IGEEncrypt(String sourceFile, String destFile, byte[] iv, byte[] key) throws IOException; 17 | 18 | public void AES256IGEDecrypt(String sourceFile, String destFile, byte[] iv, byte[] key) throws IOException; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/BotInfoEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class BotInfoEmpty extends TLBotInfo { 7 | 8 | public static final int ID = 0xbb2e37ce; 9 | 10 | 11 | public BotInfoEmpty() { 12 | } 13 | 14 | @Override 15 | public void deserialize(ProtocolBuffer buffer) { 16 | } 17 | 18 | @Override 19 | public ProtocolBuffer serialize() { 20 | ProtocolBuffer buffer = new ProtocolBuffer(32); 21 | serializeTo(buffer); 22 | return buffer; 23 | } 24 | 25 | @Override 26 | public void serializeTo(ProtocolBuffer buff) { 27 | buff.writeInt(getConstructor()); 28 | } 29 | 30 | public int getConstructor() { 31 | return ID; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaEmpty extends TLInputMedia { 7 | 8 | public static final int ID = 0x9664f57f; 9 | 10 | 11 | public InputMediaEmpty(){ 12 | } 13 | 14 | @Override 15 | public void deserialize(ProtocolBuffer buffer) { 16 | } 17 | 18 | @Override 19 | public ProtocolBuffer serialize() { 20 | ProtocolBuffer buffer = new ProtocolBuffer(32); 21 | serializeTo(buffer); 22 | return buffer; 23 | } 24 | 25 | @Override 26 | public void serializeTo(ProtocolBuffer buff) { 27 | buff.writeInt(getConstructor()); 28 | } 29 | 30 | public int getConstructor() { 31 | return ID; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputChannelEmpty.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputChannelEmpty extends TLInputChannel { 7 | 8 | public static final int ID = 0xee8c1e86; 9 | 10 | 11 | public InputChannelEmpty() { 12 | } 13 | 14 | @Override 15 | public void deserialize(ProtocolBuffer buffer) { 16 | } 17 | 18 | @Override 19 | public ProtocolBuffer serialize() { 20 | ProtocolBuffer buffer = new ProtocolBuffer(32); 21 | serializeTo(buffer); 22 | return buffer; 23 | } 24 | 25 | 26 | @Override 27 | public void serializeTo(ProtocolBuffer buff) { 28 | buff.writeInt(getConstructor()); 29 | } 30 | 31 | 32 | public int getConstructor() { 33 | return ID; 34 | } 35 | } -------------------------------------------------------------------------------- /jni/OpenSSL.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | /* Header for class org_telegram_mtproto_OpenSSL */ 4 | 5 | #ifndef _Included_org_telegram_mtproto_OpenSSL 6 | #define _Included_org_telegram_mtproto_OpenSSL 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | #undef org_telegram_mtproto_OpenSSL_AES_ENCRYPT 11 | #define org_telegram_mtproto_OpenSSL_AES_ENCRYPT 1L 12 | #undef org_telegram_mtproto_OpenSSL_AES_DECRYPT 13 | #define org_telegram_mtproto_OpenSSL_AES_DECRYPT 0L 14 | /* 15 | * Class: org_telegram_mtproto_OpenSSL 16 | * Method: AES_ige_encrypt 17 | * Signature: (Ljava/nio/ByteBuffer;[B[BIII)V 18 | */ 19 | JNIEXPORT void JNICALL Java_org_telegram_mtproto_OpenSSL_AES_1ige_1encrypt 20 | (JNIEnv *, jclass, jobject, jbyteArray, jbyteArray, jint, jint, jint); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | #endif 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/AllStickersNotModified.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl.messages; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class AllStickersNotModified extends TLAllStickers { 7 | 8 | public static final int ID = 0xe86602c3; 9 | 10 | 11 | public AllStickersNotModified(){ 12 | } 13 | 14 | @Override 15 | public void deserialize(ProtocolBuffer buffer) { 16 | } 17 | 18 | @Override 19 | public ProtocolBuffer serialize() { 20 | ProtocolBuffer buffer = new ProtocolBuffer(32); 21 | serializeTo(buffer); 22 | return buffer; 23 | } 24 | 25 | 26 | @Override 27 | public void serializeTo(ProtocolBuffer buff) { 28 | buff.writeInt(getConstructor()); 29 | } 30 | 31 | 32 | public int getConstructor() { 33 | return ID; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBotInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | public abstract class TLBotInfo extends TLObject { 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLScheme.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | public abstract class TLScheme extends TLObject { 22 | 23 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This Project is not maintained anymore. 2 | Please visit my new project [Project Ferrite] as I plan to maintain that one. 3 | 4 | # Telegram Server (Unofficial) 5 | 6 | [![Travis](https://travis-ci.org/aykutalparslan/Telegram-Server.svg)](https://travis-ci.org/aykutalparslan/Telegram-Server) 7 | 8 | Telegram Server is an open source, server side implementation of [Telegram API]. 9 | 10 | This project is currently being developed and only a small number of API calls work as this code is released at the beginning of the development. Some of the working parts are: 11 | 12 | - Creating an Authorization Key 13 | - SingUp, SignIn etc. 14 | - Sending Messages(incomplete) 15 | 16 | Our MTProto implementation works but does not include many security checks necessary yet. Therefore it is not recommended for any other uses other than experimental use. 17 | 18 | [Telegram API]: 19 | 20 | [Project Ferrite]: 21 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputChannel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | public abstract class TLInputChannel extends TLObject { 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessageFwdHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | public abstract class TLMessageFwdHeader extends TLObject { 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLExportedChatInvite.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | public abstract class TLExportedChatInvite extends TLObject { 22 | 23 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLAudio.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLAudio extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLBool extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChat extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLConfig extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDialog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDialog extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLError.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLError extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLNull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLNull extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPeer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPeer extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLUser extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLVideo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLVideo extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChatFull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChatFull extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContact.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContact extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDcOption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDcOption extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDocument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDocument extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLGeoPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLGeoPoint extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMessage extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUpdates.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLUpdates extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUserFull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLUserFull extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChatPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChatPhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputAudio.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputAudio extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputFile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputFile extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputMedia.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputMedia extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPeer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPeer extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputUser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputUser extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputVideo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputVideo extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLNearestDc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLNearestDc extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLNotifyPeer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLNotifyPeer extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPhotoSize.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPhotoSize extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPrivacyKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPrivacyKey extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPrivacyRule.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPrivacyRule extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLStickerPack.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLStickerPack extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUserStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLUserStatus extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLWallPaper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLWallPaper extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/upload/TLFile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.upload; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLFile extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContactFound.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContactFound extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContactStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContactStatus extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLEncryptedChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLEncryptedChat extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLEncryptedFile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLEncryptedFile extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLFileLocation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLFileLocation extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputAppEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputAppEvent extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputContact.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputContact extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputDocument.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputDocument extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputGeoPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputGeoPoint extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessageAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMessageAction extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessageMedia.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMessageMedia extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLSentCode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.auth; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSentCode extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLLink.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLLink extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/TLSupport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.help; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSupport extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/photos/TLPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.photos; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/photos/TLPhotos.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.photos; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPhotos extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/updates/TLState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.updates; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLState extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLAccountDaysTTL.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLAccountDaysTTL extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChatParticipant.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChatParticipant extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLChatParticipants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChatParticipants extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContactBlocked.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContactBlocked extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLContactSuggested.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContactSuggested extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLDisabledFeature.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDisabledFeature extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLEncryptedMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLEncryptedMessage extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLImportedContact.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLImportedContact extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputChatPhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputChatPhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputNotifyPeer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputNotifyPeer extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPhotoCrop.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPhotoCrop extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPrivacyKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPrivacyKey extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPrivacyRule.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPrivacyRule extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessagesFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMessagesFilter extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPeerNotifyEvents.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPeerNotifyEvents extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLUserProfilePhoto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLUserProfilePhoto extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLBlocked.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLBlocked extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLFound.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLFound extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLMyLink.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMyLink extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/TLAppUpdate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.help; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLAppUpdate extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/TLInviteText.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.help; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInviteText extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLChats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChats extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLDialogs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDialogs extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/storage/TLFileType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.storage; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLFileType extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputEncryptedChat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputEncryptedChat extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputEncryptedFile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputEncryptedFile extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputFileLocation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputFileLocation extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLPeerNotifySettings.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPeerNotifySettings extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLSendMessageAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSendMessageAction extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLWebPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 22/11/15. 23 | */ 24 | public abstract class TLWebPage extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLAuthorization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.auth; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLAuthorization extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLCheckedPhone.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.auth; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLCheckedPhone extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLContacts.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLContacts extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLSuggested.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSuggested extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLChatFull.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLChatFull extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLDhConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDhConfig extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLMessages.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLMessages extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLStickers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLStickers extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/updates/TLDifference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.updates; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLDifference extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLBotCommand.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 19/11/15. 23 | */ 24 | public abstract class TLBotCommand extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPeerNotifyEvents.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPeerNotifyEvents extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLReplyMarkup.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 19/11/15. 23 | */ 24 | public abstract class TLReplyMarkup extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLPrivacyRules.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.account; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLPrivacyRules extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLForeignLink.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLForeignLink extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLSentMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSentMessage extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLInputPeerNotifySettings.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLInputPeerNotifySettings extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLKeyboardButton.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 19/11/15. 23 | */ 24 | public abstract class TLKeyboardButton extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLMessageEntity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 19/11/15. 23 | */ 24 | public abstract class TLMessageEntity extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLStatedMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLStatedMessage extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLStatedMessages.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLStatedMessages extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/auth/TLExportedAuthorization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.auth; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLExportedAuthorization extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/contacts/TLImportedContacts.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.contacts; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLImportedContacts extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLAffectedHistory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLAffectedHistory extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLKeyboardButtonRow.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | /** 22 | * Created by aykut on 19/11/15. 23 | */ 24 | public abstract class TLKeyboardButtonRow extends TLObject { 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/account/TLSentChangePhoneCode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.account; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSentChangePhoneCode extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/messages/TLSentEncryptedMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.messages; 20 | 21 | import org.telegram.tl.*; 22 | 23 | public abstract class TLSentEncryptedMessage extends TLObject { 24 | 25 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/core/TLMethod.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.core; 20 | 21 | import org.telegram.tl.TLObject; 22 | 23 | public interface TLMethod { 24 | TLObject execute(TLContext context, long messageId, long reqMessageId); 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaAudio.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaAudio extends TLInputMedia { 7 | 8 | public static final int ID = 0x89938781; 9 | 10 | public TLInputAudio audio_id; 11 | 12 | public InputMediaAudio() { 13 | } 14 | 15 | public InputMediaAudio(TLInputAudio audio_id) { 16 | this.audio_id = audio_id; 17 | } 18 | 19 | @Override 20 | public void deserialize(ProtocolBuffer buffer) { 21 | audio_id = (TLInputAudio) buffer.readTLObject(APIContext.getInstance()); 22 | } 23 | 24 | @Override 25 | public ProtocolBuffer serialize() { 26 | ProtocolBuffer buffer = new ProtocolBuffer(32); 27 | serializeTo(buffer); 28 | return buffer; 29 | } 30 | 31 | @Override 32 | public void serializeTo(ProtocolBuffer buff) { 33 | buff.writeInt(getConstructor()); 34 | buff.writeTLObject(audio_id); 35 | } 36 | 37 | public int getConstructor() { 38 | return ID; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaGeoPoint.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaGeoPoint extends TLInputMedia { 7 | 8 | public static final int ID = 0xf9c44144; 9 | 10 | public TLInputGeoPoint geo_point; 11 | 12 | public InputMediaGeoPoint() { 13 | } 14 | 15 | public InputMediaGeoPoint(TLInputGeoPoint geo_point){ 16 | this.geo_point = geo_point; 17 | } 18 | 19 | @Override 20 | public void deserialize(ProtocolBuffer buffer) { 21 | geo_point = (TLInputGeoPoint) buffer.readTLObject(APIContext.getInstance()); 22 | } 23 | 24 | @Override 25 | public ProtocolBuffer serialize() { 26 | ProtocolBuffer buffer = new ProtocolBuffer(32); 27 | serializeTo(buffer); 28 | return buffer; 29 | } 30 | 31 | @Override 32 | public void serializeTo(ProtocolBuffer buff) { 33 | buff.writeInt(getConstructor()); 34 | buff.writeTLObject(geo_point); 35 | } 36 | 37 | public int getConstructor() { 38 | return ID; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaDocument.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaDocument extends TLInputMedia { 7 | 8 | public static final int ID = 0xd184e841; 9 | 10 | public TLInputDocument document_id; 11 | 12 | public InputMediaDocument() { 13 | } 14 | 15 | public InputMediaDocument(TLInputDocument document_id) { 16 | this.document_id = document_id; 17 | } 18 | 19 | @Override 20 | public void deserialize(ProtocolBuffer buffer) { 21 | document_id = (TLInputDocument) buffer.readTLObject(APIContext.getInstance()); 22 | } 23 | 24 | @Override 25 | public ProtocolBuffer serialize() { 26 | ProtocolBuffer buffer = new ProtocolBuffer(32); 27 | serializeTo(buffer); 28 | return buffer; 29 | } 30 | 31 | @Override 32 | public void serializeTo(ProtocolBuffer buff) { 33 | buff.writeInt(getConstructor()); 34 | buff.writeTLObject(document_id); 35 | } 36 | 37 | public int getConstructor() { 38 | return ID; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/ServerSaltModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import java.io.Serializable; 22 | 23 | /** 24 | * Created by aykut on 04/11/15. 25 | */ 26 | public class ServerSaltModel implements Serializable { 27 | public long salt; 28 | public long validSince; 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE.telegram-mt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Telegraph LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/ChatForbiddenL42.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class ChatForbiddenL42 extends TLChat { 7 | 8 | public static final int ID = 0x7328bdb; 9 | 10 | public int id; 11 | public String title; 12 | 13 | public ChatForbiddenL42() { 14 | } 15 | 16 | public ChatForbiddenL42(int id, String title) { 17 | this.id = id; 18 | this.title = title; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | id = buffer.readInt(); 24 | title = buffer.readString(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | 35 | @Override 36 | public void serializeTo(ProtocolBuffer buff) { 37 | buff.writeInt(getConstructor()); 38 | buff.writeInt(id); 39 | buff.writeString(title); 40 | } 41 | 42 | 43 | public int getConstructor() { 44 | return ID; 45 | } 46 | } -------------------------------------------------------------------------------- /jni/OpenSSL.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "OpenSSL.h" 10 | 11 | JNIEXPORT void Java_org_telegram_mtproto_OpenSSL_AES_1ige_1encrypt(JNIEnv *env, jclass class, jobject buffer, jbyteArray key, jbyteArray iv, int offset, int length, int encrypt) { 12 | jbyte *what = (*env)->GetDirectBufferAddress(env, buffer) + offset; 13 | unsigned char *keyBuff = (unsigned char *)(*env)->GetByteArrayElements(env, key, NULL); 14 | unsigned char *ivBuff = (unsigned char *)(*env)->GetByteArrayElements(env, iv, NULL); 15 | 16 | AES_KEY akey; 17 | if (encrypt == AES_DECRYPT) { 18 | AES_set_decrypt_key(keyBuff, 32 * 8, &akey); 19 | AES_ige_encrypt(what, what, length, &akey, ivBuff, AES_DECRYPT); 20 | } else { 21 | AES_set_encrypt_key(keyBuff, 32 * 8, &akey); 22 | AES_ige_encrypt(what, what, length, &akey, ivBuff, AES_ENCRYPT); 23 | } 24 | (*env)->ReleaseByteArrayElements(env, key, keyBuff, JNI_ABORT); 25 | (*env)->ReleaseByteArrayElements(env, iv, ivBuff, 0); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/ReplyInlineMarkup.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class ReplyInlineMarkup extends TLReplyMarkup { 7 | 8 | public static final int ID = 0x48a30254; 9 | 10 | public TLVector rows; 11 | 12 | public ReplyInlineMarkup() { 13 | this.rows = new TLVector<>(); 14 | } 15 | 16 | public ReplyInlineMarkup(TLVector rows) { 17 | this.rows = rows; 18 | } 19 | 20 | @Override 21 | public void deserialize(ProtocolBuffer buffer) { 22 | rows = (TLVector) buffer.readTLObject(APIContext.getInstance()); 23 | } 24 | 25 | @Override 26 | public ProtocolBuffer serialize() { 27 | ProtocolBuffer buffer = new ProtocolBuffer(32); 28 | serializeTo(buffer); 29 | return buffer; 30 | } 31 | 32 | 33 | @Override 34 | public void serializeTo(ProtocolBuffer buff) { 35 | buff.writeInt(getConstructor()); 36 | buff.writeTLObject(rows); 37 | } 38 | 39 | 40 | public int getConstructor() { 41 | return ID; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/ContactModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import org.telegram.tl.*; 22 | 23 | import java.io.Serializable; 24 | 25 | public class ContactModel implements Serializable { 26 | public long contact_id; 27 | public String phone; 28 | public String first_name; 29 | public String last_name; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/BotCommand.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class BotCommand extends TLBotCommand { 7 | 8 | public static final int ID = 0xc27ac8c7; 9 | 10 | public String command; 11 | public String description; 12 | 13 | public BotCommand() { 14 | } 15 | 16 | public BotCommand(String command, String description) { 17 | this.command = command; 18 | this.description = description; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | command = buffer.readString(); 24 | description = buffer.readString(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | @Override 35 | public void serializeTo(ProtocolBuffer buff) { 36 | buff.writeInt(getConstructor()); 37 | buff.writeString(command); 38 | buff.writeString(description); 39 | } 40 | 41 | public int getConstructor() { 42 | return ID; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/DeserializationContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | 23 | /** 24 | * Created by aykut on 10/12/15. 25 | */ 26 | public interface DeserializationContext { 27 | void addToSchema(Class type); 28 | 29 | TLObject deserialize(ProtocolBuffer buffer); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputChannel.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputChannel extends TLInputChannel { 7 | 8 | public static final int ID = 0xafeb712e; 9 | 10 | public int channel_id; 11 | public long access_hash; 12 | 13 | public InputChannel() { 14 | } 15 | 16 | public InputChannel(int channel_id, long access_hash) { 17 | this.channel_id = channel_id; 18 | this.access_hash = access_hash; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | channel_id = buffer.readInt(); 24 | access_hash = buffer.readLong(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | 35 | @Override 36 | public void serializeTo(ProtocolBuffer buff) { 37 | buff.writeInt(getConstructor()); 38 | buff.writeInt(channel_id); 39 | buff.writeLong(access_hash); 40 | } 41 | 42 | 43 | public int getConstructor() { 44 | return ID; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaPhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaPhoto extends TLInputMedia { 7 | 8 | public static final int ID = 0xe9bfb4f3; 9 | 10 | public TLInputPhoto id; 11 | public String caption; 12 | 13 | public InputMediaPhoto() { 14 | } 15 | 16 | public InputMediaPhoto(TLInputPhoto id, String caption) { 17 | this.id = id; 18 | this.caption = caption; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | id = (TLInputPhoto) buffer.readTLObject(APIContext.getInstance()); 24 | caption = buffer.readString(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | @Override 35 | public void serializeTo(ProtocolBuffer buff) { 36 | buff.writeInt(getConstructor()); 37 | buff.writeTLObject(id); 38 | buff.writeString(caption); 39 | } 40 | 41 | public int getConstructor() { 42 | return ID; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/SessionModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import java.io.Serializable; 22 | import java.util.Date; 23 | 24 | /** 25 | * Created by aykut on 09/11/15. 26 | */ 27 | public class SessionModel implements Serializable { 28 | public long auth_key_id; 29 | public long session_id; 30 | public int layer; 31 | public String phone; 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/AuthKeyModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import java.io.Serializable; 22 | 23 | /** 24 | * Created by aykut on 03/12/15. 25 | */ 26 | public class AuthKeyModel implements Serializable { 27 | public long auth_key_id; 28 | public byte[] auth_key; 29 | public String phone; 30 | public int user_id; 31 | public int api_layer; 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/secure/Entropy.java: -------------------------------------------------------------------------------- 1 | package org.telegram.mtproto.secure; 2 | 3 | import java.security.SecureRandom; 4 | 5 | import static org.telegram.mtproto.secure.CryptoUtils.xor; 6 | 7 | /** 8 | * Created with IntelliJ IDEA. 9 | * User: ex3ndr 10 | * Date: 03.11.13 11 | * Time: 4:05 12 | */ 13 | public final class Entropy { 14 | private static SecureRandom random = new SecureRandom(); 15 | 16 | public static byte[] generateSeed(int size) { 17 | synchronized (random) { 18 | return random.generateSeed(size); 19 | } 20 | } 21 | 22 | public static byte[] generateSeed(byte[] sourceSeed) { 23 | synchronized (random) { 24 | return xor(random.generateSeed(sourceSeed.length), sourceSeed); 25 | } 26 | } 27 | 28 | public static long generateRandomId() { 29 | synchronized (random) { 30 | return random.nextLong(); 31 | } 32 | } 33 | 34 | public static int randomInt() { 35 | synchronized (random) { 36 | return random.nextInt(); 37 | } 38 | } 39 | 40 | public static void feedEntropy(byte[] data) { 41 | synchronized (random) { 42 | random.setSeed(data); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaVideo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaVideo extends TLInputMedia { 7 | 8 | public static final int ID = 0x936a4ebd; 9 | 10 | public TLInputVideo video_id; 11 | public String caption; 12 | 13 | public InputMediaVideo() { 14 | } 15 | 16 | public InputMediaVideo(TLInputVideo video_id, String caption) { 17 | this.video_id = video_id; 18 | this.caption = caption; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | video_id = (TLInputVideo) buffer.readTLObject(APIContext.getInstance()); 24 | caption = buffer.readString(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | @Override 35 | public void serializeTo(ProtocolBuffer buff) { 36 | buff.writeInt(getConstructor()); 37 | buff.writeTLObject(video_id); 38 | buff.writeString(caption); 39 | } 40 | 41 | public int getConstructor() { 42 | return ID; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaUploadedPhoto.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaUploadedPhoto extends TLInputMedia { 7 | 8 | public static final int ID = 0xf7aff1c0; 9 | 10 | public TLInputFile file; 11 | public String caption; 12 | 13 | public InputMediaUploadedPhoto() { 14 | } 15 | 16 | public InputMediaUploadedPhoto(TLInputFile file, String caption) { 17 | this.file = file; 18 | this.caption = caption; 19 | } 20 | 21 | @Override 22 | public void deserialize(ProtocolBuffer buffer) { 23 | file = (TLInputFile) buffer.readTLObject(APIContext.getInstance()); 24 | caption = buffer.readString(); 25 | } 26 | 27 | @Override 28 | public ProtocolBuffer serialize() { 29 | ProtocolBuffer buffer = new ProtocolBuffer(32); 30 | serializeTo(buffer); 31 | return buffer; 32 | } 33 | 34 | @Override 35 | public void serializeTo(ProtocolBuffer buff) { 36 | buff.writeInt(getConstructor()); 37 | buff.writeTLObject(file); 38 | buff.writeString(caption); 39 | } 40 | 41 | public int getConstructor() { 42 | return ID; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/server/MTProtoMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.server; 20 | 21 | import org.telegram.tl.TLObject; 22 | 23 | /** 24 | * Created by aykut on 24/10/16. 25 | */ 26 | public class MTProtoMessage { 27 | public long auth_key_id; 28 | public long message_id; 29 | public int message_data_length; 30 | public long server_salt; 31 | public long session_id; 32 | public int seq_no; 33 | public TLObject message_data; 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/core/ActiveSession.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.core; 20 | 21 | 22 | import java.io.Serializable; 23 | 24 | /** 25 | * Created by aykut on 17/11/15. 26 | */ 27 | public class ActiveSession implements Serializable { 28 | public long auth_key_id; 29 | public long session_id; 30 | public int layer; 31 | public int user_id; 32 | public String phone; 33 | public String username; 34 | public String server; 35 | public boolean http = false; 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/mtproto/OpenSSL.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.mtproto; 20 | 21 | import java.nio.ByteBuffer; 22 | 23 | /** 24 | * Created by aykut on 26/10/16. 25 | */ 26 | public class OpenSSL { 27 | static { 28 | System.loadLibrary("OpenSSL"); 29 | } 30 | 31 | public static final int AES_ENCRYPT = 1; 32 | public static final int AES_DECRYPT = 0; 33 | 34 | public native static void AES_ige_encrypt(ByteBuffer src, byte[] key, byte[] iv, int offset, int length, int enc); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/server/ServerConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.server; 20 | 21 | /** 22 | * Created by aykut on 08/11/15. 23 | */ 24 | public class ServerConfig { 25 | public static final int SERVER_ID = 2; 26 | public static final String SERVER_HOSTNAME = "127.0.0.1"; 27 | public static final String SERVER_IP = "127.0.0.1"; 28 | //public static final String SERVER_HOSTNAME = "10.0.2.2"; 29 | //public static final String SERVER_IP = "10.0.2.2"; 30 | public static final int SERVER_PORT = 11235; 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/BotCommandOld.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class BotCommandOld extends TLBotCommand { 7 | 8 | public static final int ID = 0xb79d22ab; 9 | 10 | public String command; 11 | public String params; 12 | public String description; 13 | 14 | public BotCommandOld() { 15 | } 16 | 17 | public BotCommandOld(String command, String params, String description) { 18 | this.command = command; 19 | this.params = params; 20 | this.description = description; 21 | } 22 | 23 | @Override 24 | public void deserialize(ProtocolBuffer buffer) { 25 | command = buffer.readString(); 26 | params = buffer.readString(); 27 | description = buffer.readString(); 28 | } 29 | 30 | @Override 31 | public ProtocolBuffer serialize() { 32 | ProtocolBuffer buffer = new ProtocolBuffer(32); 33 | serializeTo(buffer); 34 | return buffer; 35 | } 36 | 37 | @Override 38 | public void serializeTo(ProtocolBuffer buff) { 39 | buff.writeInt(getConstructor()); 40 | buff.writeString(command); 41 | buff.writeString(params); 42 | buff.writeString(description); 43 | } 44 | 45 | public int getConstructor() { 46 | return ID; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/HazelcastConnection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import com.hazelcast.core.Hazelcast; 22 | import com.hazelcast.core.HazelcastInstance; 23 | 24 | /** 25 | * Created by aykut on 09/11/15. 26 | */ 27 | public class HazelcastConnection { 28 | private static HazelcastInstance _instance; 29 | 30 | public static HazelcastInstance getInstance() { 31 | if (_instance == null) { 32 | _instance = Hazelcast.newHazelcastInstance(); 33 | } 34 | return _instance; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/data/SecretChatModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.data; 20 | 21 | import java.io.Serializable; 22 | 23 | /** 24 | * Created by aykut on 04/10/16. 25 | */ 26 | public class SecretChatModel implements Serializable { 27 | public int chat_id; 28 | public int admin_id; 29 | public int participant_id; 30 | 31 | public SecretChatModel(int chat_id, int admin_id, int participant_id) { 32 | this.chat_id = chat_id; 33 | this.admin_id = admin_id; 34 | this.participant_id = participant_id; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/TLObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | 23 | import java.io.Serializable; 24 | 25 | /** 26 | * Created by aykut on 19/10/15. 27 | */ 28 | public abstract class TLObject implements Serializable { 29 | 30 | public void deserialize(ProtocolBuffer buffer){ 31 | 32 | } 33 | 34 | public ProtocolBuffer serialize(){ 35 | return null; 36 | } 37 | 38 | public void serializeTo(ProtocolBuffer buff){ 39 | 40 | } 41 | 42 | public abstract int getConstructor(); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaContact.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaContact extends TLInputMedia { 7 | 8 | public static final int ID = 0xa6e45987; 9 | 10 | public String phone_number; 11 | public String first_name; 12 | public String last_name; 13 | 14 | public InputMediaContact() { 15 | } 16 | 17 | public InputMediaContact(String phone_number, String first_name, String last_name){ 18 | this.phone_number = phone_number; 19 | this.first_name = first_name; 20 | this.last_name = last_name; 21 | } 22 | 23 | @Override 24 | public void deserialize(ProtocolBuffer buffer) { 25 | phone_number = buffer.readString(); 26 | first_name = buffer.readString(); 27 | last_name = buffer.readString(); 28 | } 29 | 30 | @Override 31 | public ProtocolBuffer serialize() { 32 | ProtocolBuffer buffer = new ProtocolBuffer(32); 33 | serializeTo(buffer); 34 | return buffer; 35 | } 36 | 37 | @Override 38 | public void serializeTo(ProtocolBuffer buff) { 39 | buff.writeInt(getConstructor()); 40 | buff.writeString(phone_number); 41 | buff.writeString(first_name); 42 | buff.writeString(last_name); 43 | } 44 | 45 | public int getConstructor() { 46 | return ID; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaUploadedAudio.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaUploadedAudio extends TLInputMedia { 7 | 8 | public static final int ID = 0x4e498cab; 9 | 10 | public TLInputFile file; 11 | public int duration; 12 | public String mime_type; 13 | 14 | public InputMediaUploadedAudio() { 15 | } 16 | 17 | public InputMediaUploadedAudio(TLInputFile file, int duration, String mime_type){ 18 | this.file = file; 19 | this.duration = duration; 20 | this.mime_type = mime_type; 21 | } 22 | 23 | @Override 24 | public void deserialize(ProtocolBuffer buffer) { 25 | file = (TLInputFile) buffer.readTLObject(APIContext.getInstance()); 26 | duration = buffer.readInt(); 27 | mime_type = buffer.readString(); 28 | } 29 | 30 | @Override 31 | public ProtocolBuffer serialize() { 32 | ProtocolBuffer buffer = new ProtocolBuffer(32); 33 | serializeTo(buffer); 34 | return buffer; 35 | } 36 | 37 | @Override 38 | public void serializeTo(ProtocolBuffer buff) { 39 | buff.writeInt(getConstructor()); 40 | buff.writeTLObject(file); 41 | buff.writeInt(duration); 42 | buff.writeString(mime_type); 43 | } 44 | 45 | public int getConstructor() { 46 | return ID; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaUploadedDocument.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaUploadedDocument extends TLInputMedia { 7 | 8 | public static final int ID = 0xffe76b78; 9 | 10 | public TLInputFile file; 11 | public String mime_type; 12 | public TLVector attributes; 13 | 14 | public InputMediaUploadedDocument() { 15 | this.attributes = new TLVector<>(); 16 | } 17 | 18 | public InputMediaUploadedDocument(TLInputFile file, String mime_type, TLVector attributes){ 19 | this.file = file; 20 | this.mime_type = mime_type; 21 | this.attributes = attributes; 22 | } 23 | 24 | @Override 25 | public void deserialize(ProtocolBuffer buffer) { 26 | file = (TLInputFile) buffer.readTLObject(APIContext.getInstance()); 27 | mime_type = buffer.readString(); 28 | attributes = (TLVector) buffer.readTLObject(APIContext.getInstance()); 29 | } 30 | 31 | @Override 32 | public ProtocolBuffer serialize() { 33 | ProtocolBuffer buffer = new ProtocolBuffer(32); 34 | serializeTo(buffer); 35 | return buffer; 36 | } 37 | 38 | @Override 39 | public void serializeTo(ProtocolBuffer buff) { 40 | buff.writeInt(getConstructor()); 41 | buff.writeTLObject(file); 42 | buff.writeString(mime_type); 43 | buff.writeTLObject(attributes); 44 | } 45 | 46 | public int getConstructor() { 47 | return ID; 48 | } 49 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/Null.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class Null extends TLNull { 25 | 26 | public static final int ID = 1450380236; 27 | 28 | 29 | public Null(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/BoolFalse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class BoolFalse extends TLBool { 25 | 26 | public static final int ID = -1132882121; 27 | 28 | 29 | public BoolFalse(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/BoolTrue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class BoolTrue extends TLBool { 25 | 26 | public static final int ID = -1720552011; 27 | 28 | 29 | public BoolTrue(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputMediaUploadedVideo.java: -------------------------------------------------------------------------------- 1 | package org.telegram.tl; 2 | 3 | import org.telegram.mtproto.ProtocolBuffer; 4 | import org.telegram.tl.*; 5 | 6 | public class InputMediaUploadedVideo extends TLInputMedia { 7 | 8 | public static final int ID = 0xe13fd4bc; 9 | 10 | public TLInputFile file; 11 | public int duration; 12 | public int w; 13 | public int h; 14 | public String caption; 15 | 16 | public InputMediaUploadedVideo() { 17 | } 18 | 19 | public InputMediaUploadedVideo(TLInputFile file, int duration, int w, int h, String caption) { 20 | this.file = file; 21 | this.duration = duration; 22 | this.w = w; 23 | this.h = h; 24 | this.caption = caption; 25 | } 26 | 27 | @Override 28 | public void deserialize(ProtocolBuffer buffer) { 29 | file = (TLInputFile) buffer.readTLObject(APIContext.getInstance()); 30 | duration = buffer.readInt(); 31 | w = buffer.readInt(); 32 | h = buffer.readInt(); 33 | caption = buffer.readString(); 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | buff.writeTLObject(file); 47 | buff.writeInt(duration); 48 | buff.writeInt(w); 49 | buff.writeInt(h); 50 | buff.writeString(caption); 51 | } 52 | 53 | public int getConstructor() { 54 | return ID; 55 | } 56 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/NotifyAll.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class NotifyAll extends TLNotifyPeer { 25 | 26 | public static final int ID = 1959820384; 27 | 28 | 29 | public NotifyAll(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/ChatInviteEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | 23 | public class ChatInviteEmpty extends TLExportedChatInvite { 24 | 25 | public static final int ID = 0x69df3769; 26 | 27 | 28 | public ChatInviteEmpty() { 29 | } 30 | 31 | @Override 32 | public void deserialize(ProtocolBuffer buffer) { 33 | 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/GeoPointEmpty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class GeoPointEmpty extends TLGeoPoint { 25 | 26 | public static final int ID = 286776671; 27 | 28 | 29 | public GeoPointEmpty(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputPeerSelf.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class InputPeerSelf extends TLInputPeer { 25 | 26 | public static final int ID = 2107670217; 27 | 28 | 29 | public InputPeerSelf(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/InputUserSelf.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class InputUserSelf extends TLInputUser { 25 | 26 | public static final int ID = -138301121; 27 | 28 | 29 | public InputUserSelf(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/NotifyChats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class NotifyChats extends TLNotifyPeer { 25 | 26 | public static final int ID = -1073230141; 27 | 28 | 29 | public NotifyChats(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/NotifyUsers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class NotifyUsers extends TLNotifyPeer { 25 | 26 | public static final int ID = -1261946036; 27 | 28 | 29 | public NotifyUsers(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/org/telegram/tl/help/GetSupport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of Telegram Server 3 | * Copyright (C) 2015 Aykut Alparslan KOÇ 4 | * 5 | * Telegram Server is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * Telegram Server is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with this program. If not, see . 17 | */ 18 | 19 | package org.telegram.tl.help; 20 | 21 | import org.telegram.mtproto.ProtocolBuffer; 22 | import org.telegram.tl.*; 23 | 24 | public class GetSupport extends TLObject { 25 | 26 | public static final int ID = -1663104819; 27 | 28 | 29 | public GetSupport(){ 30 | } 31 | 32 | @Override 33 | public void deserialize(ProtocolBuffer buffer) { 34 | } 35 | 36 | @Override 37 | public ProtocolBuffer serialize() { 38 | ProtocolBuffer buffer = new ProtocolBuffer(32); 39 | serializeTo(buffer); 40 | return buffer; 41 | } 42 | 43 | @Override 44 | public void serializeTo(ProtocolBuffer buff) { 45 | buff.writeInt(getConstructor()); 46 | } 47 | 48 | public int getConstructor() { 49 | return ID; 50 | } 51 | } --------------------------------------------------------------------------------