1 /*
2  * Copyright 2014 Canonical Ltd.
3  * Authors:
4  *      Roberto Mier
5  *      Tiago Herrmann
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; version 3.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef TLVALUES_H
22 #define TLVALUES_H
23 
24 enum TLValues {
25     // https://core.telegram.org/mtproto/auth_key
26     TL_ReqPQ = 0x60469778,
27     TL_ResPQ = 0x05162463,
28     TL_ReqDHParams = 0xd712e4be,
29     TL_PQInnerData = 0x83c95aec,
30     TL_PQInnerDataTemp = 0x3c6a84d4,
31     TL_ServerDHParamsOK = 0xd0e8075c,
32     TL_ServerDHParamsFail = 0x79cb045d,
33     TL_ServerDHInnerData = 0xb5890dba,
34     TL_ClientDHInnerData = 0x6643b654,
35     TL_SetClientDHParams = 0xf5045f1f,
36     TL_DHGenOK = 0x3bcbf734,
37 
38     // https://core.telegram.org/mtproto/service_messages
39     TL_RpcResult = 0xf35c6d01,
40     TL_RpcError = 0x2144ca19,
41     TL_RpcDropAnswer = 0x58e4a740,
42     TL_RpcAnswerUnknown = 0x5e2ad36e,
43     TL_RpcAnswerDroppedRunning = 0xcd78e586,
44     TL_RpcAnswerDropped = 0xa43ad8b7,
45     TL_GetFutureSalts = 0xb921bd04,
46     TL_FutureSalt = 0x0949d9dc,
47     TL_FutureSalts = 0xae500895,
48     TL_Ping = 0x7abe77ec,
49     TL_Pong = 0x347773c5,
50     TL_PingDelayDisconnect = 0xf3427b8c,
51     TL_DestroySession = 0xe7512126,
52     TL_DestroySessionOk = 0xe22045fc,
53     TL_DestroySessionNone = 0x62d350c9,
54     TL_NewSessionCreated = 0x9ec20908,
55     TL_MsgContainer = 0x73f1f8dc,
56     TL_MsgCopy = 0xe06046b2,
57     TL_GZipPacked = 0x3072cfa1,
58     TL_HttpWait = 0x9299359f,
59 
60     // https://core.telegram.org/mtproto/service_messages_about_messages
61     TL_MsgsAck = 0x62d6b459,
62     TL_BadMsgNotification = 0xa7eff811,
63     TL_BadServerSalt = 0xedab447b,
64     TL_MsgsStateReq = 0xda69fb52,
65     TL_MsgsStateInfo = 0x04deb57d,
66     TL_MsgsAllInfo = 0x8cc0d131,
67     TL_MsgDetailedInfo = 0x276d3ec6,
68     TL_MsgNewDetailedInfo = 0x809db6df,
69     TL_MsgResendReq = 0x7d861a08,
70 
71     // https://core.telegram.org/schema by generator
72     TL_DecryptedMessageLayer = 0x1be31789,
73     TL_DecryptedMessage_layer8 = 0x1f814f1f,
74     TL_DecryptedMessage = 0x204d3878,
75     TL_DecryptedMessageService_layer8 = 0xaa48327d,
76     TL_DecryptedMessageService = 0x73164160,
77     TL_DecryptedMessageMediaEmpty = 0x89f5c4a,
78     TL_DecryptedMessageMediaPhoto = 0x32798a8c,
79     TL_DecryptedMessageMediaVideo_layer8 = 0x4cee6ef3,
80     TL_DecryptedMessageMediaVideo = 0x524a415d,
81     TL_DecryptedMessageMediaGeoPoint = 0x35480a59,
82     TL_DecryptedMessageMediaContact = 0x588a0a97,
83     TL_DecryptedMessageMediaAudio_layer8 = 0x6080758f,
84     TL_DecryptedMessageMediaAudio = 0x57e0a9cb,
85     TL_DecryptedMessageMediaExternalDocument = 0xfa95b0dd,
86     TL_DecryptedMessageActionSetMessageTTL = 0xa1733aec,
87     TL_DecryptedMessageActionReadMessages = 0xc4f40be,
88     TL_DecryptedMessageActionDeleteMessages = 0x65614304,
89     TL_DecryptedMessageActionScreenshotMessages = 0x8ac1f475,
90     TL_DecryptedMessageActionFlushHistory = 0x6719e45c,
91     TL_DecryptedMessageActionResend = 0x511110b0,
92     TL_DecryptedMessageActionNotifyLayer = 0xf3048883,
93     TL_DecryptedMessageActionTyping = 0xccb27641
94 };
95 
96 #endif // TLVALUES_H
97